légère modification du style

This commit is contained in:
nojhan 2008-05-12 20:18:17 +00:00
commit e6cf70ea01
4 changed files with 21 additions and 7 deletions

View file

@ -92,6 +92,11 @@ class configuration
* Number of thumbnails per gallery page * Number of thumbnails per gallery page
*/ */
var $thumbs_per_page = 5; var $thumbs_per_page = 5;
/**
* Size of the thumbnails
*/
var $thumb_size = "200px";
} }
?> ?>

View file

@ -106,7 +106,7 @@ class gallery_manager
function generate() { function generate() {
$sm = new strip_manager; $sm = new strip_manager;
$output = new HTML_Template_Flexy($sm->options); $output = new HTML_Template_Flexy($sm->options);
$output->compile('template_gallery_default.html'); $output->compile('gallery_'.$sm->general->template_html);
$output->outputObject($this,$this->items_list); $output->outputObject($this,$this->items_list);
} }
} }

View file

@ -4,7 +4,7 @@
<head> <head>
<title>{general.title} - {title}</title> <title>{general.title}</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" />
<meta name=" robot" content="follow, index, all" /> <meta name=" robot" content="follow, index, all" />
@ -22,6 +22,7 @@
<div id="site_title"><p id="site_head">{general.title}</p><p id="site_desc">{general.description}</p></div> <div id="site_title"><p id="site_head">{general.title}</p><p id="site_desc">{general.description}</p></div>
<div id="main"><a href="..">{lang.accueil}</a> <br/> <a id="feed" href="rss.php">{lang.rss}</a> <a id="feed" href="rss.php?limit=10">10</a> <br/><a href="mailto:{general.email}">{general.webmaster}</a></div> <div id="main"><a href="..">{lang.accueil}</a> <br/> <a id="feed" href="rss.php">{lang.rss}</a> <a id="feed" href="rss.php?limit=10">10</a> <br/><a href="mailto:{general.email}">{general.webmaster}</a></div>
<a id="navfirst" href="{nav_first}">{lang.premier}</a> <a id="navfirst" href="{nav_first}">{lang.premier}</a>
<a id="navprev" href="{nav_prev}">{lang.precedent}</a> <a id="navprev" href="{nav_prev}">{lang.precedent}</a>
<a id="navnext" href="{nav_next}">{lang.suivant}</a> <a id="navnext" href="{nav_next}">{lang.suivant}</a>
@ -30,13 +31,19 @@
</div> </div>
</div> </div>
<div class="centering">
{foreach:items_list,id,strip} {foreach:items_list,id,strip}
<div class="centering">
<div class="shadow"> <div class="shadow">
<a href="{general.url}/{strip.nav_base_url}{strip.current_id}"><img class="stripbox" src="{general.url}/{strip.thumbnail}" style="width:345px;"/></a> <a href="{general.url}/{strip.nav_base_url}{strip.current_id}">
<img class="stripbox"
src="{general.url}/{strip.thumbnail}"
title="{strip.title}"
style="width:{general.thumb_size};"
/>
</a>
</div> </div>
</div> {end:}
{end:} </div>
<div id="footbar"> <div id="footbar">
<p id="forum"><a href="{general.forum}">{lang.forum}</a></p> <p id="forum"><a href="{general.forum}">{lang.forum}</a></p>

View file

@ -41,6 +41,7 @@ a:hover {
border-bottom:thin solid black; border-bottom:thin solid black;
margin-top:1em; margin-top:1em;
padding-bottom:1em; padding-bottom:1em;
clear:left;
} }
#title { #title {
font-size:large; font-size:large;
@ -58,6 +59,7 @@ a:hover {
.stripbox { .stripbox {
border:1px solid black; border:1px solid black;
background-color:white; background-color:white;
float:left;
} }
#strip { #strip {