Ajout du template "default" pour Strip-it PHP 5

This commit is contained in:
Leblanc Simon 2009-09-15 00:46:14 +00:00
commit 31b7434371
15 changed files with 359 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

View file

@ -0,0 +1,52 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title><?php echo $config->getTitle() ?></title>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" />
<meta name=" robot" content="follow, index, all" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.php" />
<link rel="alternate" type="application/rss+xml" title="RSS: 10 items" href="rss.php?limit=10" />
<link rel="stylesheet" type="text/css" href="<?php echo $config->getTemplateFolder() ?>/<?php echo $config->getTemplateName() ?>/style.css" />
<link rel="icon" type="image/png" href="favicon.png" />
</head>
<body>
<div class="shadow_simple">
<div id="navbar">
<div id="site_title"><p id="site_head"><?php echo $config->getTitle() ?></p><p id="site_desc"><?php echo $config->getDescription() ?></p></div>
<div id="main"><a href=".."><?php echo $lang->getAccueil() ?></a> <br/> <a id="feed" href="rss.php"><?php echo $lang->getRss() ?></a> <a id="feed" href="rss.php?limit=10">10</a> <br/><a href="mailto:<?php echo $config->getEmail() ?>"><?php echo $lang->getContact() ?></a></div>
<a id="t_navfirst" class="navfirst" href="<?php echo $nav_first ?>"><?php echo $lang->getPremier() ?></a>
<a id="t_navprev" class="navprev" href="<?php echo $nav_prev ?>"><?php echo $lang->getPrecedent() ?></a>
<a id="t_navnext" class="navnext" href="<?php echo $nav_next ?>"><?php echo $lang->getSuivant() ?></a>
<a id="t_navlast" class="navlast" href="<?php echo $nav_last ?>"><?php echo $lang->getDernier() ?></a>
</div>
</div>
<div class="centering">
<?php foreach ($list as $id => $strip) { ?>
<div class="shadow">
<a href="<?php echo $nav_img.$id ?>">
<img class="stripbox" src="<?php echo $strip->getThumbSrc() ?>" title="<?php echo $strip->getTitle() ?>" style="width:<?php echo $config->getThumbSize() ?>px;" />
</a>
</div>
<?php } ?>
</div>
<div id="footbar">
<p id="forum"><a href="<?php echo $config->getFluxbbForum() ?>"><?php echo $lang->getForum() ?></a></p>
<p id="shop_infos"><a href="<?php echo $config->getShop() ?>"><?php echo $lang->getBoutique() ?> <?php echo $config->getTitle() ?></a> <?php echo $lang->getTeeshirt() ?>.</p>
<?php echo $lang->getSeeAlso() ?>
<ul id="linkbar">
<?php foreach ($config->getSeeAlso() as $name => $url) { ?>
<li><a href="<?php echo $url ?>"><?php echo $name ?></a></li>
<?php } ?>
</ul>
<p><?php echo $lang->getPropulse() ?> <a href="http://stripit.sourceforge.net/">Strip-It</a>, <?php echo $lang->getDescstrip() ?> (<?php echo $config->getVersion() ?>).</p>
</div>
</body>
</html>

218
inc/tpl/default/style.css Normal file
View file

