Changeset 1051605
- Timestamp:
- 12/22/2014 02:27:02 PM (11 years ago)
- Location:
- osd-social-media-sharing
- Files:
-
- 15 added
- 4 edited
-
tags/2.2.0 (added)
-
tags/2.2.0/images (added)
-
tags/2.2.0/images/icon.png (added)
-
tags/2.2.0/images/icons.svg (added)
-
tags/2.2.0/includes (added)
-
tags/2.2.0/includes/OSDSocialShare.php (added)
-
tags/2.2.0/includes/admin_js.js (added)
-
tags/2.2.0/includes/admin_style.css (added)
-
tags/2.2.0/includes/global_settings.php (added)
-
tags/2.2.0/includes/js.php (added)
-
tags/2.2.0/includes/post_settings.php (added)
-
tags/2.2.0/includes/style.css (added)
-
tags/2.2.0/osd_social_media_sharing.php (added)
-
tags/2.2.0/readme.txt (added)
-
tags/2.2.0/uninstall.php (added)
-
trunk/includes/OSDSocialShare.php (modified) (2 diffs)
-
trunk/includes/global_settings.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
r1036713 r1051605 62 62 break; 63 63 case 'email': 64 $url = "mailto: someone@example.com?subject={$this->email_subject}&body={$this->text}";64 $url = "mailto:{$this->email_to}?subject={$this->email_subject}&body={$this->email_body}"; 65 65 break; 66 66 } … … 84 84 $this->text = ''; 85 85 $this->post_title = urlencode(get_the_title()); 86 $this->email_subject = get_the_title(); 86 $this->email_to = rawurlencode($options['emailTo']); 87 $this->email_subject = rawurlencode(get_the_title()); 88 $this->email_body = rawurlencode(get_permalink()); 87 89 88 90 foreach ($options as $platform => $option) { -
osd-social-media-sharing/trunk/includes/global_settings.php
r1028042 r1051605 86 86 87 87 add_settings_field( 88 'emailTo', // ID 89 'Email Sharing "To:" Address', // Title 90 array($this, 'emailTo_callback'), // Callback 91 'osd-social-share-options', // Page 92 'available_settings' // Section 93 ); 94 95 add_settings_field( 88 96 'post_types', // ID 89 97 'Show Sharing Buttons On', // Title … … 155 163 <option value='same'".(($this->options['target'] == 'same') ? ' selected=\"selected\"' : '').">Same Window</option> 156 164 </select>"; 165 } 166 167 public function emailTo_callback() { 168 printf( 169 '<input type="text" id="emailTo" name="osd_social_share_options[emailTo]" value="%s" />', 170 isset($this->options['emailTo']) ? esc_attr($this->options['emailTo']) : 'someone@example.com' 171 ); 157 172 } 158 173 -
osd-social-media-sharing/trunk/osd_social_media_sharing.php
r1036713 r1051605 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: 2. 1.36 Version: 2.2.0 7 7 Author: OSD Web Development Team 8 8 Author URI: http://outsidesource.com -
osd-social-media-sharing/trunk/readme.txt
r1036713 r1051605 4 4 Requires at least: 3.4 5 5 Tested up to: 4.0 6 Stable tag: 2. 1.36 Stable tag: 2.2.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 41 41 == Changelog == 42 43 = 2.2.0 = 44 * Added page url to email button 45 * Added ability to change the default send to mail address 42 46 43 47 = 2.1.3 =
Note: See TracChangeset
for help on using the changeset viewer.