Plugin Directory

Changeset 477871


Ignore:
Timestamp:
12/20/2011 07:34:09 AM (14 years ago)
Author:
Trendwerk
Message:

Quickfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cms/trunk/multiple_content.php

    r477428 r477871  
    113113            $editorName = str_replace('\'','', str_replace('"','',str_replace('get_the_block(','',str_replace($stringLast,'',$stringFirst))));
    114114        }
     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       
    115121        $nextString = $stringLast;
    116122       
     
    143149    }
    144150   
     151    $theTag = str_replace('get_'.$tag.'( ','',$theTag); //Different annotation (eg. get_header( 'name '))
    145152    $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) {
    147157        $theTag = substr($theTag,0, strpos($theTag,')'));
    148158    } else {
Note: See TracChangeset for help on using the changeset viewer.