WordPress.org

Plugin Directory

Changeset 492455


Ignore:
Timestamp:
01/20/12 00:57:17 (2 years ago)
Author:
bkmacdaddy
Message:

uploading and tagging version 1.2.5

Location:
pinterest-rss-widget
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pinterest-rss-widget/tags/1.2.5/pinterest-rss-widget.php

    r492321 r492455  
    55Description: Display up to 90 of your latest Pinterest Pins in your sidebar. You are welcome to express your gratitude for this plugin by donating via <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SXTEL7YLUSFFC" target="_blank"><strong>PayPal</strong></a> 
    66Author: bkmacdaddy designs 
    7 Version: 1.2.4 
     7Version: 1.2.5 
    88Author URI: http://bkmacdaddy.com/ 
    99 
     
    3939} 
    4040 
    41 function get_pins_feed_list($username, $maxfeeds=90, $divname='standard', $printtext=NULL, $target='samewindow', $useenclosures='yes', $thumbwidth='150', $thumbheight='150', $showfollow='yes') { 
     41function get_pins_feed_list($username, $maxfeeds=90, $divname='standard', $printtext=NULL, $target='samewindow', $useenclosures='yes', $thumbwidth='150', $thumbheight='150', $showfollow='large') { 
    4242 
    4343                // This is the main function of the plugin. It is used by the widget and can also be called from anywhere in your theme. See the readme file for example. 
     
    101101        <?php  
    102102            $pinterest_followButton = plugins_url('follow-on-pinterest-button.png', __FILE__); 
    103             if ($showfollow == 'yes') { ?> 
    104             <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank"> 
     103            if ($showfollow == 'large') { ?> 
     104            <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank" class="followLarge" title="Follow Me on Pinterest"> 
    105105                <img src="http://passets-cdn.pinterest.com/images/follow-on-pinterest-button.png" width="156" height="26" alt="Follow Me on Pinterest" border="0" /> 
    106106            </a> 
    107         <?php } ?> 
    108                 <?php 
     107        <?php } elseif ($showfollow == 'medium') { ?> 
     108            <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank" class="followMed" title="Follow Me on Pinterest"> 
     109                <img src="http://passets-cdn.pinterest.com/images/pinterest-button.png" width="78" height="26" alt="Follow Me on Pinterest" border="0" /> 
     110            </a> 
     111        <?php } elseif ($showfollow == 'small') { ?> 
     112            <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank" class="followSmall" title="Follow Me on Pinterest"> 
     113                <img src="http://passets-cdn.pinterest.com/images/big-p-button.png" width="61" height="61" alt="Follow Me on Pinterest" border="0" /> 
     114            </a> 
     115        <?php } elseif ($showfollow == 'tiny') { ?> 
     116            <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank" class="followTiny" title="Follow Me on Pinterest"> 
     117                <img src="http://passets-cdn.pinterest.com/images/small-p-button.png" width="16" height="16" alt="Follow Me on Pinterest" border="0" /> 
     118            </a> 
     119        <?php } elseif ($showfollow == 'none') {}  
    109120} 
    110121 
     
    112123  function Pinterest_RSS_Widget() { 
    113124    $widget_ops = array('classname' => 'pinterest_rss_widget', 'description' => 'A widget to display latest Pinterest Pins via RSS feed' ); 
    114     $this->WP_Widget('pinterest_rss_widget', 'Pinterest_RSS_Widget', $widget_ops); 
     125    $this->WP_Widget('pinterest_rss_widget', 'Pinterest RSS Widget', $widget_ops); 
    115126  } 
    116127 
     
    142153    if ( empty( $thumb_height ) ) { $thumb_height = '150'; }; 
    143154 
    144     if ( empty( $showfollow ) ) { $showfollow = 'yes'; }; 
     155    if ( empty( $showfollow ) ) { $showfollow = 'none'; }; 
    145156 
    146157    if ( !empty( $user_name ) ) { 
     
    182193    $showfollow = strip_tags($instance['showfollow']); 
    183194?> 
    184       <p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p> 
     195      <p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <br /><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p> 
    185196                                     
    186       <p><label for="<?php echo $this->get_field_id('user_name__title'); ?>">Pinterest Username: <input class="widefat" id="<?php echo $this->get_field_id('user_name'); ?>" name="<?php echo $this->get_field_name('user_name'); ?>" type="text" value="<?php echo attribute_escape($user_name); ?>" /></label></p> 
     197      <p><label for="<?php echo $this->get_field_id('user_name__title'); ?>">Pinterest Username: <br /><input class="widefat" id="<?php echo $this->get_field_id('user_name'); ?>" name="<?php echo $this->get_field_name('user_name'); ?>" type="text" value="<?php echo attribute_escape($user_name); ?>" /></label></p> 
    187198              
    188       <p><label for="<?php echo $this->get_field_id('maxnumber'); ?>">Max number of pins to display: <input class="widefat" id="<?php echo $this->get_field_id('maxnumber'); ?>" name="<?php echo $this->get_field_name('maxnumber'); ?>" type="text" value="<?php echo attribute_escape($maxnumber); ?>" /></label></p> 
    189        
    190       <p><label for="<?php echo $this->get_field_id('thumb_height'); ?>">Thumbnail Height in pixels (defaults to 150): <input class="widefat" id="<?php echo $this->get_field_id('thumb_height'); ?>" name="<?php echo $this->get_field_name('thumb_height'); ?>" type="text" value="<?php echo attribute_escape($thumb_height); ?>" /></label></p> 
    191        
    192       <p><label for="<?php echo $this->get_field_id('thumb_width'); ?>">Thumbnail Width in pixels (defaults to 150): <input class="widefat" id="<?php echo $this->get_field_id('thumb_width'); ?>" name="<?php echo $this->get_field_name('thumb_width'); ?>" type="text" value="<?php echo attribute_escape($thumb_width); ?>" /></label></p> 
    193  
    194       <p><label for="<?php echo $this->get_field_id('target'); ?>">Where to open the links: <select id="<?php echo $this->get_field_id('target'); ?>" name="<?php echo $this->get_field_name('target'); ?>"> 
    195         <?php  
    196       echo '<option '; 
    197           if ( $instance['target'] == 'samewindow' ) { echo 'selected '; } 
    198           echo 'value="samewindow">'; 
    199       echo 'Same Window</option>'; 
    200       echo '<option '; 
    201           if ( $instance['target'] == 'newwindow' ) { echo 'selected '; } 
    202           echo 'value="newwindow">'; 
    203       echo 'New Window</option>'; ?> 
    204       </select></label></p> 
    205  
    206       <p><label for="<?php echo $this->get_field_id('displaytitle'); ?>">Display title below pins? <select id="<?php echo $this->get_field_id('displaytitle'); ?>" name="<?php echo $this->get_field_name('displaytitle'); ?>"> 
     199      <p><label for="<?php echo $this->get_field_id('maxnumber'); ?>">Max number of pins to display: <br /><input class="widefat" id="<?php echo $this->get_field_id('maxnumber'); ?>" name="<?php echo $this->get_field_name('maxnumber'); ?>" type="text" value="<?php echo attribute_escape($maxnumber); ?>" /></label></p> 
     200       
     201      <p><label for="<?php echo $this->get_field_id('thumb_height'); ?>">Thumbnail Height in pixels<br /><em>(defaults to 150):</em><br /><input class="widefat" id="<?php echo $this->get_field_id('thumb_height'); ?>" name="<?php echo $this->get_field_name('thumb_height'); ?>" type="text" value="<?php echo attribute_escape($thumb_height); ?>" /></label></p> 
     202       
     203      <p><label for="<?php echo $this->get_field_id('thumb_width'); ?>">Thumbnail Width in pixels<br /><em>(defaults to 150):</em><br /><input class="widefat" id="<?php echo $this->get_field_id('thumb_width'); ?>" name="<?php echo $this->get_field_name('thumb_width'); ?>" type="text" value="<?php echo attribute_escape($thumb_width); ?>" /></label></p> 
     204 
     205      <p><label for="<?php echo $this->get_field_id('displaytitle'); ?>">Display title below pins? &nbsp;<select id="<?php echo $this->get_field_id('displaytitle'); ?>" name="<?php echo $this->get_field_name('displaytitle'); ?>"> 
    207206        <?php  
    208207      echo '<option '; 
     
    216215      </select></label></p> 
    217216       
    218       <p><label for="<?php echo $this->get_field_id('showfollow'); ?>">Show "Follow Me On Pinterest" button <select id="<?php echo $this->get_field_id('showfollow'); ?>" name="<?php echo $this->get_field_name('showfollow'); ?>"> 
    219         <?php  
    220       echo '<option '; 
    221           if ( $instance['showfollow'] == 'yes' ) { echo 'selected '; } 
    222           echo 'value="yes">'; 
    223       echo 'Yes</option>'; 
    224       echo '<option '; 
    225           if ( $instance['showfollow'] == 'no' ) { echo 'selected '; } 
    226           echo 'value="no">'; 
    227       echo 'No</option>'; ?> 
    228       </select></label></p> 
    229  
    230       <p><label for="<?php echo $this->get_field_id('useenclosures'); ?>">Use RSS enclosures? (leave yes if unsure) <select id="<?php echo $this->get_field_id('useenclosures'); ?>" name="<?php echo $this->get_field_name('useenclosures'); ?>"> 
    231         <?php  
    232       echo '<option '; 
    233           if ( $instance['useenclosures'] == 'yes' ) { echo 'selected '; } 
    234           echo 'value="yes">'; 
    235       echo 'Yes</option>'; 
    236       echo '<option '; 
    237           if ( $instance['useenclosures'] == 'no' ) { echo 'selected '; } 
    238           echo 'value="no">'; 
    239       echo 'No</option>'; ?> 
     217      <p><label for="<?php echo $this->get_field_id('target'); ?>">Where to open the links: <br /><select id="<?php echo $this->get_field_id('target'); ?>" name="<?php echo $this->get_field_name('target'); ?>"> 
     218        <?php  
     219      echo '<option '; 
     220          if ( $instance['target'] == 'samewindow' ) { echo 'selected '; } 
     221          echo 'value="samewindow">'; 
     222      echo 'Same Window</option>'; 
     223      echo '<option '; 
     224          if ( $instance['target'] == 'newwindow' ) { echo 'selected '; } 
     225          echo 'value="newwindow">'; 
     226      echo 'New Window</option>'; ?> 
     227      </select></label></p>       
     228       
     229      <p><label for="<?php echo $this->get_field_id('showfollow'); ?>">Show "Follow Me On Pinterest" button? <br /><select id="<?php echo $this->get_field_id('showfollow'); ?>" name="<?php echo $this->get_field_name('showfollow'); ?>"> 
     230        <?php  
     231            echo '<option '; 
     232                if ( $instance['showfollow'] == 'large' ) { echo 'selected '; } 
     233                    echo 'value="large">'; 
     234                    echo 'Large (156x26) </option>'; 
     235            echo '<option '; 
     236                if ( $instance['showfollow'] == 'medium' ) { echo 'selected '; } 
     237                    echo 'value="medium">'; 
     238                    echo 'Medium (78x26) </option>';  
     239            echo '<option '; 
     240                if ( $instance['showfollow'] == 'small' ) { echo 'selected '; } 
     241                    echo 'value="small">'; 
     242                    echo 'Small (61x61) </option>'; 
     243            echo '<option '; 
     244                if ( $instance['showfollow'] == 'tiny' ) { echo 'selected '; } 
     245                    echo 'value="tiny">'; 
     246                    echo 'Tiny (16x16) </option>'; 
     247            echo '<option '; 
     248                if ( $instance['showfollow'] == 'none' ) { echo 'selected '; } 
     249                    echo 'value="none">'; 
     250                    echo 'None </option>'; 
     251        ?> 
    240252      </select></label></p> 
    241253 
  • pinterest-rss-widget/tags/1.2.5/readme.txt

    r492094 r492455  
    1111== Description == 
    1212 
    13 This plugin allows you to place a widget on your sidebar that fetches the most recent contents of a Pinterest user's RSS feed and displays the corresponding thumbnail images. You can choose whether to show the title below the image, and you can set the height and width of the thumbnails to fit your theme. You also have the option of showing the official "Follow Me On Pinterest" button below all your pins. 
     13This plugin allows you to place a widget on your sidebar that fetches the most recent contents of a Pinterest user's RSS feed and displays the corresponding thumbnail images. You can choose whether to show the description below the image, and you can set the height and width of the thumbnails to fit your theme. You also have the option of showing 4 different sizes of the official "Follow Me On Pinterest" button below the list of your pins. 
    1414 
    1515You can also use this plugin from your theme templates, to display images lists anywhere else on your blog and you can easily give them a fixed size or a maximum size with CSS styling. 
     
    3636* **maxfeeds** is the maximum number of Pins to display (optional, default = 90) 
    3737* **divname** is a name suffix for the list class. "myList" will become "pins-feed-myList" (optional) 
    38 * **printtext** must be 1 if you want the image title to be printed below the image (optional) 
     38* **printtext** must be 1 if you want the first few words of the Pin description to be printed below the thumbnail (optional) 
    3939* **target** is "samewindow" or "newwindow", depending on where you want links to open (optional, default = samewindow) 
    4040* **useenclosures** is "yes" or "no" (optional, default = yes). Use this if you don't want to use the <enclosure> tag in the feed and force the script to find an image link in the feed item description. 
    4141* **thumbwidth** is a number that will set the width in pixels of the Pin's thumbnail (optional, default = 150) 
    4242* **thumbheight** is a number that will set the height in pixels of the Pin's thumbnail (optional, default = 150) 
    43 * **showfollow** is "yes" or "no" (optional, default = yes). Use this if you want to show the "Follow Me On Pinterest" button below the thumbnails. 
     43* **showfollow** is "large", "medium", "small", "tiny" or "none" (optional, default = none). Use this if you want to show the "Follow Me On Pinterest" button below the thumbnails. Select the size that best fits the space allowed ("large" is 156x26, "medium" is 78x26, "small" is the square 61x61 logo, and "tiny" is the 16x16 logo.) 
    4444 
    4545Example: 
    4646 
    47 `<?php get_pins_feed_list('bkmacdaddy', 10, 'myList', 1, 'newwindow', 'yes', 125, 125, 'yes'); ?>`  
     47`<?php get_pins_feed_list('bkmacdaddy', 10, 'myList', 1, 'newwindow', 'yes', 125, 125, 'large'); ?>`  
    4848 
    4949= The images are not showing. What went wrong? = 
     
    5757== Screenshots == 
    5858 
    59 1. Screenshot of the widget settings 
     591. The widget settings 
    60602. Widget on the front end with 9 Pins and titles displaying 
     613. Choose one of four buttons (or none) to display beneath the list of Pins 
    6162 
    6263== Changelog == 
     64 
     65= 1.2.5 = 
     66* Added ability to choose 4 different sizes of "Follow Me On Pinterest" buttons 
    6367 
    6468= 1.2.4 = 
  • pinterest-rss-widget/trunk/pinterest-rss-widget.php

    r492321 r492455  
    55Description: Display up to 90 of your latest Pinterest Pins in your sidebar. You are welcome to express your gratitude for this plugin by donating via <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SXTEL7YLUSFFC" target="_blank"><strong>PayPal</strong></a> 
    66Author: bkmacdaddy designs 
    7 Version: 1.2.4 
     7Version: 1.2.5 
    88Author URI: http://bkmacdaddy.com/ 
    99 
     
    3939} 
    4040 
    41 function get_pins_feed_list($username, $maxfeeds=90, $divname='standard', $printtext=NULL, $target='samewindow', $useenclosures='yes', $thumbwidth='150', $thumbheight='150', $showfollow='yes') { 
     41function get_pins_feed_list($username, $maxfeeds=90, $divname='standard', $printtext=NULL, $target='samewindow', $useenclosures='yes', $thumbwidth='150', $thumbheight='150', $showfollow='large') { 
    4242 
    4343                // This is the main function of the plugin. It is used by the widget and can also be called from anywhere in your theme. See the readme file for example. 
     
    101101        <?php  
    102102            $pinterest_followButton = plugins_url('follow-on-pinterest-button.png', __FILE__); 
    103             if ($showfollow == 'yes') { ?> 
    104             <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank"> 
     103            if ($showfollow == 'large') { ?> 
     104            <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank" class="followLarge" title="Follow Me on Pinterest"> 
    105105                <img src="http://passets-cdn.pinterest.com/images/follow-on-pinterest-button.png" width="156" height="26" alt="Follow Me on Pinterest" border="0" /> 
    106106            </a> 
    107         <?php } ?> 
    108                 <?php 
     107        <?php } elseif ($showfollow == 'medium') { ?> 
     108            <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank" class="followMed" title="Follow Me on Pinterest"> 
     109                <img src="http://passets-cdn.pinterest.com/images/pinterest-button.png" width="78" height="26" alt="Follow Me on Pinterest" border="0" /> 
     110            </a> 
     111        <?php } elseif ($showfollow == 'small') { ?> 
     112            <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank" class="followSmall" title="Follow Me on Pinterest"> 
     113                <img src="http://passets-cdn.pinterest.com/images/big-p-button.png" width="61" height="61" alt="Follow Me on Pinterest" border="0" /> 
     114            </a> 
     115        <?php } elseif ($showfollow == 'tiny') { ?> 
     116            <a href="http://pinterest.com/<?php echo $username; ?>/" id="pins-feed-follow" target="_blank" class="followTiny" title="Follow Me on Pinterest"> 
     117                <img src="http://passets-cdn.pinterest.com/images/small-p-button.png" width="16" height="16" alt="Follow Me on Pinterest" border="0" /> 
     118            </a> 
     119        <?php } elseif ($showfollow == 'none') {}  
    109120} 
    110121 
     
    112123  function Pinterest_RSS_Widget() { 
    113124    $widget_ops = array('classname' => 'pinterest_rss_widget', 'description' => 'A widget to display latest Pinterest Pins via RSS feed' ); 
    114     $this->WP_Widget('pinterest_rss_widget', 'Pinterest_RSS_Widget', $widget_ops); 
     125    $this->WP_Widget('pinterest_rss_widget', 'Pinterest RSS Widget', $widget_ops); 
    115126  } 
    116127 
     
    142153    if ( empty( $thumb_height ) ) { $thumb_height = '150'; }; 
    143154 
    144     if ( empty( $showfollow ) ) { $showfollow = 'yes'; }; 
     155    if ( empty( $showfollow ) ) { $showfollow = 'none'; }; 
    145156 
    146157    if ( !empty( $user_name ) ) { 
     
    182193    $showfollow = strip_tags($instance['showfollow']); 
    183194?> 
    184       <p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p> 
     195      <p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <br /><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p> 
    185196                                     
    186       <p><label for="<?php echo $this->get_field_id('user_name__title'); ?>">Pinterest Username: <input class="widefat" id="<?php echo $this->get_field_id('user_name'); ?>" name="<?php echo $this->get_field_name('user_name'); ?>" type="text" value="<?php echo attribute_escape($user_name); ?>" /></label></p> 
     197      <p><label for="<?php echo $this->get_field_id('user_name__title'); ?>">Pinterest Username: <br /><input class="widefat" id="<?php echo $this->get_field_id('user_name'); ?>" name="<?php echo $this->get_field_name('user_name'); ?>" type="text" value="<?php echo attribute_escape($user_name); ?>" /></label></p> 
    187198              
    188       <p><label for="<?php echo $this->get_field_id('maxnumber'); ?>">Max number of pins to display: <input class="widefat" id="<?php echo $this->get_field_id('maxnumber'); ?>" name="<?php echo $this->get_field_name('maxnumber'); ?>" type="text" value="<?php echo attribute_escape($maxnumber); ?>" /></label></p> 
    189        
    190       <p><label for="<?php echo $this->get_field_id('thumb_height'); ?>">Thumbnail Height in pixels (defaults to 150): <input class="widefat" id="<?php echo $this->get_field_id('thumb_height'); ?>" name="<?php echo $this->get_field_name('thumb_height'); ?>" type="text" value="<?php echo attribute_escape($thumb_height); ?>" /></label></p> 
    191        
    192       <p><label for="<?php echo $this->get_field_id('thumb_width'); ?>">Thumbnail Width in pixels (defaults to 150): <input class="widefat" id="<?php echo $this->get_field_id('thumb_width'); ?>" name="<?php echo $this->get_field_name('thumb_width'); ?>" type="text" value="<?php echo attribute_escape($thumb_width); ?>" /></label></p> 
    193  
    194       <p><label for="<?php echo $this->get_field_id('target'); ?>">Where to open the links: <select id="<?php echo $this->get_field_id('target'); ?>" name="<?php echo $this->get_field_name('target'); ?>"> 
    195         <?php  
    196       echo '<option '; 
    197           if ( $instance['target'] == 'samewindow' ) { echo 'selected '; } 
    198           echo 'value="samewindow">'; 
    199       echo 'Same Window</option>'; 
    200       echo '<option '; 
    201           if ( $instance['target'] == 'newwindow' ) { echo 'selected '; } 
    202           echo 'value="newwindow">'; 
    203       echo 'New Window</option>'; ?> 
    204       </select></label></p> 
    205  
    206       <p><label for="<?php echo $this->get_field_id('displaytitle'); ?>">Display title below pins? <select id="<?php echo $this->get_field_id('displaytitle'); ?>" name="<?php echo $this->get_field_name('displaytitle'); ?>"> 
     199      <p><label for="<?php echo $this->get_field_id('maxnumber'); ?>">Max number of pins to display: <br /><input class="widefat" id="<?php echo $this->get_field_id('maxnumber'); ?>" name="<?php echo $this->get_field_name('maxnumber'); ?>" type="text" value="<?php echo attribute_escape($maxnumber); ?>" /></label></p> 
     200       
     201      <p><label for="<?php echo $this->get_field_id('thumb_height'); ?>">Thumbnail Height in pixels<br /><em>(defaults to 150):</em><br /><input class="widefat" id="<?php echo $this->get_field_id('thumb_height'); ?>" name="<?php echo $this->get_field_name('thumb_height'); ?>" type="text" value="<?php echo attribute_escape($thumb_height); ?>" /></label></p> 
     202       
     203      <p><label for="<?php echo $this->get_field_id('thumb_width'); ?>">Thumbnail Width in pixels<br /><em>(defaults to 150):</em><br /><input class="widefat" id="<?php echo $this->get_field_id('thumb_width'); ?>" name="<?php echo $this->get_field_name('thumb_width'); ?>" type="text" value="<?php echo attribute_escape($thumb_width); ?>" /></label></p> 
     204 
     205      <p><label for="<?php echo $this->get_field_id('displaytitle'); ?>">Display title below pins? &nbsp;<select id="<?php echo $this->get_field_id('displaytitle'); ?>" name="<?php echo $this->get_field_name('displaytitle'); ?>"> 
    207206        <?php  
    208207      echo '<option '; 
     
    216215      </select></label></p> 
    217216       
    218       <p><label for="<?php echo $this->get_field_id('showfollow'); ?>">Show "Follow Me On Pinterest" button <select id="<?php echo $this->get_field_id('showfollow'); ?>" name="<?php echo $this->get_field_name('showfollow'); ?>"> 
    219         <?php  
    220       echo '<option '; 
    221           if ( $instance['showfollow'] == 'yes' ) { echo 'selected '; } 
    222           echo 'value="yes">'; 
    223       echo 'Yes</option>'; 
    224       echo '<option '; 
    225           if ( $instance['showfollow'] == 'no' ) { echo 'selected '; } 
    226           echo 'value="no">'; 
    227       echo 'No</option>'; ?> 
    228       </select></label></p> 
    229  
    230       <p><label for="<?php echo $this->get_field_id('useenclosures'); ?>">Use RSS enclosures? (leave yes if unsure) <select id="<?php echo $this->get_field_id('useenclosures'); ?>" name="<?php echo $this->get_field_name('useenclosures'); ?>"> 
    231         <?php  
    232       echo '<option '; 
    233           if ( $instance['useenclosures'] == 'yes' ) { echo 'selected '; } 
    234           echo 'value="yes">'; 
    235       echo 'Yes</option>'; 
    236       echo '<option '; 
    237           if ( $instance['useenclosures'] == 'no' ) { echo 'selected '; } 
    238           echo 'value="no">'; 
    239       echo 'No</option>'; ?> 
     217      <p><label for="<?php echo $this->get_field_id('target'); ?>">Where to open the links: <br /><select id="<?php echo $this->get_field_id('target'); ?>" name="<?php echo $this->get_field_name('target'); ?>"> 
     218        <?php  
     219      echo '<option '; 
     220          if ( $instance['target'] == 'samewindow' ) { echo 'selected '; } 
     221          echo 'value="samewindow">'; 
     222      echo 'Same Window</option>'; 
     223      echo '<option '; 
     224          if ( $instance['target'] == 'newwindow' ) { echo 'selected '; } 
     225          echo 'value="newwindow">'; 
     226      echo 'New Window</option>'; ?> 
     227      </select></label></p>       
     228       
     229      <p><label for="<?php echo $this->get_field_id('showfollow'); ?>">Show "Follow Me On Pinterest" button? <br /><select id="<?php echo $this->get_field_id('showfollow'); ?>" name="<?php echo $this->get_field_name('showfollow'); ?>"> 
     230        <?php  
     231            echo '<option '; 
     232                if ( $instance['showfollow'] == 'large' ) { echo 'selected '; } 
     233                    echo 'value="large">'; 
     234                    echo 'Large (156x26) </option>'; 
     235            echo '<option '; 
     236                if ( $instance['showfollow'] == 'medium' ) { echo 'selected '; } 
     237                    echo 'value="medium">'; 
     238                    echo 'Medium (78x26) </option>';  
     239            echo '<option '; 
     240                if ( $instance['showfollow'] == 'small' ) { echo 'selected '; } 
     241                    echo 'value="small">'; 
     242                    echo 'Small (61x61) </option>'; 
     243            echo '<option '; 
     244                if ( $instance['showfollow'] == 'tiny' ) { echo 'selected '; } 
     245                    echo 'value="tiny">'; 
     246                    echo 'Tiny (16x16) </option>'; 
     247            echo '<option '; 
     248                if ( $instance['showfollow'] == 'none' ) { echo 'selected '; } 
     249                    echo 'value="none">'; 
     250                    echo 'None </option>'; 
     251        ?> 
    240252      </select></label></p> 
    241253 
  • pinterest-rss-widget/trunk/readme.txt

    r492094 r492455  
    1111== Description == 
    1212 
    13 This plugin allows you to place a widget on your sidebar that fetches the most recent contents of a Pinterest user's RSS feed and displays the corresponding thumbnail images. You can choose whether to show the title below the image, and you can set the height and width of the thumbnails to fit your theme. You also have the option of showing the official "Follow Me On Pinterest" button below all your pins. 
     13This plugin allows you to place a widget on your sidebar that fetches the most recent contents of a Pinterest user's RSS feed and displays the corresponding thumbnail images. You can choose whether to show the description below the image, and you can set the height and width of the thumbnails to fit your theme. You also have the option of showing 4 different sizes of the official "Follow Me On Pinterest" button below the list of your pins. 
    1414 
    1515You can also use this plugin from your theme templates, to display images lists anywhere else on your blog and you can easily give them a fixed size or a maximum size with CSS styling. 
     
    3636* **maxfeeds** is the maximum number of Pins to display (optional, default = 90) 
    3737* **divname** is a name suffix for the list class. "myList" will become "pins-feed-myList" (optional) 
    38 * **printtext** must be 1 if you want the image title to be printed below the image (optional) 
     38* **printtext** must be 1 if you want the first few words of the Pin description to be printed below the thumbnail (optional) 
    3939* **target** is "samewindow" or "newwindow", depending on where you want links to open (optional, default = samewindow) 
    4040* **useenclosures** is "yes" or "no" (optional, default = yes). Use this if you don't want to use the <enclosure> tag in the feed and force the script to find an image link in the feed item description. 
    4141* **thumbwidth** is a number that will set the width in pixels of the Pin's thumbnail (optional, default = 150) 
    4242* **thumbheight** is a number that will set the height in pixels of the Pin's thumbnail (optional, default = 150) 
    43 * **showfollow** is "yes" or "no" (optional, default = yes). Use this if you want to show the "Follow Me On Pinterest" button below the thumbnails. 
     43* **showfollow** is "large", "medium", "small", "tiny" or "none" (optional, default = none). Use this if you want to show the "Follow Me On Pinterest" button below the thumbnails. Select the size that best fits the space allowed ("large" is 156x26, "medium" is 78x26, "small" is the square 61x61 logo, and "tiny" is the 16x16 logo.) 
    4444 
    4545Example: 
    4646 
    47 `<?php get_pins_feed_list('bkmacdaddy', 10, 'myList', 1, 'newwindow', 'yes', 125, 125, 'yes'); ?>`  
     47`<?php get_pins_feed_list('bkmacdaddy', 10, 'myList', 1, 'newwindow', 'yes', 125, 125, 'large'); ?>`  
    4848 
    4949= The images are not showing. What went wrong? = 
     
    5757== Screenshots == 
    5858 
    59 1. Screenshot of the widget settings 
     591. The widget settings 
    60602. Widget on the front end with 9 Pins and titles displaying 
     613. Choose one of four buttons (or none) to display beneath the list of Pins 
    6162 
    6263== Changelog == 
     64 
     65= 1.2.5 = 
     66* Added ability to choose 4 different sizes of "Follow Me On Pinterest" buttons 
    6367 
    6468= 1.2.4 = 
Note: See TracChangeset for help on using the changeset viewer.