* * 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. */ /* * themeHtml5 (chosen themeHtml5 tag and font headder tags) */ function modChrome_themeHtml5($module, &$params, &$attribs) { $moduleTag = $params->get('module_tag'); $headerTag = htmlspecialchars($params->get('header_tag')); $headerClass = $params->get('header_class'); $bootstrapSize = $params->get('bootstrap_size'); $moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : ''; $moduleclassSfx = htmlspecialchars($params->get('moduleclass_sfx')); if (!empty ($module->content)) { $html = "<{$moduleTag} class=\"moduletable {$moduleclassSfx} {$moduleClass}\">"; $html .= "
"; if ((bool) $module->showtitle) { $html .= "<{$headerTag} class=\"module_title {$headerClass}\">{$module->title}"; } $html .= $module->content; $html .= "
"; $html .= ""; echo $html; } } function modChrome_html5nosize($module, &$params, &$attribs) { $moduleTag = $params->get('module_tag'); $headerTag = htmlspecialchars($params->get('header_tag')); $headerClass = $params->get('header_class'); $bootstrapSize = $params->get('bootstrap_size'); //$moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : ''; $moduleclassSfx = htmlspecialchars($params->get('moduleclass_sfx')); if (!empty ($module->content)) { $html = "<{$moduleTag} class=\"moduletable {$moduleclassSfx}\">"; if ((bool) $module->showtitle){ $html .= "<{$headerTag} class=\"module_title {$headerClass}\">{$module->title}"; } $html .= $module->content; $html .= ""; echo $html; } } function modChrome_modal($module, &$params, &$attribs) { $moduleTag = $params->get('module_tag'); $headerTag = htmlspecialchars($params->get('header_tag')); $headerClass = $params->get('header_class'); $bootstrapSize = $params->get('bootstrap_size'); // $moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : ''; $moduleclassSfx = htmlspecialchars($params->get('moduleclass_sfx')); if (!empty ($module->content)) { $html = "
"; $html .= ""; if ((bool) $module->showtitle){ $html .= "
"; $html .= "<{$headerTag} class=\"{$headerClass}\">{$module->title}"; $html .= "
"; } $html .= "
"; $html .= $module->content; $html .= "
"; $html .= ""; echo $html; } } function modChrome_wshadow($module, &$params, &$attribs) { $moduleTag = $params->get('module_tag'); $headerTag = htmlspecialchars($params->get('header_tag')); $headerClass = $params->get('header_class'); $bootstrapSize = $params->get('bootstrap_size'); $moduleClass = !empty($bootstrapSize) ? ' span' . (int) $bootstrapSize . '' : ''; $moduleclassSfx = htmlspecialchars($params->get('moduleclass_sfx')); if (!empty ($module->content)) { $html = "<{$moduleTag} class=\"moduletable wshadow {$moduleclassSfx} {$moduleClass}\">"; if ((bool) $module->showtitle) { $html .= "<{$headerTag} class=\"module_title {$headerClass}\">{$module->title}"; } $html .= $module->content; $html .= ""; $html .= "
"; echo $html; } }