@ -0,0 +1,218 @@
html {
margin:0px;
padding:0px;
}
body {
background-color:#bebfc1;
text-align:center;
margin:0px;
padding:0px;
}
a {
color:#ddf;
}
a:hover {
color:white;
}
#navbar {
text-align:center;
background-color:#1f6cd0;
background-image:url("design/gradient.png");
background-repeat:repeat-x;
background-position:top left;
height:94px;
border-bottom:thin solid black;
color:white;
}
#footbar {
color:white;
font-size:small;
text-align:center;
background-color:#1f6cd0;
background-image:url("design/gradient2.png");
background-position:bottom left;
background-repeat:repeat-x;
border-top:thin solid black;
border-bottom:thin solid black;
margin-top:1em;
padding-bottom:1em;
clear:left;
}
#title {
font-size:large;
padding:5px;
text-align:center;
}
#stripbar {
text-align:center;
margin-top:2em;
width:100%;
}
.stripbox {
border:1px solid black;
background-color:white;
float:left;
}
#strip {
border:1px solid black;
background-color:white;
}
#infobar {
color:white;
padding:5px;
text-align:center;
background-color:#1f6cd0;
border:thin solid black;
background-image:url("design/gradient.png");
background-repeat:repeat-x;
background-position:top left;
/*height:70px;*/
}
#infos {
font-size:small;
padding:5px;
}
#infoblock {
margin-top:1em;
}
.navfirst {
font-size:small;
padding-bottom:35px;
background-image:url("design/bouton_etoile_petit_gauche.png");
background-repeat:no-repeat;
background-position:bottom center;
}
.navfirst:hover {
background-image:url("design/bouton_etoile_petit_gauche_over.png");
}
.navlast {
font-size:small;
padding-bottom:35px;
background-image:url("design/bouton_etoile_petit_droite.png");
background-repeat:no-repeat;
background-position:bottom center;
}
.navlast:hover {
background-image:url("design/bouton_etoile_petit_droite_over.png");
}
.navprev {
font-size:small;
padding-bottom:49px;
background-image:url("design/bouton_fleche_grand_gauche.png");
background-repeat:no-repeat;
background-position:bottom center;
}
.navprev:hover {
background-image:url("design/bouton_fleche_grand_gauche_over.png");
}
.navnext {
font-size:small;
padding-bottom:49px;
background-image:url("design/bouton_fleche_grand_droite.png");
background-repeat:no-repeat;
background-position:bottom center;
}
.navnext:hover {
background-image:url("design/bouton_fleche_grand_droite_over.png");
}
.shadow, .content {
position: relative;
bottom: 5px;
right: 5px;
}
.shadow {
background-color: #9e9fa1; /*couleur de l'ombre */
border:1px solid #aeafb1;
margin-left: 5px;
margin-top: 5px;
float:left;
}
.shadow_simple {
padding-bottom:3px;
background-color: #9e9fa1; /*couleur de l'ombre */
border-bottom:1px solid #aeafb1;
}
.centering {
display : table;
margin : 0 auto;
}
#site_title {
position:absolute;
top:1px;
left:1px;
text-align:left;
margin-top:5px;
}
#site_title > p {
margin:0px;
}
#site_head {
font-weight:bold;
font-size:large;
font-variant:small-caps;
}
#site_desc {
font-size:x-small;
}
#feed {
padding-right:18px;
background-image:url("design/feed-icon-16x16.png");
background-repeat:no-repeat;
background-position:center right;
}
#linkbar {
display:inline;
margin-top:2em;
list-style:none;
}
ul#linkbar li {
display:inline;
}
#main {
float:right;
}
#shop_infos {
font-size:medium;
font-weight:bold;
}
#forum {
font-size:medium;
font-weight:bold;
}

View file

