Plugin Directory

Changeset 1013345


Ignore:
Timestamp:
10/24/2014 12:08:49 PM (11 years ago)
Author:
srijith.v
Message:

Text changes and add get_the_excerpt filter

Location:
addthis/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • addthis/trunk/addthis-for-wordpress.php

    r1013276 r1013345  
    7171    /** check upgrade or fresh installation **/
    7272    private $_upgrade;
     73   
     74    /** Addthis Profile id **/
     75    private $_pubid;
    7376
    7477    /**
     
    8487        $this->_getVariables = $_GET;
    8588        $this->_postVariables = $_POST;
     89       
     90        $this->_pubid = self::getPubid();
    8691
    8792        include_once 'addthis-toolbox.php';
     
    178183     *  @return string
    179184     */
    180     public static function updatePubid($pubId)
     185    public function updatePubid($pubId)
    181186    {
    182187        global $addthis_addjs;
    183188        $addthis_addjs->setProfileId($pubId);
     189        $this->_pubid = $pubId;
    184190        return "<div class='addthis_updated wrap'>".
    185191                    "AddThis Profile ID updated successfully!!!".
     
    281287                    '<span class="addthis-name">for WordPress</span>'.
    282288                '</p>';
    283         if ($this->_upgrade && !self::getPubid()) {
     289        if ($this->_upgrade && !$this->_pubid) {
    284290            $html .= $this->_getupdateSuccessMessage();
    285291        }
     
    339345    {
    340346        $html = '';
    341         if (!self::getPubid()) {
     347        if (!$this->_pubid) {
    342348            $html  = "<h2>You're almost done!</h2>";
    343349        }
     
    346352                 "likes, get shares, get follows and get discovered. </div>";
    347353       
    348         if (!self::getPubid()) {
     354        if (!$this->_pubid) {
    349355            // Get pub name
    350356            $pubName = self::_getPubName();
     
    357363
    358364            $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.
    360366                     "'>".
    361367                     "To control your AddThis plugins, click here &#8594;".
     
    450456            $pubId = $this->_getVariables['pubid'];
    451457        } else {
    452             $pubId = self::getPubid();
     458            $pubId = $this->_pubid;
    453459        }
    454460       
  • addthis/trunk/addthis-toolbox.php

    r1010585 r1013345  
    6363    {
    6464        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        }
    6670    }
    6771
  • addthis/trunk/addthis_social_widget.php

    r1013276 r1013345  
    21282128
    21292129        <div class="addthis_upgrade">
    2130             <b>You've upgraded successfully. </b>
    2131             &nbsp;Now 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            &nbsp;Note: Your tool configurations will be reset.
    21322132            &nbsp; <a href="?page=<?php echo basename(__FILE__); ?>&upgrade=addthis_for_wordpress">Get Started</a>
    21332133        </div>
Note: See TracChangeset for help on using the changeset viewer.