Changeset 957035
- Timestamp:
- 07/30/2014 12:28:40 AM (12 years ago)
- Location:
- proper-shortcodes/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
proper-shortcodes.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
proper-shortcodes/trunk/README.md
r687825 r957035 1 proper-shortcodes 2 ================= 1 # PROPER Shortcodes 3 2 4 Git repo for the PROPER Shortcodes WordPress plugin 3 Git repo for the PROPER Shortcodes WordPress plugin. 4 5 [WordPress repo plugin here](https://wordpress.org/plugins/proper-shortcodes/) -
proper-shortcodes/trunk/proper-shortcodes.php
r696052 r957035 3 3 /* 4 4 Plugin Name: PROPER Shortcodes 5 Plugin URI: http://thepr TRUEweb.com6 Description: A collection of shortcodes that ha sproven useful7 Version: 0. 25 Plugin URI: http://theproperweb.com/product/proper-shortcodes/ 6 Description: A collection of shortcodes that have proven useful 7 Version: 0.3 8 8 Author: PROPER Web Development 9 9 Author URI: http://theproperweb.com … … 18 18 19 19 /* Display base url of WordPress installation 20 * @return: Returns WP function site_url() 20 * @return: Returns WP function site_url() or home_url() 21 21 */ 22 22 function proper_shortcode_site_url() { 23 23 return site_url(); 24 24 } 25 add_shortcode('site_url', 'proper_shortcode_site_url'); 25 26 add_shortcode('p_site_url', 'proper_shortcode_site_url'); 27 28 function proper_shortcode_home_url() { 29 return home_url(); 30 } 31 32 add_shortcode( 'p_home_url', 'proper_shortcode_home_url' ); 33 add_shortcode( 'home_url', 'proper_shortcode_home_url' ); 26 34 27 35 … … 335 343 336 344 add_shortcode( 'p_sitemap', 'proper_shortcode_sitemap' ); 345 346 /** 347 * Outputs a simple <hr> tag with styles, if desired 348 * 349 */ 350 351 function proper_shortcode_hr( $atts ) { 352 353 $style = ! empty( $atts['style'] ) ? ' style="' . esc_attr( $atts['style'] ) . '"' : ''; 354 return '<hr' . $style . '>'; 355 } 356 357 add_shortcode( 'hr', 'proper_shortcode_hr' ); -
proper-shortcodes/trunk/readme.txt
r696062 r957035 3 3 Tags: shortcodes 4 4 Requires at least: 3.0 5 Tested up to: 3.5.16 Stable tag: 0. 25 Tested up to: 4.0 6 Stable tag: 0.3 7 7 License: GPLv2 or later 8 8 … … 18 18 19 19 **[p_site_url]** 20 **[site_url]** 21 **[p_home_url]** 22 **[home_url]** 20 23 21 Displays the site url. Useful for adding links to pages on the site without hard-coding in the domain.24 Displays the site URL or home URL. Useful for adding links to pages on the site without hard-coding in the domain. 22 25 23 26 **[p_tagline]** … … 90 93 " and "attachment" 91 94 95 **[hr]** 96 97 Outputs an <hr> tag with styles, if desired 98 99 - "style" is straight CSS that's added to an inline attribute 100 92 101 == Screenshots == 93 102 … … 107 116 == Changelog == 108 117 118 = 0.3 = 119 * Added [home_url] 120 * Added [hr] 121 109 122 = 0.2 = 110 * Added [p_post_archive] and [p_sitemap] 123 * Added [p_post_archive] 124 * Added [p_sitemap] 111 125 112 126 = 0.1 =
Note: See TracChangeset
for help on using the changeset viewer.