@ -0,0 +1,72 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title><?php echo $config->getTitle() ?> - <?php echo $strip->getTitle() ?></title>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" />
<meta name=" robot" content="follow, index, all" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.php" />
<link rel="alternate" type="application/rss+xml" title="RSS: 10 items" href="rss.php?limit=10" />
<link rel="stylesheet" type="text/css" href="<?php echo $config->getTemplateFolder() ?>/<?php echo $config->getTemplateName() ?>/style.css" />
<link rel="icon" type="image/png" href="favicon.png" />
<script type="text/javascript" src="<?php echo $config->getTemplateFolder() ?>/functions.js"></script>
<script type="text/javascript">
actual_id = <?php echo $id ?>;
</script>
</head>
<body>
<div class="shadow_simple">
<div id="navbar">
<div id="site_title"><p id="site_head"><?php echo $config->getTitle() ?></p><p id="site_desc"><?php echo $config->getDescription() ?></p></div>
<div id="main"><a href=".."><?php echo $lang->getAccueil() ?></a> <br/> <a id="feed" href="rss.php"><?php echo $lang->getRss() ?></a> <a id="feed" href="rss.php?limit=10">10</a> <br/><a href="mailto:<?php echo $config->getEmail() ?>"><?php echo $lang->getContact() ?></a></div>
<a id="t_navfirst" class="navfirst" href="<?php echo $nav_first ?>" onclick="getStrip(this); return false;"><?php echo $lang->getPremier() ?></a>
<a id="t_navprev" class="navprev" href="<?php echo $nav_prev ?>" onclick="getStrip(this); return false;"><?php echo $lang->getPrecedent() ?></a>
<a id="t_navnext" class="navnext" href="<?php echo $nav_next ?>" onclick="getStrip(this); return false;"><?php echo $lang->getSuivant() ?></a>
<a id="t_navlast" class="navlast" href="<?php echo $nav_last ?>" onclick="getStrip(this); return false;"><?php echo $lang->getDernier() ?></a>
<a id="t_navgallery" href="<?php echo $nav_gallery ?>"><?php echo $lang->getGallery() ?></a>
</div>
</div>
<div id="stripbar">
<div class="centering">
<div class="shadow">
<img id="strip" class="content" src="<?php echo $strip->getFilenamePng() ?>" alt="<?php echo $strip->getText() ?>" />
</div>
</div>
</div>
<div id="infoblock">
<div class="centering">
<div class="shadow">
<div id="infobar" class="content">
<div id="title">&laquo;&nbsp;<?php echo $strip->getTitle() ?>&nbsp;&raquo;</div>
<div id="infos">
<p id="description"><?php echo $strip->getDescription() ?></p>
<p><span id="author">&copy; <?php echo $strip->getAuthor() ?></span> : <span id="date"><?php echo $strip->getDate() ?></span> : <a id="link_source" href="<?php echo $strip->getFilenameSrc() ?>"><?php echo $lang->getSource() ?></a></p>
<p id="license"><?php echo $lang->getLicence() ?> : <a id="link_license" href="<?php echo $strip->getLicense() ?>"><?php echo $strip->getLicense() ?></a></p>
</div>
</div>
</div>
</div>
</div>
<div id="footbar">
<p id="forum"><a href="<?php echo $config->getFluxbbForum() ?>"><?php echo $lang->getForum() ?></a></p>
<p id="comments"><?php echo $comments ?></p>
<p id="forum_post">
<a id="nav_forum_post" href="<?php echo $nav_forum_post ?>"><?php echo $lang->getForumNew() ?></a>&nbsp;|&nbsp;
<a id="nav_forum_view" href="<?php echo $nav_forum_view ?>"><?php echo $lang->getForumView() ?></a>
</p>
<p id="shop_infos"><a href="<?php echo $config->getShop() ?>"><?php echo $lang->getBoutique() ?> <?php echo $config->getTitle() ?></a> <?php echo $lang->getTeeshirt() ?>.</p>
<?php echo $lang->getSeeAlso() ?>
<ul id="linkbar">
<?php foreach ($config->getSeeAlso() as $name => $url) { ?>
<li><a href="<?php echo $url ?>"><?php echo $name ?></a></li>
<?php } ?>
</ul>
<p><?php echo $lang->getPropulse() ?> <a href="http://stripit.sourceforge.net/">Strip-It</a>, <?php echo $lang->getDescstrip() ?> (<?php echo $config->getVersion() ?>).</p>
</div>
</body>
</html>

View file

@ -74,23 +74,33 @@ function getStrip(link)
break;
case 'navfirst':
document.getElementById('t_navfirst').href = value;
try {
document.getElementById('b_navfirst').href = value;
} catch (e) {}
break;
case 'navprev':
document.getElementById('t_navprev').href = value;
try {
document.getElementById('b_navprev').href = value;
} catch (e) {}
break;
case 'navnext':
document.getElementById('t_navnext').href = value;
try {
document.getElementById('b_navnext').href = value;
} catch (e) {}
break;
case 'navlast':
document.getElementById('t_navlast').href = value;
try {
document.getElementById('b_navlast').href = value;
} catch (e) {}
break;
case 'navgallery':
document.getElementById('t_navgallery').href = value;
try {
document.getElementById('b_navgallery').href = value;
} catch (e) {}
break;
case 'nav_forum_post':
document.getElementById('nav_forum_post').href = value;
@ -108,7 +118,7 @@ function getStrip(link)
}
/**
* Fonction permettant de récupèrer la valeur d'un noeud XML quelque soit le navigateur
* Fonction permettant de récupérer la valeur d'un noeud XML quelque soit le navigateur
*
* @param DOM Object node Le noeud sur lequel on travaille
*/
@ -118,7 +128,7 @@ function getNodeValue(node)
return_value = node.textContent;
if(return_value == undefined){
// On a à faire à un IE, donc on fait le boulot de Microsoft : on le debugge
// On a à faire à un IE, donc on fait le boulot de Microsoft : on le debugge
return_value = node.firstChild.nodeValue;
}