From bb80e0a5b88026287e0bf9e57fda5607e6b801b2 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Sun, 7 Jul 2013 11:25:36 +0200 Subject: [PATCH] REMOVE: Identica support --- autoblogs/autoblog.php | 2 +- functions.php | 7 ------- index.php | 11 +---------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/autoblogs/autoblog.php b/autoblogs/autoblog.php index d694168..8f1ce78 100644 --- a/autoblogs/autoblog.php +++ b/autoblogs/autoblog.php @@ -727,7 +727,7 @@ protected function _copy($from, $to) .article { background-color:white;padding: 12px 10px 12px 10px;border:1px solid #aaa;max-width:70em;margin:1em auto;box-shadow:0px 5px 7px #aaa; } .footer { text-align:center; font-size: small; color:#333; clear: both; }'; } - else if($site_type == 'microblog' || $site_type == 'twitter' || $site_type == 'identica') // custom CSS for microblog + else if($site_type == 'microblog' || $site_type == 'twitter') // custom CSS for microblog { $css = $css.'.header h1 a { color: #333;font-size:40pt;text-shadow: #ccc 0px 5px 5px; } .article .title h2 { width: 10em;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;font-size: 0.7em;margin: 0; color:#333; text-shadow: 1px 1px 1px #fff; } diff --git a/functions.php b/functions.php index 0fa3618..2d94169 100755 --- a/functions.php +++ b/functions.php @@ -141,8 +141,6 @@ function getArticlesPerPage( $type ) { return 20; case 'twitter': return 20; - case 'identica': - return 20; case 'shaarli': return 20; case 'youtube': @@ -158,8 +156,6 @@ function getInterval( $type ) { return 300; case 'twitter': return 300; - case 'identica': - return 300; case 'shaarli': return 1800; default: @@ -178,9 +174,6 @@ function updateType($siteurl) { if( strpos($siteurl, 'twitter.com') !== FALSE ) { return array('type' => 'twitter', 'name' => 'twitter'); } - elseif ( strpos( $siteurl, 'identi.ca') !== FALSE ) { - return array('type' => 'identica', 'name' => 'identica'); - } elseif( strpos( $siteurl, 'shaarli' ) !== FALSE ) { return array('type' => 'shaarli', 'name' => 'shaarli'); } diff --git a/index.php b/index.php index b4e4588..d18f390 100755 --- a/index.php +++ b/index.php @@ -116,7 +116,7 @@ function create_from_opml($opml) { throw new Exception('Erreur : l\'autoblog '. $sitename .' existe déjà.'); $sitetype = escape($outline['text']); - if ( $sitetype != 'microblog' && $sitetype != 'shaarli' && $sitetype != 'twitter' && $sitetype != 'identica' && $sitetype != 'youtube') + if ( $sitetype != 'microblog' && $sitetype != 'shaarli' && $sitetype != 'twitter' && $sitetype != 'youtube') $sitetype = 'generic'; $rssurl = DetectRedirect(escape($outline['xmlUrl'])); @@ -210,9 +210,6 @@ function svg_base($color) case "youtube": $svg_type = $svg_youtube; break; - case "identica": - $svg_type = $svg_youtube; - break; case "shaarli": $svg_type = $svg_shaarli; break; @@ -570,11 +567,6 @@ function svg_status($fill, $text, $back) else $error[] = 'Vous devez définir une API Twitter -> RSS dans votre fichier de configuration (see TwitterBridge).'; } - elseif($socialinstance === 'identica') { - $sitetype = 'identica'; - $siteurl = 'http://identi.ca/'.$socialaccount; - $rssurl = 'http://identi.ca/api/statuses/user_timeline/'.$socialaccount.'.rss'; - } elseif($socialinstance === 'statusnet' && !empty($_POST['statusneturl'])) { $sitetype = 'microblog'; $siteurl= NoProtocolSiteURL(escape($_POST['statusneturl'])); @@ -840,7 +832,6 @@ function svg_status($fill, $text, $back) echo 'Twitter (via twitterbridge)
'; } else echo 'Twitter
'; ?> - Identica

Youtube