Plugin Directory

Changeset 2185770


Ignore:
Timestamp:
11/04/2019 07:19:56 PM (6 years ago)
Author:
jcrr
Message:

Added the option to share via email

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

Legend:

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

    r2181062 r2185770  
    2020#jcss-buffer { background: #231F20; }
    2121
     22#jcss-email { background: #0072c6; }
     23
    2224#jcss-facebook {  background: #3B5998; }
    2325
  • social-sharing-buttons-and-counters/trunk/assets/js/jc-social-sharing.js

    r2181062 r2185770  
    33    var buttons = document.getElementsByClassName('jcss-button');
    44    for (var i = 0; i< buttons.length; i++) {
     5        if (buttons[i].id === 'jcss-email') continue;
    56        buttons[i].addEventListener('click', function(e) {   
    67            e.preventDefault();
  • social-sharing-buttons-and-counters/trunk/inc/admin-page.php

    r2110263 r2185770  
    1010    <div class="wrap">     
    1111
    12         <h2> Social Sharing Buttons </h2>
     12        <h2> JC Social Sharing </h2>
    1313
    1414        <?php $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'buttons'; ?>
  • social-sharing-buttons-and-counters/trunk/inc/admin.php

    r2103525 r2185770  
    3333}
    3434
    35 function jcss_add_menu(){
    36     add_options_page( 'Social Sharing Buttons', 'Social Sharing Buttons', 'manage_options', 'social-sharing-buttons-jc', 'jcss_admin_page');
     35function jcss_add_menu() {
     36    add_options_page( 'JC Social Sharing', 'JC Social Sharing', 'manage_options', 'social-sharing-buttons-jc', 'jcss_admin_page');
    3737}
  • social-sharing-buttons-and-counters/trunk/inc/functions.php

    r2181062 r2185770  
    5555    $fa_classname =  $advanced['fa4'] === 'on' ? 'fa ' : 'fab ';
    5656    switch ($social) {
     57        case 'email' : return $advanced['fa4'] === 'on' ? 'fa fa-envelope' : 'fas fa-envelope';
    5758        case 'facebook' : return $fa_classname . ($advanced['fa4'] === 'on' ? 'fa-facebook' : 'fa-facebook-f');
    58         case 'linkedin' : return $fa_classname . ($advanced['fa4'] === 'on' ? 'fa-linkedin' : 'fa-linkedin-in');
     59        case 'linkedin' : return $fa_classname . ($advanced['fa4'] === 'on' ? 'fa-linkedin' : 'fa-linkedin-in'); 
    5960        default: return $fa_classname . "fa-$social"; 
    6061    }
     
    7778
    7879function jcss_get_social_list( $values, $include_values ) {
    79     $socials = array('Facebook', 'Twitter', 'LinkedIn', 'Buffer', 'Telegram', 'WhatsApp');
     80    $socials = array('Facebook', 'Twitter', 'LinkedIn', 'Buffer', 'Telegram', 'Email', 'WhatsApp');
    8081    $values_array = explode(',', $values);
    8182
  • social-sharing-buttons-and-counters/trunk/inc/template-functions.php

    r2181062 r2185770  
    3838                        <?php jcss_get_social_name($options, $social); ?>
    3939                    </a>  <?php
    40                 break;
     40                break; 
    4141                case "Twitter": ?>
    4242                    <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" >
     
    5555                        <i class="<?php echo jcss_get_fa_classnames($advanced, 'buffer'); ?>"></i>
    5656                        <?php jcss_get_social_name($options, $social);  ?>
     57                    </a>  <?php
     58                break;
     59                case "Email": ?>
     60                    <a id="jcss-email" rel="external nofollow" class="jcss-button jcss-email" href="mailto:?subject=<?php echo $title; ?>&body=<?php echo $url ?>" target="_blank" >
     61                        <i class="<?php echo jcss_get_fa_classnames($advanced, 'email'); ?>"></i>
     62                        <?php jcss_get_social_name($options, $social); ?>
    5763                    </a>  <?php
    5864                break;
  • social-sharing-buttons-and-counters/trunk/readme.txt

    r2181062 r2185770  
    1 === Social Sharing Buttons ===
     1=== JC Social Sharing ===
    22Contributors: jcrr
    33Tags: social, share, buttons, facebook, twitter, whatsapp, telegram
     
    55Requires at least: 4.0
    66Tested up to: 5.3
    7 Stable tag: 1.2.4
     7Stable tag: 1.2.5
    88License: GPL3
    99License URI: https://www.gnu.org/licenses/gpl.html
     
    2020== Features ==
    2121
    22 - Sharing support for Buffer, Facebook, LinkedIn, Twitter and WhatsApp.
     22- Sharing support for Buffer, Facebook, LinkedIn, Telegram, Twitter and WhatsApp.
    2323- Allows you to drag and drop the buttons you want to display.
    2424- Allows you to reorder the buttons.
     
    4141
    4242== Installation ==
    43 1.1. From your WordPress dashboard: Plugins -> New Plugin, search for "Social Sharing Buttons" and click install.
     431.1. From your WordPress dashboard: Plugins -> New Plugin, search for "JC Social Sharing" and click install.
    44441.2. From the WordPress directory: Download the plugin and copy the zip file to the "/wp-content/plugins/" folder of your WordPress installation.
    45452. Activate the plugin.
    46 3. Go to the settings page (Settings -> Social Sharing Buttons) and that's it!
     463. Go to the settings page (Settings -> JC Social Sharing) and that's it!
    4747
    4848== Screenshots ==
     
    5353== Changelog ==
    5454
    55 = 1.2.4, date 2019-10-27 =
     55= 1.2.5 date 2019-11-04 =
     56- Changed the plugin name.
     57- Added the option to share via email.
     58
     59= 1.2.4 date 2019-10-27 =
    5660- Added Telegram.
    5761- Fixed the WhatsApp share link.
    5862
    59 = 1.2.3, date 2019-06-21 =
     63= 1.2.3 date 2019-06-21 =
    6064- Added the possibility to add the buttons both after and before the post content.
    6165- Added the possibility to choose whether or not to hide the social names on mobile.
    6266
    63 = 1.2.2, date 2019-06-10 =
     67= 1.2.2 date 2019-06-10 =
    6468- Added compatibility with themes that still use Font Awesome 4.
    6569
    66 = 1.2.1, date 2019-06-09 =
     70= 1.2.1 date 2019-06-09 =
    6771- Removed Google+ (no longer available).
    6872- Added Buffer.
    6973- Upgraded Font Awesome to version 5. If your theme is using a previous version please upgrade in order for the icons to be rendered. If not, just ignore this notice (Font Awesome will be installed by this plugin if needed).
    7074
    71 = 1.2.0, date 2019-05-31 =
     75= 1.2.0 date 2019-05-31 =
    7276
    7377- Removed the shares count because of the unreliable APIs.
    7478- Added animations and another features.
    7579
    76 = 1.1.6, date 2018-10-20 =
     80= 1.1.6 date 2018-10-20 =
    7781
    7882- Changed the plugin name.
    7983- Compatible with WordPress 5.0 and the latest PHP versions.
    8084
    81 = 1.1.5, date 2017-11-17 =
     85= 1.1.5 date 2017-11-17 =
    8286
    8387- Custom font family for buttons.
    8488- Compatible with WordPress 4.9 and PHP 7.1
    8589
    86 = 1.1.4, date 2017-09-27 =
     90= 1.1.4 date 2017-09-27 =
    8791
    8892- Some minor CSS changes.
    8993
    90 = 1.1.3, date 2017-08-11 =
     94= 1.1.3 date 2017-08-11 =
    9195
    9296- Fixed some minor issues (admin page tabs) and improved the buttons look and feel (small devices)
    9397
    94 = 1.1.2, date 2017-08-08 =
     98= 1.1.2 date 2017-08-08 =
    9599
    96100- Performance optimization: We're not loading the CSS and JS file when no post type is selected since we won't diplay the buttons anywhere!
    97101- Plugins options are now deleted after uninstallation :)
    98102
    99 = 1.1.1, date 2017-08-03 =
     103= 1.1.1 date 2017-08-03 =
    100104
    101105- Fixed some CSS styles (counter alignment) and some other minor issues
    102106
    103 = 1.1.0, date 2017-04-12 =
     107= 1.1.0 date 2017-04-12 =
    104108
    105109- New settings page with tabs!
    106110- Added some customization to the counter
    107111
    108 = 1.0.1, date 2017-04-08 =
     112= 1.0.1 date 2017-04-08 =
    109113
    110114- Changed the text domain
    111115
    112 = 1.0.0, date 2017-04-07 =
     116= 1.0.0 date 2017-04-07 =
    113117
    114118- Initial release.
  • social-sharing-buttons-and-counters/trunk/social-sharing-buttons-and-counters.php

    r2181064 r2185770  
    11<?php
    22/*
    3 Plugin Name: Social Sharing Buttons
     3Plugin 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.4
     5Version:     1.2.5
    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.4' );
     21define( 'JCSS_VERSION', '1.2.5' );
    2222
    2323require_once JCSS_PLUGIN_DIR . 'inc/functions.php';
Note: See TracChangeset for help on using the changeset viewer.