Changeset 1057061
- Timestamp:
- 12/30/2014 07:24:06 PM (11 years ago)
- Location:
- pocket-wp/trunk
- Files:
-
- 5 added
- 2 edited
-
pocket-wp.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
screenshots/screenshot-1.png (added)
-
screenshots/screenshot-2.png (added)
-
screenshots/screenshot-3.png (added)
-
screenshots/screenshot-4.png (added)
-
screenshots/screenshot-5.png (added)
Legend:
- Unmodified
- Added
- Removed
-
pocket-wp/trunk/pocket-wp.php
r1057015 r1057061 4 4 * Plugin URI: http://ciaranmahoney.me/pocket-wp 5 5 * Description: Adds a shortcode and widget which allows you to display your pocket links in a WordPress page/post. 6 * Version: 0. 36 * Version: 0.4 7 7 * Author: Ciaran Mahoney 8 8 * Author URI: http://ciaranmahoney.me/ … … 30 30 // Set the version of this plugin 31 31 if( ! defined( 'POCKET_WP' ) ) { 32 define( 'POCKET_WP', '0. 3' );32 define( 'POCKET_WP', '0.4' ); 33 33 } 34 34 … … 396 396 // Loop through array and get link details. 397 397 foreach($pwp_items as $item){ 398 echo '<h3><a href="' . $item[0] . '" class="pwp_item_sc_link" target="_blank">' . $item[1] . '</a></h3>'; 398 $html[] = '<div class="pwp-links-shortcode">'; 399 400 $html[] = '<h4><a href="' . $item[0] . '" class="pwp_item_sc_link" target="_blank">' . $item[1] . '</a></h4>'; 399 401 400 402 //Display excerpt if excerpt is not set to no. 401 403 if (strtolower($excerpt) != 'no'){ 402 echo'<p class="pwp_item_excerpt">' . $item[2] . '</p>';404 $html[] = '<p class="pwp_item_excerpt">' . $item[2] . '</p>'; 403 405 } 404 406 405 407 // Display tag list if tag_list not set to no. 406 408 if(strtolower($tag_list) != 'no') { 407 echo'<p class="pwp_tag_list">';409 $html[] = '<p class="pwp_tag_list">'; 408 410 foreach($item[3] as $tag) { 409 echo'<span class="pwp_tags">' . $tag['tag'] . '</span>';411 $html[] = '<span class="pwp_tags">' . $tag['tag'] . '</span>'; 410 412 } 411 echo'</p>';413 $html[] ='</p>'; 412 414 } 413 415 } … … 415 417 if (strtolower($credit) == "yes") { 416 418 // Display author credit links 417 echo'<p id="pwp_plugin_credit_sc"><a href="http://ciaranmahoney.me/code/pocket-wp/?utm_campaign=pocket-wp&utm_source=pwp-shortcode&utm_medium=wp-plugins" target="_blank">Pocket WP</a> by <a href="https://twitter.com/ciaransm" target="_blank">@ciaransm</a></p>';419 $html[] = '<p id="pwp_plugin_credit_sc"><a href="http://ciaranmahoney.me/code/pocket-wp/?utm_campaign=pocket-wp&utm_source=pwp-shortcode&utm_medium=wp-plugins" target="_blank">Pocket WP</a> by <a href="https://twitter.com/ciaransm" target="_blank">@ciaransm</a></p>'; 418 420 } else { 419 421 // Do not show credit links unless user opts in. 420 422 } 423 424 return implode("\n", $html); 425 421 426 } // end pwp_shortcode 422 427 } // end pocketwp class -
pocket-wp/trunk/readme.txt
r1057023 r1057061 3 3 Tags: links, pocket, shortcode, widget 4 4 Requires at least: 3.0.1 5 Tested up to: 3.45 Tested up to: 4.1 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 71 71 == Changelog == 72 72 73 = 0.4 = 74 * Fix so shortcode doesn't always display above text. 75 73 76 = 0.3 = 74 77 * First public release
Note: See TracChangeset
for help on using the changeset viewer.