mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Feature:837 "Extend for templates" could have dedicated .css files.
git-svn-id: http://piwigo.org/svn/trunk@2462 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -173,6 +173,15 @@ class Template {
|
||||
/* For test purpose: Do advanced users need a php access? */
|
||||
// $localphp = '../.' . substr($localtpl,0,-3).'php';
|
||||
// if (file_exists($localphp)) @include_once($localphp);
|
||||
|
||||
/* Does it have a samename.css available */
|
||||
$localcss = substr($localtpl,0,-3).'css';
|
||||
if (file_exists($localcss))
|
||||
{
|
||||
$this->html_head_elements[] =
|
||||
'<link rel="stylesheet" type="text/css" href="'
|
||||
. substr($localcss, 2) . '">';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/* $Id$ */
|
||||
legend.thumbLegend { padding: 0 5px; color: #24919c; font-style:italic; font-size: 7px; }
|
||||
fieldset.wrap1 { width: 96px; min-width: 96px; padding: 0;
|
||||
margin: 5px; display: inline;}
|
||||
.wrap2 { display: block; padding: 4px 15px 10px 15px; border: 0;}
|
||||
a.wrap2:hover { border: 0; background-color: #000; }
|
||||
img.thumbnail { display: block; margin: 2px auto; }
|
||||
@@ -4,32 +4,14 @@
|
||||
<ul class="thumbnails">
|
||||
{foreach from=$thumbnails item=thumbnail}
|
||||
<li>
|
||||
<span class="wrap1">
|
||||
<span class="wrap2">
|
||||
<a href="{$thumbnail.U_IMG_LINK}">
|
||||
<fieldset class="wrap1">
|
||||
<legend class="thumbLegend">
|
||||
{if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if}
|
||||
</legend>
|
||||
<a href="{$thumbnail.U_IMG_LINK}" class="wrap2">
|
||||
<img class="thumbnail" src="{$thumbnail.IMAGE}" alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}" />
|
||||
</a>
|
||||
</span>
|
||||
<span class="thumbLegend" style="color:#3F6;">
|
||||
© 2008 Piwigo<br />
|
||||
{if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if}
|
||||
{if !empty($thumbnail.IMAGE_TS)}{$thumbnail.IMAGE_TS}{/if}
|
||||
|
||||
{if isset($thumbnail.NB_COMMENTS)}
|
||||
<span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
|
||||
<br />
|
||||
{$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if isset($thumbnail.NB_HITS)}
|
||||
<span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
|
||||
<br />
|
||||
{$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
|
||||
</span>
|
||||
{/if}
|
||||
</span>
|
||||
</span>
|
||||
</fieldset>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user