Dotclear

Changeset 2590:0a7146e3830d


Ignore:
Timestamp:
11/26/13 21:54:09 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Message:

Add (again) BlogParentThemeURL template value, backported from default branch, addresses #1885

File:
1 edited

Legend:

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

    r2566 r2590  
    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')); 
     
    840841 
    841842     /*dtd 
    842      <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Themei URL --> 
     843     <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme URL --> 
    843844     */ 
    844845     public function BlogThemeURL($attr) 
     
    846847          $f = $this->getFilters($attr); 
    847848          return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme').'; ?>'; 
     849     } 
     850 
     851     /*dtd 
     852     <!ELEMENT tpl:BlogParentThemeURL - O -- Blog's current Theme's parent URL --> 
     853     */ 
     854     public function BlogParentThemeURL($attr) 
     855     { 
     856          $f = $this->getFilters($attr); 
     857          $parent = '$core->themes->moduleInfo($core->blog->settings->system->theme,\'parent\')'; 
     858          return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".('."$parent".' ? '."$parent".' : $core->blog->settings->system->theme)').'; ?>'; 
    848859     } 
    849860 
Note: See TracChangeset for help on using the changeset viewer.

Sites map