inclusion d'un word of the day + style lego plus abouti + nouveaux mots-clefs
This commit is contained in:
parent
6d6620c9f1
commit
e21409a5e0
6 changed files with 158 additions and 63 deletions
|
|
@ -66,6 +66,11 @@ class configuration
|
|||
*/
|
||||
var $punbb_forum_id = '1';
|
||||
|
||||
/**
|
||||
* PunBB's forum ID to use for word of the day
|
||||
*/
|
||||
var $punbb_wotd_id = '1';
|
||||
|
||||
/**
|
||||
* Additional URL
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ class language
|
|||
var $premier = "First";
|
||||
var $dernier = "Last";
|
||||
var $accueil = "Index";
|
||||
var $contact = "Contact";
|
||||
var $rss = "RSS";
|
||||
var $licence = "License";
|
||||
var $boutique = "Shop";
|
||||
|
|
@ -16,8 +17,10 @@ class language
|
|||
var $source_rss = "Click on the image for the source file in the SVG format.";
|
||||
var $see_also = "See also:";
|
||||
var $forum ="Forum";
|
||||
var $forum_new = "New";
|
||||
var $forum_error = "Cannot read comments";
|
||||
var $forum_new = "New";
|
||||
var $forum_error = "Cannot read comments";
|
||||
var $comments = "Comments";
|
||||
var $wotd = "Word of the day";
|
||||
|
||||
function language()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ class language
|
|||
var $premier = "Premier";
|
||||
var $dernier = "Dernier";
|
||||
var $accueil = "Accueil";
|
||||
var $contact = "Contact";
|
||||
var $rss = "RSS";
|
||||
var $licence = "Licence";
|
||||
var $boutique = "Boutique";
|
||||
|
|
@ -18,6 +19,8 @@ class language
|
|||
var $forum = "Forum";
|
||||
var $forum_new = "Nouveau";
|
||||
var $forum_error = "Impossible de lire les commentaires";
|
||||
var $comments = "Commentaires";
|
||||
var $wotd = "Dernier message du webmaster";
|
||||
|
||||
function language()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -306,6 +306,7 @@ class strip_manager
|
|||
|
||||
// link for posting a new comment
|
||||
$this->forum_post_url = $this->general->forum . '/post.php?ttitle='.$this->title.'&fid='.$this->general->punbb_forum_id;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -342,6 +343,20 @@ class strip_manager
|
|||
$this->nav_last = $this->nav_base_url.($this->strips_count-1).$this->nav_lang_url;
|
||||
$this->nav_first = $this->nav_base_url."0".$this->nav_lang_url;
|
||||
|
||||
|
||||
// if one want to use punbb as forum
|
||||
if( $this->general->use_punbb ) {
|
||||
// get the word of the day
|
||||
$fh = fopen( $this->general->forum.'/extern.php?action=new&show=1&fid='.$this->general->punbb_wotd_id, 'r');
|
||||
|
||||
if (!$fh) {
|
||||
$this->general->wotd = $this->lang-forum_error;
|
||||
} else {
|
||||
$this->general->wotd = stream_get_contents($fh);
|
||||
fclose($fh);
|
||||
}
|
||||
}
|
||||
|
||||
$this->strip_info_get( $element_asked );
|
||||
}
|
||||
|
||||
|
|
|
|||
109
style_lego.css
109
style_lego.css
|
|
@ -10,6 +10,8 @@ body {
|
|||
}
|
||||
|
||||
a {
|
||||
color:white;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
|
|
@ -21,27 +23,75 @@ a:hover {
|
|||
|
||||
/* HEAD */
|
||||
|
||||
#head {
|
||||
}
|
||||
|
||||
.head_block {
|
||||
float:left;
|
||||
height:100px;
|
||||
height:113px;
|
||||
padding:0.5em;
|
||||
margin:0 0 0 0.5em;
|
||||
margin:0 1% 0 0.5%;
|
||||
-moz-border-radius:10px;
|
||||
background-position:bottom left;
|
||||
}
|
||||
|
||||
#title_block {
|
||||
width:60%;
|
||||
background-image:url("gradient_blue.png");
|
||||
background-color:#5276dd;
|
||||
}
|
||||
|
||||
#site_block {
|
||||
text-align:center;
|
||||
width:15%;
|
||||
background-color:#9652dd;
|
||||
background-image:url("gradient_purple.png");
|
||||
background-color:#9052dd;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
#site_wotd {
|
||||
text-align:right;
|
||||
color:white;
|
||||
position:absolute;
|
||||
top:1em;
|
||||
right:40%;
|
||||
font-size:small;
|
||||
}
|
||||
|
||||
#wotd_title {
|
||||
font-style:italic;
|
||||
}
|
||||
|
||||
ul#wotd_text {
|
||||
list-style:none;
|
||||
}
|
||||
|
||||
ul#site_map {
|
||||
list-style:none;
|
||||
padding:0px;
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
#feed_block {
|
||||
text-align:center;
|
||||
width:15%;
|
||||
background-color:#ff4d11;
|
||||
background-image:url("gradient_orange.png");
|
||||
background-color:#ff8400;
|
||||
}
|
||||
|
||||
#feed_list {
|
||||
background-image:url("rss_big.png");
|
||||
background-repeat:no-repeat;
|
||||
background-position:right bottom;
|
||||
padding-right:95px;
|
||||
padding-top:45px;
|
||||
margin:0px;
|
||||
list-style:none;
|
||||
}
|
||||
|
||||
ul#feed_list>li {
|
||||
margin:0px;
|
||||
}
|
||||
|
||||
h1#site_title {
|
||||
|
|
@ -53,24 +103,24 @@ h1#site_title {
|
|||
font-size:small;
|
||||
}
|
||||
|
||||
ul#site_map {
|
||||
list-style:none;
|
||||
}
|
||||
|
||||
|
||||
/* NAV */
|
||||
|
||||
#nav_block {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
ul#nav_bar {
|
||||
list-style:none;
|
||||
text-align:center;
|
||||
padding-top:150px;
|
||||
margin-bottom:10px;
|
||||
}
|
||||
|
||||
ul#nav_bar>li {
|
||||
display:inline;
|
||||
margin-left:1em;
|
||||
margin-left:5px;
|
||||
margin-bottom:0px;
|
||||
|
||||
padding:10px;
|
||||
background-image:url("gradient_gray.png");
|
||||
background-position:top;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -78,43 +128,44 @@ ul#nav_bar>li {
|
|||
|
||||
#strip_block {
|
||||
background-color:white;
|
||||
-moz-border-radius:10px;
|
||||
-moz-border-radius:20px;
|
||||
width: 900px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top:0px;
|
||||
text-align:center;
|
||||
padding:10px;
|
||||
/* TODO centrer sur la page */
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
img#strip {
|
||||
border:thin solid black;
|
||||
background-color:white;
|
||||
}
|
||||
|
||||
.sub_block {
|
||||
text-align:left;
|
||||
-moz-border-radius:10px;
|
||||
padding:10px;
|
||||
margin:10px;
|
||||
padding:10px;
|
||||
width:400px;
|
||||
}
|
||||
|
||||
#meta_block {
|
||||
float:left;
|
||||
width:390px;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
|
||||
#comments_block {
|
||||
background-color:#5fdf73;
|
||||
float:right;
|
||||
}
|
||||
|
||||
#info_block {
|
||||
background-color:#5276dd;
|
||||
color:white;
|
||||
}
|
||||
|
||||
#info_plus_block {
|
||||
background-color:#f05036;
|
||||
background-color:#5276dd;
|
||||
color:white;
|
||||
font-size:small;
|
||||
}
|
||||
|
||||
#comments_block {
|
||||
background-color:#99aeeb;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -122,9 +173,13 @@ img#strip {
|
|||
/* FOOT */
|
||||
|
||||
#foot {
|
||||
background-color:#333;
|
||||
background-image:url("gradient_gray.png");
|
||||
background-color:black;
|
||||
background-position:bottom;
|
||||
color:white;
|
||||
text-align:center;
|
||||
padding:0.2em;
|
||||
margin:1%;
|
||||
}
|
||||
|
||||
ul#link_bar {
|
||||
|
|
|
|||
|
|
@ -15,64 +15,78 @@
|
|||
|
||||
<body>
|
||||
|
||||
|
||||
<!-- HEAD -->
|
||||
<div id="head">
|
||||
<span id="title_block" class="head_block">
|
||||
<h1 id="site_title">{general.title}</h1>
|
||||
<p id="site_desc">{general.description}</p>
|
||||
<span id="site_wotd">
|
||||
<p id="wotd_title">{lang.wotd}:</p>
|
||||
<ul id="wotd_text">{general.wotd:h}</ul>
|
||||
</span>
|
||||
</span>
|
||||
<span id="site_block" class="head_block">
|
||||
<ul id="site_map">
|
||||
<li><a href="..">{lang.accueil}</a></li>
|
||||
<li><a href="{general.forum}">{lang.forum}</a></li>
|
||||
<li><a href="{geenral.shop}">{lang.boutique}</a></li>
|
||||
<li><a href="mailto:{general.email}">{general.webmaster}</a></li>
|
||||
<li><a href="mailto:{general.email}">{lang.contact}</a></li>
|
||||
</ul>
|
||||
</span>
|
||||
<span id="feed_block" class="head_block">
|
||||
<a id="feed" href="rss.php">{lang.rss}</a>
|
||||
<a id="feed" href="rss.php?limit=10">10</a>
|
||||
</span>
|
||||
<div id="feed_block" class="head_block">
|
||||
<ul id="feed_list">
|
||||
<li><a class="feed" id="feed_main" href="rss.php">{lang.rss}</a></li>
|
||||
<li><a class="feed" href="rss.php?limit=10">10</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="nav_block">
|
||||
<ul id="nav_bar">
|
||||
<li><a id="navfirst" href="{nav_first}">{lang.premier}</a></li>
|
||||
<li><a id="navprev" href="{nav_prev}">{lang.precedent}</a></li>
|
||||
<li><a id="navnext" href="{nav_next}">{lang.suivant}</a></li>
|
||||
<li><a id="navlast" href="{nav_last}">{lang.dernier}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- NAV -->
|
||||
<ul id="nav_bar">
|
||||
<li><a id="navfirst" href="{nav_first}">{lang.premier}</a></li>
|
||||
<li><a id="navprev" href="{nav_prev}">{lang.precedent}</a></li>
|
||||
<li><a id="navnext" href="{nav_next}">{lang.suivant}</a></li>
|
||||
<li><a id="navlast" href="{nav_last}">{lang.dernier}</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<!-- STRIP -->
|
||||
<div id="strip_block">
|
||||
<img id="strip" class="content" src="{img_src}" alt="{text}" />
|
||||
|
||||
<div id="meta_block">
|
||||
<div id="info_block" class="sub_block">
|
||||
<h2 id="title">« {title} »</h2>
|
||||
<p id="description">{description:h}</p>
|
||||
</div>
|
||||
<table id="meta_block" cellpadding="0" cellspacing="20">
|
||||
<tr>
|
||||
<td id="info_block" class="sub_block">
|
||||
<h2 id="title">« {title} »</h2>
|
||||
<p id="description">{description:h}</p>
|
||||
</td>
|
||||
|
||||
<td rowspan="2" id="comments_block" class="sub_block" valign="top">
|
||||
{lang.comments} :
|
||||
<ul id="comments">
|
||||
{comments:h}
|
||||
</ul>
|
||||
<a href="{forum_post_url}">{lang.forum_new}</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<div id="info_plus_block" class="sub_block">
|
||||
<p id="author">© {author}</p>
|
||||
<p id="date">{date}</p>
|
||||
<p id="source"><a href="{source}">{lang.source}</a></p>
|
||||
<p id="license">{lang.licence} : <a href="{license}">{license}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<tr>
|
||||
<td id="info_plus_block" class="sub_block">
|
||||
<p id="author">© {author}</p>
|
||||
<p id="date">{date}</p>
|
||||
<p id="source"><a href="{source}">{lang.source}</a></p>
|
||||
<p id="license">{lang.licence} : <a href="{license}">{license}</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<div id="comments_block" class="sub_block">
|
||||
{lang.comments} :
|
||||
<ul id="comments">
|
||||
{comments:h}
|
||||
</ul>
|
||||
<a href="{forum_post_url}">{lang.forum_new}</a>
|
||||
</div>
|
||||
</table>
|
||||
|
||||
<div class="spacer"> </div>
|
||||
</div>
|
||||
|
||||
<div class="spacer"> </div>
|
||||
|
||||
<!-- FOOT -->
|
||||
<div id="foot">
|
||||
<p>{lang.see_also}
|
||||
<ul id="link_bar">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue