Changeset 1013345
- Timestamp:
- 10/24/2014 12:08:49 PM (11 years ago)
- Location:
- addthis/trunk
- Files:
-
- 3 edited
-
addthis-for-wordpress.php (modified) (8 diffs)
-
addthis-toolbox.php (modified) (1 diff)
-
addthis_social_widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
addthis/trunk/addthis-for-wordpress.php
r1013276 r1013345 71 71 /** check upgrade or fresh installation **/ 72 72 private $_upgrade; 73 74 /** Addthis Profile id **/ 75 private $_pubid; 73 76 74 77 /** … … 84 87 $this->_getVariables = $_GET; 85 88 $this->_postVariables = $_POST; 89 90 $this->_pubid = self::getPubid(); 86 91 87 92 include_once 'addthis-toolbox.php'; … … 178 183 * @return string 179 184 */ 180 public staticfunction updatePubid($pubId)185 public function updatePubid($pubId) 181 186 { 182 187 global $addthis_addjs; 183 188 $addthis_addjs->setProfileId($pubId); 189 $this->_pubid = $pubId; 184 190 return "<div class='addthis_updated wrap'>". 185 191 "AddThis Profile ID updated successfully!!!". … … 281 287 '<span class="addthis-name">for WordPress</span>'. 282 288 '</p>'; 283 if ($this->_upgrade && ! self::getPubid()) {289 if ($this->_upgrade && !$this->_pubid) { 284 290 $html .= $this->_getupdateSuccessMessage(); 285 291 } … … 339 345 { 340 346 $html = ''; 341 if (! self::getPubid()) {347 if (!$this->_pubid) { 342 348 $html = "<h2>You're almost done!</h2>"; 343 349 } … … 346 352 "likes, get shares, get follows and get discovered. </div>"; 347 353 348 if (! self::getPubid()) {354 if (!$this->_pubid) { 349 355 // Get pub name 350 356 $pubName = self::_getPubName(); … … 357 363 358 364 $html .= "<a class='addthis_button' target='_blank'". 359 "href='".self::ADDTHIS_SITE_URL."?cms=wp&pubid=". self::getPubid().365 "href='".self::ADDTHIS_SITE_URL."?cms=wp&pubid=".$this->_pubid. 360 366 "'>". 361 367 "To control your AddThis plugins, click here →". … … 450 456 $pubId = $this->_getVariables['pubid']; 451 457 } else { 452 $pubId = self::getPubid();458 $pubId = $this->_pubid; 453 459 } 454 460 -
addthis/trunk/addthis-toolbox.php
r1010585 r1013345 63 63 { 64 64 add_filter('the_content', array($this, 'addWidget')); 65 add_filter('the_excerpt', array($this, 'addWidget')); 65 if ( has_excerpt()) { die('sss'); 66 add_filter('the_excerpt', array($this, 'addWidget')); 67 } else { 68 add_filter('get_the_excerpt', array($this, 'addWidget')); 69 } 66 70 } 67 71 -
addthis/trunk/addthis_social_widget.php
r1013276 r1013345 2128 2128 2129 2129 <div class="addthis_upgrade"> 2130 <b> You've upgraded successfully. </b>2131 No w sign in to the dashboard to access the full suite of tools from AddThis.2130 <b>Now that you've upgraded your plugin you can access even more AddThis tools. </b> 2131 Note: Your tool configurations will be reset. 2132 2132 <a href="?page=<?php echo basename(__FILE__); ?>&upgrade=addthis_for_wordpress">Get Started</a> 2133 2133 </div>
Note: See TracChangeset
for help on using the changeset viewer.