Changeset 2590:0a7146e3830d
- Timestamp:
- 11/26/13 21:54:09 (12 years ago)
- Branch:
- 2.6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r2566 r2590 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')); … … 840 841 841 842 /*dtd 842 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme iURL -->843 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme URL --> 843 844 */ 844 845 public function BlogThemeURL($attr) … … 846 847 $f = $this->getFilters($attr); 847 848 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)').'; ?>'; 848 859 } 849 860
Note: See TracChangeset
for help on using the changeset viewer.