Changeset 2587:71ca17f6d21d for inc/public/class.dc.template.php
- Timestamp:
- 11/26/13 19:40:51 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r2577 r2587 67 67 $this->addValue('BlogLanguage',array($this,'BlogLanguage')); 68 68 $this->addValue('BlogThemeURL',array($this,'BlogThemeURL')); 69 $this->addValue('BlogParentThemeURL',array($this,'BlogParentThemeURL')); 69 70 $this->addValue('BlogUpdateDate',array($this,'BlogUpdateDate')); 70 71 $this->addValue('BlogID',array($this,'BlogID')); … … 720 721 721 722 /*dtd 722 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme iURL -->723 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme URL --> 723 724 */ 724 725 public function BlogThemeURL($attr) … … 726 727 $f = $this->getFilters($attr); 727 728 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)').'; ?>'; 728 739 } 729 740
Note: See TracChangeset
for help on using the changeset viewer.