- css sprites - attempt to auto align plugin image links on the index page and picture pages

- css sprites - a couple of rel nofolloz dissapeared
- hide the flat icon if there are no sub albums for the current album

git-svn-id: http://piwigo.org/svn/trunk@8463 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2011-01-03 20:47:15 +00:00
parent 1117fadff3
commit 621ed0b391
5 changed files with 10 additions and 9 deletions
+5
View File
@@ -261,6 +261,11 @@ if ($page['start']==0 and !isset($page['chronology_field']) and !empty($page['co
// include menubar
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
if ( isset($page['category']['count_categories']) and $page['category']['count_categories']==0 )
{// count_categories might be computed by menubar - if the case unassign flat link if no sub albums
$template->clear_assign('U_MODE_FLAT');
}
//------------------------------------------------------ main part : thumbnails
if ( 0==$page['start']
and !isset($page['flat'])
+2 -1
View File
@@ -2,6 +2,7 @@
display: inline-block; /*IE6 does not get this correctly*/
text-indent: -9999px; overflow: hidden; background-repeat: no-repeat;
width: 26px; height: 26px; background-image: url(s26/outline_808080.png);
vertical-align: bottom;
}
.pwg-button-text { display:none; }
@@ -13,7 +14,7 @@
.pwg-button {
display: inline-block;
vertical-align: middle;
vertical-align: top;
}
.pwg-icon-home {background-position: -26px 0}
+2 -2
View File
@@ -51,12 +51,12 @@
</a></li>
{/if}
{if isset($U_MODE_POSTED)}
<li><a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button">
<li><a href="{$U_MODE_POSTED}" title="{'display a calendar by posted date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-camera-calendar">&nbsp;</span><span class="pwg-button-text">{'Calendar'|@translate}</span>
</a></li>
{/if}
{if isset($U_MODE_CREATED)}
<li><a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" class="pwg-state-default pwg-button">
<li><a href="{$U_MODE_CREATED}" title="{'display a calendar by creation date'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-camera-calendar">&nbsp;</span><span class="pwg-button-text">{'Calendar'|@translate}</span>
</a></li>
{/if}
+1 -1
View File
@@ -8,7 +8,7 @@
</a></li>
{/if}
{if $display_mode == 'cloud'}
<li><a href="{$U_LETTERS}" title="{'group by letters'|@translate}" class="pwg-state-default pwg-button">
<li><a href="{$U_LETTERS}" title="{'group by letters'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-letters">&nbsp;</span><span class="pwg-button-text">{'letters'|@translate}</span>
</a></li>
{/if}
-5
View File
@@ -132,11 +132,6 @@
display: inline;
}
/*following rule not used directly but it is there for plugins*/
.categoryActions IMG {
margin-bottom: -5px;
}
/* begin chronology/calendar elements*/
.content .calendarViews {
display: block;