Dotclear


Ignore:
Timestamp:
11/26/13 19:40:51 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add (again) BlogParentThemeURL template value, fixes #1885

File:
1 edited

Legend:

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

    r2577 r2587  
    6767          $this->addValue('BlogLanguage',array($this,'BlogLanguage')); 
    6868          $this->addValue('BlogThemeURL',array($this,'BlogThemeURL')); 
     69        $this->addValue('BlogParentThemeURL',array($this,'BlogParentThemeURL')); 
    6970          $this->addValue('BlogUpdateDate',array($this,'BlogUpdateDate')); 
    7071          $this->addValue('BlogID',array($this,'BlogID')); 
     
    720721 
    721722     /*dtd 
    722      <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Themei URL --> 
     723     <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme URL --> 
    723724     */ 
    724725     public function BlogThemeURL($attr) 
     
    726727          $f = $this->getFilters($attr); 
    727728          return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme').'; ?>'; 
     729     } 
     730 
     731     /*dtd 
     732     <!ELEMENT tpl:BlogParentThemeURL - O -- Blog's current Theme's parent URL --> 
     733     */ 
     734     public function BlogParentThemeURL($attr) 
     735     { 
     736          $f = $this->getFilters($attr); 
     737          $parent = '$core->themes->moduleInfo($core->blog->settings->system->theme,\'parent\')'; 
     738          return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".('."$parent".' ? '."$parent".' : $core->blog->settings->system->theme)').'; ?>'; 
    728739     } 
    729740 
Note: See TracChangeset for help on using the changeset viewer.

Sites map