summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/admin_wind/css/screen.css37
-rw-r--r--themes/admin_wind/views/admin.html.php12
-rw-r--r--themes/wind/css/screen.css74
-rw-r--r--themes/wind/views/page.html.php10
4 files changed, 45 insertions, 88 deletions
diff --git a/themes/admin_wind/css/screen.css b/themes/admin_wind/css/screen.css
index 4ae0c218..fbcdf4ae 100644
--- a/themes/admin_wind/css/screen.css
+++ b/themes/admin_wind/css/screen.css
@@ -246,7 +246,7 @@ th {
background: transparent url('../../../lib/images/logo.png') no-repeat 0 .5em;
color: #A5A5A5 !important;
display: block;
- height: 55px;
+ height: 65px;
padding-top: 5px;
width: 105px;
}
@@ -457,46 +457,19 @@ th {
* 7) Right to left styles
*********************************************************************/
-.rtl {
- direction: rtl;
+.rtl #g-admin-menu {
+ left: auto;
+ right: 150px;
}
-.rtl caption,
-.rtl th,
-.rtl #g-dialog {
- text-align: right;
-}
-
-.rtl #g-header #g-login-menu,
-.rtl .g-txt-right {
- text-align: left;
-}
-
-.rtl .g-right,
-.rtl #g-header #g-quick-search-form,
-.rtl #g-header #g-login-menu,
-.rtl .ui-icon-right .ui-icon {
- clear: left;
- float: left;
-}
-
-.rtl .g-left,
-.rtl form ul ul li,
-.rtl input[type="submit"],
-.rtl input[type="reset"],
.rtl #g-content #g-album-grid .g-item,
-.rtl #g-site-admin-menu,
-.rtl .g-pager li,
-.rtl .g-buttonset li,
-.rtl .ui-icon-left .ui-icon,
.rtl #g-site-theme,
.rtl #g-admin-theme,
.rtl .g-selected img,
.rtl .g-available .g-block img,
.rtl #g-content #g-photo-stream .g-item,
.rtl li.g-group,
-.rtl #g-server-add-admin,
-.rtl .ui-icon-left .ui-icon {
+.rtl #g-server-add-admin {
float: right;
}
diff --git a/themes/admin_wind/views/admin.html.php b/themes/admin_wind/views/admin.html.php
index d88cabf6..ef1aa1d2 100644
--- a/themes/admin_wind/views/admin.html.php
+++ b/themes/admin_wind/views/admin.html.php
@@ -44,7 +44,17 @@
<div id="g-header">
<?= $theme->admin_header_top() ?>
<ul id="g-login-menu" class="g-inline g-right">
- <li class="g-first"><?= html::anchor(item::root()->abs_url(), "&larr; ".t("Back to the Gallery")) ?></li>
+ <li class="g-first">
+ <? if (identity::is_writable()): ?>
+ <?= t('Logged in as %name', array('name' => html::mark_clean(
+ '<a href="' . url::site("form/edit/users/{$user->id}") .
+ '" title="' . t("Edit Your Profile")->for_html_attr() .
+ '" id="g-user-profile-link" class="g-dialog-link">' .
+ html::clean($user->display_name()) . '</a>'))) ?>
+ <? else: ?>
+ <?= t('Logged in as %name', array('name' => html::clean($user->display_name()))) ?>
+ <? endif ?>
+ </li>
<li id="g-logout-link"><a href="<?= url::site("logout?csrf=$csrf&amp;continue=" . urlencode(item::root()->url())) ?>"><?= t("Logout") ?></a></li>
</ul>
<a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery")->for_html_attr() ?>">
diff --git a/themes/wind/css/screen.css b/themes/wind/css/screen.css
index 15ce4173..b73c21f0 100644
--- a/themes/wind/css/screen.css
+++ b/themes/wind/css/screen.css
@@ -4,7 +4,7 @@
* @requires YUI reset, font, grids CSS
*
* Sheet organization:
- * 1) Basic HTML elements
+ * 1) Font sizes, base HTML elements
* 2) Reusable content blocks
* 3) Page layout containers
* 4) Content blocks in specific layout containers
@@ -16,7 +16,7 @@
*/
/** *******************************************************************
- * 1) Basic HTML elements
+ * 1) Font sizes, base HTML elements
**********************************************************************/
body, html {
@@ -56,10 +56,27 @@ h2 {
margin-bottom: .6em;
}
+#g-content,
+#g-site-menu,
h3 {
font-size: 1.2em;
}
+#g-sidebar,
+.g-breadcrumbs {
+ font-size: .9em;
+}
+
+#g-banner,
+#g-footer,
+.g-message {
+ font-size: .8em;
+}
+
+#g-content #g-album-grid .g-item {
+ font-size: .7em;
+}
+
/* Links ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
a,
@@ -149,21 +166,18 @@ td {
#g-banner {
background-color: #e8e8e8;
border-bottom: 1px solid #ccc;
- font-size: .8em;
min-height: 5em;
padding: 1em 20px;
position: relative;
}
#g-content {
- font-size: 1.2em;
padding-left: 20px;
position: relative;
width: 696px;
}
#g-sidebar {
- font-size: .9em;
padding: 0 20px;
width: 220px;
}
@@ -171,7 +185,6 @@ td {
#g-footer {
background-color: #e8e8e8;
border-top: 1px solid #ccc;
- font-size: .8em;
margin-top: 20px;
padding: 10px 20px;
}
@@ -182,10 +195,6 @@ td {
/* Header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
-#g-banner #g-logo img {
- margin: 0;
-}
-
#g-banner #g-quick-search-form {
clear: right;
float: right;
@@ -217,7 +226,6 @@ td {
background-color: #fff;
border: 1px solid #fff;
float: left;
- font-size: .7em;
padding: .6em 8px;
position: relative;
text-align: center;
@@ -295,15 +303,10 @@ td {
* 5) Navigation and menus
*********************************************************************/
-#g-site-menu {
- font-size: 1.2em;
-}
-
/* Login menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-banner #g-login-menu {
color: #999;
- float: right;
}
#g-banner #g-login-menu li {
@@ -337,10 +340,6 @@ td {
width: 100%;
}
-#g-item .g-context-menu {
- font-size: .7em;
-}
-
#g-item .g-context-menu ul {
display: none;
}
@@ -413,37 +412,10 @@ td {
}
/** *******************************************************************
- * 6) Right to left styles
+ * 7) Right to left styles
*********************************************************************/
-.rtl {
- direction: rtl;
-}
-
-.rtl caption,
-.rtl th,
-.rtl #g-dialog {
- text-align: right;
-}
-
-.rtl .g-right,
-.rtl #g-header #g-quick-search-form,
-.rtl #g-header #g-login-menu,
-.rtl .ui-icon-right .ui-icon {
- clear: left;
- float: left;
-}
-
-.rtl .g-left,
-.rtl form ul ul li,
-.rtl input[type="submit"],
-.rtl input[type="reset"],
-.rtl #g-header #g-logo img,
-.rtl #g-content #g-album-grid .g-item,
-.rtl #g-site-menu,
-.rtl .g-breadcrumbs li,
-.rtl .g-pager li,
-.rtl .g-buttonset li,
-.rtl .ui-icon-left .ui-icon {
- float: right;
+.rtl #g-site-menu {
+ left: auto;
+ right: 150px;
}
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php
index a14a3278..a2b2fdd7 100644
--- a/themes/wind/views/page.html.php
+++ b/themes/wind/views/page.html.php
@@ -77,14 +77,14 @@
<?= $theme->site_status() ?>
<div id="g-header" class="ui-helper-clearfix">
<div id="g-banner">
- <?= $theme->header_top() ?>
<? if ($header_text = module::get_var("gallery", "header_text")): ?>
<?= $header_text ?>
<? else: ?>
- <a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery home")->for_html_attr() ?>">
+ <a id="g-logo" class="g-left" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery home")->for_html_attr() ?>">
<img width="107" height="48" alt="<?= t("Gallery logo: Your photos on your web site")->for_html_attr() ?>" src="<?= url::file("lib/images/logo.png") ?>" />
</a>
<? endif ?>
+ <?= $theme->header_top() ?>
<div id="g-site-menu">
<?= $theme->site_menu() ?>
</div>
@@ -93,8 +93,9 @@
<? if (!empty($parents)): ?>
<ul class="g-breadcrumbs">
+ <? $i = 0 ?>
<? foreach ($parents as $parent): ?>
- <li>
+ <li<? if ($i == 0) print " class=\"g-first\"" ?>>
<!-- Adding ?show=<id> causes Gallery3 to display the page
containing that photo. For now, we just do it for
the immediate parent so that when you go back up a
@@ -104,8 +105,9 @@
<?= html::purify($parent->title) ?>
</a>
</li>
+ <? $i++ ?>
<? endforeach ?>
- <li class="active"><?= html::purify($theme->item()->title) ?></li>
+ <li class="g-active"><?= html::purify($theme->item()->title) ?></li>
</ul>
<? endif ?>
</div>