Dotclear


Ignore:
Timestamp:
12/14/15 11:47:38 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add tpl:EntryAuthorEmailMD5 tag, closes #2143

File:
1 edited

Legend:

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

    r3064 r3150  
    134134          $this->addValue('EntryAuthorDisplayName',array($this,'EntryAuthorDisplayName')); 
    135135          $this->addValue('EntryAuthorEmail',array($this,'EntryAuthorEmail')); 
     136          $this->addValue('EntryAuthorEmailMD5',array($this,'EntryAuthorEmailMD5')); 
    136137          $this->addValue('EntryAuthorID',array($this,'EntryAuthorID')); 
    137138          $this->addValue('EntryAuthorLink',array($this,'EntryAuthorLink')); 
     
    15501551 
    15511552     /*dtd 
     1553     <!ELEMENT tpl:EntryAuthorEmailMD5 - O -- Entry author email MD5 sum --> 
     1554     > 
     1555     */ 
     1556     public function EntryAuthorEmailMD5($attr) 
     1557     { 
     1558          $f = $this->getFilters($attr); 
     1559          return '<?php echo '.sprintf($f,'md5($_ctx->posts->getAuthorEmail(false))').'; ?>'; 
     1560     } 
     1561 
     1562     /*dtd 
    15521563     <!ELEMENT tpl:EntryAuthorLink - O -- Entry author link --> 
    15531564     */ 
Note: See TracChangeset for help on using the changeset viewer.

Sites map