diff --git a/configuration-dist.php b/configuration-dist.php index 85cf8a8..f92f2dd 100644 --- a/configuration-dist.php +++ b/configuration-dist.php @@ -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 */ diff --git a/lang/en-EN.php b/lang/en-EN.php index 300787d..6ce7166 100644 --- a/lang/en-EN.php +++ b/lang/en-EN.php @@ -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() { diff --git a/lang/fr-FR.php b/lang/fr-FR.php index 3bd5e2e..ce877b5 100644 --- a/lang/fr-FR.php +++ b/lang/fr-FR.php @@ -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() { diff --git a/strip_manager.php b/strip_manager.php index 8d99468..8f4a22f 100644 --- a/strip_manager.php +++ b/strip_manager.php @@ -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 ); } diff --git a/style_lego.css b/style_lego.css index 0914148..a173d6c 100644 --- a/style_lego.css +++ b/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 { diff --git a/template_lego.html b/template_lego.html index e68008d..baf6771 100644 --- a/template_lego.html +++ b/template_lego.html @@ -15,64 +15,78 @@
+ +{general.description}
+ +{lang.wotd}:
+{description:h}
-
+ « {title} »+{description:h} + |
+
+
+ {lang.comments} :
+
|
+
|
+
+ {date} + +{lang.licence} : {license} + |
+
{lang.see_also}