Plugin Directory

Changeset 2269067


Ignore:
Timestamp:
03/27/2020 12:50:41 PM (6 years ago)
Author:
jcrr
Message:

Added Pinterest

Location:
social-sharing-buttons-and-counters/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • social-sharing-buttons-and-counters/trunk/assets/css/jc-social-sharing.css

    r2185770 r2269067  
    2626#jcss-linkedin {  background: #007bb5; }
    2727
     28#jcss-pinterest {  background: #bd081c; }
     29
    2830#jcss-telegram {  background: #0088cc; }
    2931
  • social-sharing-buttons-and-counters/trunk/inc/admin-page.php

    r2242657 r2269067  
    2424                <?php _e('Animation', 'social-sharing-buttons-jc'); ?>
    2525            </a>
    26             <a href="?page=social-sharing-buttons-jc&tab=shortcodes" class="nav-tab <?php echo $active_tab == 'shortcodes' ? 'nav-tab-active' : ''; ?>">
    27                 Shortcodes
    28             </a>
    2926        </h2>
    3027
     
    6057                                        <input id="twitter-username" type="text" name="jcss_buttons_options[twitter_username]"
    6158                                            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 wanted it 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>
    6360
    6461                                </div>
     
    109106                                            <label>
    110107                                                <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); ?>
    112109                                            </label>
    113110                                        </li>
     
    166163                        <tr>
    167164                            <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>
    169166                            </th>
    170167                            <td id="use-fa4">       
    171168                                <label>
    172169                                    <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') ?>
    174171                                </label>
    175172                            </td>           
     
    182179                                <label>
    183180                                    <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') ?>
    185182                                </label>
    186183                            </td>           
     
    190187                <?php submit_button(); ?>
    191188            </form> <?php
    192         } else if ( $active_tab === 'animation' ) {
     189        } else { // animation
    193190            $options = jcss_get_animation_options(); ?>
    194191            <form action="options.php" method="post">         
     
    240237                <?php submit_button(); ?>   
    241238            </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             <?php
    246239        } ?>         
    247240    </div> <?php
  • social-sharing-buttons-and-counters/trunk/inc/functions.php

    r2242657 r2269067  
    7979
    8080function 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');
    8282    $values_array = explode(',', $values);
    8383
  • social-sharing-buttons-and-counters/trunk/inc/plugin.php

    r2242657 r2269067  
    2929            $font_awesome = array('font-awesome', 'fontawesome', 'font_awesome');       
    3030            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');
    3232            }     
    3333        }
  • social-sharing-buttons-and-counters/trunk/inc/template-functions.php

    r2185770 r2269067  
    1414    $url = get_permalink();
    1515   
     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
    1620    $socials =  explode(',', $options['social_options']);
    1721    $twitter_username = $options['twitter_username'];
     
    3337        foreach ($socials as $social) {
    3438            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>  <?php
    40                 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>  <?php
    46                 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>  <?php
    52                 break;
    5339                case "Buffer": ?>
    5440                    <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" >
     
    6248                        <?php jcss_get_social_name($options, $social); ?>
    6349                    </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
    6468                break;
    6569                case "Telegram": ?>
     
    6771                        <i class="<?php echo jcss_get_fa_classnames($advanced, 'telegram'); ?>"></i>
    6872                        <?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); ?>
    6979                    </a>  <?php
    7080                break;
  • social-sharing-buttons-and-counters/trunk/languages/social-sharing-buttons-jc-es_ES.po

    r2242657 r2269067  
    55"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/social-sharing-"
    66"buttons-and-counters\n"
    7 "POT-Creation-Date: 2020-02-11 18:37:40+00:00\n"
     7"POT-Creation-Date: 2020-03-27 12:35:10+00:00\n"
    88"PO-Revision-Date: \n"
    99"Last-Translator: JC <[email protected]>\n"
     
    3636msgstr "Animación"
    3737
    38 #: inc/admin-page.php:42
     38#: inc/admin-page.php:39
    3939msgid "Social buttons"
    4040msgstr "Redes sociales"
    4141
    42 #: inc/admin-page.php:50
     42#: inc/admin-page.php:47
    4343msgid "Drop below the sharing buttons you want to add"
    4444msgstr "Arrastra abajo las redes sociales que quieres añadir"
    4545
    46 #: inc/admin-page.php:59
     46#: inc/admin-page.php:56
    4747msgid "Twitter username"
    4848msgstr "Usuario de Twitter"
    4949
    50 #: inc/admin-page.php:61
     50#: inc/admin-page.php:58
    5151msgid "username without @"
    5252msgstr "usuario sin la @"
    5353
    54 #: inc/admin-page.php:62
    55 msgid "Enter your username if you wanted it to be appended to the tweets"
     54#: inc/admin-page.php:59
     55msgid "Enter your username if you want it to be appended to the tweets"
    5656msgstr "Introduce tu nombre si quieres que sea añadido a los tweets"
    5757
    58 #: inc/admin-page.php:72
     58#: inc/admin-page.php:69
    5959msgid "Buttons text "
    6060msgstr "Textos en los botones "
    6161
    62 #: inc/admin-page.php:75 inc/admin-page.php:203
     62#: inc/admin-page.php:72 inc/admin-page.php:200
    6363msgid "Yes"
    6464msgstr "Sí"
    6565
    66 #: inc/admin-page.php:76 inc/admin-page.php:204
     66#: inc/admin-page.php:73 inc/admin-page.php:201
    6767msgid "No"
    6868msgstr "No"
    6969
    70 #: inc/admin-page.php:77
     70#: inc/admin-page.php:74
    7171msgid ""
    7272"Display social network names? You can hide them if you don't have enough "
     
    7676"espacio para los botones"
    7777
    78 #: inc/admin-page.php:81
     78#: inc/admin-page.php:78
    7979msgid "Always hide the social networks names on mobile screen sizes."
    8080msgstr "Ocultar siempre los nombres de las redes sociales en móviles."
    8181
    82 #: inc/admin-page.php:89
     82#: inc/admin-page.php:86
    8383msgid "Buttons location"
    8484msgstr "Ubicación de los botones"
    8585
    86 #: inc/admin-page.php:93
     86#: inc/admin-page.php:90
    8787msgid "Before content"
    8888msgstr "Antes del contenido"
    8989
    90 #: inc/admin-page.php:94
     90#: inc/admin-page.php:91
    9191msgid "After content"
    9292msgstr "Después del contenido"
    9393
    94 #: inc/admin-page.php:95
     94#: inc/admin-page.php:92
    9595msgid "Both"
    9696msgstr "Antes y después del contenido"
    9797
    98 #: inc/admin-page.php:102
     98#: inc/admin-page.php:99
    9999msgid "Add buttons to"
    100100msgstr "Añadir los botones a"
    101101
    102 #: inc/admin-page.php:121
     102#: inc/admin-page.php:118
    103103msgid "Sharing text"
    104104msgstr "Texto junto a los botones"
    105105
    106 #: inc/admin-page.php:125
     106#: inc/admin-page.php:122
    107107msgid "Share this!"
    108108msgstr "¡Compártelo!"
    109109
    110 #: inc/admin-page.php:126
     110#: inc/admin-page.php:123
    111111msgid ""
    112112"Left the field empty if you don't want to display a text before the sharing "
     
    116116"botones"
    117117
    118 #: inc/admin-page.php:133
     118#: inc/admin-page.php:130
    119119msgid "Sharing text position"
    120120msgstr "Posición del texto"
    121121
    122 #: inc/admin-page.php:137
     122#: inc/admin-page.php:134
    123123msgid "Left"
    124124msgstr "A la izquierda"
    125125
    126 #: inc/admin-page.php:138
     126#: inc/admin-page.php:135
    127127msgid "Above"
    128128msgstr "Arriba"
    129129
    130 #: inc/admin-page.php:144
     130#: inc/admin-page.php:141
    131131msgid "Sharing text weight"
    132132msgstr "Grosor del texto"
    133133
    134 #: inc/admin-page.php:168
    135 msgid "Font Awesome 4 compatibility"
    136 msgstr "Compatibilidad con Font Awesome 4"
    137 
    138 #: inc/admin-page.php:173
    139 msgid ""
    140 "Check ONLY if 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:179
     134#: inc/admin-page.php:165
     135msgid "Font Awesome 4 (2017) compatibility"
     136msgstr "Compatibilidad con Font Awesome 4 (2017)"
     137
     138#: inc/admin-page.php:170
     139msgid ""
     140"Check only if your theme still uses Font Awesome 4, take into account that "
     141"some icons (latest ones) might not be rendered."
     142msgstr ""
     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
    147147msgid "Do not enqueue Font Awesome"
    148148msgstr "No cargar Font Awesome"
    149149
    150 #: inc/admin-page.php:184
    151 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:201
     150#: inc/admin-page.php:181
     151msgid "We strongly recommend that only advanced users check this option."
     152msgstr "Recomendamos que solo usuarios avanzados marquen esta opción."
     153
     154#: inc/admin-page.php:198
    155155msgid "Play animations?"
    156156msgstr "¿Usar animaciones?"
    157157
    158 #: inc/admin-page.php:207
     158#: inc/admin-page.php:204
    159159msgid ""
    160160"Here you can decide whether or not to play animations when hovering over the "
     
    164164"hover sobre los botones."
    165165
    166 #: inc/admin-page.php:212
     166#: inc/admin-page.php:209
    167167msgid "Animation Style"
    168168msgstr "Estilo de la animación"
    169169
     170#: inc/admin-page.php:213
     171msgid "Fade"
     172msgstr ""
     173
     174#: inc/admin-page.php:214
     175msgid "Slide"
     176msgstr ""
     177
     178#: inc/admin-page.php:215
     179msgid "Bounce"
     180msgstr ""
     181
    170182#: inc/admin-page.php:216
    171 msgid "Fade"
    172 msgstr ""
    173 
    174 #: inc/admin-page.php:217
    175 msgid "Slide"
    176 msgstr ""
    177 
    178 #: inc/admin-page.php:218
    179 msgid "Bounce"
    180 msgstr ""
    181 
    182 #: inc/admin-page.php:219
    183183msgid "Spin"
    184184msgstr ""
    185185
    186 #: inc/admin-page.php:225
     186#: inc/admin-page.php:222
    187187msgid "Animation Duration"
    188188msgstr "Duración de la animación"
    189189
    190 #: inc/admin-page.php:229
     190#: inc/admin-page.php:226
    191191msgid "300 miliseconds"
    192192msgstr "300 milisegundos"
    193193
    194 #: inc/admin-page.php:230
     194#: inc/admin-page.php:227
    195195msgid "500 miliseconds"
    196196msgstr "500 milisegundos"
    197197
    198 #: inc/admin-page.php:231
     198#: inc/admin-page.php:228
    199199msgid "700 miliseconds"
    200200msgstr "700 milisegundos"
    201201
    202 #: inc/admin-page.php:232
     202#: inc/admin-page.php:229
    203203msgid "1 second"
    204204msgstr "1 segundo"
    205205
    206 #: inc/admin-page.php:233
     206#: inc/admin-page.php:230
    207207msgid "2 seconds"
    208208msgstr "2 segundos"
    209209
    210 #: inc/admin-page.php:234
     210#: inc/admin-page.php:231
    211211msgid "3 seconds"
    212212msgstr "3 segundos"
    213213
    214 #: inc/admin-page.php:244
    215 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 
    224214#. Plugin Name of the plugin/theme
    225215msgid "JC Social Sharing"
     
    241231msgid "https://josecarlosroman.com/"
    242232msgstr ""
     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!"
    243260
    244261#~ msgid ""
  • social-sharing-buttons-and-counters/trunk/readme.txt

    r2259830 r2269067  
    55Requires at least: 4.0
    66Tested up to: 5.4
    7 Stable tag: 1.2.6
     7Stable tag: 1.2.7
    88License: GPL3
    99License URI: https://www.gnu.org/licenses/gpl.html
     
    1313== Description ==
    1414
    15 Add buttons to share on Buffer, Facebook, LinkedIn, Telegram, Twitter and WhatsApp.
     15Add buttons to share on Buffer, Facebook, LinkedIn, Pinterest, Telegram, Twitter and WhatsApp.
    1616
    1717This is a simple, responsive and VERY lightweight plugin that offers nice and customizable buttons.
     
    2020== Features ==
    2121
    22 - Sharing support for Buffer, Facebook, LinkedIn, Telegram, Twitter and WhatsApp.
     22- Sharing support for Buffer, Facebook, LinkedIn, Pinterest, Telegram, Twitter and WhatsApp.
    2323- Allows you to drag and drop the buttons you want to display.
    2424- Allows you to reorder the buttons.
     
    3030- Fully translated into Spanish (es_ES). You can contribute to translate this plugin by contacting the author.
    3131- 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.
    3333- This plugin doesn't create any tables on the WordPress database.
    3434
     
    5252
    5353== Changelog ==
     54
     55= 1.2.7 date 2020-03-27 =
     56- Added Pinterest
    5457
    5558= 1.2.6 date 2020-02-11 =
  • social-sharing-buttons-and-counters/trunk/social-sharing-buttons-and-counters.php

    r2242657 r2269067  
    33Plugin Name: JC Social Sharing
    44Description: A lightweight SEO-friendly plugin that allows you to share your posts and get more traffic
    5 Version:     1.2.6
     5Version:     1.2.7
    66Author:      JC
    77Author URI:  https://josecarlosroman.com/
     
    1919define( 'JCSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
    2020define( 'JCSS_PLUGIN_URL', plugin_dir_url(__FILE__) );
    21 define( 'JCSS_VERSION', '1.2.6' );
     21define( 'JCSS_VERSION', '1.2.7' );
    2222
    2323require_once JCSS_PLUGIN_DIR . 'inc/functions.php';
Note: See TracChangeset for help on using the changeset viewer.