Plugin Directory

Changeset 890035


Ignore:
Timestamp:
04/09/2014 12:17:32 PM (12 years ago)
Author:
shen045
Message:

Update version to 1.1.0

Location:
crafty-social-buttons/trunk
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • crafty-social-buttons/trunk/README.txt

    r886391 r890035  
    9292== Changelog ==
    9393
     94= 1.1.0 =
     95* Allows you to choose the size of share and link buttons
     96* CSS uses ID instead of class to better protect against theme interference
     97
    9498= 1.0.12 =
    9599* Fixed bug where twitter prompt text wasn't appearing
     
    135139== Upgrade Notice ==
    136140
     141= 1.1.0 =
     142* Allows you to choose the size of share and link buttons
     143
    137144= 1.0.10 =
    138145* Added RSS link button option
     
    167174These are the things currently in the pipeline:
    168175
    169 * Adding an option to choose image sizes for the icons
    170176* Changing the post count feature to request data only after the page is loaded so it doesn't slow things down so much.
     177* Choosing which post types the share buttons are added to
     178* Adding more services (ebay, Xing, Vimeo)
     179* Adding your own icons (in a way that they don't disappear after you update the plugin)
    171180* Option to diplays in archives and category listings (?)
    172181* (Anything else?  You tell me!)
  • crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Admin.php

    r849720 r890035  
    141141        add_settings_field( 'share_image_set', 'Image Set', 
    142142            array($this, 'renderImageSetSelect'), $page,  $section, array('share_image_set')  ); 
     143
     144        add_settings_field( 'share_image_size', 'Image Size', 
     145            array($this, 'renderNumericTextbox'), $page,  $section,
     146            array('share_image_size', 'Size in pixels, between 24 and 64')  ); 
    143147       
    144148        add_settings_field( 'share_caption', 'Caption', 
     
    193197        add_settings_field( 'link_image_set', 'Image Set', 
    194198            array($this, 'renderImageSetSelect'), $page,  $section, array('link_image_set')  ); 
     199        add_settings_field( 'link_image_size', 'Image Size', 
     200            array($this, 'renderNumericTextbox'), $page,  $section,
     201            array('link_image_size', 'Size in pixels, between 24 and 64')  ); 
    195202       
    196203        add_settings_field( 'link_caption', 'Caption', 
     
    342349        <?php
    343350    }
     351
     352    /**
     353     * Display a settings textbox
     354     */
     355    public function renderNumericTextbox($args) {
     356        $id = $args[0];
     357        $settings = $this->getSettings();
     358        $value = isset($settings[$id]) ? $settings[$id] : ' ';
     359        $name = $this->plugin_slug . '[' . $args[0] . ']';
     360        $description = isset($args[1]) ? $args[1] : '';
     361        $min = isset($args[2]) ? $args[2] : 24;
     362        $max = isset($args[3]) ? $args[3] : 64;
     363       
     364        ?>
     365
     366            <input type="number" id="<?=$id?>" name="<?=$name?>" value="<?=$value?>" min="<?=$min?>" max="<?=$max?>" />
     367            <span class="description">
     368               <?=$description?>
     369            </span>
     370           
     371        <?php
     372    }
    344373   
    345374    /**
     
    377406        $settings = $this->getSettings();
    378407        $image_set = ($id == 'link_services') ? $settings['link_image_set'] : $settings['share_image_set'];
     408        $image_size = ($id == 'link_services') ? $settings['link_image_size'] : $settings['share_image_size'];
    379409        $shareOrLink = ($id == 'link_services') ? 'Link' : 'Share';
    380410        $value = $settings[$id];
     
    386416                    <div><span class="include-heading">Selected</span> (these will be displayed)</div>
    387417                    <ul id="csbsort2" class="connectedSortable data-base="<?=$image_set?>"">
    388                         <?php echo $this->get_selected_services_html($value, $image_set); ?>
     418                        <?php echo $this->get_selected_services_html($value, $image_set, $image_size); ?>
    389419                    </ul>
    390420                    <input type="hidden" name="<?=$name?>" id="<?=$id?>" class="csb-services" />
     
    394424                    <div><span class="include-heading">Available</span> (these will <strong>not</strong> be displayed)</div>
    395425                    <ul id="csbsort1" class="connectedSortable">
    396                         <?php echo $this->get_available_services_html($value, $image_set, $shareOrLink); ?>
     426                        <?php echo $this->get_available_services_html($value, $image_set, $image_size, $shareOrLink); ?>
    397427                    </ul>
    398428                    </center>
     
    447477            $settings['position'] = isset($input['position']) ? $input['position'] : 'below';
    448478           
    449             // and finally, validate our text
     479            // and finally, validate our text boxes
    450480            $settings['share_caption'] = sanitize_text_field ($input['share_caption']);
    451481            $settings['email_body'] = sanitize_text_field ($input['email_body']);
    452482            $settings['twitter_body'] = sanitize_text_field ($input['twitter_body']);
    453483           
     484            // including numeric ones
     485            $settings['share_image_size'] = sanitize_text_field ($input['share_image_size']);
     486           
     487           
    454488   
    455489        } else if ('link_options' == $tab) {
     
    461495            // and finally, validate our text boxes
    462496            $settings['link_caption'] = sanitize_text_field ($input['link_caption']);
     497           
     498            // including numeric ones
     499            $settings['link_image_size'] = sanitize_text_field ($input['link_image_size']);
    463500           
    464501            // and the textboxes for all our services
     
    474511     * Get list item HTML for selected services from our text list
    475512     */
    476     function get_selected_services_html($selectedServicesString, $image_set) {
     513    function get_selected_services_html($selectedServicesString, $image_set, $image_size) {
    477514
    478515        $htmlListItems = '';   
     
    482519            foreach ($selectedServices as $service) {
    483520                $url = plugin_dir_url(__FILE__) . "buttons/" . $image_set . "/" . $service . ".png";
    484                 $htmlListItems .= $this->get_service_icon_html($url, $service, $image_set);
     521                $htmlListItems .= $this->get_service_icon_html($url, $service, $image_set, $image_size);
    485522            }
    486523        }
     
    491528     * Get list item HTML for all services EXCEPT those already selected
    492529     */
    493     function get_available_services_html($selectedServicesString, $image_set, $shareOrLink = 'Share') {
     530    function get_available_services_html($selectedServicesString, $image_set, $image_size, $shareOrLink = 'Share') {
    494531   
    495532        $htmlListItems = '';   
     
    504541               
    505542            $url = plugin_dir_url(__FILE__) . "buttons/" . $image_set . "/" . $service . ".png";
    506             $htmlListItems .= $this->get_service_icon_html($url, $service, $image_set);
     543            $htmlListItems .= $this->get_service_icon_html($url, $service, $image_set, $image_size);
    507544       
    508545        }
     
    522559     * Get html for a single service icon for selection on the admin page
    523560     */
    524     function get_service_icon_html($url, $service, $image_set) {
     561    function get_service_icon_html($url, $service, $image_set, $image_size) {
    525562        return '<li id="' . $service
    526563                .'"><img src="' . strtolower($url)
    527564                . '" data-image-set="' . strtolower($image_set)
    528                 . '" alt="' . $service . '" width="48" height="48" /></li>';
     565                . '" alt="' . $service . '" width="'.$image_size.'" height="'.$image_size.'" /></li>';
    529566
    530567    }
     
    535572    function getSettings() {
    536573        $settings = get_option($this->plugin_slug);
    537         return $settings;
     574        $defaults = SH_Crafty_Social_Buttons_Plugin::get_default_settings();
     575        return wp_parse_args($settings, $defaults);
    538576    }   
    539577
  • crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Plugin.php

    r880671 r890035  
    1313     * Plugin version, used for cache-busting of style and script file references.
    1414     */
    15     protected $version = '1.0.10';
     15    protected $version = '1.1.0';
    1616
    1717    /**
     
    226226           
    227227            'share_image_set'   => 'simple',
     228            'share_image_size'      => 48,
    228229            'share_caption'     => 'Share this:',
    229230            'share_services'        => 'Facebook,Google,Twitter,Ravelry',
     
    235236            'new_window'            => true,
    236237            'email_body'            => 'I thought you might like this: ',
    237             'twitter_body'          => 'I like this: ',
     238            'twitter_body'          => '',
    238239                       
    239240            'link_image_set'        => 'simple',
     241            'link_image_size'       => 48,
    240242            'link_caption'          => 'Find me on:',
    241243            'link_services'     => 'Facebook,Google,Twitter,Ravelry,Etsy',
  • crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Shortcode.php

    r849720 r890035  
    168168        $title = get_the_title($post->ID);
    169169
    170         $buttonHtml = '<div class="crafty-social-buttons crafty-social-'.$type.'-buttons">';
     170        $buttonHtml = '<div id="crafty-social-buttons" class="crafty-social-'.$type.'-buttons">';
    171171        if ($text != '') {
    172172                $buttonHtml .= '<span class="crafty-social-caption">' . $text . '</span>';
     
    199199            $file = include_once(plugin_dir_path(__FILE__) . "services/class-$class.php");
    200200           
    201             $service = new $class($settings['new_window'], $settings[$type.'_image_set'], $settings);
     201            $service = new $class($type, $settings);
    202202           
    203203            $username = isset($settings[$serviceName]) ? $settings[$serviceName] : '';
  • crafty-social-buttons/trunk/crafty-social-buttons.php

    r886391 r890035  
    1616 * Plugin URI:  http://github.com/sarahhenderson/crafty-social-buttons
    1717 * Description: Adds social sharing buttons and links to your site, including Ravelry, Etsy, Craftsy and Pinterest
    18  * Version:     1.0.12
     18 * Version:     1.1.0
    1919 * Author:      Sarah Henderson
    2020 * Author URI:  http://sarahhenderson.info
  • crafty-social-buttons/trunk/css/admin.min.css

    r886391 r890035  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.0.12 (02-04-2014) */
     2 * Version 1.1.0 (09-04-2014) */
    33
    44.crafty-social-buttons .csb-include-list{border:1px solid #ddd;background:#f1f1f1;margin-right:.5em;vertical-align:top;padding:.4em}.crafty-social-buttons .include-heading{text-align:left;font-weight:700}.crafty-social-buttons .csb-include-list ul{border:1px solid #ddd;background:#fff;padding:.5em;margin:0;min-height:60px}.crafty-social-buttons .csb-include-list ul li{display:inline-block;padding:0;margin:.3em;text-align:center;font-size:1.2em;cursor:move}.crafty-social-buttons .csb-image-preview{margin-top:.5em}.crafty-social-buttons select{width:200px}.crafty-social-buttons input[type=text]{width:350px}.crafty-social-buttons span.description{font-style:normal}.crafty-social-buttons span.description strong{font-style:italic}
  • crafty-social-buttons/trunk/css/public.min.css

    r886391 r890035  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.0.12 (02-04-2014) */
     2 * Version 1.1.0 (09-04-2014) */
    33
    4 .crafty-social-buttons{margin:.3em 0}.crafty-social-buttons .crafty-social-caption{display:inline-block;padding-right:1em;vertical-align:top;font-size:1.2em}.crafty-social-buttons .size48 img,.crafty-social-buttons img{max-width:48px;max-height:48px}.crafty-social-buttons .size16 img{max-width:16px;max-height:16px}.crafty-social-buttons .size32 img{max-width:32px;max-height:32px}.crafty-social-buttons .size64 img{max-width:64px;max-height:64px}.crafty-social-buttons ul{display:inline-block;list-style-type:none;margin:0;padding:0}.crafty-social-buttons ul li{display:inline-block;margin:0 .2em;padding:0}.crafty-social-buttons .crafty-social-share-count:after,.crafty-social-buttons .crafty-social-share-count:before{right:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.crafty-social-buttons .crafty-social-share-count:after{border-color:rgba(224,221,221,0);border-right-color:#f5f5f5;border-width:5px;top:50%;margin-top:-5px}.crafty-social-buttons .crafty-social-share-count:before{border-color:rgba(85,94,88,0);border-right-color:#e0dddd;border-width:6px;top:50%;margin-top:-6px}.crafty-social-buttons .crafty-social-share-count{font:11px Arial,Helvetica,sans-serif;color:#555e58;padding:5px;-khtml-border-radius:6px;-o-border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;position:relative;background:#f5f5f5;border:1px solid #e0dddd}
     4#crafty-social-buttons{margin:.3em 0}#crafty-social-buttons .crafty-social-caption{display:inline-block;padding-right:1em;vertical-align:top;font-size:1.2em}#crafty-social-buttons ul{display:inline-block;list-style-type:none;margin:0;padding:0}#crafty-social-buttons ul li{display:inline-block;margin:0 .2em;padding:0}#crafty-social-buttons .crafty-social-share-count:after,#crafty-social-buttons .crafty-social-share-count:before{right:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}#crafty-social-buttons .crafty-social-share-count:after{border-color:rgba(224,221,221,0);border-right-color:#f5f5f5;border-width:5px;top:50%;margin-top:-5px}#crafty-social-buttons .crafty-social-share-count:before{border-color:rgba(85,94,88,0);border-right-color:#e0dddd;border-width:6px;top:50%;margin-top:-6px}#crafty-social-buttons .crafty-social-share-count{font:11px Arial,Helvetica,sans-serif;color:#555e58;padding:5px;-khtml-border-radius:6px;-o-border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;position:relative;background:#f5f5f5;border:1px solid #e0dddd}
  • crafty-social-buttons/trunk/js/admin.min.js

    r886391 r890035  
    11/*! crafty-social-buttons  (c) Sarah Henderson 2014
    2  * Version 1.0.12 (02-04-2014) */
    3 jQuery(document).ready(function(a){a("#csbsort1, #csbsort2").sortable({connectWith:".connectedSortable",update:function(){var b=a("#csbsort2 li").map(function(){return a(this).attr("id")}).get();a(".csb-services").val(b)}}).disableSelection(),a(".csb-services").val(a("#csbsort2 li").map(function(){return a(this).attr("id")}).get()),a(".csb-image-set").change(function(){var b=a(this).val();a(".csb-image-preview").attr("data-base"),a.each(a(".csb-services img"),function(c,d){var e=a(d).attr("src"),f=a(d).attr("data-image-set"),g=e.replace(f,b);0,a(d).attr("src",g),a(d).attr("data-image-set",b)})})});
     2 * Version 1.1.0 (09-04-2014) */
     3jQuery(document).ready(function(a){a("#csbsort1, #csbsort2").sortable({connectWith:".connectedSortable",update:function(){var b=a("#csbsort2 li").map(function(){return a(this).attr("id")}).get();a(".csb-services").val(b)}}).disableSelection(),a(".csb-services").val(a("#csbsort2 li").map(function(){return a(this).attr("id")}).get()),a(".csb-image-set").change(function(){var b=a(this).val();a(".csb-image-preview").attr("data-base"),a.each(a(".csb-services img"),function(c,d){var e=a(d).attr("src"),f=a(d).attr("data-image-set"),g=e.replace(f,b);a(d).attr("src",g),a(d).attr("data-image-set",b)})}),a("#share_image_size").bind("input",function(){var b=a(this).val();a.each(a(".csb-services img"),function(c,d){a(d).attr("width",b),a(d).attr("height",b)})}),a("#link_image_size").bind("input",function(){var b=a(this).val();a.each(a(".csb-services img"),function(c,d){a(d).attr("width",b),a(d).attr("height",b)})})});
  • crafty-social-buttons/trunk/services/class-SH_Craftsy.php

    r880671 r890035  
    1111class SH_Craftsy extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Craftsy";
    1616    }
  • crafty-social-buttons/trunk/services/class-SH_Digg.php

    r880671 r890035  
    1111class SH_Digg extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Digg";
    1616    }
  • crafty-social-buttons/trunk/services/class-SH_Email.php

    r833032 r890035  
    1111class SH_Email extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Email";
    1616        $this->imageUrl = $this->imagePath . "email.png";
  • crafty-social-buttons/trunk/services/class-SH_Etsy.php

    r880671 r890035  
    1111class SH_Etsy extends SH_Social_Service {
    1212   
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Etsy";
    1616        $this->imageUrl = $this->imagePath . "etsy.png";
  • crafty-social-buttons/trunk/services/class-SH_Facebook.php

    r880671 r890035  
    1111class SH_Facebook extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Facebook";
    1616        $this->imageUrl = $this->imagePath . "facebook.png";
  • crafty-social-buttons/trunk/services/class-SH_Flickr.php

    r880671 r890035  
    1111class SH_Flickr extends SH_Social_Service {
    1212   
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Flickr";
    1616    }
  • crafty-social-buttons/trunk/services/class-SH_Google.php

    r880671 r890035  
    1111class SH_Google extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Google";
    1616        $this->imageUrl = $this->imagePath . "google.png";
  • crafty-social-buttons/trunk/services/class-SH_Instagram.php

    r880671 r890035  
    1111class SH_Instagram extends SH_Social_Service {
    1212   
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Instagram";
    1616    }
  • crafty-social-buttons/trunk/services/class-SH_LinkedIn.php

    r880671 r890035  
    1111class SH_LinkedIn extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "LinkedIn";
    1616        $this->imageUrl = $this->imagePath . "linkedin.png";
  • crafty-social-buttons/trunk/services/class-SH_Pinterest.php

    r880671 r890035  
    1111class SH_Pinterest extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Pinterest";
    1616        $this->imageUrl = $this->imagePath . "pinterest.png";
  • crafty-social-buttons/trunk/services/class-SH_RSS.php

    r858142 r890035  
    1111class SH_RSS extends SH_Social_Service {
    1212   
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "RSS";
    1616    }
  • crafty-social-buttons/trunk/services/class-SH_Ravelry.php

    r880671 r890035  
    1111class SH_Ravelry extends SH_Social_Service {
    1212   
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Ravelry";
    1616        $this->imageUrl = $this->imagePath . "ravelry.png";
  • crafty-social-buttons/trunk/services/class-SH_Reddit.php

    r880671 r890035  
    1111class SH_Reddit extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Reddit";
    1616        $this->imageUrl = $this->imagePath . "reddit.png";
  • crafty-social-buttons/trunk/services/class-SH_Social_Service.php

    r833032 r890035  
    1212
    1313    // construct the class
    14     public function __construct($newWindow, $imageSet, $settings) {
    15         $this->newWindow = $newWindow;
     14    public function __construct($type, $settings) {
     15        $this->service = "Default"; // must be set correctly in the subclass constructors
     16        $this->settings = $settings;
     17
     18        $imageSet = $settings[$type.'_image_set'];
    1619        $this->imagePath = plugins_url() . "/crafty-social-buttons/buttons/$imageSet/";
     20
    1721        $this->imageExtension = ".png";
    18         $this->settings = $settings;
    19         $this->service = "Default"; // must be set correctly in the subclass constructors
     22        $this->imageSize = $settings[$type.'_image_size'];
     23        $this->newWindow = $settings['new_window'];
    2024    }
    2125   
     
    5155    protected function buttonImage() {
    5256        $imageUrl = $this->imagePath . trim(strtolower($this->service)) . $this->imageExtension;
    53         return '<img title="'.$this->service.'" alt="'.$this->service. '" src="' . $imageUrl .'" />';
     57        return '<img title="'.$this->service.'" '
     58        .'alt="'.$this->service.'" '
     59        .'width="'.$this->imageSize.'" '
     60        .'height="'.$this->imageSize.'" '
     61        .'src="' . $imageUrl .'" />';
    5462    }
    5563   
  • crafty-social-buttons/trunk/services/class-SH_StumbleUpon.php

    r880671 r890035  
    1111class SH_StumbleUpon extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "StumbleUpon";
    1616        $this->imageUrl = $this->imagePath . "stumbleupon.png";
  • crafty-social-buttons/trunk/services/class-SH_Tumblr.php

    r880671 r890035  
    1111class SH_Tumblr extends SH_Social_Service {
    1212
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Tumblr";
    1616        $this->imageUrl = $this->imagePath . "tumblr.png";
  • crafty-social-buttons/trunk/services/class-SH_Twitter.php

    r886391 r890035  
    1111class SH_Twitter extends SH_Social_Service {
    1212   
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "Twitter";
    1616        $this->text = isset($settings['twitter_body']) ? $settings['twitter_body'] : '';
  • crafty-social-buttons/trunk/services/class-SH_YouTube.php

    r880671 r890035  
    1111class SH_YouTube extends SH_Social_Service {
    1212   
    13     public function __construct($newWindow, $imageSet, $settings) {
    14         parent::__construct($newWindow, $imageSet, $settings);
     13    public function __construct($type, $settings) {
     14        parent::__construct($type, $settings);
    1515        $this->service = "YouTube";
    1616    }
Note: See TracChangeset for help on using the changeset viewer.