Changeset 429:a715f4c32191
- Timestamp:
- 06/28/11 07:49:29 (14 years ago)
- Branch:
- themes
- Location:
- themes/ductile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/_public.php
r421 r429 15 15 # Behaviors 16 16 $core->addBehavior('publicHeadContent',array('tplDuctileTheme','publicHeadContent')); 17 18 # Template items 19 $core->tpl->addValue('Stickers',array('tplDuctileTheme','showStickers')); 17 $core->addBehavior('publicInsideFooter',array('tplDuctileTheme','publicInsideFooter')); 20 18 21 19 class tplDuctileTheme 22 20 { 23 public static function showStickers($attr)21 public static function publicInsideFooter($core) 24 22 { 25 23 $res = ''; 26 24 $default = false; 27 $img_url = $ GLOBALS['core']->blog->settings->system->themes_url.'/'.$GLOBALS['core']->blog->settings->system->theme.'/img/';28 29 $s = $ GLOBALS['core']->blog->settings->themes->get($GLOBALS['core']->blog->settings->system->theme.'_stickers');25 $img_url = $core->blog->settings->system->themes_url.'/'.$core->blog->settings->system->theme.'/img/'; 26 27 $s = $core->blog->settings->themes->get($core->blog->settings->system->theme.'_stickers'); 30 28 31 29 if ($s === null) { … … 50 48 51 49 if ($default || $res == '') { 52 $res = self::setSticker(1,true,__('Feed'),$ GLOBALS['core']->blog->url.$GLOBALS['core']->url->getBase('feed').'/atom',$img_url.'sticker-feed.png');50 $res = self::setSticker(1,true,__('Feed'),$core->blog->url.$core->url->getBase('feed').'/atom',$img_url.'sticker-feed.png'); 53 51 } 54 52 55 53 if ($res != '') { 56 54 $res = '<ul id="stickers">'."\n".$res.'</ul>'."\n"; 57 return$res;55 echo $res; 58 56 } 59 57 } -
themes/ductile/tpl/_footer.html
r425 r429 1 1 <div id="footer"> 2 {{tpl:S tickers}}2 {{tpl:SysBehavior behavior="publicInsideFooter"}} 3 3 4 4 <p>{{tpl:SysPoweredBy}}</p>
Note: See TracChangeset
for help on using the changeset viewer.