Changeset 1074931
- Timestamp:
- 01/24/2015 05:28:51 PM (11 years ago)
- Location:
- osd-social-media-sharing
- Files:
-
- 16 added
- 5 edited
-
tags/3.0.1 (added)
-
tags/3.0.1/images (added)
-
tags/3.0.1/images/icon.png (added)
-
tags/3.0.1/images/icons.png (added)
-
tags/3.0.1/includes (added)
-
tags/3.0.1/includes/OSDSocialShare.php (added)
-
tags/3.0.1/includes/admin_js.js (added)
-
tags/3.0.1/includes/admin_style.css (added)
-
tags/3.0.1/includes/global_settings.php (added)
-
tags/3.0.1/includes/installation_actions.php (added)
-
tags/3.0.1/includes/js.php (added)
-
tags/3.0.1/includes/post_settings.php (added)
-
tags/3.0.1/includes/style.css (added)
-
tags/3.0.1/osd_social_media_sharing.php (added)
-
tags/3.0.1/readme.txt (added)
-
tags/3.0.1/uninstall.php (added)
-
trunk/includes/OSDSocialShare.php (modified) (3 diffs)
-
trunk/includes/admin_js.js (modified) (1 diff)
-
trunk/includes/installation_actions.php (modified) (2 diffs)
-
trunk/osd_social_media_sharing.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
osd-social-media-sharing/trunk/includes/OSDSocialShare.php
r1074385 r1074931 40 40 } 41 41 42 private function share_link($platform, $button_title ) {42 private function share_link($platform, $button_title, $custom_url) { 43 43 $target = ($this->user_settings['target'] == 'new' && $platform != "email") ? "_blank" : "_self"; 44 $custom_url = (isset($atts['url'])) ? $atts['url'] : '';45 44 46 45 switch ($platform) { … … 64 63 break; 65 64 default: 66 $url = $ atts['url'];65 $url = $custom_url; 67 66 break; 68 67 } 69 return "<a class='osd-sms-link {$class}' data-platform='{$platform}' target='{$target}' title='{$button_title}' href='{$url}' rel='nofollow'>";68 return "<a class='osd-sms-link' data-platform='{$platform}' target='{$target}' title='{$button_title}' href='{$url}' rel='nofollow'>"; 70 69 } 71 70 … … 94 93 $button_title = (isset($option['service-name'])) ? $option['service-name'] : ucfirst($platform); 95 94 $button_title = "Click to share on ".$button_title; 95 $custom_url = (isset($option['url'])) ? $option['url'] : ''; 96 96 97 if (isset($option['enabled']) && $option['enabled'] == 1) { 97 98 if (isset($option['button-type']) && $option['button-type'] == 'icon') { 98 99 if (isset($option['icon']) && $option['icon'] != '') { 99 $html .= "<div class='osd-sms-icon-button'>".$this->share_link($platform, $button_title )."<img src='".wp_get_attachment_url($option['icon'])."' /></a></div>";100 $html .= "<div class='osd-sms-icon-button'>".$this->share_link($platform, $button_title, $custom_url)."<img src='".wp_get_attachment_url($option['icon'])."' /></a></div>"; 100 101 } else { 101 $html .= "<div class='osd-sms-icon-button osd-no-custom-icon'>".$this->share_link($platform, $button_title )."</a></div>";102 $html .= "<div class='osd-sms-icon-button osd-no-custom-icon'>".$this->share_link($platform, $button_title, $custom_url)."</a></div>"; 102 103 } 103 104 } else { 104 105 if (isset($option['service-name'])) { 105 $html .= "<div class='osd-sms-text-button'>".$this->share_link($platform, $button_title ).$option['service-name']."</a></div>";106 $html .= "<div class='osd-sms-text-button'>".$this->share_link($platform, $button_title, $custom_url).$option['service-name']."</a></div>"; 106 107 } else { 107 $html .= "<div class='osd-sms-text-button'>".$this->share_link($platform, $button_title ).ucfirst($platform)."</a></div>";108 $html .= "<div class='osd-sms-text-button'>".$this->share_link($platform, $button_title, $custom_url).ucfirst($platform)."</a></div>"; 108 109 } 109 110 } -
osd-social-media-sharing/trunk/includes/admin_js.js
r1074385 r1074931 75 75 new_row += "<td>"; 76 76 new_row += "<div class='text-preview' style='display: none;'></div>"; 77 new_row += "<div class='icon-preview'>< /div>";77 new_row += "<div class='icon-preview'><div class='osd-sms-icon-button osd-no-custom-icon'><div class='osd-sms-link'></div></div></div>"; 78 78 new_row += "<input class='icon-id' name='osd_social_share_options[services]["+new_id+"][icon]' type='hidden' value='' />"; 79 79 new_row += "<input class='platform' type='hidden' value='"+new_id+"' />"; -
osd-social-media-sharing/trunk/includes/installation_actions.php
r1074385 r1074931 3 3 defined('ABSPATH') or die("No script kiddies please!"); 4 4 5 if (get_option('osd_social_share_options') === false) { 5 $options = get_option('osd_social_share_options'); 6 if ($options === false || !isset($options['services']['email'])) { 6 7 $default_options = array( 7 8 'label' => 'Share this:', … … 49 50 ); 50 51 51 add_option('osd_social_share_options', $default_options, '', 'yes'); 52 if ($options === false) { 53 add_option('osd_social_share_options', $default_options, '', 'yes'); 54 } else { 55 update_option('osd_social_share_options', $default_options); 56 } 52 57 } -
osd-social-media-sharing/trunk/osd_social_media_sharing.php
r1074385 r1074931 4 4 Plugin URI: http://outsidesource.com 5 5 Description: Add buttons to share any of your content on facebook, twitter, google plus, pinterest, email and more. 6 Version: 3.0 6 Version: 3.0.1 7 7 Author: OSD Web Development Team 8 8 Author URI: http://outsidesource.com -
osd-social-media-sharing/trunk/readme.txt
r1074385 r1074931 4 4 Requires at least: 3.4 5 5 Tested up to: 4.1 6 Stable tag: 3.0 6 Stable tag: 3.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 91 91 == Upgrade Notice == 92 92 93 = 3.0.1 = 94 * Upgrade bug fixes 95 * YOU MUST DE-ACTIVATE AND THEN ACTIVATE THE PLUGIN TO HAVE A SUCCESSFUL UPGRAGE TO 3.0 96 93 97 = 3.0 = 94 98 * THIS UPGRADE WILL REQUIRE YOU TO RESET YOUR SETTINGS!!!!
Note: See TracChangeset
for help on using the changeset viewer.