Changeset 2185770
- Timestamp:
- 11/04/2019 07:19:56 PM (6 years ago)
- Location:
- social-sharing-buttons-and-counters/trunk
- Files:
-
- 8 edited
-
assets/css/jc-social-sharing.css (modified) (1 diff)
-
assets/js/jc-social-sharing.js (modified) (1 diff)
-
inc/admin-page.php (modified) (1 diff)
-
inc/admin.php (modified) (1 diff)
-
inc/functions.php (modified) (2 diffs)
-
inc/template-functions.php (modified) (2 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
r2181062 r2185770 20 20 #jcss-buffer { background: #231F20; } 21 21 22 #jcss-email { background: #0072c6; } 23 22 24 #jcss-facebook { background: #3B5998; } 23 25 -
social-sharing-buttons-and-counters/trunk/assets/js/jc-social-sharing.js
r2181062 r2185770 3 3 var buttons = document.getElementsByClassName('jcss-button'); 4 4 for (var i = 0; i< buttons.length; i++) { 5 if (buttons[i].id === 'jcss-email') continue; 5 6 buttons[i].addEventListener('click', function(e) { 6 7 e.preventDefault(); -
social-sharing-buttons-and-counters/trunk/inc/admin-page.php
r2110263 r2185770 10 10 <div class="wrap"> 11 11 12 <h2> Social Sharing Buttons</h2>12 <h2> JC Social Sharing </h2> 13 13 14 14 <?php $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'buttons'; ?> -
social-sharing-buttons-and-counters/trunk/inc/admin.php
r2103525 r2185770 33 33 } 34 34 35 function jcss_add_menu() {36 add_options_page( ' Social Sharing Buttons', 'Social Sharing Buttons', 'manage_options', 'social-sharing-buttons-jc', 'jcss_admin_page');35 function jcss_add_menu() { 36 add_options_page( 'JC Social Sharing', 'JC Social Sharing', 'manage_options', 'social-sharing-buttons-jc', 'jcss_admin_page'); 37 37 } -
social-sharing-buttons-and-counters/trunk/inc/functions.php
r2181062 r2185770 55 55 $fa_classname = $advanced['fa4'] === 'on' ? 'fa ' : 'fab '; 56 56 switch ($social) { 57 case 'email' : return $advanced['fa4'] === 'on' ? 'fa fa-envelope' : 'fas fa-envelope'; 57 58 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'); 59 60 default: return $fa_classname . "fa-$social"; 60 61 } … … 77 78 78 79 function 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'); 80 81 $values_array = explode(',', $values); 81 82 -
social-sharing-buttons-and-counters/trunk/inc/template-functions.php
r2181062 r2185770 38 38 <?php jcss_get_social_name($options, $social); ?> 39 39 </a> <?php 40 break; 40 break; 41 41 case "Twitter": ?> 42 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" > … … 55 55 <i class="<?php echo jcss_get_fa_classnames($advanced, 'buffer'); ?>"></i> 56 56 <?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); ?> 57 63 </a> <?php 58 64 break; -
social-sharing-buttons-and-counters/trunk/readme.txt
r2181062 r2185770 1 === Social Sharing Buttons===1 === JC Social Sharing === 2 2 Contributors: jcrr 3 3 Tags: social, share, buttons, facebook, twitter, whatsapp, telegram … … 5 5 Requires at least: 4.0 6 6 Tested up to: 5.3 7 Stable tag: 1.2. 47 Stable tag: 1.2.5 8 8 License: GPL3 9 9 License URI: https://www.gnu.org/licenses/gpl.html … … 20 20 == Features == 21 21 22 - Sharing support for Buffer, Facebook, LinkedIn, T witter and WhatsApp.22 - Sharing support for Buffer, Facebook, LinkedIn, 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. … … 41 41 42 42 == Installation == 43 1.1. From your WordPress dashboard: Plugins -> New Plugin, search for " Social Sharing Buttons" and click install.43 1.1. From your WordPress dashboard: Plugins -> New Plugin, search for "JC Social Sharing" and click install. 44 44 1.2. From the WordPress directory: Download the plugin and copy the zip file to the "/wp-content/plugins/" folder of your WordPress installation. 45 45 2. Activate the plugin. 46 3. Go to the settings page (Settings -> Social Sharing Buttons) and that's it!46 3. Go to the settings page (Settings -> JC Social Sharing) and that's it! 47 47 48 48 == Screenshots == … … 53 53 == Changelog == 54 54 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 = 56 60 - Added Telegram. 57 61 - Fixed the WhatsApp share link. 58 62 59 = 1.2.3 ,date 2019-06-21 =63 = 1.2.3 date 2019-06-21 = 60 64 - Added the possibility to add the buttons both after and before the post content. 61 65 - Added the possibility to choose whether or not to hide the social names on mobile. 62 66 63 = 1.2.2 ,date 2019-06-10 =67 = 1.2.2 date 2019-06-10 = 64 68 - Added compatibility with themes that still use Font Awesome 4. 65 69 66 = 1.2.1 ,date 2019-06-09 =70 = 1.2.1 date 2019-06-09 = 67 71 - Removed Google+ (no longer available). 68 72 - Added Buffer. 69 73 - 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). 70 74 71 = 1.2.0 ,date 2019-05-31 =75 = 1.2.0 date 2019-05-31 = 72 76 73 77 - Removed the shares count because of the unreliable APIs. 74 78 - Added animations and another features. 75 79 76 = 1.1.6 ,date 2018-10-20 =80 = 1.1.6 date 2018-10-20 = 77 81 78 82 - Changed the plugin name. 79 83 - Compatible with WordPress 5.0 and the latest PHP versions. 80 84 81 = 1.1.5 ,date 2017-11-17 =85 = 1.1.5 date 2017-11-17 = 82 86 83 87 - Custom font family for buttons. 84 88 - Compatible with WordPress 4.9 and PHP 7.1 85 89 86 = 1.1.4 ,date 2017-09-27 =90 = 1.1.4 date 2017-09-27 = 87 91 88 92 - Some minor CSS changes. 89 93 90 = 1.1.3 ,date 2017-08-11 =94 = 1.1.3 date 2017-08-11 = 91 95 92 96 - Fixed some minor issues (admin page tabs) and improved the buttons look and feel (small devices) 93 97 94 = 1.1.2 ,date 2017-08-08 =98 = 1.1.2 date 2017-08-08 = 95 99 96 100 - 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! 97 101 - Plugins options are now deleted after uninstallation :) 98 102 99 = 1.1.1 ,date 2017-08-03 =103 = 1.1.1 date 2017-08-03 = 100 104 101 105 - Fixed some CSS styles (counter alignment) and some other minor issues 102 106 103 = 1.1.0 ,date 2017-04-12 =107 = 1.1.0 date 2017-04-12 = 104 108 105 109 - New settings page with tabs! 106 110 - Added some customization to the counter 107 111 108 = 1.0.1 ,date 2017-04-08 =112 = 1.0.1 date 2017-04-08 = 109 113 110 114 - Changed the text domain 111 115 112 = 1.0.0 ,date 2017-04-07 =116 = 1.0.0 date 2017-04-07 = 113 117 114 118 - Initial release. -
social-sharing-buttons-and-counters/trunk/social-sharing-buttons-and-counters.php
r2181064 r2185770 1 1 <?php 2 2 /* 3 Plugin Name: Social Sharing Buttons3 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. 45 Version: 1.2.5 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. 4' );21 define( 'JCSS_VERSION', '1.2.5' ); 22 22 23 23 require_once JCSS_PLUGIN_DIR . 'inc/functions.php';
Note: See TracChangeset
for help on using the changeset viewer.