Changeset 1249:3d1fd7774621
- Timestamp:
- 07/31/13 19:22:42 (11 years ago)
- Branch:
- 2.5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r1179 r1249 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')); … … 839 840 840 841 /*dtd 841 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme iURL -->842 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme URL --> 842 843 */ 843 844 public function BlogThemeURL($attr) … … 845 846 $f = $this->getFilters($attr); 846 847 return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme').'; ?>'; 848 } 849 850 /*dtd 851 <!ELEMENT tpl:BlogParentThemeURL - O -- Blog's current Theme's parent URL --> 852 */ 853 public function BlogParentThemeURL($attr) 854 { 855 $f = $this->getFilters($attr); 856 $parent = '$core->themes->moduleInfo($core->blog->settings->system->theme,\'parent\')'; 857 return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".('."$parent".' ? '."$parent".' : $core->blog->settings->system->theme)').'; ?>'; 847 858 } 848 859
Note: See TracChangeset
for help on using the changeset viewer.