Changeset 2808 for plugins/multiToc/trunk/_widgets.php
- Timestamp:
- 12/20/10 14:28:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/multiToc/trunk/_widgets.php
r1904 r2808 3 3 # This file is part of multiToc, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2009 Tomtom and contributors5 # Copyright (c) 2009-2010 Tomtom and contributors 6 6 # http://blog.zenstyle.fr/ 7 7 # … … 27 27 { 28 28 global $core; 29 29 30 30 if ($w->homeonly && $core->url->type != 'default') { 31 31 return; 32 32 } 33 33 34 34 $amask = '<a href="%1$s">%2$s</a>'; 35 35 $limask = '<li class="%1$s">%2$s</li>'; 36 36 37 37 $title = (strlen($w->title) > 0) ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''; 38 38 39 39 $res = ''; 40 41 $settings = unserialize($core->blog->settings->multi toc_settings);42 40 41 $settings = unserialize($core->blog->settings->multiToc->multitoc_settings); 42 43 43 if ($settings['cat']['enable']) { 44 44 $link = sprintf($amask,$core->blog->url.$core->url->getBase('multitoc').'/cat',__('By category')); … … 53 53 $res .= sprintf($limask,'toc-alpha',$link); 54 54 } 55 55 56 56 $res = !empty($res) ? '<ul>'.$res.'</ul>' : ''; 57 57 58 58 return 59 59 '<div id="info-blog">'.
Note: See TracChangeset
for help on using the changeset viewer.