Changeset 837
- Timestamp:
- 12/05/06 21:58:54 (2 years ago)
- Files:
-
- branches/wheeljack/php/lib/MTViewer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/wheeljack/php/lib/MTViewer.php
r821 r837 15 15 16 16 var $conditionals = array( 17 'MTEntryPrevious' => 1,18 'MTEntryNext' => 1,19 'MTDateHeader' => 1,20 'MTDateFooter' => 1,21 'MTEntriesHeader' => 1,22 'MTEntriesFooter' => 1,23 'MTCalendarWeekHeader' => 1,24 'MTCalendarWeekFooter' => 1,25 17 'MTParentCategory' => 1, 26 'MTSubCatIsFirst' => 1,27 'MTSubCatIsLast' => 1,28 'MTHasSubCategories' => 1,29 'MTHasNoSubCategories' => 1,30 'MTHasParentCategory' => 1,31 'MTHasNoParentCategory' => 1,32 18 'MTTopLevelParent' => 1, 33 19 ); … … 259 245 function tag($tag, $args = array()) { 260 246 $tag = preg_replace('/^MT/', '', $tag); 261 if ((array_key_exists('MT' . $tag, $this->conditionals)) || (preg_match('/^If/', $tag) || preg_match('/[a-z] If[A-Z]/', $tag))) {247 if ((array_key_exists('MT' . $tag, $this->conditionals)) || (preg_match('/^If/', $tag) || preg_match('/[a-z](If|Has|Is)[A-Z]/', $tag) || preg_match('/[a-z](Header|Footer|Previous|Next)$/', $tag))) { 262 248 @require_once("block.MT$tag.php"); 263 249 $fntag = 'smarty_block_MT' . $tag;
