Check out the demo video. Author: Aakash Chakravarthy Author URI: http://www.aakashweb.com/ */ if(!defined('WP_CONTENT_URL')) { $wpsr_url = get_option('siteurl') . '/wp-content/plugins/' . plugin_basename(dirname(__FILE__)).'/'; }else{ $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/'; } define('WPSR_VERSION', '2.4'); define('WPSR_AUTHOR', 'Aakash Chakravarthy'); define('WPSR_URL', $wpsr_url); define('WPSR_PUBLIC_URL', WPSR_URL . 'public/'); define('WPSR_ADMIN_URL', WPSR_URL . 'admin/'); define('WPSR_SOCIALBT_IMGPATH', WPSR_PUBLIC_URL . 'social-icons/'); $wpsr_socialsites_list = array( 'addtofavorites' => array( 'name' => 'Add to favorites', 'titleText' => '{de-title}', 'icon' => 'addtofavorites.png', 'url' => '{de-url}" onclick="addBookmark(event);', 'support32px' => 1, ), // B 'barrapunto' => array( 'name' => 'BarraPunto', 'titleText' => __('Share this on ', 'wpsr') . 'BarraPunto', 'icon' => 'barrapunto.png', 'url' => 'http://barrapunto.com/submit.pl?subj={title}&story={url}', ), 'bitacoras' => array( 'name' => 'Bitacoras.com', 'titleText' => __('Share this on ', 'wpsr') . 'Bitacoras', 'icon' => 'bitacoras.png', 'url' => 'http://bitacoras.com/anotaciones/{url}', ), 'blinklist' => array( 'name' => 'BlinkList', 'titleText' => __('Share this on ', 'wpsr') . 'BlinkList', 'icon' => 'blinklist.png', 'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url={url}&Title={title}', 'support32px' => 1, ), 'blip' => array( 'name' => 'Blip', 'titleText' => __('Share this on ', 'wpsr') . 'Blip', 'icon' => 'blip.png', 'url' => 'http://blip.pl/dashboard?body={title}+{url}', 'support32px' => 1, ), // Added version 2.0 - 16-1-2011 'blogger' => array( 'name' => 'Blogger', 'titleText' => __('Post this on ', 'wpsr') . 'Blogger', 'icon' => 'blogger.png', 'url' => 'http://www.blogger.com/blog_this.pyra?t&u={url}&n={title}&pli=1', 'support32px' => 1, ), 'blogmarks' => array( 'name' => 'Blogmarks', 'titleText' => __('Share this on ', 'wpsr') . 'BlogMarks', 'icon' => 'blogmarks.png', 'url' => 'http://blogmarks.net/my/new.php?mini=1&simple=1&url={url}&title={title}', ), 'blogospherenews' => array( 'name' => 'Blogosphere News', 'titleText' => __('Submit this to ', 'wpsr') . 'Blogosphere News', 'icon' => 'blogospherenews.png', 'url' => 'http://www.blogospherenews.com/submit.php?url={url}&title={title}', ), 'blogtercimlap' => array( 'name' => 'Blogter Cimlap', 'titleText' => __('Share this on ', 'wpsr') . 'blogtercimlap', 'icon' => 'blogter.png', 'url' => 'http://cimlap.blogter.hu/index.php?action=suggest_link&title={title}&url={url}', ), 'faves' => array( 'name' => 'Faves', 'titleText' => __('Share this on ', 'wpsr') . 'Faves', 'icon' => 'bluedot.png', 'url' => 'http://faves.com/Authoring.aspx?u={url}&title={title}', ), 'boxnet' => array( 'name' => 'Box.net', 'titleText' => __('Add this on ', 'wpsr') . 'Box.net', 'icon' => 'box.png', 'url' => 'https://www.box.net/api/1.0/import?url={url}&name={title}&description={excerpt}&import_as=link', ), // C 'connotea' => array( 'name' => 'Connotea', 'titleText' => __('Share this on ', 'wpsr') . 'Connotea', 'icon' => 'connotea.png', 'url' => 'http://www.connotea.org/addpopup?continue=confirm&uri={url}&title={title}&description={excerpt}', ), 'current' => array( 'name' => 'Current', 'titleText' => __('Share this on ', 'wpsr') . 'Current', 'icon' => 'current.png', 'url' => 'http://current.com/clipper.htm?url={url}&title={title}', ), // D 'delicious' => array( 'name' => 'Delicious', 'titleText' => __('Post this on ', 'wpsr') . 'Delicious', 'icon' => 'delicious.png', 'url' => 'http://delicious.com/post?url={url}&title={title}¬es={excerpt}', 'support32px' => 1, ), 'designbump' => array( 'name' => 'Designbump', 'titleText' => __('Share this on ', 'wpsr') . 'Designbump', 'icon' => 'designbump.png', 'url' => 'http://designbump.com/user/login?destination=submit?url={url}&title={title}&body={excerpt}', 'support32px' => 1, ), 'designfloat' => array( 'name' => 'Design Float', 'titleText' => __('Submit this to ', 'wpsr') . 'Design Float', 'icon' => 'designfloat.png', 'url' => 'http://www.designfloat.com/submit.php?url={url}&title={title}', 'support32px' => 1, ), 'digg' => array( 'name' => 'Digg', 'titleText' => __('Submit this to ', 'wpsr') . 'Digg', 'icon' => 'digg.png', 'url' => 'http://digg.com/submit?phase=2&url={url}&title={title}&bodytext={excerpt}', 'support32px' => 1, ), 'diggita' => array( 'name' => 'Diggita', 'titleText' => __('Submit this to ', 'wpsr') . 'Diggita', 'icon' => 'diggita.png', 'url' => 'http://www.diggita.it/submit.php?url={url}&title={title}', ), 'diigo' => array( 'name' => 'Diigo', 'titleText' => __('Post this on ', 'wpsr') . 'Diigo', 'icon' => 'diigo.png', 'url' => 'http://www.diigo.com/post?url={url}&title={title}', ), 'dotnetkicks' => array( 'name' => 'DotNetKicks', 'titleText' => __('Share this on ', 'wpsr') . 'DotNetKicks', 'icon' => 'dotnetkicks.png', 'url' => 'http://www.dotnetkicks.com/kick/?url={url}&title={title}', ), 'dzone' => array( 'name' => 'DZone', 'titleText' => __('Add this to ', 'wpsr') . 'DZone', 'icon' => 'dzone.png', 'url' => 'http://www.dzone.com/links/add.html?url={url}&title={title}', 'support32px' => 1, ), // E 'ekudos' => array( 'name' => 'eKudos', 'titleText' => __('Share this on ', 'wpsr') . 'eKudos', 'icon' => 'ekudos.png', 'url' => 'http://www.ekudos.nl/artikel/nieuw?url={url}&title={title}&desc={excerpt}', ), 'email' => array( 'name' => 'Email', 'titleText' => __('Email this ', 'wpsr') . '', 'icon' => 'email.png', 'url' => 'mailto:subject={de-title}&body={de-excerpt} - {de-url}', // Removed "to" in v2.4 'support32px' => 1, ), // F 'facebook' => array( 'name' => 'Facebook', 'titleText' => __('Share this on ', 'wpsr') . 'Facebook', 'icon' => 'facebook.png', 'url' => 'http://www.facebook.com/share.php?u={url}&t={title}', 'support32px' => 1, ), 'fark' => array( 'name' => 'Fark', 'titleText' => __('Share this on ', 'wpsr') . 'Fark', 'icon' => 'fark.png', 'url' => 'http://cgi.fark.com/cgi/fark/farkit.pl?h={title}&u={url}', ), 'fleck' => array( 'name' => 'Fleck', 'titleText' => __('Share this on ', 'wpsr') . 'Fleck', 'icon' => 'fleck.png', 'url' => 'http://beta3.fleck.com/bookmarklet.php?url={url}&title={title}', ), 'friendfeed' => array( 'name' => 'FriendFeed', 'titleText' => __('Share this on ', 'wpsr') . 'FriendFeed', 'icon' => 'friendfeed.png', 'url' => 'http://www.friendfeed.com/share?title={title}&link={url}', 'support32px' => 1, ), 'friendster' => array( 'name' => 'Friendster', 'titleText' => __('Share this on ', 'wpsr') . 'Friendster', 'icon' => 'friendster.png', 'url' => 'http://www.friendster.com/sharer.php?u={url}&t={title}', 'support32px' => 1, ), 'fsdaily' => array( 'name' => 'FSDaily', 'titleText' => __('Share this on ', 'wpsr') . 'FSDaily', 'icon' => 'fsdaily.png', 'url' => 'http://www.fsdaily.com/submit?url={url}&title={title}', ), // G 'gadugadu' => array( 'name' => 'Gadu-Gadu', 'titleText' => __('Share this on ', 'wpsr') . 'Gadu-Gadu', 'icon' => 'gadugadu.png', 'url' => 'http://www.gadu-gadu.pl/polec?title={title}&url={url}', 'support32px' => 1, ), // Added version 2.0 - 16-1-2011 'globalgrind' => array( 'name' => 'Global Grind', 'titleText' => __('Submit this to ', 'wpsr') . 'Global Grind', 'icon' => 'globalgrind.png', 'url' => 'http://globalgrind.com/submission/submit.aspx?url={url}&type=Article&title={title}', ), 'google' => array( 'name' => 'Google', 'titleText' => __('Bookmark this on ', 'wpsr') . 'Google', 'icon' => 'google.png', 'url' => 'http://www.google.com/bookmarks/mark?op=edit&bkmk={url}&title={title}&annotation={excerpt}', 'support32px' => 1, ), 'googleplus' => array( 'name' => 'Google Plus', 'titleText' => __('Share this on ', 'wpsr') . 'Google Plus', 'icon' => 'googleplus.png', 'url' => 'https://plus.google.com/share?url={url}', 'support32px' => 1, ), // Added version 2.4 - 13-2-2012 /* 'googlebuzz' => array( 'name' => 'Google Buzz', 'titleText' => __('Post this on ', 'wpsr') . 'Google Buzz', 'icon' => 'googlebuzz.png', 'url' => 'http://www.google.com/buzz/post?url={url}', 'support32px' => 1, ),*/ 'googlereader' => array( 'name' => 'Google Reader', 'titleText' => __('Share this on ', 'wpsr') . 'Google Reader', 'icon' => 'googlereader.png', 'url' => 'http://www.google.com/reader/link?url={url}&title={title}', 'support32px' => 1, ), 'grono' => array( 'name' => 'Grono', 'titleText' => __('Share this on ', 'wpsr') . 'Grono', 'icon' => 'grono.png', 'url' => 'http://grono.net/pub/popup/link/urlfetch/?url={url}&title={title}', 'support32px' => 1, ), // Added version 2.0 - 16-1-2011 'gwar' => array( 'name' => 'Gwar', 'titleText' => __('Share this on ', 'wpsr') . 'Gwar', 'icon' => 'gwar.png', 'url' => 'http://www.gwar.pl/DodajGwar.html?u={url}', ), // H 'hackernews' => array( 'name' => 'HackerNews', 'titleText' => __('Share this on ', 'wpsr') . 'HackerNews', 'icon' => 'hackernews.png', 'url' => 'http://news.ycombinator.com/submitlink?u={url}&t={title}', ), 'haohao' => array( 'name' => 'Haohao', 'titleText' => __('Submit this to ', 'wpsr') . 'Haohao', 'icon' => 'haohao.png', 'url' => 'http://www.haohaoreport.com/submit.php?url={url}&title={title}', ), 'healthranker' => array( 'name' => 'HealthRanker', 'titleText' => __('Submit this to ', 'wpsr') . 'HealthRanker', 'icon' => 'healthranker.png', 'url' => 'http://healthranker.com/submit.php?url={url}&title={title}', ), 'hellotxt' => array( 'name' => 'HelloTxt', 'titleText' => __('Share this on ', 'wpsr') . 'HelloTxt', 'icon' => 'hellotxt.png', 'url' => 'http://hellotxt.com/?status={title}+{url}', ), 'hemidemi' => array( 'name' => 'Hemidemi', 'titleText' => __('Bookmark this on ', 'wpsr') . 'Hemidemi', 'icon' => 'hemidemi.png', 'url' => 'http://www.hemidemi.com/user_bookmark/new?title={title}&url={url}', ), 'hyves' => array( 'name' => 'Hyves', 'titleText' => __('Share this on ', 'wpsr') . 'Hyves', 'icon' => 'hyves.png', 'url' => 'http://www.hyves.nl/profilemanage/add/tips/?name={title}&text={excerpt}+{url}&rating=5', 'support32px' => 1, ), // I 'identica' => array( 'name' => 'Identi.ca', 'titleText' => __('Share this on ', 'wpsr') . 'Identi.ca', 'icon' => 'identica.png', 'url' => 'http://identi.ca/notice/new?status_textarea={url}', ), 'internetmedia' => array( 'name' => 'Internetmedia', 'titleText' => __('Share this on ', 'wpsr') . 'Internetmedia', 'icon' => 'im.png', 'url' => 'http://internetmedia.hu/submit.php?url={url}', ), 'indianpad' => array( 'name' => 'IndianPad', 'titleText' => __('Submit this to ', 'wpsr') . 'IndianPad', 'icon' => 'indianpad.png', 'url' => 'http://www.indianpad.com/submit.php?url={url}', ), 'instapaper' => array( 'name' => 'Instapaper', 'titleText' => __('Add this to ', 'wpsr') . 'Instapaper', 'icon' => 'instapaper.png', 'url' => 'http://www.instapaper.com/hello2?url={url}&title={title}', 'support32px' => 1, ), // K 'kciuk' => array( 'name' => 'Kciuk', 'titleText' => __('Share this on ', 'wpsr') . 'Kciuk', 'icon' => 'kciuk.png', 'url' => 'http://www.kciuk.pl/Dodaj-link/?{url}?{title}/?auto', 'support32px' => 1, ), // Added version 2.0 - 16-1-2011 'kirtsy' => array( 'name' => 'Kirtsy', 'titleText' => __('Submit this to ', 'wpsr') . 'Kirtsy', 'icon' => 'kirtsy.png', 'url' => 'http://www.kirtsy.com/submit.php?url={url}&title={title}', ), // L 'laaikit' => array( 'name' => 'laaik.it', 'titleText' => __('Share this on ', 'wpsr') . 'laaik.it', 'icon' => 'laaikit.png', 'url' => 'http://laaik.it/NewStoryCompact.aspx?uri={url}&headline={title}&cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12', ), 'latafanera' => array( 'name' => 'LaTafanera', 'titleText' => __('Submit this to ', 'wpsr') . 'LaTafanera', 'icon' => 'latafanera.png', 'url' => 'http://latafanera.cat/submit.php?url={url}', ), 'linkagogo' => array( 'name' => 'LinkaGoGo', 'titleText' => __('Share this on ', 'wpsr') . 'LinkaGoGo', 'icon' => 'linkagogo.png', 'url' => 'http://www.linkagogo.com/go/AddNoPopup?url={url}&title={title}', ), 'linkarena' => array( 'name' => 'LinkArena', 'titleText' => __('Add this to ', 'wpsr') . 'LinkArena', 'icon' => 'linkarena.png', 'url' => 'http://linkarena.com/bookmarks/addlink/?url={url}&title={title}', ), 'linkedin' => array( 'name' => 'LinkedIn', 'titleText' => __('Share this on ', 'wpsr') . 'LinkedIn', 'icon' => 'linkedin.png', 'url' => 'http://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&source={blogname}&summary={excerpt}', 'support32px' => 1, ), 'linkter' => array( 'name' => 'Linkter', 'titleText' => __('Share this on ', 'wpsr') . 'Linkter', 'icon' => 'linkter.png', 'url' => 'http://www.linkter.hu/index.php?action=suggest_link&url={url}&title={title}', ), 'live' => array( 'name' => 'Live', 'titleText' => __('Add this to ', 'wpsr') . 'Live', 'icon' => 'live.png', 'url' => 'https://favorites.live.com/quickadd.aspx?marklet=1&url={url}&title={title}', 'support32px' => 1, ), // M 'meneame' => array( 'name' => 'Meneame', 'titleText' => __('Submit this to ', 'wpsr') . 'Meneame', 'icon' => 'meneame.png', 'url' => 'http://meneame.net/submit.php?url={url}', ), 'misterwong' => array( 'name' => 'Mister Wong', 'titleText' => __('Add this to ', 'wpsr') . 'Mister Wong', 'icon' => 'misterwong.png', 'url' => 'http://www.mister-wong.com/addurl/?bm_url={url}&bm_description={title}&plugin=wp-socializer', 'support32px' => 1, ), /*'MisterWong.DE' => array( 'icon' => 'misterwong.png', 'url' => 'http://www.mister-wong.de/addurl/?bm_url={url}&bm_description={title}&plugin=soc', 'sameImageAs' => 'MisterWong', ),*/ 'mixx' => array( 'name' => 'Mixx', 'titleText' => __('Submit this to ', 'wpsr') . 'Mixx', 'icon' => 'mixx.png', 'url' => 'http://www.mixx.com/submit?page_url={url}&title={title}', 'support32px' => 1, ), 'mob' => array( 'name' => 'MOB', 'titleText' => __('Share this on ', 'wpsr') . 'MOB', 'icon' => 'mob.png', 'url' => 'http://www.mob.com/share.php?u={url}&t={title}', ), 'msnreporter' => array( 'name' => 'MSNReporter', 'titleText' => __('Share this on ', 'wpsr') . 'MSNReporter', 'icon' => 'msnreporter.png', 'url' => 'http://reporter.nl.msn.com/?fn=contribute&Title={title}&URL={url}&cat_id=6&tag_id=31&Remark={excerpt}', ), 'muti' => array( 'name' => 'Muti', 'titleText' => __('Share this on ', 'wpsr') . 'Muti', 'icon' => 'muti.png', 'url' => 'http://www.muti.co.za/submit?url={url}&title={title}', ), 'myshare' => array( 'name' => 'MyShare', 'titleText' => __('Share this on ', 'wpsr') . 'MyShare', 'icon' => 'myshare.png', 'url' => 'http://myshare.url.com.tw/index.php?func=newurl&url={url}&desc={title}', ), 'myspace' => array( 'name' => 'MySpace', 'titleText' => __('Post this on ', 'wpsr') . 'MySpace', 'icon' => 'myspace.png', 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u={url}&t={title}', 'support32px' => 1, ), // N 'n4g' => array( 'name' => 'N4G', 'titleText' => __('Share this on ', 'wpsr') . '', 'icon' => 'n4g.png', 'url' => 'http://www.n4g.com/tips.aspx?url={url}&title={title}', ), 'netvibes' => array( 'name' => 'Netvibes', 'titleText' => __('Share this on ', 'wpsr') . 'Netvibes', 'icon' => 'netvibes.png', 'url' => 'http://www.netvibes.com/share?title={title}&url={url}', 'support32px' => 1, ), 'netvouz' => array( 'name' => 'Netvouz', 'titleText' => __('Share this on ', 'wpsr') . 'Netvouz', 'icon' => 'netvouz.png', 'url' => 'http://www.netvouz.com/action/submitBookmark?url={url}&title={title}&popup=no', ), 'newsvine' => array( 'name' => 'NewsVine', 'titleText' => __('Add this to ', 'wpsr') . 'NewsVine', 'icon' => 'newsvine.png', 'url' => 'http://www.newsvine.com/_tools/seed&save?u={url}&h={title}', 'support32px' => 1, ), 'nk' => array( 'name' => 'NK', 'titleText' => __('Share this on ', 'wpsr') . 'NK', 'icon' => 'nk.png', 'url' => 'http://nasza-klasa.pl/sledzik?shout={title} {url}', 'support32px' => 1, ), // Added version 2.0 - 16-1-2011 'nujij' => array( 'name' => 'NuJIJ', 'titleText' => __('Share this on ', 'wpsr') . 'NuJIJ', 'icon' => 'nujij.png', 'url' => 'http://nujij.nl/jij.lynkx?t={title}&u={url}&b={excerpt}', ), // O 'oknotizie' => array( 'name' => 'OkNotizie', 'titleText' => __('Share this on ', 'wpsr') . 'OkNotizie', 'icon' => 'oknotizie.png', 'url' => 'http://oknotizie.virgilio.it/post.html.php?url={url}&title={title}', 'support32px' => 1, ), // Added version 2.4 - 13-12-2012 'orkut' => array( 'name' => 'Orkut', 'titleText' => __('Share this on ', 'wpsr') . 'Orkut', 'icon' => 'orkut.png', 'url' => 'http://promote.orkut.com/preview?nt=orkut.com&tt={title}&du={url}&cn={excerpt}', 'support32px' => 1, ), 'osnews' => array( 'name' => 'OSnews', 'titleText' => __('Share this on ', 'wpsr') . 'OSnews', 'icon' => 'osnews.png', 'url' => 'http://osnews.pl/dodaj-niusa/?external=true&title={title}&url={url}', 'support32px' => 1, ), // Added version 2.0 - 16-1-2011 // P 'pdf' => array( 'name' => 'PDF', 'titleText' => __('Convert to ', 'wpsr') . 'PDF', 'icon' => 'pdf.png', 'url' => 'http://www.printfriendly.com/print?url={url}', ), 'pingfm' => array( 'name' => 'Ping.fm', 'titleText' => __('Share this on ', 'wpsr') . 'Ping.fm', 'icon' => 'ping.png', 'url' => 'http://ping.fm/ref/?link={url}&title={title}&body={excerpt}', 'support32px' => 1, ), 'pinterest' => array( 'name' => 'Pinterest', 'titleText' => __('Submit this to ', 'wpsr') . 'Pinterest', 'icon' => 'pinterest.png', 'url' => 'http://www.pinterest.com/pin/create/button/?url={url}&media={image}&description={excerpt}', 'support32px' => 1, ),// Added version 2.4 - 13-2-2012 'posterous' => array( 'name' => 'Posterous', 'titleText' => __('Share this on ', 'wpsr') . 'Posterous', 'icon' => 'posterous.png', 'url' => 'http://posterous.com/share?linkto={url}&title={title}&selection={excerpt}', 'support32px' => 1, ), 'print' => array( 'name' => 'Print', 'titleText' => __('Print this article ', 'wpsr') . '', 'icon' => 'printfriendly.png', 'url' => 'http://www.printfriendly.com/print?url={url}', 'support32px' => 1, ), 'propeller' => array( 'name' => 'Propeller', 'titleText' => __('Submit this to ', 'wpsr') . 'Propeller', 'icon' => 'propeller.png', 'url' => 'http://www.propeller.com/submit/?url={url}', ), // R 'ratimarks' => array( 'name' => 'Ratimarks', 'titleText' => __('Add this to ', 'wpsr') . 'Ratimarks', 'icon' => 'ratimarks.png', 'url' => 'http://ratimarks.org/bookmarks.php/?action=add&address={url}&title={title}', ), 'rec6' => array( 'name' => 'Rec6', 'titleText' => __('Share this on ', 'wpsr') . 'Rec6', 'icon' => 'rec6.png', 'url' => 'http://rec6.via6.com/link.php?url={url}&={title}', ), 'reddit' => array( 'name' => 'Reddit', 'titleText' => __('Submit this to ', 'wpsr') . 'Reddit', 'icon' => 'reddit.png', 'url' => 'http://reddit.com/submit?url={url}&title={title}', 'support32px' => 1, ), 'rss' => array( 'name' => 'RSS', 'titleText' => __('Subscribe to ', 'wpsr') . 'RSS', 'icon' => 'rss.png', 'url' => '{rss-url}', 'support32px' => 1, ), // S 'scoopeo' => array( 'name' => 'Scoopeo', 'titleText' => __('Share this on ', 'wpsr') . 'Scoopeo', 'icon' => 'scoopeo.png', 'url' => 'http://www.scoopeo.com/scoop/new?newurl={url}&title={title}', ), 'segnalo' => array( 'name' => 'Segnalo', 'titleText' => __('Post this on ', 'wpsr') . 'Segnalo', 'icon' => 'segnalo.png', 'url' => 'http://segnalo.alice.it/post.html.php?url={url}&title={title}', ), 'shetoldme' => array( 'name' => 'SheToldMe', 'titleText' => __('Share this on ', 'wpsr') . 'SheToldMe', 'icon' => 'shetoldme.png', 'url' => 'http://shetoldme.com/publish?url={url}&title={title}', ), 'simpy' => array( 'name' => 'Simpy', 'titleText' => __('Add this to ', 'wpsr') . 'Simpy', 'icon' => 'simpy.png', 'url' => 'http://www.simpy.com/simpy/LinkAdd.do?href={url}&title={title}', ), 'slashdot' => array( 'name' => 'Slashdot', 'titleText' => __('Share this on ', 'wpsr') . 'Slashdot', 'icon' => 'slashdot.png', 'url' => 'http://slashdot.org/bookmark.pl?title={title}&url={url}', ), 'socialogs' => array( 'name' => 'Socialogs', 'titleText' => __('Share this on ', 'wpsr') . 'Socialogs', 'icon' => 'socialogs.png', 'url' => 'http://socialogs.com/add_story.php?story_url={url}&story_title={title}', ), 'sphereit' => array( 'name' => 'SphereIt', 'titleText' => __('Share this on ', 'wpsr') . 'SphereIt', 'icon' => 'sphere.png', 'url' => 'http://www.sphere.com/search?q=sphereit:{url}&title={title}', ), 'sphinn' => array( 'name' => 'Sphinn', 'titleText' => __('Post this on ', 'wpsr') . 'Sphinn', 'icon' => 'sphinn.png', 'url' => 'http://sphinn.com/index.php?c=post&m=submit&link={url}', 'support32px' => 1, ), 'stumbleupon' => array( 'name' => 'StumbleUpon', 'titleText' => __('Submit this to ', 'wpsr') . 'StumbleUpon', 'icon' => 'stumbleupon.png', 'url' => 'http://www.stumbleupon.com/submit?url={url}&title={title}', 'support32px' => 1, ), // T 'techmeme' => array( 'name' => 'Techmeme', 'titleText' => __('Share this on ', 'wpsr') . 'Techmeme', 'icon' => 'techmeme.png', 'url' => 'http://twitter.com/home/?status=tip%20@Techmeme%20{url}%20{title}', ), 'technorati' => array( 'name' => 'Technorati', 'titleText' => __('Add this to ', 'wpsr') . 'Technorati', 'icon' => 'technorati.png', 'url' => 'http://technorati.com/faves?add={url}', 'support32px' => 1, ), 'tipd' => array( 'name' => 'Tipd', 'titleText' => __('Submit this to ', 'wpsr') . 'Tipd', 'icon' => 'tipd.png', 'url' => 'http://tipd.com/submit.php?url={url}', ), 'tumblr' => array( 'name' => 'Tumblr', 'titleText' => __('Share this on ', 'wpsr') . 'Tumblr', 'icon' => 'tumblr.png', 'url' => 'http://www.tumblr.com/share?v=3&u={url}&t={title}&s={excerpt}', 'support32px' => 1, ), 'twitter' => array( 'name' => 'Twitter', 'titleText' => __('Tweet this !', 'wpsr') . '', 'icon' => 'twitter.png', 'url' => 'http://twitter.com/home?status={title}%20-%20{s-url}%20{twitter-username}', 'support32px' => 1, ), // U 'upnews' => array( 'name' => 'Upnews', 'titleText' => __('Submit this to ', 'wpsr') . 'Upnews', 'icon' => 'upnews.png', 'url' => 'http://www.upnews.it/submit?url={url}&title={title}', ), // V 'viadeofr' => array( 'name' => 'Viadeo FR', 'titleText' => __('Share this on ', 'wpsr') . 'Viadeo FR', 'icon' => 'viadeo.png', 'url' => 'http://www.viadeo.com/shareit/share/?url={url}&title={title}&urllanguage=fr', ), // W 'webnewsde' => array( 'name' => 'Webnews.de', 'titleText' => __('Share this on ', 'wpsr') . 'Webnews.de', 'icon' => 'webnews.png', 'url' => 'http://www.webnews.de/einstellen?url={url}&title={title}', ), 'webride' => array( 'name' => 'Webride', 'titleText' => __('Share this on ', 'wpsr') . 'Webride', 'icon' => 'webride.png', 'url' => 'http://webride.org/discuss/split.php?uri={url}&title={title}', ), 'wikio' => array( 'name' => 'Wikio', 'titleText' => __('Share this on ', 'wpsr') . 'Wikio', 'icon' => 'wikio.png', 'url' => 'http://www.wikio.com/vote?url={url}', ), /*'Wikio FR' => array( 'icon' => 'wikio.png', 'url' => 'http://www.wikio.fr/vote?url={url}', 'sameImageAs' => 'Wikio', ), 'Wikio IT' => array( 'icon' => 'wikio.png', 'url' => 'http://www.wikio.it/vote?url={url}', 'sameImageAs' => 'Wikio', ),*/ 'wists' => array( 'name' => 'Wists', 'titleText' => __('Share this on ', 'wpsr') . 'Wists', 'icon' => 'wists.png', 'url' => 'http://wists.com/s.php?c=&r={url}&title={title}', ), 'wykop' => array( 'name' => 'Wykop', 'titleText' => __('Share this on ', 'wpsr') . 'Wykop', 'icon' => 'wykop.png', 'url' => 'http://www.wykop.pl/dodaj?url={url}', 'support32px' => 1, // Added version 2.0 - 16-1-2011 ), // X 'xerpi' => array( 'name' => 'Xerpi', 'titleText' => __('Add this to ', 'wpsr') . 'Xerpi', 'icon' => 'xerpi.png', 'url' => 'http://www.xerpi.com/block/add_link_from_extension?url={url}&title={title}', ), // Y 'yahoobookmarks' => array( 'name' => 'Yahoo! Bookmarks', 'titleText' => __('Add this to ', 'wpsr') . 'Yahoo! Bookmarks', 'icon' => 'yahoo.png', 'url' => 'http://bookmarks.yahoo.com/toolbar/savebm?u={url}&t={title}&opener=bm&ei=UTF-8&d={excerpt}', 'support32px' => 1, ), 'yahoobuzz' => array( 'name' => 'YahooBuzz', 'titleText' => __('Submit this to ', 'wpsr') . 'YahooBuzz', 'icon' => 'yahoobuzz.png', 'url' => 'http://buzz.yahoo.com/submit/?submitUrl={url}&submitHeadline={title}&submitSummary={excerpt}&submitAssetType=text', 'support32px' => 1, ), 'yigg' => array( 'name' => 'Yigg', 'titleText' => __('Share this on ', 'wpsr') . 'Yigg', 'icon' => 'yiggit.png', 'url' => 'http://yigg.de/neu?exturl={url}&exttitle={title}', ), ); $wpsr_button_code_list = array( "{social-bts-16px}", "{social-bts-32px}", "{addthis-bt}", "{addthis-tb-16px}", "{addthis-tb-32px}", "{addthis-sc}", "{sharethis-vcount}", "{sharethis-hcount}", "{sharethis-large}", "{sharethis-regular}", "{sharethis-regular2}", "{sharethis-bt}", "{sharethis-classic}", "{plusone-small}", "{plusone-medium}", "{plusone-standard}", "{plusone-tall}", "{retweet-bt}", "{digg-bt}", "{facebook-like}", "{facebook-send}", "{reddit-1}", "{reddit-2}", "{reddit-3}", "{stumbleupon-1}", "{stumbleupon-2}", "{stumbleupon-3}", "{stumbleupon-5}", "{linkedin-standard}", "{linkedin-right}", "{linkedin-top}", "{pinterest-nocount}", "{pinterest-horizontal}", "{pinterest-vertical}", "{custom-1}", "{custom-2}" ); $wpsr_shortcodes_list = array( 'Social buttons' => '[wpsr_socialbts]', 'Addthis' => '[wpsr_addthis]', 'Sharethis' => '[wpsr_sharethis]', 'Retweet' => '[wpsr_retweet]', 'Google +1' => '[wpsr_plusone]', 'Digg' => '[wpsr_digg]', 'Facebook' => '[wpsr_facebook]', 'StumbleUpon' => '[wpsr_stumbleupon]', 'Reddit' => '[wpsr_reddit]', 'LinkedIn' => '[wpsr_linkedin]', 'Pinterest' => '[wpsr_pinterest]' ); $wpsr_default_templates = array( 1 => array( 'name' => 'Template 1' ), 2 => array( 'name' => 'Template 2' ) ); $wpsr_floating_bar_bts = array( 'Retweet' => array( 'float_left' => '[wpsr_retweet service="twitter" type="normal"]', 'bottom_fixed' => '[wpsr_retweet service="twitter"]', ), 'Google +1' => array( 'float_left' => '[wpsr_plusone type="tall"]', 'bottom_fixed' => '[wpsr_plusone type="medium"]', ), 'Digg' => array( 'float_left' => '[wpsr_digg type="DiggMedium"]', 'bottom_fixed' => '[wpsr_digg type="DiggCompact"]', ), 'Facebook' => array( 'float_left' => '[wpsr_facebook style="box_count"]', 'bottom_fixed' => '[wpsr_facebook style="button_count"]', ), 'StumbleUpon' => array( 'float_left' => '[wpsr_stumbleupon type="5"]', 'bottom_fixed' => '[wpsr_stumbleupon type="1"]', ), 'Reddit' => array( 'float_left' => '[wpsr_reddit type="2"]', 'bottom_fixed' => '[wpsr_reddit type="1"]', ), 'LinkedIn' => array( 'float_left' => '[wpsr_linkedin type="top"]', 'bottom_fixed' => '[wpsr_linkedin type="right"]', ), 'Pinterest' => array( 'float_left' => '[wpsr_pinterest type="vertical"]', 'bottom_fixed' => '[wpsr_pinterest type="horizontal"]', ), 'Email' => array( 'float_left' => '[wpsr_socialbts output="singles" type="32px" services="email" sprites=0 effect=none]', 'bottom_fixed' => '[wpsr_socialbts output="singles" services="email" label=1 sprites=0 effect=none]' ), 'Print' => array( 'float_left' => '[wpsr_socialbts output="singles" type="32px" services="print" sprites=0 effect=none]', 'bottom_fixed' => '[wpsr_socialbts output="singles" services="print" label=1 sprites=0 effect=none]' ) ); $wpsr_addthis_lang_array = array( 'en'=>'English', 'ar'=>'Arabic', 'zh'=>'Chinese', 'cs'=>'Czech', 'da'=>'Danish', 'nl'=>'Dutch','fa'=>'Farsi', 'fi'=>'Finnish', 'fr'=>'French', 'ga'=>'Gaelic', 'de'=>'German', 'el'=>'Greek', 'he'=>'Hebrew', 'hi'=>'Hindi', 'it'=>'Italian', 'ja'=>'Japanese', 'ko'=>'Korean', 'lv'=>'Latvian', 'lt'=>'Lithuanian', 'no'=>'Norwegian', 'pl'=>'Polish', 'pt'=>'Portugese', 'ro'=>'Romanian', 'ru'=>'Russian', 'sk'=>'Slovakian', 'sl'=>'Slovenian', 'es'=>'Spanish', 'sv'=>'Swedish', 'th'=>'Thai', 'ur'=>'Urdu', 'cy'=>'Welsh', 'vi'=>'Vietnamese' ); ## Initializations function wpsr_init(){ global $wpsr_default_templates; $user_template = get_option('wpsr_templates'); if(empty($user_template)){ update_option('wpsr_templates', $wpsr_default_templates); }else{ $merged_array = $wpsr_default_templates + $user_template; if($user_template != $merged_array){ update_option('wpsr_templates', $merged_array); } } // Include the plugin translations load_plugin_textdomain('wpsr', false, dirname(plugin_basename( __FILE__ )) . '/languages'); } add_action('admin_init','wpsr_init'); ## Include WP Socializer Processer files require_once('admin/wpsr-admin.php'); require_once('admin/wpsr-admin-other.php'); require_once('admin/wpsr-admin-floating-bar.php'); require_once('includes/wpsr-addthis.php'); require_once('includes/wpsr-sharethis.php'); require_once('includes/wpsr-google.php'); // Since v2.0 require_once('includes/wpsr-retweet.php'); require_once('includes/wpsr-digg.php'); require_once('includes/wpsr-facebook.php'); require_once('includes/wpsr-socialbuttons.php'); require_once('includes/wpsr-other.php'); require_once('includes/wpsr-custom.php'); require_once('includes/wpsr-shortcodes.php'); require_once('includes/wpsr-widgets.php'); // Since v2.3 require_once('includes/wpsr-floatingbar.php'); // Since v2.4 ## General function function strpos_arr($haystack, $needle) { if(!is_array($needle)) $needle = array($needle); foreach($needle as $what) { if(($pos = strpos($haystack, $what))!==false) return $pos; } return false; } ## wpsr Is active check function wpsr_is_active(){ if (get_option("wpsr_active") == 1) { return 1; }else{ return 0; } } ## wpsr plugin activate function wpsr_plugin_activate(){ // Set the defaults to the first time users $active = get_option('wpsr_active'); if($active == ''){ wpsr_reset_values(); } update_option("wpsr_active", 1); // Set the defaults to the Floating share bar $floatbts = get_option('wpsr_template_floating_bar_data'); if($floatbts == ''){ wpsr_floatbts_reset_values(); } } register_activation_hook(__FILE__, 'wpsr_plugin_activate'); ## wpsr plugin deactivate function wpsr_plugin_deactivate(){ update_option("wpsr_active", 0); } register_deactivation_hook(__FILE__, 'wpsr_plugin_deactivate'); ## Admin Notices function wpsr_admin_notices(){ if(!wpsr_is_active() && $_GET['page'] != 'wp_socializer'){ echo '
' . __('WP Socializer plugin is intalled. Please adjust your settings', 'wpsr') . ' ' . __('in this page', 'wpsr') . '.