Changeset 2269067
- Timestamp:
- 03/27/2020 12:50:41 PM (6 years ago)
- Location:
- social-sharing-buttons-and-counters/trunk
- Files:
-
- 9 edited
-
assets/css/jc-social-sharing.css (modified) (1 diff)
-
inc/admin-page.php (modified) (7 diffs)
-
inc/functions.php (modified) (1 diff)
-
inc/plugin.php (modified) (1 diff)
-
inc/template-functions.php (modified) (4 diffs)
-
languages/social-sharing-buttons-jc-es_ES.mo (modified) (previous)
-
languages/social-sharing-buttons-jc-es_ES.po (modified) (6 diffs)
-
readme.txt (modified) (5 diffs)
-
social-sharing-buttons-and-counters.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-sharing-buttons-and-counters/trunk/assets/css/jc-social-sharing.css
r2185770 r2269067 26 26 #jcss-linkedin { background: #007bb5; } 27 27 28 #jcss-pinterest { background: #bd081c; } 29 28 30 #jcss-telegram { background: #0088cc; } 29 31 -
social-sharing-buttons-and-counters/trunk/inc/admin-page.php
r2242657 r2269067 24 24 <?php _e('Animation', 'social-sharing-buttons-jc'); ?> 25 25 </a> 26 <a href="?page=social-sharing-buttons-jc&tab=shortcodes" class="nav-tab <?php echo $active_tab == 'shortcodes' ? 'nav-tab-active' : ''; ?>">27 Shortcodes28 </a>29 26 </h2> 30 27 … … 60 57 <input id="twitter-username" type="text" name="jcss_buttons_options[twitter_username]" 61 58 placeholder="<?php _e('username without @', 'social-sharing-buttons-jc') ?>" value="<?php echo esc_attr($options['twitter_username']) ?>"> 62 <p class="description"> <?php _e('Enter your username if you want edit to be appended to the tweets', 'social-sharing-buttons-jc') ?></p>59 <p class="description"> <?php _e('Enter your username if you want it to be appended to the tweets', 'social-sharing-buttons-jc') ?></p> 63 60 64 61 </div> … … 109 106 <label> 110 107 <input type="checkbox" name="jcss_buttons_options[post_types][]" value="<?php echo esc_attr( $post_type_id ); ?>" 111 <?php checked( in_array( $post_type_id, $options['post_types'] ), true ) ?>> <?php echo $post_type->labels->name; ?>108 <?php checked( in_array( $post_type_id, $options['post_types'] ), true ) ?>> <?php echo esc_html($post_type->labels->name); ?> 112 109 </label> 113 110 </li> … … 166 163 <tr> 167 164 <th scope="row"> 168 <label for="use-fa4"><?php _e('Font Awesome 4 compatibility', 'social-sharing-buttons-jc') ?></label>165 <label for="use-fa4"><?php _e('Font Awesome 4 (2017) compatibility', 'social-sharing-buttons-jc') ?></label> 169 166 </th> 170 167 <td id="use-fa4"> 171 168 <label> 172 169 <input type="checkbox" name="jcss_advanced_options[fa4]" <?php checked( $options['fa4'] === 'on' ) ?>> 173 <?php _e( "Check ONLY if your theme still uses Font Awesome 4, take into account that some icons might not be rendered.", 'social-sharing-buttons-jc') ?>170 <?php _e('Check only if your theme still uses Font Awesome 4, take into account that some icons (latest ones) might not be rendered.', 'social-sharing-buttons-jc') ?> 174 171 </label> 175 172 </td> … … 182 179 <label> 183 180 <input type="checkbox" name="jcss_advanced_options[no_fa]" <?php checked( $options['no_fa'] === 'on' ) ?>> 184 <?php _e( "We strongly recommend that only advanced developers check this option.", 'social-sharing-buttons-jc') ?>181 <?php _e('We strongly recommend that only advanced users check this option.', 'social-sharing-buttons-jc') ?> 185 182 </label> 186 183 </td> … … 190 187 <?php submit_button(); ?> 191 188 </form> <?php 192 } else if ( $active_tab === 'animation' ) {189 } else { // animation 193 190 $options = jcss_get_animation_options(); ?> 194 191 <form action="options.php" method="post"> … … 240 237 <?php submit_button(); ?> 241 238 </form> <?php 242 } else { ?>243 <h3>[jc_buttons] </h3>244 <p><?php _e('The shortcode <strong>[jc_buttons]</strong> will render the sharing buttons as you have customised them in this page. Thanks to this shortcode you can place the buttons anywhere!', 'social-sharing-buttons-jc') ?> </p>245 <?php246 239 } ?> 247 240 </div> <?php -
social-sharing-buttons-and-counters/trunk/inc/functions.php
r2242657 r2269067 79 79 80 80 function jcss_get_social_list( $values, $include_values ) { 81 $socials = array('Facebook', 'Twitter', 'LinkedIn', 'Buffer', ' Telegram', 'Email', 'WhatsApp');81 $socials = array('Facebook', 'Twitter', 'LinkedIn', 'Buffer', 'Pinterest', 'Telegram', 'Email', 'WhatsApp'); 82 82 $values_array = explode(',', $values); 83 83 -
social-sharing-buttons-and-counters/trunk/inc/plugin.php
r2242657 r2269067 29 29 $font_awesome = array('font-awesome', 'fontawesome', 'font_awesome'); 30 30 if (jcss_stylesheet_installed($font_awesome) === 0) { 31 wp_enqueue_style('jcss-font-awesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/5. 8.2/css/all.min.css');31 wp_enqueue_style('jcss-font-awesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css'); 32 32 } 33 33 } -
social-sharing-buttons-and-counters/trunk/inc/template-functions.php
r2185770 r2269067 14 14 $url = get_permalink(); 15 15 16 $image = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'medium' ); 17 if (!$image) $image = urlencode('https://upload.wikimedia.org/wikipedia/commons/0/08/Pinterest-logo.png'); 18 else $image = $image[0]; 19 16 20 $socials = explode(',', $options['social_options']); 17 21 $twitter_username = $options['twitter_username']; … … 33 37 foreach ($socials as $social) { 34 38 switch ($social) { 35 case "Facebook": ?>36 <a id="jcss-facebook" rel="external nofollow" class="jcss-button" href="http://www.facebook.com/sharer.php?u=<?php echo $url; ?>" target="_blank" >37 <i class="<?php echo jcss_get_fa_classnames($advanced, 'facebook'); ?>"></i>38 <?php jcss_get_social_name($options, $social); ?>39 </a> <?php40 break;41 case "Twitter": ?>42 <a id="jcss-twitter" rel="external nofollow" class="jcss-button" href="http://twitter.com/intent/tweet/?text=<?php echo $title; ?>&url=<?php echo $url; if(!empty($twitter_username)) { echo '&via=' . $twitter_username; } ?>" target="_blank" >43 <i class="<?php echo jcss_get_fa_classnames($advanced, 'twitter'); ?>"></i>44 <?php jcss_get_social_name($options, $social); ?>45 </a> <?php46 break;47 case "LinkedIn": ?>48 <a id="jcss-linkedin" rel="external nofollow" class="jcss-button" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url; ?>&title=<?php echo $title; ?>" target="_blank" >49 <i class="<?php echo jcss_get_fa_classnames($advanced, 'linkedin'); ?>"></i>50 <?php jcss_get_social_name($options, $social); ?>51 </a> <?php52 break;53 39 case "Buffer": ?> 54 40 <a id="jcss-buffer" rel="external nofollow" class="jcss-button" href="https://bufferapp.com/add?text=<?php echo $title; ?>&url=<?php echo $url; ?>" target="_blank" > … … 62 48 <?php jcss_get_social_name($options, $social); ?> 63 49 </a> <?php 50 break; 51 case "Facebook": ?> 52 <a id="jcss-facebook" rel="external nofollow" class="jcss-button" href="http://www.facebook.com/sharer.php?u=<?php echo $url; ?>" target="_blank" > 53 <i class="<?php echo jcss_get_fa_classnames($advanced, 'facebook'); ?>"></i> 54 <?php jcss_get_social_name($options, $social); ?> 55 </a> <?php 56 break; 57 case "LinkedIn": ?> 58 <a id="jcss-linkedin" rel="external nofollow" class="jcss-button" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url; ?>&title=<?php echo $title; ?>" target="_blank" > 59 <i class="<?php echo jcss_get_fa_classnames($advanced, 'linkedin'); ?>"></i> 60 <?php jcss_get_social_name($options, $social); ?> 61 </a> <?php 62 break; 63 case "Pinterest": ?> 64 <a id="jcss-pinterest" rel="external nofollow" class="jcss-button" href="http://pinterest.com/pin/create/button/?url=<?php echo $url; ?>&media=<?php echo $image; ?>&description=<?php echo $title; ?>" target="_blank" > 65 <i class="<?php echo jcss_get_fa_classnames($advanced, 'pinterest'); ?>"></i> 66 <?php jcss_get_social_name($options, $social); ?> 67 </a> <?php 64 68 break; 65 69 case "Telegram": ?> … … 67 71 <i class="<?php echo jcss_get_fa_classnames($advanced, 'telegram'); ?>"></i> 68 72 <?php jcss_get_social_name($options, $social); ?> 73 </a> <?php 74 break; 75 case "Twitter": ?> 76 <a id="jcss-twitter" rel="external nofollow" class="jcss-button" href="http://twitter.com/intent/tweet/?text=<?php echo $title; ?>&url=<?php echo $url; if(!empty($twitter_username)) { echo '&via=' . $twitter_username; } ?>" target="_blank" > 77 <i class="<?php echo jcss_get_fa_classnames($advanced, 'twitter'); ?>"></i> 78 <?php jcss_get_social_name($options, $social); ?> 69 79 </a> <?php 70 80 break; -
social-sharing-buttons-and-counters/trunk/languages/social-sharing-buttons-jc-es_ES.po
r2242657 r2269067 5 5 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/social-sharing-" 6 6 "buttons-and-counters\n" 7 "POT-Creation-Date: 2020-0 2-11 18:37:40+00:00\n"7 "POT-Creation-Date: 2020-03-27 12:35:10+00:00\n" 8 8 "PO-Revision-Date: \n" 9 9 "Last-Translator: JC <[email protected]>\n" … … 36 36 msgstr "Animación" 37 37 38 #: inc/admin-page.php: 4238 #: inc/admin-page.php:39 39 39 msgid "Social buttons" 40 40 msgstr "Redes sociales" 41 41 42 #: inc/admin-page.php: 5042 #: inc/admin-page.php:47 43 43 msgid "Drop below the sharing buttons you want to add" 44 44 msgstr "Arrastra abajo las redes sociales que quieres añadir" 45 45 46 #: inc/admin-page.php:5 946 #: inc/admin-page.php:56 47 47 msgid "Twitter username" 48 48 msgstr "Usuario de Twitter" 49 49 50 #: inc/admin-page.php: 6150 #: inc/admin-page.php:58 51 51 msgid "username without @" 52 52 msgstr "usuario sin la @" 53 53 54 #: inc/admin-page.php: 6255 msgid "Enter your username if you want edit to be appended to the tweets"54 #: inc/admin-page.php:59 55 msgid "Enter your username if you want it to be appended to the tweets" 56 56 msgstr "Introduce tu nombre si quieres que sea añadido a los tweets" 57 57 58 #: inc/admin-page.php: 7258 #: inc/admin-page.php:69 59 59 msgid "Buttons text " 60 60 msgstr "Textos en los botones " 61 61 62 #: inc/admin-page.php:7 5 inc/admin-page.php:20362 #: inc/admin-page.php:72 inc/admin-page.php:200 63 63 msgid "Yes" 64 64 msgstr "Sí" 65 65 66 #: inc/admin-page.php:7 6 inc/admin-page.php:20466 #: inc/admin-page.php:73 inc/admin-page.php:201 67 67 msgid "No" 68 68 msgstr "No" 69 69 70 #: inc/admin-page.php:7 770 #: inc/admin-page.php:74 71 71 msgid "" 72 72 "Display social network names? You can hide them if you don't have enough " … … 76 76 "espacio para los botones" 77 77 78 #: inc/admin-page.php: 8178 #: inc/admin-page.php:78 79 79 msgid "Always hide the social networks names on mobile screen sizes." 80 80 msgstr "Ocultar siempre los nombres de las redes sociales en móviles." 81 81 82 #: inc/admin-page.php:8 982 #: inc/admin-page.php:86 83 83 msgid "Buttons location" 84 84 msgstr "Ubicación de los botones" 85 85 86 #: inc/admin-page.php:9 386 #: inc/admin-page.php:90 87 87 msgid "Before content" 88 88 msgstr "Antes del contenido" 89 89 90 #: inc/admin-page.php:9 490 #: inc/admin-page.php:91 91 91 msgid "After content" 92 92 msgstr "Después del contenido" 93 93 94 #: inc/admin-page.php:9 594 #: inc/admin-page.php:92 95 95 msgid "Both" 96 96 msgstr "Antes y después del contenido" 97 97 98 #: inc/admin-page.php: 10298 #: inc/admin-page.php:99 99 99 msgid "Add buttons to" 100 100 msgstr "Añadir los botones a" 101 101 102 #: inc/admin-page.php:1 21102 #: inc/admin-page.php:118 103 103 msgid "Sharing text" 104 104 msgstr "Texto junto a los botones" 105 105 106 #: inc/admin-page.php:12 5106 #: inc/admin-page.php:122 107 107 msgid "Share this!" 108 108 msgstr "¡Compártelo!" 109 109 110 #: inc/admin-page.php:12 6110 #: inc/admin-page.php:123 111 111 msgid "" 112 112 "Left the field empty if you don't want to display a text before the sharing " … … 116 116 "botones" 117 117 118 #: inc/admin-page.php:13 3118 #: inc/admin-page.php:130 119 119 msgid "Sharing text position" 120 120 msgstr "Posición del texto" 121 121 122 #: inc/admin-page.php:13 7122 #: inc/admin-page.php:134 123 123 msgid "Left" 124 124 msgstr "A la izquierda" 125 125 126 #: inc/admin-page.php:13 8126 #: inc/admin-page.php:135 127 127 msgid "Above" 128 128 msgstr "Arriba" 129 129 130 #: inc/admin-page.php:14 4130 #: inc/admin-page.php:141 131 131 msgid "Sharing text weight" 132 132 msgstr "Grosor del texto" 133 133 134 #: inc/admin-page.php:16 8135 msgid "Font Awesome 4 compatibility"136 msgstr "Compatibilidad con Font Awesome 4 "137 138 #: inc/admin-page.php:17 3139 msgid "" 140 "Check ONLYif your theme still uses Font Awesome 4, take into account that "141 "some icons might not be rendered."142 msgstr "" 143 "Marca esta casilla SOLO si tu tema tiene instalado Font Awesome 4, ten en "144 "cuenta que algunos iconos pueden que no se muestren."145 146 #: inc/admin-page.php:17 9134 #: inc/admin-page.php:165 135 msgid "Font Awesome 4 (2017) compatibility" 136 msgstr "Compatibilidad con Font Awesome 4 (2017)" 137 138 #: inc/admin-page.php:170 139 msgid "" 140 "Check only if your theme still uses Font Awesome 4, take into account that " 141 "some icons (latest ones) might not be rendered." 142 msgstr "" 143 "Marca esta opción si tu tema todavía sigue usando Font Awesome 4, ten en " 144 "cuenta que puede que no se muestren algunos iconos." 145 146 #: inc/admin-page.php:176 147 147 msgid "Do not enqueue Font Awesome" 148 148 msgstr "No cargar Font Awesome" 149 149 150 #: inc/admin-page.php:18 4151 msgid "We strongly recommend that only advanced developers check this option."152 msgstr "Recomendamos que solo desarrolladores avanzados marquen esta opción."153 154 #: inc/admin-page.php: 201150 #: inc/admin-page.php:181 151 msgid "We strongly recommend that only advanced users check this option." 152 msgstr "Recomendamos que solo usuarios avanzados marquen esta opción." 153 154 #: inc/admin-page.php:198 155 155 msgid "Play animations?" 156 156 msgstr "¿Usar animaciones?" 157 157 158 #: inc/admin-page.php:20 7158 #: inc/admin-page.php:204 159 159 msgid "" 160 160 "Here you can decide whether or not to play animations when hovering over the " … … 164 164 "hover sobre los botones." 165 165 166 #: inc/admin-page.php:2 12166 #: inc/admin-page.php:209 167 167 msgid "Animation Style" 168 168 msgstr "Estilo de la animación" 169 169 170 #: inc/admin-page.php:213 171 msgid "Fade" 172 msgstr "" 173 174 #: inc/admin-page.php:214 175 msgid "Slide" 176 msgstr "" 177 178 #: inc/admin-page.php:215 179 msgid "Bounce" 180 msgstr "" 181 170 182 #: inc/admin-page.php:216 171 msgid "Fade"172 msgstr ""173 174 #: inc/admin-page.php:217175 msgid "Slide"176 msgstr ""177 178 #: inc/admin-page.php:218179 msgid "Bounce"180 msgstr ""181 182 #: inc/admin-page.php:219183 183 msgid "Spin" 184 184 msgstr "" 185 185 186 #: inc/admin-page.php:22 5186 #: inc/admin-page.php:222 187 187 msgid "Animation Duration" 188 188 msgstr "Duración de la animación" 189 189 190 #: inc/admin-page.php:22 9190 #: inc/admin-page.php:226 191 191 msgid "300 miliseconds" 192 192 msgstr "300 milisegundos" 193 193 194 #: inc/admin-page.php:2 30194 #: inc/admin-page.php:227 195 195 msgid "500 miliseconds" 196 196 msgstr "500 milisegundos" 197 197 198 #: inc/admin-page.php:2 31198 #: inc/admin-page.php:228 199 199 msgid "700 miliseconds" 200 200 msgstr "700 milisegundos" 201 201 202 #: inc/admin-page.php:2 32202 #: inc/admin-page.php:229 203 203 msgid "1 second" 204 204 msgstr "1 segundo" 205 205 206 #: inc/admin-page.php:23 3206 #: inc/admin-page.php:230 207 207 msgid "2 seconds" 208 208 msgstr "2 segundos" 209 209 210 #: inc/admin-page.php:23 4210 #: inc/admin-page.php:231 211 211 msgid "3 seconds" 212 212 msgstr "3 segundos" 213 213 214 #: inc/admin-page.php:244215 msgid ""216 "The shortcode <strong>[jc_buttons]</strong> will render the sharing buttons "217 "as you have customised them in this page. Thanks to this shortcode you can "218 "place the buttons anywhere!"219 msgstr ""220 "El shortcode <strong>[jc_buttons]</strong> mostrará los botones tal y como "221 "los has configurado en esta página, ¡lo que te permitirá colocarlos "222 "practicamente en cualquier parte!"223 224 214 #. Plugin Name of the plugin/theme 225 215 msgid "JC Social Sharing" … … 241 231 msgid "https://josecarlosroman.com/" 242 232 msgstr "" 233 234 #~ msgid "Enter your username if you wanted it to be appended to the tweets" 235 #~ msgstr "Introduce tu nombre si quieres que sea añadido a los tweets" 236 237 #~ msgid "Font Awesome 4 compatibility" 238 #~ msgstr "Compatibilidad con Font Awesome 4" 239 240 #~ msgid "" 241 #~ "Check ONLY if your theme still uses Font Awesome 4, take into account " 242 #~ "that some icons might not be rendered." 243 #~ msgstr "" 244 #~ "Marca esta casilla SOLO si tu tema tiene instalado Font Awesome 4, ten en " 245 #~ "cuenta que algunos iconos pueden que no se muestren." 246 247 #~ msgid "" 248 #~ "We strongly recommend that only advanced developers check this option." 249 #~ msgstr "" 250 #~ "Recomendamos que solo desarrolladores avanzados marquen esta opción." 251 252 #~ msgid "" 253 #~ "The shortcode <strong>[jc_buttons]</strong> will render the sharing " 254 #~ "buttons as you have customised them in this page. Thanks to this " 255 #~ "shortcode you can place the buttons anywhere!" 256 #~ msgstr "" 257 #~ "El shortcode <strong>[jc_buttons]</strong> mostrará los botones tal y " 258 #~ "como los has configurado en esta página, ¡lo que te permitirá colocarlos " 259 #~ "practicamente en cualquier parte!" 243 260 244 261 #~ msgid "" -
social-sharing-buttons-and-counters/trunk/readme.txt
r2259830 r2269067 5 5 Requires at least: 4.0 6 6 Tested up to: 5.4 7 Stable tag: 1.2. 67 Stable tag: 1.2.7 8 8 License: GPL3 9 9 License URI: https://www.gnu.org/licenses/gpl.html … … 13 13 == Description == 14 14 15 Add buttons to share on Buffer, Facebook, LinkedIn, Telegram, Twitter and WhatsApp.15 Add buttons to share on Buffer, Facebook, LinkedIn, Pinterest, Telegram, Twitter and WhatsApp. 16 16 17 17 This is a simple, responsive and VERY lightweight plugin that offers nice and customizable buttons. … … 20 20 == Features == 21 21 22 - Sharing support for Buffer, Facebook, LinkedIn, Telegram, Twitter and WhatsApp.22 - Sharing support for Buffer, Facebook, LinkedIn, Pinterest, Telegram, Twitter and WhatsApp. 23 23 - Allows you to drag and drop the buttons you want to display. 24 24 - Allows you to reorder the buttons. … … 30 30 - Fully translated into Spanish (es_ES). You can contribute to translate this plugin by contacting the author. 31 31 - This plugin has a small file size and uses the necessary (just a few lines) JavaScript and CSS. 32 - This plugin doesn't use external libraries, only installs font-awesome if hasn't been installed yet.32 - This plugin doesn't use external libraries, only installs Font Awesome if hasn't been installed yet. 33 33 - This plugin doesn't create any tables on the WordPress database. 34 34 … … 52 52 53 53 == Changelog == 54 55 = 1.2.7 date 2020-03-27 = 56 - Added Pinterest 54 57 55 58 = 1.2.6 date 2020-02-11 = -
social-sharing-buttons-and-counters/trunk/social-sharing-buttons-and-counters.php
r2242657 r2269067 3 3 Plugin Name: JC Social Sharing 4 4 Description: A lightweight SEO-friendly plugin that allows you to share your posts and get more traffic 5 Version: 1.2. 65 Version: 1.2.7 6 6 Author: JC 7 7 Author URI: https://josecarlosroman.com/ … … 19 19 define( 'JCSS_PLUGIN_DIR', plugin_dir_path(__FILE__) ); 20 20 define( 'JCSS_PLUGIN_URL', plugin_dir_url(__FILE__) ); 21 define( 'JCSS_VERSION', '1.2. 6' );21 define( 'JCSS_VERSION', '1.2.7' ); 22 22 23 23 require_once JCSS_PLUGIN_DIR . 'inc/functions.php';
Note: See TracChangeset
for help on using the changeset viewer.