Changeset 417895
- Timestamp:
- 08/01/2011 12:22:05 PM (15 years ago)
- Location:
- social-counters/trunk
- Files:
-
- 5 added
- 6 edited
-
counters/bitacoras.php (modified) (5 diffs)
-
counters/linkedin.js (added)
-
counters/linkedin.php (added)
-
css/social-counters.css (modified) (2 diffs)
-
images/bkg-counter-mini.gif (added)
-
images/en/bitacoras.gif (modified) (previous)
-
images/en/linkedin.gif (added)
-
images/es/bitacoras.gif (modified) (previous)
-
images/es/linkedin.gif (added)
-
readme.txt (modified) (2 diffs)
-
social-counters.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-counters/trunk/counters/bitacoras.php
r415823 r417895 5 5 function social_counter__defaults__bitacoras( $defaults = array() ) { 6 6 7 if ( !empty(social_counter__bitacoras_key()) ) 7 $key = social_counter__bitacoras_key(); 8 if ( !empty($key) ) 8 9 $defaults[] = 'bitacoras'; 9 10 … … 18 19 $_post = ( $postparam ) ? $postparam : $post; 19 20 20 if ( $_post && !empty(social_counter__bitacoras_key()) ) { 21 $key = social_counter__bitacoras_key(); 22 if ( $_post && !empty($key) ) { 21 23 return $codeExit . '<div class="misc-pub-section">Bitacoras: ' . social_counter__get('bitacoras', $_post, false) . '</div>'; 22 24 } … … 35 37 $shared_counter = 0; 36 38 37 if ( $_post && !empty(social_counter__bitacoras_key()) ) { 39 $key = social_counter__bitacoras_key(); 40 if ( $_post && !empty($key) ) { 38 41 39 42 $share_counter_meta = get_post_meta($_post->ID, '_shared_counter_bitacoras_v2', true); … … 56 59 if ( !empty($data) ) { 57 60 $data = json_decode($data); 58 if ( sizeof($data) == 1 ) { 59 $shared_counter = $data[0]->total_count; 61 62 if ( $data->status == 'success' ) { 63 $shared_counter = $data->data->votos; 60 64 } 61 65 } … … 88 92 $_post = ( $postparam ) ? $postparam : $post; 89 93 90 if ( $_post && !empty(social_counter__bitacoras_key()) ) { 94 $key = social_counter__bitacoras_key(); 95 if ( $_post && !empty($key) ) { 91 96 92 97 $post_title = urlencode( apply_filters('social_counters__the_title', get_the_title($_post->ID)) ); -
social-counters/trunk/css/social-counters.css
r297911 r417895 9 9 .social-counters .social-counter-en-gbuzz { background: url(../images/en/google-buzz.gif) no-repeat 0 50%; } 10 10 .social-counters .social-counter-en-tuenti { background: url(../images/en/tuenti.gif) no-repeat 0 50%; } 11 .social-counters .social-counter-en-bitacoras { background: url(../images/en/bitacoras.gif) no-repeat 0 50%; } 12 .social-counters .social-counter-en-linkedin { background: url(../images/en/linkedin.gif) no-repeat 0 50%; } 11 13 12 14 .social-counters .social-counter-es-facebook { background: url(../images/es/facebook.gif) no-repeat 0 50%; } … … 15 17 .social-counters .social-counter-es-gbuzz { background: url(../images/es/google-buzz.gif) no-repeat 0 50%; } 16 18 .social-counters .social-counter-es-tuenti { background: url(../images/es/tuenti.gif) no-repeat 0 50%; } 19 .social-counters .social-counter-es-bitacoras { background: url(../images/en/bitacoras.gif) no-repeat 0 50%; } 20 .social-counters .social-counter-es-linkedin { background: url(../images/en/linkedin.gif) no-repeat 0 50%; } 21 22 .social-counters-mini {} 23 .social-counters-mini .social-counter { padding-left: 18px; } 24 .social-counters .social-counter SPAN { background-color: #fff; } 17 25 18 26 -
social-counters/trunk/readme.txt
r415823 r417895 3 3 Tags: social, social bookmarking, counter, twitter, facebook, google, meneame, tuenti, bitacoras.com 4 4 Requires at least: 2.9 5 Tested up to: 3. 1.26 Stable tag: 2. 1.15 Tested up to: 3.2.1 6 Stable tag: 2.2.0 7 7 8 8 It allows to place social sharing links with counters (if available) to the most popular social networks: Menéame,Twitter,Facebook,... … … 52 52 == Changelog == 53 53 54 = 2.2.0 = 55 * Added counter from "Bitcoras" 56 * Added counter from "LinkedIn" 57 * Added SOCIAL_COUNTER__LOAD_CSS_SMALL constant to load only icons, not share text. 58 54 59 = 2.1.1 = 55 60 * Changed counter system on Twitter, now used Twitter itself, not Tweetmeme -
social-counters/trunk/social-counters.php
r415823 r417895 4 4 Plugin URI: http://blogestudio.com/plugin/social-counters/ 5 5 Description: Get Counters from Social Webs 6 Version: 2. 1.16 Version: 2.2.0 7 7 Author: Alejandro Carravedo (Blogestudio) 8 8 Author URI: http://blogestudio.com … … 25 25 2.1.1 - Cambiado sistema de contador en Twitter, ahora se usa el propio Twitter, no TweetMeMe 26 26 - Reparado contador de Facebook, ahora funciona con el Graph API, han quitado de sopetón los datos del REST API. 27 28 2.2.0 - Anadido el contador de "Bitacoras" 29 - Anadido el contador de "LinkedIn" 30 - Anadida constante SOCIAL_COUNTER__LOAD_CSS_SMALL para cargar solo los iconos, no los textos de compartir. 27 31 28 32 29 33 *** Configuraciones *** 30 34 SOCIAL_COUNTER__LOAD_CSS : Ponerlo a FALSE para que no cargue el estilo por defecto. 35 SOCIAL_COUNTER__LOAD_CSS_SMALL : Ponerlo a TRUE para que cargue solo los iconos. 31 36 SOCIAL_COUNTER__TWITTER_USER : Indicar el Usuario de RT para Twitter. 37 38 39 *** ToDo *** 40 2.3.0 - Pagina de Opciones 41 3.0.0 - Convertir en Clase 32 42 33 43 */ … … 38 48 define('SOCIAL_COUNTER__LOAD_CSS', true); 39 49 50 if ( !defined('SOCIAL_COUNTER__LOAD_CSS_SMALL') ) 51 define('SOCIAL_COUNTER__LOAD_CSS_SMALL', false); 40 52 41 53 … … 67 79 require_once('counters/twitter.php'); 68 80 require_once('counters/facebook.php'); 69 //require_once('counters/bitacoras.php'); 81 require_once('counters/bitacoras.php'); 82 require_once('counters/linkedin.php'); 70 83 71 84 … … 104 117 } 105 118 106 $codeExit = ( !empty($codeExit) ) ? '<div class="social-counters">'. $codeExit .'</div>' : ''; 119 $mini_counters = ( defined('SOCIAL_COUNTER__LOAD_CSS_SMALL') ) ? SOCIAL_COUNTER__LOAD_CSS_SMALL : false; 120 121 $codeExit = ( !empty($codeExit) ) ? '<div class="social-counters'. ( $mini_counters ? ' social-counters-mini' : '' ) .'">'. $codeExit .'</div>' : ''; 107 122 108 123 return $codeExit;
Note: See TracChangeset
for help on using the changeset viewer.