Changeset 477871
- Timestamp:
- 12/20/2011 07:34:09 AM (14 years ago)
- File:
-
- 1 edited
-
cms/trunk/multiple_content.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cms/trunk/multiple_content.php
r477428 r477871 113 113 $editorName = str_replace('\'','', str_replace('"','',str_replace('get_the_block(','',str_replace($stringLast,'',$stringFirst)))); 114 114 } 115 116 //Support for different code annotation 117 //Possibly remove the first and last space. You would be an idiot to WANT them there. 118 if(substr($editorName,0,1) == ' ') $editorName = substr($editorName,1); 119 if(substr($editorName,strlen($editorName)-1) == ' ') $editorName = substr($editorName,0,strlen($editorName)-1); 120 115 121 $nextString = $stringLast; 116 122 … … 143 149 } 144 150 151 $theTag = str_replace('get_'.$tag.'( ','',$theTag); //Different annotation (eg. get_header( 'name ')) 145 152 $theTag = str_replace('get_'.$tag.'(','',$theTag); 146 if(strpos($theTag,')') != 0) { 153 154 if(strpos($theTag,' )') != 0) { //Different annotation (eg. get_header( 'name ')) 155 $theTag = substr($theTag,0, strpos($theTag,' )')); 156 } else if(strpos($theTag,')') != 0) { 147 157 $theTag = substr($theTag,0, strpos($theTag,')')); 148 158 } else {
Note: See TracChangeset
for help on using the changeset viewer.