WordPress.org

Plugin Directory

Changeset 614139


Ignore:
Timestamp:
10/18/12 16:26:06 (5 years ago)
Author:
srijith.v
Message:

Created tag 1.1.

Location:
addthis-follow/tags/1.1
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • addthis-follow/tags/1.1/addthis-follow.php

    r565439 r614139  
    2424* Plugin URI: http://www.addthis.com 
    2525* Description: Generate followers for your social networks and track what pages are generating the most followers  
    26 * Version: 1.0.0 
     26* Version: 1.1 
    2727* 
    2828* Author: The AddThis Team 
     
    8282 
    8383        /* Create the widget. */ 
    84         $this->WP_Widget( 'addthis-follow-widget', 'AddThis Follow Widget', $widget_ops, $control_ops ); 
     84        $this->WP_Widget( 'addthis-follow-widget', 'AddThis Follow', $widget_ops, $control_ops ); 
    8585     
    8686        $this->buttons = array( 
     
    230230         
    231231        echo $addthis_addjs->getAtPluginPromoText(); 
    232  
    233         echo '<p><label for="'.$this->get_field_id('title') .'">' . __('Title:') . '<input class="widefat" id="'.$this->get_field_id('title').'" name="'. $this->get_field_name('title') .'" type="text" value="'.$title .'" /></label></p>'; 
    234  
    235         echo '<p><label for="'. $this->get_field_id('profile') .'">'.__('Profile ID (shared accross all AddThis plugins):', 'addthis') .'</label><input class="widefat" id="'. $this->get_field_id('profile') .'" name="'.$this->get_field_name('profile') .'" type="text" value="'. $profile .'"</p>'; 
    236      
    237         // Style box 
    238         echo '<p><label for="'. $this->get_field_id('style') . '">' . __('Style:', 'addthis') . '<br /><select id="toolbox-style" name="'.  $this->get_field_name('style') .'">'; 
    239         foreach($this->styles as $c => $n) { 
    240             $selected = ($instance['style'] == $c) ? ' selected="selected" ' : ''; 
    241             echo '<option '.$selected.'value="'. $c . '">'.$n[0].'</option>'; 
    242         } 
    243         echo '</select>'; 
    244  
    245         echo "<h4>Buttons</h4>"; 
     232        echo ' 
     233                <table width="100%" class="follow-table"> 
     234                    <tr> 
     235                        <td style="width:290px"> 
     236                            <p><strong><label for="'. $this->get_field_id('style') . '">' . __('Styles:', 'addthis') .'</label></strong></p> 
     237                            <select id="toolbox-style" name="'.  $this->get_field_name('style') .'">'; 
     238                            foreach($this->styles as $c => $n) { 
     239                                $selected = ($instance['style'] == $c) ? ' selected="selected" ' : ''; 
     240                                echo '<option '.$selected.'value="'. $c . '">'.$n[0].'</option>'; 
     241                            } 
     242                            echo '</select> 
     243                        </td> 
     244                        <td style="float:right"> 
     245                            <p><strong><label for="'. $this->get_field_id('profile') .'">'.__('AddThis Profile ID:', 'addthis') .'</label></strong></p> 
     246                                <input style="width:160px" class="widefat" id="'. $this->get_field_id('profile') .'" name="'.$this->get_field_name('profile') .'" type="text" value="'. $profile .'" /> 
     247                        </td> 
     248                    </tr> 
     249                    <tr> 
     250                        <td colspan="2"> 
     251                        <p><strong><label for="'.$this->get_field_id('title') .'">' . __('Header:') . '</label></strong></p> 
     252                        <input style="width:160px" class="widefat" id="'.$this->get_field_id('title').'" name="'. $this->get_field_name('title') .'" type="text" value="'.$title .'" /> 
     253                            </td> 
     254                            </tr> 
     255                    <tr> 
     256     <td colspan="2"> 
     257        <p><strong>' . __('Buttons:') . '</strong></p>'; 
    246258        $count = 0; 
    247259        // Buttons 
     
    252264            $count++; 
    253265        } 
    254         echo "<a href='#' class='atmorelink button-secondary'><span class='atmore'>" . __('More Options', 'addthis') . '</span><span class="atless hidden">'. __('Less Options', 'addthis'). "<span></a>"; 
    255  
    256  
     266        echo '</td></tr> 
     267            <tr><td colspan="2">'; 
     268       echo "<a href='#' class='atmorelink button-secondary'><span class='atmore'>" . __('More Options', 'addthis') . '</span><span class="atless hidden">'. __('Less Options', 'addthis'). "<span></a> 
     269                </td></tr></table>"; 
    257270    } 
    258271 
  • addthis-follow/tags/1.1/css/widgets-php.css

    r565439 r614139  
    77    border-top: 1px solid #ddd; 
    88    padding-top: 5px; 
     9    padding-bottom: 5px; 
    910} 
    1011 
     
    2021    background: #FCF8E3; 
    2122} 
     23.follow-table td { 
     24    padding-top:10px; 
     25} 
     26.widget .widget-inside p { 
     27    margin: 0 0 0.4em; 
     28    padding: 0; 
     29} 
  • addthis-follow/tags/1.1/includes/addthis_addjs.php

    r565456 r614139  
    3939        } 
    4040 
    41         $this->productCode = ''; 
     41        $this->productCode = 'wppf-110'; 
    4242 
    4343        // Version of AddThis code to use 
    44         $this->atversion = '250'; 
     44        $this->atversion = '300'; 
    4545 
    4646        // We haven't added our JS yet. Or at least better not have. 
  • addthis-follow/tags/1.1/js/widgets-php.js

    r565439 r614139  
    22    $('.atmorelink').live('click', function(e){ 
    33        e.preventDefault(); 
    4         $(this).siblings('.atmore').toggleClass('hidden'); 
     4        $('.atfollowservice').filter('.atmore').toggleClass('hidden'); 
    55        $(this).find('.atmore').toggleClass('hidden'); 
    66        $(this).find('.atless').toggleClass('hidden'); 
  • addthis-follow/tags/1.1/readme.txt

    r612764 r614139  
    33Tags: follow, addthis, social,  widget, AddThis  
    44Requires at least: 3.3.2 
    5 Tested up to: 3.4.1 
    6 Stable tag: 1.0.0 
     5Tested up to: 3.4.2 
     6Stable tag: 1.1 
    77 
    88The AddThis Follow Widget enables your visitors to follow, fan, and subscribe to your social profiles, blogs, and RSS feeds. 
     
    6161== Changelog == 
    6262 
     63= 1.1 = 
     64* Updated UI on Widget Setup  
     65* Update to Widget Framework 
     66 
    6367= 1.0.0 = 
    6468* Initial Version 
     
    6670== Upgrade Notice == 
    6771 
     72= 1.1 =  
     73* Updated UI on widget setup and widget framework 
     74  
    6875= 1.0.0 = 
    6976* If you're upgrading to this, you are super special 
Note: See TracChangeset for help on using the changeset viewer.