Changeset 1280:d9627cb1cb02 for inc/public/class.dc.template.php
- Timestamp:
- 08/06/13 10:03:57 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r1249 r1280 67 67 $this->addValue('BlogLanguage',array($this,'BlogLanguage')); 68 68 $this->addValue('BlogThemeURL',array($this,'BlogThemeURL')); 69 $this->addValue('BlogParentThemeURL',array($this,'BlogParentThemeURL'));70 69 $this->addValue('BlogUpdateDate',array($this,'BlogUpdateDate')); 71 70 $this->addValue('BlogID',array($this,'BlogID')); … … 840 839 841 840 /*dtd 842 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme URL -->841 <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Themei URL --> 843 842 */ 844 843 public function BlogThemeURL($attr) … … 846 845 $f = $this->getFilters($attr); 847 846 return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme').'; ?>'; 848 }849 850 /*dtd851 <!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)').'; ?>';858 847 } 859 848
Note: See TracChangeset
for help on using the changeset viewer.