0byt3m1n1-V2
Path:
/
home
/
academiac
/
www
/
[
Home
]
File: modules.php.tar
home/academiac/www/templates/ideas/html/modules.php 0000604 00000005365 15137144347 0016435 0 ustar 00 <?php defined('_JEXEC') or die; if (!defined('_ARTX_FUNCTIONS')) require_once dirname(__FILE__) . str_replace('/', DIRECTORY_SEPARATOR, '/../functions.php'); function modChrome_artstyle($module, &$params, &$attribs) { $style = isset($attribs['artstyle']) ? $attribs['artstyle'] : 'awp-nostyle'; $styles = array( 'awp-nostyle' => '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)) : ?> <div class="awp-nostyle<?php echo $params->get('artx-module-classes'); ?>"> <?php if ($module->showtitle != 0) : ?> <h3><?php echo $module->title; ?></h3> <?php endif; ?> <?php echo $module->content; ?> </div> <?php endif; } function modChrome_artblock($module, &$params, &$attribs) { if (!empty ($module->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.php 0000644 00000002371 15137177524 0021516 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage Templates.hathor * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @since 1.6 */ // no direct access defined('_JEXEC') or die; /** * This is a file to add template specific chrome to module rendering. To use it you would * set the style attribute for the given module(s) include in your template to use the style * for each given modChrome function. * * eg. To render a module mod_test in the submenu style, you would use the following include: * <jdoc:include type="module" name="test" style="submenu" /> * * 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) { ?> <div id="<?php echo (int)$attribs['id'] ?>"> <?php echo $module->content; ?> <div class="clr"></div> </div> <?php } elseif ($attribs['id'] == "submenu-box") { ?> <div id="no-submenu"></div> <?php } } ?>
©
2018.