diff --git a/0.3/config.php b/0.3/config.php index 8a2170e..1450d04 100755 --- a/0.3/config.php +++ b/0.3/config.php @@ -37,7 +37,7 @@ $apitwitter = FALSE; $logo=RESOURCES_FOLDER .'icon-logo.svg'; // Marquez ici votre propre message qui apparaîtra en bas de page. -// exemple : +// exemple : //$HTML_footer="
Love data
Data is essential
Data must flow
Data must be used
Data is neither good nor bad
There is no illegal data
Data is free
Data can not be owned
No man, machine or system shall interrupt the flow of data
Locking data is a crime against datanity"; $HTML_footer='D\'après les premières versions de SebSauvage et Bohwaz.'; @@ -50,4 +50,8 @@ $autoblog_farm = array( 'https://www.ecirtam.net/autoblogs/?export', 'https://autoblog.suumitsu.eu/?export', */ ); + +// personnal option +$myOptions['enableThumbShot'] = false; +$myOptions['externalThumbSdhot'] = 'http://exemple.com/?url='; ?> diff --git a/0.3/index.php b/0.3/index.php index 1e811e0..5ffb450 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -872,8 +872,15 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY foreach ($autoblogs as $key => $autoblog) { $opml_link='opml'; $autoblogs_display .= '
-
'.escape($autoblog->site_title).'
-
config ini '.$opml_link.' | '.escape($autoblog->site_type).' source: '.escape($autoblog->site_url).'
+
'.escape($autoblog->site_title).'
'; + if($myOptions['enableThumbShot'] === true){ + if(file_exists(ROOT_DIR . '/' . $unit . '/thumbshot.png')){ + $autoblogs_display .= '
'; + } elseif(!empty($myOptions['externalThumbSdhot'])) { + $autoblogs_display .= '
'; + } + } + $autoblogs_display .= '
config ini '.$opml_link.' | '.escape($autoblog->site_type).' source: '.escape($autoblog->site_url).'
'; } } diff --git a/0.3/resources/user.css b/0.3/resources/user.css index d7a12ba..4ca9edd 100644 --- a/0.3/resources/user.css +++ b/0.3/resources/user.css @@ -37,8 +37,11 @@ h1 { .thumbshot img { width: 200px; height: 160px; + float: left; } .source { text-align: left; + clear:both; + padding : 0.3em; } \ No newline at end of file