Plugin Directory

Changeset 2304300


Ignore:
Timestamp:
05/13/2020 04:16:24 PM (6 years ago)
Author:
jcrr
Message:

Added Reddit

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

Legend:

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

    r2269067 r2304300  
    2828#jcss-pinterest {  background: #bd081c; }
    2929
     30#jcss-reddit { background: #FF5700; }
     31
    3032#jcss-telegram {  background: #0088cc; }
    3133
  • social-sharing-buttons-and-counters/trunk/assets/js/jc-social-sharing-admin.js

    r1632461 r2304300  
    11jQuery(function($) {
    2    
    3     $( ".sortable" ).sortable({
    4         connectWith: ".connectable",
     2    $( '.sortable' ).sortable({
     3        connectWith: '.connectable',
    54        helper: 'clone',
    6         update:  function( ) {
    7             updateSocialOptions();
    8             checkTwitter();
     5        update:  function() {
     6            // update social options
     7            $('#social-options').val($('#social-selected ul .social-list-item li span').map(function() {
     8                return $(this).html();
     9            }).get());
     10            // check Twitter
     11            $( '#social-selected #Twitter' ).length ? $( '#twitter-username' ).show() : $( "#twitter-username" ).hide();
    912        }
    1013    }).disableSelection();
    1114});
    12 
    13 function updateSocialOptions()
    14 {
    15     jQuery("#social-options").val(jQuery("#social-selected ul .social-list-item li span").map(function() {
    16        return jQuery(this).html();
    17     }).get());
    18 }
    19 
    20 function checkTwitter() {
    21     if ( jQuery( "#social-selected").find("#Twitter").length > 0) {
    22         jQuery( "#twitter-username" ).show();
    23     }
    24     else {
    25         jQuery( "#twitter-username" ).hide();     
    26     }
    27 }
  • social-sharing-buttons-and-counters/trunk/inc/functions.php

    r2269067 r2304300  
    7979
    8080function jcss_get_social_list( $values, $include_values ) {
    81     $socials = array('Facebook', 'Twitter', 'LinkedIn', 'Buffer', 'Pinterest', 'Telegram', 'Email', 'WhatsApp');
     81    $socials = array('Facebook', 'Twitter', 'LinkedIn', 'Buffer', 'Pinterest', 'Reddit', 'Telegram', 'Email', 'WhatsApp');
    8282    $values_array = explode(',', $values);
    8383
  • social-sharing-buttons-and-counters/trunk/inc/template-functions.php

    r2269067 r2304300  
    6767                    </a>  <?php
    6868                break;
     69                case "Reddit": ?>
     70                    <a id="jcss-reddit" rel="external nofollow" class="jcss-button" href="https://www.reddit.com/submit?url=<?php echo $url; ?>&title=<?php echo $title; ?>" target="_blank" >
     71                        <i class="<?php echo jcss_get_fa_classnames($advanced, 'reddit'); ?>"></i>
     72                        <?php jcss_get_social_name($options, $social); ?>
     73                    </a>  <?php
     74                break;
    6975                case "Telegram": ?>
    7076                    <a id="jcss-telegram" rel="external nofollow" class="jcss-button" href="https://telegram.me/share/url?url=<?php echo $url; ?>&text=<?php echo $title; ?>" target="_blank" >
  • social-sharing-buttons-and-counters/trunk/readme.txt

    r2269067 r2304300  
    11=== JC Social Sharing ===
    22Contributors: jcrr
    3 Tags: social, share, buttons, facebook, twitter, whatsapp, telegram
     3Tags: social, buttons, facebook, twitter, whatsapp, telegram, share
    44Donate link: https://www.paypal.me/jcrr
    55Requires at least: 4.0
    66Tested up to: 5.4
    7 Stable tag: 1.2.7
     7Stable tag: 1.2.8
    88License: GPL3
    99License URI: https://www.gnu.org/licenses/gpl.html
     
    1313== Description ==
    1414
    15 Add buttons to share on Buffer, Facebook, LinkedIn, Pinterest, Telegram, Twitter and WhatsApp.
     15Add buttons to share your posts on Buffer, Facebook, LinkedIn, Pinterest, Reddit, 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, Pinterest, Telegram, Twitter and WhatsApp.
    2322- Allows you to drag and drop the buttons you want to display.
    2423- Allows you to reorder the buttons.
    25 - Allows you to display the buttons after/before the text content.
    26 - Allows you to display a text before/above the buttons
    27 - Allows you to hide the social media names.
     24- Allows you to display the buttons after/before the post content.
     25- Allows you to display a custom text before/above the buttons.
     26- Allows you to hide the social networks names.
    2827- Allows you to play animations on hover.
    2928- Fully responsive.
    3029- Fully translated into Spanish (es_ES). You can contribute to translate this plugin by contacting the author.
    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.
    33 - This plugin doesn't create any tables on the WordPress database.
     30- SEO-friendly: This plugin has a small file size and uses the necessary PHP, JS and CSS code.
     31- SEO-friendly: No external libraries (only uses Font Awesome if hasn't been installed yet).
     32- SEO-friendly: No external requests.
     33- Sharing support for Buffer, Facebook, LinkedIn, Pinterest, Reddit, Telegram, Twitter and WhatsApp.   
    3434
    3535== Support ==
     
    5252
    5353== Changelog ==
     54
     55= 1.2.8 date 2020-05-13 =
     56- Added Reddit
    5457
    5558= 1.2.7 date 2020-03-27 =
  • social-sharing-buttons-and-counters/trunk/social-sharing-buttons-and-counters.php

    r2269067 r2304300  
    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.7
     5Version:     1.2.8
    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.7' );
     21define( 'JCSS_VERSION', '1.2.8' );
    2222
    2323require_once JCSS_PLUGIN_DIR . 'inc/functions.php';
Note: See TracChangeset for help on using the changeset viewer.