* * This gives template designers ultimate control over how modules are rendered. * * NOTICE: All chrome wrapping methods should be named: modChrome_{STYLE} and take the same * two arguments. */ /* * Module chrome for rendering the module in a submenu */ function modChrome_title($module, &$params, &$attribs) { if ($module->content) { echo "
" . $module->title . "
"; echo $module->content; } } function modChrome_no($module, &$params, &$attribs) { if ($module->content) { echo $module->content; } } function modChrome_well($module, &$params, &$attribs) { if ($module->content) { $moduleTag = $params->get('module_tag', 'div'); $bootstrapSize = (int) $params->get('bootstrap_size'); $moduleClass = ($bootstrapSize) ? ' span' . $bootstrapSize : ''; $headerTag = htmlspecialchars($params->get('header_tag', 'h2')); // Temporarily store header class in variable $headerClass = $params->get('header_class'); $headerClass = ($headerClass) ? ' ' . htmlspecialchars($headerClass) : ''; echo '<' . $moduleTag . ' class="well well-small' . $moduleClass . '">'; if ($module->showtitle) { echo '<' . $headerTag . ' class="module-title nav-header' . $headerClass . '">' . $module->title . ''; } echo $module->content; echo ''; } }