Plugin Directory

Changeset 1051605


Ignore:
Timestamp:
12/22/2014 02:27:02 PM (11 years ago)
Author:
osdwebdev
Message:

2.2.0 Release

Location:
osd-social-media-sharing
Files:
15 added
4 edited

Legend:

Unmodified
Added
Removed
  • osd-social-media-sharing/trunk/includes/OSDSocialShare.php

    r1036713 r1051605  
    6262                break;
    6363            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}";
    6565                break;
    6666        }
     
    8484        $this->text = '';
    8585        $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());
    8789
    8890        foreach ($options as $platform => $option) {
  • osd-social-media-sharing/trunk/includes/global_settings.php

    r1028042 r1051605  
    8686
    8787        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(
    8896            'post_types', // ID
    8997            'Show Sharing Buttons On', // Title
     
    155163                <option value='same'".(($this->options['target'] == 'same') ? ' selected=\"selected\"' : '').">Same Window</option>
    156164            </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        );
    157172    }
    158173
  • osd-social-media-sharing/trunk/osd_social_media_sharing.php

    r1036713 r1051605  
    44Plugin URI: http://outsidesource.com
    55Description: Add buttons to share any of your content on facebook, twitter, google plus, pinterest, email and more.
    6 Version: 2.1.3
     6Version: 2.2.0
    77Author: OSD Web Development Team
    88Author URI: http://outsidesource.com
  • osd-social-media-sharing/trunk/readme.txt

    r1036713 r1051605  
    44Requires at least: 3.4
    55Tested up to: 4.0
    6 Stable tag: 2.1.3
     6Stable tag: 2.2.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040
    4141== Changelog ==
     42
     43= 2.2.0 =
     44* Added page url to email button
     45* Added ability to change the default send to mail address
    4246
    4347= 2.1.3 =
Note: See TracChangeset for help on using the changeset viewer.