function modChrome_CoverColumns($module, &$params, &$attribs) { $col = "col-xs-12"; switch (JDocumentHTML::countModules($module->position)) { case 1: default: $col = " col-xs-12"; break; case 2: $col .= " col-sm-6"; break; case 3: $col .= " col-sm-4"; break; case 4: $col .= " col-sm-6 cod-md-3"; break; } ?> <div class="<?php echo $col . " covercolumns-" . $attribs['side']; ?> "> <?php echo $module->content; ?> </div> <?php }
/** * Construct method * * @param JDocumentHTML $template Template object * * @throws Exception */ public function __construct(JDocumentHTML $template) { if (!$template instanceof JDocumentHTML) { return; } $this->tmpl_params = $template->params; $menu = JFactory::getApplication()->getMenu(); $activeMenu = $menu->getActive(); // Merge menu params with template params jimport('joomla.utilities.arrayhelper'); $params = array_merge($activeMenu->params->toArray(), $this->tmpl_params->toArray()); $this->params = JArrayHelper::toObject($params, 'JRegistry'); require_once JPATH_ADMINISTRATOR . '/components/com_templates/helpers/templates.php'; $positions = TemplatesHelper::getPositions(false, 'blank_j3'); // Check for positions foreach ($positions as $position) { $this->{'show_' . $position} = $template->countModules($position); } $this->show_msg = $template->countModules('message'); }
function isMenu() { return JDocumentHTML::countModules ( 'kunena_menu' ); }
/** * @param $position * * @return mixed */ protected function getJoomlaModuleCount($position) { if (!array_key_exists($position, $this->position_module_count)) { if (method_exists($this->document, 'countModules')) { $this->position_module_count[$position] = $this->document->countModules($position); } else { $this->position_module_count[$position] = 0; } } return $this->position_module_count[$position]; }
case 'credits': include KUNENA_PATH_LIB . DS . 'kunena.credits.php'; break; ######################################################################################### ######################################################################################### default: if (file_exists(KUNENA_ABSTMPLTPATH . '/listcat.php')) { include KUNENA_ABSTMPLTPATH . '/listcat.php'; } else { include KUNENA_PATH_TEMPLATE_DEFAULT . DS . 'listcat.php'; } break; } //hctiws // Bottom Module if (JDocumentHTML::countModules('kunena_bottom')) { ?> <div class = "bof-bottom-modul"> <?php $document =& JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); $position = 'kunena_bottom'; echo $renderer->render($position, $options, null); ?> </div> <?php } // Credits
?> <input class ="kDelete_bulkcheckboxes" type="checkbox" name="cb[<?php echo intval($leaf->id); ?> ]" value="0" /> <?php } ?> </td> <?php } ?> </tr> <?php if (JDocumentHTML::countModules('kunena_topic_' . $counter)) { ?> <tr> <td class="ktopicmodule" colspan="<?php echo intval($this->columns); ?> "> <?php CKunenaTools::showModulePosition('kunena_topic_' . $counter); ?> </td> </tr> <?php } ?>
function showModulePosition($position) { $html = ''; if (JDocumentHTML::countModules($position)) { $document =& JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); $html .= '<div class="' . $position . '">'; $html .= $renderer->render($position, $options, null); $html .= '</div>'; } echo $html; }
/** * Loads the modules published in the position name passed. * * @param <type> $position * @return <type> */ function loadModulePosition($position) { if (JDocumentHTML::countModules($position)) { $document =& JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); return $renderer->render($position, $options, null); } else { return ''; } }
echo $msg_signature; echo '</div>'; } ?> </td> <td class = "fb-msgview-left-b"> </td> </tr> </tbody> </table> <!-- Begin: Message Module Positions --> <?php if (JDocumentHTML::countModules('kunena_msg_' . $mmm)) { ?> <div class = "kunena_msg_<?php echo $mmm; ?> "> <?php $document =& JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); $position = 'kunena_msg_' . $mmm; echo $renderer->render($position, $options, null); ?> </div> <?php }
if ($fbConfig->showannouncement > 0) { ?> <!-- B: announcementBox --> <?php if (file_exists(KUNENA_ABSTMPLTPATH . '/plugin/announcement/announcementbox.php')) { require_once KUNENA_ABSTMPLTPATH . '/plugin/announcement/announcementbox.php'; } else { require_once KUNENA_PATH_TEMPLATE_DEFAULT . DS . 'plugin/announcement/announcementbox.php'; } ?> <!-- F: announcementBox --> <?php } // (JJ) FINISH: ANNOUNCEMENT BOX // load module if (JDocumentHTML::countModules('kunena_announcement')) { ?> <div class = "fb-fb_2"> <?php $document =& JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $options = array('style' => 'xhtml'); $position = 'kunena_announcement'; echo $renderer->render($position, $options, null); ?> </div> <?php } ?>
public function __construct(JDocumentHTML $template) { if (!$template instanceof JDocumentHTML) { return false; } $this->_template = $template; $this->_params = $template->params; $menu = JFactory::getApplication()->getMenu(); $activeMenu = $menu->getActive(); $defaultMenu = $menu->getDefault(); //detect frontpage $this->isFront = $activeMenu->id == $defaultMenu->id; //merge menu params with template params jimport('joomla.utilities.arrayhelper'); $params = array_merge($activeMenu->params->toArray(), $this->_params->toArray()); $this->params = JArrayHelper::toObject($params, 'JRegistry'); // check for position $this->show_top = $template->countModules('top'); $this->show_top_left = $template->countModules('top-left'); $this->show_top_center = $template->countModules('top-center'); $this->show_top_right = $template->countModules('top-right'); $this->show_user1 = $template->countModules('user1'); $this->show_user2 = $template->countModules('user2'); $this->show_user3 = $template->countModules('user3'); $this->show_content_header = $template->countModules('content-header'); $this->show_content_footer = $template->countModules('content-footer'); $this->show_left = $template->countModules('left'); $this->show_right = $template->countModules('right'); $this->show_bottom_left = $template->countModules('bottom-left'); $this->show_bottom_center = $template->countModules('bottom-center'); $this->show_bottom_right = $template->countModules('bottom-right'); $this->show_bottom = $template->countModules('bottom'); $this->show_bottom_socials = $template->countModules('bottom-socials'); $this->show_footer = $template->countModules('footer'); // size blocks $this->class_top_left = $this->_params->get('top_left_class', 'col-xs-12 col-sm-4 col-md-4 col-lg-4'); $this->class_top_center = $this->_params->get('top_center_class', 'col-xs-12 col-sm-4 col-md-4 col-lg-4'); $this->class_top_right = $this->_params->get('top_right_class', 'col-xs-12 col-sm-4 col-md-4 col-lg-4'); $this->class_left = $this->_params->get('left_class', 'col-xs-12 col-sm-3 col-md-3 col-lg-3'); $this->class_right = $this->_params->get('right_class', 'hidden-xs col-sm-2 col-md-2 col-lg-2'); $this->class_bottom_left = $this->_params->get('bottom_left_class', 'col-xs-12 col-sm-4 col-md-4 col-lg-4'); $this->class_bottom_center = $this->_params->get('bottom_center_class', 'col-xs-12 col-sm-4 col-md-4 col-lg-4'); $this->class_bottom_right = $this->_params->get('bottom_right_class', 'col-xs-12 col-sm-4 col-md-4 col-lg-4'); //classes for blocks $this->class_user1 = $this->_params->get('user1_class', 'col-xs-12 col-sm-12 col-md-12 col-lg-12'); $this->class_user2 = $this->_params->get('user2_class', 'col-xs-12 col-sm-12 col-md-12 col-lg-12'); $this->class_user3 = $this->_params->get('user3_class', 'col-xs-12 col-sm-12 col-md-12 col-lg-12'); }
<span class="kprofilebox-register"> <?php echo $registration; ?> </span> <?php } ?> </div> </form> <?php } ?> </td> <?php if (JDocumentHTML::countModules('kunena_profilebox')) { ?> <td class = "kprofilebox-right"> <div class="kprofilebox-modul"> <?php CKunenaTools::showModulePosition('kunena_profilebox'); ?> </div> </td> <?php } ?> </tr> </tbody> </table> </div>
?> </div> </div> <div class="container main-bg" id="main-handler"> <div class="inner"> <?php if ($this->countModules('builtin-slideshow or slideshow')) { ?> <div id="slideshow-handler-bg"> <div id="slideshow-handler"> <?php if ($this->countModules('builtin-slideshow')) { ?> <?php $count_slides = JDocumentHTML::countModules('builtin-slideshow'); $module = JModuleHelper::getModules('builtin-slideshow'); $moduleParams = new JRegistry(); echo "<div class=\"camera_wrap\" id=\"ph-camera-slideshow\">"; for ($sld_a = 0; $sld_a < $count_slides; $sld_a++) { $moduleParams->loadString($module[$sld_a]->params); $bgimage[$sld_a] = $moduleParams->get('backgroundimage', 'defaultValue'); $caption_effect[$sld_a] = $moduleParams->get('moduleclass_sfx', 'defaultValue'); ?> <div data-thumb="<?php if ($bgimage[$sld_a] == "defaultValue") { echo $this->baseurl . "/templates/" . $this->template . "/images/slideshow/no-image.png"; } else { echo $this->baseurl . "/" . $bgimage[$sld_a]; } ?>
public function __construct(JDocumentHTML $template) { if (!$template instanceof JDocumentHTML) { return false; } $this->_template = $template; $this->_params = $template->params; $menu = JFactory::getApplication()->getMenu(); $activeMenu = $menu->getActive(); //merge menu params with template params jimport('joomla.utilities.arrayhelper'); $params = array_merge($activeMenu->params->toArray(), $this->_params->toArray()); $this->params = JArrayHelper::toObject($params, 'JRegistry'); // check for position $this->show_top = $template->countModules('top'); $this->show_top_left = $template->countModules('top-left'); $this->show_top_center = $template->countModules('top-center'); $this->show_top_right = $template->countModules('top-right'); $this->show_user1 = $template->countModules('user1'); $this->show_user2 = $template->countModules('user2'); $this->show_user3 = $template->countModules('user3'); $this->show_content_header = $template->countModules('content-header'); $this->show_content_footer = $template->countModules('content-footer'); $this->show_left = $template->countModules('left'); $this->show_right = $template->countModules('right'); $this->show_bottom_left = $template->countModules('bottom-left'); $this->show_bottom_center = $template->countModules('bottom-center'); $this->show_bottom_right = $template->countModules('bottom-right'); $this->show_bottom = $template->countModules('bottom'); $this->show_bottom_socials = $template->countModules('bottom-socials'); $this->show_footer = $template->countModules('footer'); }
* Kunena Component * @package Kunena * * @Copyright (C) 2008 - 2011 Kunena Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.kunena.org **/ defined ( '_JEXEC' ) or die (); // TODO : To finish $template = KunenaFactory::getTemplate(); $this->params = $template->params; $this->my = JFactory::getUser (); $private = KunenaFactory::getPrivateMessaging(); $pm = $private->getUnreadCount($this->my->id); ?> <?php if (JDocumentHTML::countModules ( 'kunena_menu' )) : ?> <div class="forumlist"> <div class="catinner"> <span class="corners-top"><span></span></span> <div id="ktop"> <ul class="topiclist"> <li class="header" style="height:32px;padding: 2px 0 0 10px;"> <dl class="icon" style="background: none;"> <dt style="width:1px;padding: 0px;"> </dt> <?php if ($this->params->get('topmenuShow') == '1') { ?> <dd class="topics" style="width:60%; text-align:left;padding-left: 5px;"> <div id="ktopmenu"> <div id="ktab"><?php echo $this->getMenu() ?></div>