From 9b96ceed085a101f4bda66d42543a888a2afaec3 Mon Sep 17 00:00:00 2001
From: Knah Tsaeb
Date: Mon, 8 Apr 2013 15:50:50 +0200
Subject: [PATCH] [add] div#contentVignette for center .vignette block
---
0.3/index.php | 65 +++++++++++++++++++-------------------
0.3/resources/autoblog.css | 5 +--
2 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/0.3/index.php b/0.3/index.php
index cb48fff..fc364bc 100755
--- a/0.3/index.php
+++ b/0.3/index.php
@@ -839,48 +839,47 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
-
-
+ $value)
+ if(is_dir($unit))
+ {
+ if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) {
+ $ini = parse_ini_file(ROOT_DIR . '/' . $unit . '/vvb.ini');
+ if($ini)
{
- $key = strtolower($key);
- $config->$key = $value;
+ $config = new stdClass;
+ $unit=substr($unit, 2);
+ foreach ($ini as $key=>$value)
+ {
+ $key = strtolower($key);
+ $config->$key = $value;
+ }
+ $autoblogs[$unit] = $config;
+ unset($ini);
}
- $autoblogs[$unit] = $config;
- unset($ini);
}
}
}
- }
- uasort($autoblogs, "objectCmp");
- $autoblogs_display = '';
+ uasort($autoblogs, "objectCmp");
+ $autoblogs_display = '';
- if(!empty($autoblogs)){
- foreach ($autoblogs as $key => $autoblog) {
- $opml_link='opml';
- $autoblogs_display .= '';
+ if(!empty($autoblogs)){
+ foreach ($autoblogs as $key => $autoblog) {
+ $opml_link='opml';
+ $autoblogs_display .= '';
+ }
}
- }
-
- echo $autoblogs_display;
- ?>
-
+ echo $autoblogs_display;
+ ?>
+
".count($autoblogs)." autoblogs hébergés"; ?>
diff --git a/0.3/resources/autoblog.css b/0.3/resources/autoblog.css
index ba74273..d181593 100644
--- a/0.3/resources/autoblog.css
+++ b/0.3/resources/autoblog.css
@@ -3,7 +3,7 @@
* ------------
* Please do NOT edit this file. Updating your Autoblogs farm will be easier.
* If you want to add your own CSS, use the file user.css
- *
+ *
*/
body {background-color:#efefef;text-align:center;color:#333;font-family:sans-serif;}
@@ -18,7 +18,8 @@ input[type="submit"] {width:8em;}
input[type="text"]#socialaccount, input[type="text"]#statusneturl, input[type="text"]#shaarliurl,input[type="text"].smallinput {width:20em;}
div.form {padding:0.2em;border:1px solid #fff;}
div.form:hover {background-color:#FAF4DA;border:1px dotted;}
-.vignette {width:20em;height:2em;float:left;margin:0; padding:20px;background-color:#eee;border: 1px solid #888;}
+#contentVignette {text-align: center;}
+.vignette {width:20em;height:2em;display: inline-block;text-align:justify;margin:0; padding:20px;background-color:#eee;border: 1px solid #888;}
.vignette:hover {background-color:#fff;}
.vignette .title {font-size: 14pt;text-shadow: #ccc 0px 5px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.vignette .title a:hover {color:darkred; text-decoration:none;}