WordPress.org

Plugin Directory

Changeset 495418


Ignore:
Timestamp:
01/26/12 01:43:04 (2 years ago)
Author:
bkmacdaddy
Message:

adding shortcode functionality and tagging version 1.3

Location:
pinterest-rss-widget
Files:
2 edited
5 copied

Legend:

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

    r492455 r495418  
    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.5 
     7Version: 1.3 
    88Author URI: http://bkmacdaddy.com/ 
    99 
     
    259259add_action( 'widgets_init', create_function('', 'return register_widget("Pinterest_RSS_Widget");') ); 
    260260 
     261function prw_shortcode( $atts ) { 
     262  
     263    extract( shortcode_atts( array( 
     264                'username' => '', 
     265                'maxfeeds' => 90, 
     266                'divname' => 'standard', 
     267                'printtext' => NULL, 
     268                'target' => 'samewindow', 
     269                'useenclosures' => 'yes', 
     270                'thumbwidth' => 150, 
     271                'thumbheight' => 150, 
     272                'showfollow' => 'large' 
     273            ), $atts  
     274        )  
     275    ); 
     276    // this will display our message before the content of the shortcode 
     277    get_pins_feed_list($username, $maxfeeds, $divname, $printtext, $target, $useenclosures, $thumbwidth, $thumbheight, $showfollow); 
     278  
     279} 
     280add_shortcode('prw', 'prw_shortcode'); 
     281 
    261282add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 600;') ); 
    262283 
  • pinterest-rss-widget/tags/1.3/readme.txt

    r492461 r495418  
    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. 
    1616 
     17Starting with plugin version 1.3, you can also add a list of thumbnails of your Pins to a post or a page in the editor using the shortcode [prw username="Your Pinterest Username"]. (See FAQs for instructions). 
     18 
    1719Note: This plugin is heavily based on the Image Feed Widget plugin created by Yorik van Havre (http://wordpress.org/extend/plugins/image-feed-widget/). It also utilizes the timthumb PHP script for image resizing (http://code.google.com/p/timthumb/) 
    1820 
     
    2426 
    2527== Frequently Asked Questions == 
     28 
     29= How do I use the shortcode in the post or page editor? = 
     30 
     31While editing the post or page that you want to add your Pins to, enter the shortcode [prw username="Your Pinterest Username"]. At the very minimum you have to include the username parameter, substituting "Your Pinterest Username" with your actual Pinterest username. The rest of the parameters are the same as listed below in the template tags explanation, and the defaults are also the same. Here's an example: 
     32 
     33`[prw username="bkmacdaddy" maxfeeds="10" divname="myList" printtext="0" target="newwindow" useenclosures="yes" thumbwidth="100" thumbheight="100" showfollow="medium"]` 
     34 
     35The above example will show the 10 latest Pins from bkmacdaddy's Pinterest account, in a div class titled "pins-feed-myList". Each thumbnail will be 100 x 100 pixels with no description below them. When clicked on, the Pin will open in a new tab/window, and the Follow Me On Pinterest button at the bottom will be the medium sized one. 
     36 
     37If you leave out any of the parameters they will revert to the defaults listed below. 
    2638 
    2739= How do I use the plugin in my theme? = 
     
    6375== Changelog == 
    6476 
     77= 1.3 = 
     78* Added shortcode for use in posts and pages 
     79 
    6580= 1.2.5 = 
    6681* Added ability to choose 4 different sizes of "Follow Me On Pinterest" buttons 
     
    93108== Upgrade Notice == 
    94109 
    95 = 1.2.5 = 
     110= 1.3 = 
  • pinterest-rss-widget/trunk/pinterest-rss-widget.php

    r492455 r495418  
    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.5 
     7Version: 1.3 
    88Author URI: http://bkmacdaddy.com/ 
    99 
     
    259259add_action( 'widgets_init', create_function('', 'return register_widget("Pinterest_RSS_Widget");') ); 
    260260 
     261function prw_shortcode( $atts ) { 
     262  
     263    extract( shortcode_atts( array( 
     264                'username' => '', 
     265                'maxfeeds' => 90, 
     266                'divname' => 'standard', 
     267                'printtext' => NULL, 
     268                'target' => 'samewindow', 
     269                'useenclosures' => 'yes', 
     270                'thumbwidth' => 150, 
     271                'thumbheight' => 150, 
     272                'showfollow' => 'large' 
     273            ), $atts  
     274        )  
     275    ); 
     276    // this will display our message before the content of the shortcode 
     277    get_pins_feed_list($username, $maxfeeds, $divname, $printtext, $target, $useenclosures, $thumbwidth, $thumbheight, $showfollow); 
     278  
     279} 
     280add_shortcode('prw', 'prw_shortcode'); 
     281 
    261282add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 600;') ); 
    262283 
  • pinterest-rss-widget/trunk/readme.txt

    r492461 r495418  
    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. 
    1616 
     17Starting with plugin version 1.3, you can also add a list of thumbnails of your Pins to a post or a page in the editor using the shortcode [prw username="Your Pinterest Username"]. (See FAQs for instructions). 
     18 
    1719Note: This plugin is heavily based on the Image Feed Widget plugin created by Yorik van Havre (http://wordpress.org/extend/plugins/image-feed-widget/). It also utilizes the timthumb PHP script for image resizing (http://code.google.com/p/timthumb/) 
    1820 
     
    2426 
    2527== Frequently Asked Questions == 
     28 
     29= How do I use the shortcode in the post or page editor? = 
     30 
     31While editing the post or page that you want to add your Pins to, enter the shortcode [prw username="Your Pinterest Username"]. At the very minimum you have to include the username parameter, substituting "Your Pinterest Username" with your actual Pinterest username. The rest of the parameters are the same as listed below in the template tags explanation, and the defaults are also the same. Here's an example: 
     32 
     33`[prw username="bkmacdaddy" maxfeeds="10" divname="myList" printtext="0" target="newwindow" useenclosures="yes" thumbwidth="100" thumbheight="100" showfollow="medium"]` 
     34 
     35The above example will show the 10 latest Pins from bkmacdaddy's Pinterest account, in a div class titled "pins-feed-myList". Each thumbnail will be 100 x 100 pixels with no description below them. When clicked on, the Pin will open in a new tab/window, and the Follow Me On Pinterest button at the bottom will be the medium sized one. 
     36 
     37If you leave out any of the parameters they will revert to the defaults listed below. 
    2638 
    2739= How do I use the plugin in my theme? = 
     
    6375== Changelog == 
    6476 
     77= 1.3 = 
     78* Added shortcode for use in posts and pages 
     79 
    6580= 1.2.5 = 
    6681* Added ability to choose 4 different sizes of "Follow Me On Pinterest" buttons 
     
    93108== Upgrade Notice == 
    94109 
    95 = 1.2.5 = 
     110= 1.3 = 
Note: See TracChangeset for help on using the changeset viewer.