Changeset 434396
- Timestamp:
- 09/07/2011 01:13:49 AM (15 years ago)
- Location:
- easy-spoiler/trunk
- Files:
-
- 3 edited
-
easy-spoiler-settings.php (modified) (2 diffs)
-
easy-spoiler.php (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-spoiler/trunk/easy-spoiler-settings.php
r429733 r434396 98 98 'text' => 'Render the title in a bold font', 99 99 'help' => 'If checked, the title will be bold.' ), 100 100 101 101 (object) array( 102 102 'title' => 'Font Size', … … 104 104 'text' => 'The size of the font (in percent)', 105 105 'help' => 'Provide a number as a percent for the title size. It may be larger than 100 (120 is the default).' ), 106 107 (object) array( 108 'title' => 'Embed shortcodes within Title', 109 'key' => 'GBL_TITLEPARSE', 110 'style' => 'max-width: 5em', 111 'text' => 'Tells Easy Spoiler to parse the spoiler title for additional embedded shortcodes.', 112 'help' => 'If checked, ensure you set the open and close tokens below. You must choose tokens different than the angular brackets [, ]. For example, you may use (, ): (myshortcode)xx(/myshortcode)' ), 113 114 (object) array( 115 'title' => 'Shortcode Open character', 116 'key' => 'GBL_TITLEPARSECHAROPEN', 117 'text' => 'The character to start a Title shortcode with. [ is disallowed.', 118 'help' => 'Relevant only if Embed Shortcodes Within Title is entabled. This is the character (or string) to match signifying the start of a shortcode. Do not use brackets.' ), 119 120 (object) array( 121 'title' => 'Shortcode Close character', 122 'key' => 'GBL_TITLEPARSECHARCLOSE', 123 'text' => 'The character to end a Title shortcode with. ] is disallowed.', 124 'help' => 'Relevant only if Embed Shortcodes Within Title is entabled. This is the character (or string) to match signifying the end of a shortcode. Do not use brackets.' ), 125 106 126 )), 107 127 -
easy-spoiler/trunk/easy-spoiler.php
r429733 r434396 2 2 /* 3 3 Plugin Name: Easy Spoiler 4 Version: 1. 54 Version: 1.6 5 5 Plugin URI: http://www.dyerware.com/main/products/easy-spoiler 6 6 Description: Creates an attractive container to hide a spoiler within a post or page. Works in comments and widgets as well. Also supports clustering spoilers into groups. … … 74 74 var $GBL_TITLEBOLD = false; 75 75 var $GBL_TITLESIZE = 120; 76 77 var $GBL_TITLEPARSE = false; 78 var $GBL_TITLEPARSECHAROPEN = '('; 79 var $GBL_TITLEPARSECHARCLOSE = ')'; 76 80 77 81 … … 167 171 'GBL_TITLECOLOR', 'GBL_OUTERBKGCOLOR', 'GBL_INNERBKGCOLOR', 'GBL_BUTTONCOLOR', 'GBL_BUTTONTEXT', 168 172 'GBL_INNERTEXTCOLOR', 'GBL_BUTTONLINE', 'GBL_REFRESHIFRAMES', 'GBL_ANIMATIONSPEED', 'GBL_TITLEBARBUTTON', 169 'GBL_SHOWSELECT', 'GBL_SELECT', 'GBL_TITLEBOLD', 'GBL_TITLESIZE', 173 'GBL_SHOWSELECT', 'GBL_SELECT', 'GBL_TITLEBOLD', 'GBL_TITLESIZE', 'GBL_TITLEPARSE', 'GBL_TITLEPARSECHAROPEN', 174 'GBL_TITLEPARSECHARCLOSE', 170 175 ); 171 176 $this->op = (object) array(); … … 391 396 if ($keyval != 0 || strpos($key, "0") === 0) 392 397 { 393 $haveIssue = TRUE;398 //$haveIssue = TRUE; 394 399 $nearKey = $keyval; 395 400 $nearValue = $att; … … 411 416 // Translate strings to numerics 412 417 array_walk($spoilerConfig, array($this, 'translate_numerics')); 413 414 418 415 419 $this->spoilerNum++; 416 420 … … 435 439 else 436 440 { 437 $spoilertitle = $spoilerConfig['intro'] . ': ' . $spoilerConfig['title']; 441 // Use embedded shortcodes within title? 442 if ($this->GBL_TITLEPARSE) 443 { 444 $spoilerConfig['title'] = str_replace($this->GBL_TITLEPARSECHAROPEN, "[", $spoilerConfig['title']); 445 $spoilerConfig['title'] = str_replace($this->GBL_TITLEPARSECHARCLOSE, "]", $spoilerConfig['title']); 446 $spoilerConfig['title'] = do_shortcode($spoilerConfig['title']); 447 } 448 449 $spoilertitle = $spoilerConfig['intro'] . ': ' . $spoilerConfig['title']; 438 450 } 439 451 -
easy-spoiler/trunk/readme.txt
r429733 r434396 6 6 Requires at least: 2.8 7 7 Tested up to: 3.2.1 8 Stable tag: 1. 58 Stable tag: 1.6 9 9 10 10 This plugin allows you to create a container for spoilers within pages, posts, comments, and widgets. Also supports spoiler groups. … … 69 69 == Upgrade Notice == 70 70 71 = 1.6 = 72 * You can now embed shortcodes within the spoiler title via a new enable/disable checkbox on the admin panel. Note you cannot use the angular brackets. Rather, you use parens: (myshortcode)xxx(/myshortcode). You can replace the use of parens with something else in the admin panel as well. 73 71 74 = 1.5 = 72 75 * Brought back original button style … … 120 123 == Changelog == 121 124 125 = 1.6 = 126 * You can now embed shortcodes within the spoiler title via a new enable/disable checkbox on the admin panel. Note you cannot use the angular brackets. Rather, you use parens: (myshortcode)xxx(/myshortcode). You can replace the use of parens with something else in the admin panel as well. 127 122 128 = 1.5 = 123 129 * Brought back original button style
Note: See TracChangeset
for help on using the changeset viewer.