Changeset 2662:87748fd865ef for plugins/widgets/class.widgets.php
- Timestamp:
- 02/14/14 14:49:43 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/class.widgets.php
r2566 r2662 185 185 } 186 186 187 /* Widget rendering tool 188 --------------------------------------------------- */ 189 public function renderTitle($title) 190 { 191 global $core; 192 193 if (!$title) { 194 return ''; 195 } 196 197 $wtscheme = $core->themes->moduleInfo($core->blog->settings->system->theme,'widgettitleformat'); 198 if (empty($wtscheme)) { 199 $tplset = $core->themes->moduleInfo($core->blog->settings->system->theme,'tplset'); 200 if (empty($tplset) || $tplset == DC_DEFAULT_TPLSET) { 201 // Use H2 for mustek based themes 202 $wtscheme = '<h2>%s</h2>'; 203 } else { 204 // Use H3 for currywurst based themes 205 $wtscheme = '<h3>%s</h3>'; 206 } 207 } 208 $ret = sprintf($wtscheme,$title); 209 210 return $ret; 211 } 212 187 213 /* Widget settings 188 214 --------------------------------------------------- */
Note: See TracChangeset
for help on using the changeset viewer.