Dotclear

Changeset 929:a52872aaada9


Ignore:
Timestamp:
10/29/12 08:23:25 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add tpl:else tag, fixes #855

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/class.dc.template.php

    r928 r929  
    206206          $this->addValue('SysSearchString',array($this,'SysSearchString')); 
    207207          $this->addValue('SysSelfURI',array($this,'SysSelfURI')); 
     208 
     209          # Generic 
     210          $this->addValue('else',array($this,'GenericElse')); 
    208211     } 
    209212      
     
    29962999          return '<?php echo '.sprintf($f,'http::getSelfURI()').'; ?>'; 
    29973000     } 
     3001 
     3002     /*dtd 
     3003     <!ELEMENT tpl:else - O -- else: statement --> 
     3004     */ 
     3005     public function GenericElse($attr) 
     3006     { 
     3007          return '<?php else: ?>'; 
     3008     } 
    29983009} 
    29993010 
Note: See TracChangeset for help on using the changeset viewer.

Sites map