Changeset 477872
- Timestamp:
- 12/20/2011 07:37:23 AM (14 years ago)
- Location:
- multiple-content-blocks
- Files:
-
- 5 added
- 2 edited
-
tags/2.2 (added)
-
tags/2.2/multiple_content.php (added)
-
tags/2.2/readme.txt (added)
-
tags/2.2/screenshot-1.jpg (added)
-
tags/2.2/screenshot-2.jpg (added)
-
trunk/multiple_content.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multiple-content-blocks/trunk/multiple_content.php
r477424 r477872 4 4 Plugin URI: http://plugins.trendwerk.nl/documentation/multiple-content-blocks/ 5 5 Description: Lets you use more than one content "block" on a template. You only have to insert one tag inside the template, so it's easy to use. 6 Version: 2.2 6 Version: 2.2.1 7 7 Author: Ontwerpstudio Trendwerk 8 8 Author URI: http://plugins.trendwerk.nl/ … … 122 122 $editorName = str_replace('\'','', str_replace('"','',str_replace('get_the_block(','',str_replace($stringLast,'',$stringFirst)))); 123 123 } 124 125 //Support for different code annotation 126 //Possibly remove the first and last space. You would be an idiot to WANT them there. 127 if(substr($editorName,0,1) == ' ') $editorName = substr($editorName,1); 128 if(substr($editorName,strlen($editorName)-1) == ' ') $editorName = substr($editorName,0,strlen($editorName)-1); 129 124 130 $nextString = $stringLast; 125 131 … … 152 158 } 153 159 160 $theTag = str_replace('get_'.$tag.'( ','',$theTag); //Different annotation (eg. get_header( 'name ')) 154 161 $theTag = str_replace('get_'.$tag.'(','',$theTag); 155 if(strpos($theTag,')') != 0) { 162 163 if(strpos($theTag,' )') != 0) { //Different annotation (eg. get_header( 'name ')) 164 $theTag = substr($theTag,0, strpos($theTag,' )')); 165 } else if(strpos($theTag,')') != 0) { 156 166 $theTag = substr($theTag,0, strpos($theTag,')')); 157 167 } else { -
multiple-content-blocks/trunk/readme.txt
r477424 r477872 5 5 Requires at least: 2.8 6 6 Tested up to: 3.3 7 Stable tag: 2.2 7 Stable tag: 2.2.1 8 8 9 9 Lets you use more than one content "block" on a template. You only have to insert one tag inside the template, so it's easy to use. … … 41 41 42 42 == Changelog == 43 44 = 2.2.1 = 45 * Added support for code annotation with spaces - Supported by Raskull ;) (http://wordpress.org/support/profile/raskull) 43 46 44 47 = 2.2 =
Note: See TracChangeset
for help on using the changeset viewer.