Plugin Directory

Changeset 477872


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

Version 2.2.1

Location:
multiple-content-blocks
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • multiple-content-blocks/trunk/multiple_content.php

    r477424 r477872  
    44Plugin URI: http://plugins.trendwerk.nl/documentation/multiple-content-blocks/
    55Description: 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
     6Version: 2.2.1
    77Author: Ontwerpstudio Trendwerk
    88Author URI: http://plugins.trendwerk.nl/
     
    122122            $editorName = str_replace('\'','', str_replace('"','',str_replace('get_the_block(','',str_replace($stringLast,'',$stringFirst))));
    123123        }
     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       
    124130        $nextString = $stringLast;
    125131       
     
    152158    }
    153159   
     160    $theTag = str_replace('get_'.$tag.'( ','',$theTag); //Different annotation (eg. get_header( 'name '))
    154161    $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) {
    156166        $theTag = substr($theTag,0, strpos($theTag,')'));
    157167    } else {
  • multiple-content-blocks/trunk/readme.txt

    r477424 r477872  
    55Requires at least: 2.8
    66Tested up to: 3.3
    7 Stable tag: 2.2
     7Stable tag: 2.2.1
    88
    99Lets 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.
     
    4141
    4242== Changelog ==
     43
     44= 2.2.1 =
     45* Added support for code annotation with spaces - Supported by Raskull ;)  (http://wordpress.org/support/profile/raskull)
    4346
    4447= 2.2 =
Note: See TracChangeset for help on using the changeset viewer.