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';
|
var $punbb_forum_id = '1';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PunBB's forum ID to use for word of the day
|
||||||
|
*/
|
||||||
|
var $punbb_wotd_id = '1';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Additional URL
|
* Additional URL
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ class language
|
||||||
var $premier = "First";
|
var $premier = "First";
|
||||||
var $dernier = "Last";
|
var $dernier = "Last";
|
||||||
var $accueil = "Index";
|
var $accueil = "Index";
|
||||||
|
var $contact = "Contact";
|
||||||
var $rss = "RSS";
|
var $rss = "RSS";
|
||||||
var $licence = "License";
|
var $licence = "License";
|
||||||
var $boutique = "Shop";
|
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 $source_rss = "Click on the image for the source file in the SVG format.";
|
||||||
var $see_also = "See also:";
|
var $see_also = "See also:";
|
||||||
var $forum ="Forum";
|
var $forum ="Forum";
|
||||||
var $forum_new = "New";
|
var $forum_new = "New";
|
||||||
var $forum_error = "Cannot read comments";
|
var $forum_error = "Cannot read comments";
|
||||||
|
var $comments = "Comments";
|
||||||
|
var $wotd = "Word of the day";
|
||||||
|
|
||||||
function language()
|
function language()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ class language
|
||||||
var $premier = "Premier";
|
var $premier = "Premier";
|
||||||
var $dernier = "Dernier";
|
var $dernier = "Dernier";
|
||||||
var $accueil = "Accueil";
|
var $accueil = "Accueil";
|
||||||
|
var $contact = "Contact";
|
||||||
var $rss = "RSS";
|
var $rss = "RSS";
|
||||||
var $licence = "Licence";
|
var $licence = "Licence";
|
||||||
var $boutique = "Boutique";
|
var $boutique = "Boutique";
|
||||||
|
|
@ -18,6 +19,8 @@ class language
|
||||||
var $forum = "Forum";
|
var $forum = "Forum";
|
||||||
var $forum_new = "Nouveau";
|
var $forum_new = "Nouveau";
|
||||||
var $forum_error = "Impossible de lire les commentaires";
|
var $forum_error = "Impossible de lire les commentaires";
|
||||||
|
var $comments = "Commentaires";
|
||||||
|
var $wotd = "Dernier message du webmaster";
|
||||||
|
|
||||||
function language()
|
function language()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -306,6 +306,7 @@ class strip_manager
|
||||||
|
|
||||||
// link for posting a new comment
|
// link for posting a new comment
|
||||||
$this->forum_post_url = $this->general->forum . '/post.php?ttitle='.$this->title.'&fid='.$this->general->punbb_forum_id;
|
$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_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;
|
$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 );
|
$this->strip_info_get( $element_asked );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
107
style_lego.css
107
style_lego.css
|
|
@ -10,6 +10,8 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
color:white;
|
||||||
|
font-weight:bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
|
|
@ -21,27 +23,75 @@ a:hover {
|
||||||
|
|
||||||
/* HEAD */
|
/* HEAD */
|
||||||
|
|
||||||
|
#head {
|
||||||
|
}
|
||||||
|
|
||||||
.head_block {
|
.head_block {
|
||||||
float:left;
|
float:left;
|
||||||
height:100px;
|
height:113px;
|
||||||
padding:0.5em;
|
padding:0.5em;
|
||||||
margin:0 0 0 0.5em;
|
margin:0 1% 0 0.5%;
|
||||||
-moz-border-radius:10px;
|
-moz-border-radius:10px;
|
||||||
|
background-position:bottom left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#title_block {
|
#title_block {
|
||||||
width:60%;
|
width:60%;
|
||||||
|
background-image:url("gradient_blue.png");
|
||||||
background-color:#5276dd;
|
background-color:#5276dd;
|
||||||
}
|
}
|
||||||
|
|
||||||
#site_block {
|
#site_block {
|
||||||
|
text-align:center;
|
||||||
width:15%;
|
width:15%;
|
||||||
background-color:#9652dd;
|
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 {
|
#feed_block {
|
||||||
|
text-align:center;
|
||||||
width:15%;
|
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 {
|
h1#site_title {
|
||||||
|
|
@ -53,24 +103,24 @@ h1#site_title {
|
||||||
font-size:small;
|
font-size:small;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#site_map {
|
|
||||||
list-style:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* NAV */
|
/* NAV */
|
||||||
|
|
||||||
#nav_block {
|
|
||||||
text-align:center;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul#nav_bar {
|
ul#nav_bar {
|
||||||
list-style:none;
|
list-style:none;
|
||||||
|
text-align:center;
|
||||||
|
padding-top:150px;
|
||||||
|
margin-bottom:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#nav_bar>li {
|
ul#nav_bar>li {
|
||||||
display:inline;
|
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 {
|
#strip_block {
|
||||||
background-color:white;
|
background-color:white;
|
||||||
-moz-border-radius:10px;
|
-moz-border-radius:20px;
|
||||||
width: 900px;
|
width: 900px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-top:0px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
padding:10px;
|
padding:10px;
|
||||||
/* TODO centrer sur la page */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
img#strip {
|
img#strip {
|
||||||
border:thin solid black;
|
border:thin solid black;
|
||||||
|
background-color:white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub_block {
|
.sub_block {
|
||||||
text-align:left;
|
text-align:left;
|
||||||
-moz-border-radius:10px;
|
-moz-border-radius:10px;
|
||||||
padding:10px;
|
|
||||||
margin:10px;
|
margin:10px;
|
||||||
|
padding:10px;
|
||||||
width:400px;
|
width:400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#meta_block {
|
#meta_block {
|
||||||
float:left;
|
|
||||||
width:390px;
|
|
||||||
margin:0px;
|
|
||||||
padding:0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#comments_block {
|
|
||||||
background-color:#5fdf73;
|
|
||||||
float:right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#info_block {
|
#info_block {
|
||||||
background-color:#5276dd;
|
background-color:#5276dd;
|
||||||
|
color:white;
|
||||||
}
|
}
|
||||||
|
|
||||||
#info_plus_block {
|
#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 */
|
||||||
|
|
||||||
#foot {
|
#foot {
|
||||||
background-color:#333;
|
background-image:url("gradient_gray.png");
|
||||||
|
background-color:black;
|
||||||
|
background-position:bottom;
|
||||||
color:white;
|
color:white;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
|
padding:0.2em;
|
||||||
|
margin:1%;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#link_bar {
|
ul#link_bar {
|
||||||
|
|
|
||||||
|
|
@ -15,64 +15,78 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- HEAD -->
|
||||||
<div id="head">
|
<div id="head">
|
||||||
<span id="title_block" class="head_block">
|
<span id="title_block" class="head_block">
|
||||||
<h1 id="site_title">{general.title}</h1>
|
<h1 id="site_title">{general.title}</h1>
|
||||||
<p id="site_desc">{general.description}</p>
|
<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>
|
||||||
<span id="site_block" class="head_block">
|
<span id="site_block" class="head_block">
|
||||||
<ul id="site_map">
|
<ul id="site_map">
|
||||||
<li><a href="..">{lang.accueil}</a></li>
|
<li><a href="..">{lang.accueil}</a></li>
|
||||||
<li><a href="{general.forum}">{lang.forum}</a></li>
|
<li><a href="{general.forum}">{lang.forum}</a></li>
|
||||||
<li><a href="{geenral.shop}">{lang.boutique}</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>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
<span id="feed_block" class="head_block">
|
<div id="feed_block" class="head_block">
|
||||||
<a id="feed" href="rss.php">{lang.rss}</a>
|
<ul id="feed_list">
|
||||||
<a id="feed" href="rss.php?limit=10">10</a>
|
<li><a class="feed" id="feed_main" href="rss.php">{lang.rss}</a></li>
|
||||||
</span>
|
<li><a class="feed" href="rss.php?limit=10">10</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</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">
|
<div id="strip_block">
|
||||||
<img id="strip" class="content" src="{img_src}" alt="{text}" />
|
<img id="strip" class="content" src="{img_src}" alt="{text}" />
|
||||||
|
|
||||||
<div id="meta_block">
|
<table id="meta_block" cellpadding="0" cellspacing="20">
|
||||||
<div id="info_block" class="sub_block">
|
<tr>
|
||||||
<h2 id="title">« {title} »</h2>
|
<td id="info_block" class="sub_block">
|
||||||
<p id="description">{description:h}</p>
|
<h2 id="title">« {title} »</h2>
|
||||||
</div>
|
<p id="description">{description:h}</p>
|
||||||
|
</td>
|
||||||
|
|
||||||
<div id="info_plus_block" class="sub_block">
|
<td rowspan="2" id="comments_block" class="sub_block" valign="top">
|
||||||
<p id="author">© {author}</p>
|
{lang.comments} :
|
||||||
<p id="date">{date}</p>
|
<ul id="comments">
|
||||||
<p id="source"><a href="{source}">{lang.source}</a></p>
|
{comments:h}
|
||||||
<p id="license">{lang.licence} : <a href="{license}">{license}</a></p>
|
</ul>
|
||||||
</div>
|
<a href="{forum_post_url}">{lang.forum_new}</a>
|
||||||
</div>
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<div id="comments_block" class="sub_block">
|
<tr>
|
||||||
{lang.comments} :
|
<td id="info_plus_block" class="sub_block">
|
||||||
<ul id="comments">
|
<p id="author">© {author}</p>
|
||||||
{comments:h}
|
<p id="date">{date}</p>
|
||||||
</ul>
|
<p id="source"><a href="{source}">{lang.source}</a></p>
|
||||||
<a href="{forum_post_url}">{lang.forum_new}</a>
|
<p id="license">{lang.licence} : <a href="{license}">{license}</a></p>
|
||||||
</div>
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
<div class="spacer"> </div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="spacer"> </div>
|
|
||||||
|
|
||||||
|
<!-- FOOT -->
|
||||||
<div id="foot">
|
<div id="foot">
|
||||||
<p>{lang.see_also}
|
<p>{lang.see_also}
|
||||||
<ul id="link_bar">
|
<ul id="link_bar">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue