Changeset 1749709
- Timestamp:
- 10/20/2017 07:17:47 AM (8 years ago)
- Location:
- snippy/trunk
- Files:
-
- 3 edited
-
includes/placeholders.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
-
snippy.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
snippy/trunk/includes/placeholders.php
r1711334 r1749709 33 33 } 34 34 35 // return name of the current theme 36 if ($name === 'theme') { 37 return \get_template(); 38 } 39 40 // returns uri of the themes directory 41 if ($name === 'theme_root_uri') { 42 return \get_theme_root_uri(); 43 } 44 45 // Returns the uri of the current theme 46 if ($name === 'template_directory_uri') { 47 return \get_template_directory_uri(); 48 } 49 50 35 51 /** 36 52 * PHP … … 51 67 return toISODate(new \DateTime('tomorrow')); 52 68 } 53 69 54 70 return ''; 55 71 } -
snippy/trunk/readme.txt
r1718695 r1749709 4 4 Tags: shortcode, short code, build, create, javascript 5 5 Requires at least: 4.5 6 Tested up to: 4.8. 17 Stable tag: 1. 1.16 Tested up to: 4.8.2 7 Stable tag: 1.2.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 92 92 * `{{page_relative_url}}` relative url to the current page. 93 93 * `{{page_absolute_url}}` absolute url to the current page (includes the domain). 94 * `{{theme}}` current theme name. 95 * `{{theme_root_uri}}` theme directory URI. 96 * `{{template_directory_uri}}` current theme directory URI. 94 97 95 98 … … 102 105 103 106 == Changelog == 107 108 = 1.2.0 = 109 110 * HTML bits can now contain shortcodes 111 * Add more placeholders 112 104 113 105 114 = 1.1.1 = … … 122 131 == Upgrade Notice == 123 132 124 Fix problem where shortcode and bits tables would not show paging control 133 Improved parsing of bits, HTML bits can now contain shortcodes. Three additional default placeholders were added. -
snippy/trunk/snippy.php
r1718695 r1749709 4 4 * Plugin URI: https://pqina.nl/snippy 5 5 * Description: Snippy, create your own super flexible shortcodes 6 * Version: 1. 1.16 * Version: 1.2.0 7 7 * Author: PQINA 8 8 * Author URI: https://pqina.nl … … 63 63 64 64 // Snippy version 65 public static $version = '1. 1.1';65 public static $version = '1.2.0'; 66 66 67 67 private static $_instance = null; … … 283 283 284 284 // replace placeholders in html value 285 $html = html_entity_decode($bit_value);285 $html = \do_shortcode(html_entity_decode($bit_value)); 286 286 $placeholders_merged = Utils::merge_placeholders_and_atts($bit, $atts); 287 287
Note: See TracChangeset
for help on using the changeset viewer.