Changeset 890035
- Timestamp:
- 04/09/2014 12:17:32 PM (12 years ago)
- Location:
- crafty-social-buttons/trunk
- Files:
-
- 26 edited
-
README.txt (modified) (3 diffs)
-
class-SH-Crafty-Social-Buttons-Admin.php (modified) (14 diffs)
-
class-SH-Crafty-Social-Buttons-Plugin.php (modified) (3 diffs)
-
class-SH-Crafty-Social-Buttons-Shortcode.php (modified) (2 diffs)
-
crafty-social-buttons.php (modified) (1 diff)
-
css/admin.min.css (modified) (1 diff)
-
css/public.min.css (modified) (1 diff)
-
js/admin.min.js (modified) (1 diff)
-
services/class-SH_Craftsy.php (modified) (1 diff)
-
services/class-SH_Digg.php (modified) (1 diff)
-
services/class-SH_Email.php (modified) (1 diff)
-
services/class-SH_Etsy.php (modified) (1 diff)
-
services/class-SH_Facebook.php (modified) (1 diff)
-
services/class-SH_Flickr.php (modified) (1 diff)
-
services/class-SH_Google.php (modified) (1 diff)
-
services/class-SH_Instagram.php (modified) (1 diff)
-
services/class-SH_LinkedIn.php (modified) (1 diff)
-
services/class-SH_Pinterest.php (modified) (1 diff)
-
services/class-SH_RSS.php (modified) (1 diff)
-
services/class-SH_Ravelry.php (modified) (1 diff)
-
services/class-SH_Reddit.php (modified) (1 diff)
-
services/class-SH_Social_Service.php (modified) (2 diffs)
-
services/class-SH_StumbleUpon.php (modified) (1 diff)
-
services/class-SH_Tumblr.php (modified) (1 diff)
-
services/class-SH_Twitter.php (modified) (1 diff)
-
services/class-SH_YouTube.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
crafty-social-buttons/trunk/README.txt
r886391 r890035 92 92 == Changelog == 93 93 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 94 98 = 1.0.12 = 95 99 * Fixed bug where twitter prompt text wasn't appearing … … 135 139 == Upgrade Notice == 136 140 141 = 1.1.0 = 142 * Allows you to choose the size of share and link buttons 143 137 144 = 1.0.10 = 138 145 * Added RSS link button option … … 167 174 These are the things currently in the pipeline: 168 175 169 * Adding an option to choose image sizes for the icons170 176 * 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) 171 180 * Option to diplays in archives and category listings (?) 172 181 * (Anything else? You tell me!) -
crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Admin.php
r849720 r890035 141 141 add_settings_field( 'share_image_set', 'Image Set', 142 142 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') ); 143 147 144 148 add_settings_field( 'share_caption', 'Caption', … … 193 197 add_settings_field( 'link_image_set', 'Image Set', 194 198 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') ); 195 202 196 203 add_settings_field( 'link_caption', 'Caption', … … 342 349 <?php 343 350 } 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 } 344 373 345 374 /** … … 377 406 $settings = $this->getSettings(); 378 407 $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']; 379 409 $shareOrLink = ($id == 'link_services') ? 'Link' : 'Share'; 380 410 $value = $settings[$id]; … … 386 416 <div><span class="include-heading">Selected</span> (these will be displayed)</div> 387 417 <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); ?> 389 419 </ul> 390 420 <input type="hidden" name="<?=$name?>" id="<?=$id?>" class="csb-services" /> … … 394 424 <div><span class="include-heading">Available</span> (these will <strong>not</strong> be displayed)</div> 395 425 <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); ?> 397 427 </ul> 398 428 </center> … … 447 477 $settings['position'] = isset($input['position']) ? $input['position'] : 'below'; 448 478 449 // and finally, validate our text 479 // and finally, validate our text boxes 450 480 $settings['share_caption'] = sanitize_text_field ($input['share_caption']); 451 481 $settings['email_body'] = sanitize_text_field ($input['email_body']); 452 482 $settings['twitter_body'] = sanitize_text_field ($input['twitter_body']); 453 483 484 // including numeric ones 485 $settings['share_image_size'] = sanitize_text_field ($input['share_image_size']); 486 487 454 488 455 489 } else if ('link_options' == $tab) { … … 461 495 // and finally, validate our text boxes 462 496 $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']); 463 500 464 501 // and the textboxes for all our services … … 474 511 * Get list item HTML for selected services from our text list 475 512 */ 476 function get_selected_services_html($selectedServicesString, $image_set ) {513 function get_selected_services_html($selectedServicesString, $image_set, $image_size) { 477 514 478 515 $htmlListItems = ''; … … 482 519 foreach ($selectedServices as $service) { 483 520 $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); 485 522 } 486 523 } … … 491 528 * Get list item HTML for all services EXCEPT those already selected 492 529 */ 493 function get_available_services_html($selectedServicesString, $image_set, $ shareOrLink = 'Share') {530 function get_available_services_html($selectedServicesString, $image_set, $image_size, $shareOrLink = 'Share') { 494 531 495 532 $htmlListItems = ''; … … 504 541 505 542 $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); 507 544 508 545 } … … 522 559 * Get html for a single service icon for selection on the admin page 523 560 */ 524 function get_service_icon_html($url, $service, $image_set ) {561 function get_service_icon_html($url, $service, $image_set, $image_size) { 525 562 return '<li id="' . $service 526 563 .'"><img src="' . strtolower($url) 527 564 . '" data-image-set="' . strtolower($image_set) 528 . '" alt="' . $service . '" width=" 48" height="48" /></li>';565 . '" alt="' . $service . '" width="'.$image_size.'" height="'.$image_size.'" /></li>'; 529 566 530 567 } … … 535 572 function getSettings() { 536 573 $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); 538 576 } 539 577 -
crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Plugin.php
r880671 r890035 13 13 * Plugin version, used for cache-busting of style and script file references. 14 14 */ 15 protected $version = '1. 0.10';15 protected $version = '1.1.0'; 16 16 17 17 /** … … 226 226 227 227 'share_image_set' => 'simple', 228 'share_image_size' => 48, 228 229 'share_caption' => 'Share this:', 229 230 'share_services' => 'Facebook,Google,Twitter,Ravelry', … … 235 236 'new_window' => true, 236 237 'email_body' => 'I thought you might like this: ', 237 'twitter_body' => ' I like this:',238 'twitter_body' => '', 238 239 239 240 'link_image_set' => 'simple', 241 'link_image_size' => 48, 240 242 'link_caption' => 'Find me on:', 241 243 'link_services' => 'Facebook,Google,Twitter,Ravelry,Etsy', -
crafty-social-buttons/trunk/class-SH-Crafty-Social-Buttons-Shortcode.php
r849720 r890035 168 168 $title = get_the_title($post->ID); 169 169 170 $buttonHtml = '<div class="crafty-social-buttonscrafty-social-'.$type.'-buttons">';170 $buttonHtml = '<div id="crafty-social-buttons" class="crafty-social-'.$type.'-buttons">'; 171 171 if ($text != '') { 172 172 $buttonHtml .= '<span class="crafty-social-caption">' . $text . '</span>'; … … 199 199 $file = include_once(plugin_dir_path(__FILE__) . "services/class-$class.php"); 200 200 201 $service = new $class($ settings['new_window'], $settings[$type.'_image_set'], $settings);201 $service = new $class($type, $settings); 202 202 203 203 $username = isset($settings[$serviceName]) ? $settings[$serviceName] : ''; -
crafty-social-buttons/trunk/crafty-social-buttons.php
r886391 r890035 16 16 * Plugin URI: http://github.com/sarahhenderson/crafty-social-buttons 17 17 * Description: Adds social sharing buttons and links to your site, including Ravelry, Etsy, Craftsy and Pinterest 18 * Version: 1. 0.1218 * Version: 1.1.0 19 19 * Author: Sarah Henderson 20 20 * Author URI: http://sarahhenderson.info -
crafty-social-buttons/trunk/css/admin.min.css
r886391 r890035 1 1 /*! crafty-social-buttons (c) Sarah Henderson 2014 2 * Version 1. 0.12 (02-04-2014) */2 * Version 1.1.0 (09-04-2014) */ 3 3 4 4 .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 1 1 /*! crafty-social-buttons (c) Sarah Henderson 2014 2 * Version 1. 0.12 (02-04-2014) */2 * Version 1.1.0 (09-04-2014) */ 3 3 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 1 1 /*! 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) */ 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);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 11 11 class SH_Craftsy extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Craftsy"; 16 16 } -
crafty-social-buttons/trunk/services/class-SH_Digg.php
r880671 r890035 11 11 class SH_Digg extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Digg"; 16 16 } -
crafty-social-buttons/trunk/services/class-SH_Email.php
r833032 r890035 11 11 class SH_Email extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Email"; 16 16 $this->imageUrl = $this->imagePath . "email.png"; -
crafty-social-buttons/trunk/services/class-SH_Etsy.php
r880671 r890035 11 11 class SH_Etsy extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Etsy"; 16 16 $this->imageUrl = $this->imagePath . "etsy.png"; -
crafty-social-buttons/trunk/services/class-SH_Facebook.php
r880671 r890035 11 11 class SH_Facebook extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Facebook"; 16 16 $this->imageUrl = $this->imagePath . "facebook.png"; -
crafty-social-buttons/trunk/services/class-SH_Flickr.php
r880671 r890035 11 11 class SH_Flickr extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Flickr"; 16 16 } -
crafty-social-buttons/trunk/services/class-SH_Google.php
r880671 r890035 11 11 class SH_Google extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Google"; 16 16 $this->imageUrl = $this->imagePath . "google.png"; -
crafty-social-buttons/trunk/services/class-SH_Instagram.php
r880671 r890035 11 11 class SH_Instagram extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Instagram"; 16 16 } -
crafty-social-buttons/trunk/services/class-SH_LinkedIn.php
r880671 r890035 11 11 class SH_LinkedIn extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "LinkedIn"; 16 16 $this->imageUrl = $this->imagePath . "linkedin.png"; -
crafty-social-buttons/trunk/services/class-SH_Pinterest.php
r880671 r890035 11 11 class SH_Pinterest extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Pinterest"; 16 16 $this->imageUrl = $this->imagePath . "pinterest.png"; -
crafty-social-buttons/trunk/services/class-SH_RSS.php
r858142 r890035 11 11 class SH_RSS extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "RSS"; 16 16 } -
crafty-social-buttons/trunk/services/class-SH_Ravelry.php
r880671 r890035 11 11 class SH_Ravelry extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Ravelry"; 16 16 $this->imageUrl = $this->imagePath . "ravelry.png"; -
crafty-social-buttons/trunk/services/class-SH_Reddit.php
r880671 r890035 11 11 class SH_Reddit extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Reddit"; 16 16 $this->imageUrl = $this->imagePath . "reddit.png"; -
crafty-social-buttons/trunk/services/class-SH_Social_Service.php
r833032 r890035 12 12 13 13 // 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']; 16 19 $this->imagePath = plugins_url() . "/crafty-social-buttons/buttons/$imageSet/"; 20 17 21 $this->imageExtension = ".png"; 18 $this-> settings = $settings;19 $this-> service = "Default"; // must be set correctly in the subclass constructors22 $this->imageSize = $settings[$type.'_image_size']; 23 $this->newWindow = $settings['new_window']; 20 24 } 21 25 … … 51 55 protected function buttonImage() { 52 56 $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 .'" />'; 54 62 } 55 63 -
crafty-social-buttons/trunk/services/class-SH_StumbleUpon.php
r880671 r890035 11 11 class SH_StumbleUpon extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "StumbleUpon"; 16 16 $this->imageUrl = $this->imagePath . "stumbleupon.png"; -
crafty-social-buttons/trunk/services/class-SH_Tumblr.php
r880671 r890035 11 11 class SH_Tumblr extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Tumblr"; 16 16 $this->imageUrl = $this->imagePath . "tumblr.png"; -
crafty-social-buttons/trunk/services/class-SH_Twitter.php
r886391 r890035 11 11 class SH_Twitter extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "Twitter"; 16 16 $this->text = isset($settings['twitter_body']) ? $settings['twitter_body'] : ''; -
crafty-social-buttons/trunk/services/class-SH_YouTube.php
r880671 r890035 11 11 class SH_YouTube extends SH_Social_Service { 12 12 13 public function __construct($ newWindow, $imageSet, $settings) {14 parent::__construct($ newWindow, $imageSet, $settings);13 public function __construct($type, $settings) { 14 parent::__construct($type, $settings); 15 15 $this->service = "YouTube"; 16 16 }
Note: See TracChangeset
for help on using the changeset viewer.