AAAAhome/academiac/www/templates/ideas/html/modules.php000060400000005365151371443470016435 0ustar00 'modChrome_artnostyle', 'awp-block' => 'modChrome_artblock', 'awp-article' => 'modChrome_artarticle', 'awp-vmenu' => 'modChrome_artvmenu' ); // moduleclass_sfx support: // '' or 'suffix' - use default style, suffix will not be added to the module tag // but will be added to the module elements. // ' suffix' - adds suffix to the module root tag as well as to the module elements. // 'awp-...' - overwrites module style. // 'awp-... suffix' - overwrites style and adds suffix to the module root tag and // to the module elements, does not add awp-... to the module elements. $classes = ''; $sfx = $params->get('moduleclass_sfx'); if (strlen($sfx) != 0) { if (' ' == $sfx[0]) $classes = $sfx; else { $parts = explode(' ', $sfx, 2); if (in_array($parts[0], array_keys($styles))) { $style = $parts[0]; if (count($parts) > 1) $classes = ' ' . $parts[1]; $params->set('moduleclass_sfx', $classes); } } } $params->set('artx-module-classes', $classes); call_user_func($styles[$style], $module, $params, $attribs); } function modChrome_artnostyle($module, &$params, &$attribs) { if (!empty ($module->content)) : ?>
showtitle != 0) : ?>

title; ?>

content; ?>
content)) echo artxBlock(($module->showtitle != 0) ? $module->title : '', $module->content, $params->get('artx-module-classes')); } function modChrome_artvmenu($module, &$params, &$attribs) { if (!empty ($module->content)) { if (function_exists('artxVMenuBlock')) echo artxVMenuBlock(($module->showtitle != 0) ? $module->title : '', $module->content, $params->get('artx-module-classes')); else echo artxBlock(($module->showtitle != 0) ? $module->title : '', $module->content, $params->get('artx-module-classes')); } } function modChrome_artarticle($module, &$params, &$attribs) { if (!empty ($module->content)) { $data = array('classes' => $params->get('artx-module-classes'), 'content' => $module->content); if ($module->showtitle != 0) $data['header-text'] = $module->title; echo artxPost($data); } } home/academiac/www/administrator/templates/hathor/html/modules.php000064400000002371151371775240021516 0ustar00 * * 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_xhtmlid($module, &$params, &$attribs) { if ($module->content) { ?>
content; ?>