Esempio n. 1
0
 function site()
 {
     $db = JFactory::getDBO();
     $user = JFactory::getUSER();
     //geting usertype from user
     $arrMultiGroups[] = $user->usertype;
     //get multigrop names if user have it
     $sqlGetMultigroups = "SELECT grp.name FROM #__core_acl_aro_groups as grp, #__noixacl_multigroups multigrp WHERE grp.id = multigrp.id_group AND multigrp.id_user = {$user->id}";
     $db->setQuery($sqlGetMultigroups);
     $multiGroups = $db->loadObjectList();
     if (!empty($multiGroups)) {
         foreach ($multiGroups as $mgrp) {
             $arrMultiGroups[] = $mgrp->name;
         }
     }
     $queryModules = "SELECT axo_section, axo_value FROM #__noixacl_rules WHERE aco_section = 'com_modules' AND aco_value = 'block' AND aro_value IN ('" . implode("','", $arrMultiGroups) . "')";
     $db->setQuery($queryModules);
     $hideModules = $db->loadObjectList();
     if (!empty($hideModules)) {
         jimport('joomla.application.module.helper');
         foreach ($hideModules as $module) {
             $moduleInstance =& JModuleHelper::getModule(str_replace('mod_', '', $module->axo_section), $module->axo_value);
             $moduleInstance->position = NULL;
         }
     }
 }
Esempio n. 2
0
 public static function getAuthorizeURL()
 {
     $params =& JComponentHelper::getParams('mod_instagallery');
     var_dump($params);
     exit;
     $myvariable = $params->get('client_id');
     var_dump($myvariable);
     exit;
     $app = JFactory::getApplication();
     $mycom_params =& $app->getParams('mod_instagallery');
     var_dump($mycom_params);
     exit;
     $module =& JModuleHelper::getModule('instagallery');
     $params = new JForm($module->params);
     $params->loadString($module->params);
     print $clientID = $params->get('client_id');
     exit;
     $clientSecret = $params->get('client_secret');
     $authCode = $params->get('auth_code');
     $accessToken = $params->get('access_token');
     $redirec_uri = $params->get('redirect_uri');
     $config = array('redirectURI' => $redirec_uri);
     $instagram = new jInstaClass($clientID, $clientSecret, '', '', $config);
     return $instagram->authURL();
 }
Esempio n. 3
0
    /**
     * Method to get the field input markup.
     *
     * @return    string    The field input markup.
     * @since    1.6
     */
    public function getInput()
    {
        $app = JFactory::getApplication();
        $app->input->set('hidemainmenu', false);
        $menu = JModuleHelper::getModule('mod_menu');
        $menu = JModuleHelper::renderModule($menu);
        $menu = str_replace('<ul id="menu" class="nav ', '<ul id="menu" class="nav nav-pills ', $menu);
        //$app->input->set('hidemainmenu', true) ;
        $script = <<<SCRIPT
\t\t
\t\t<script type="text/javascript">
\t\t\twindow.addEvent('domready', function(){
\t\t\t\ta = \$\$('.controls > ul > li ul a') ;
\t\t\t\ta.addEvent('click' , function(e){
\t\t\t\t\te.stop();
\t\t\t\t\t\$('jform_link').set('value', e.target.get('href'));
\t\t\t\t\t\$('jform_link').highlight();
\t\t\t\t} );
\t\t\t});
\t\t</script>
\t\t
SCRIPT;
        $app->input->set('hidemainmenu', true);
        echo $script;
        return $menu;
    }
Esempio n. 4
0
 /**
  * Get module by id
  *
  * @param   integer  $id   The id of the module
  * @return  object  The Module object
  * @author	Sakis Terz
  * @since	1.6.0
  */
 public static function &getModule($id)
 {
     $result = null;
     $modules =& JModuleHelper::_load();
     $total = count($modules);
     for ($i = 0; $i < $total; $i++) {
         // Match the id of the module
         if ($modules[$i]->id == (int) $id) {
             // Found it
             $result =& $modules[$i];
             break;
             // Found it
         }
     }
     // If we didn't find it, and the name is mod_something, create a dummy object
     if (is_null($result)) {
         $result = parent::getModule('mod_cf_filtering');
         if (is_null($result)) {
             $result = new stdClass();
             $result->id = 0;
             $result->title = '';
             $result->module = 'mod_cf_filtering';
             $result->position = '';
             $result->content = '';
             $result->showtitle = 0;
             $result->control = '';
             $result->params = '';
             $result->user = 0;
         }
     }
     return $result;
 }
Esempio n. 5
0
 public static function loadModule($name, $style = 'raw')
 {
     jimport('joomla.application.module.helper');
     $module = JModuleHelper::getModule($name);
     $params = array('style' => $style);
     echo JModuleHelper::renderModule($module, $params);
 }
Esempio n. 6
0
 function getPropertyList()
 {
     $modProperties = JModuleHelper::getModule('danh_sach_BDS', 'BAN DO');
     $attribs['style'] = 'raw';
     $dataHTML = JModuleHelper::renderModule($modProperties, $attribs);
     echo $dataHTML;
 }
Esempio n. 7
0
 public static function getAjax()
 {
     jimport('joomla.application.module.helper');
     $input = JFactory::getApplication()->input;
     $module = JModuleHelper::getModule('hoicoi_openmeetings');
     $params = new JRegistry();
     $params->loadString($module->params);
     $values = explode(',', rtrim($params->get('rooms'), ","));
     if (self::getVerification($values, $input->get("room_id"), $input->get("password", "", 'STRING'))) {
         $options = array("protocol" => $params->get('protocol'), "port" => $params->get('port'), "host" => $params->get('host'), "webappname" => $params->get('webappname'), "adminUser" => $params->get('adminUser'), "adminPass" => $params->get('adminPass'));
         $access = new openmeetings_gateway($options);
         if (!$access->loginuser()) {
             $data = array("error" => 03, "text" => self::getErrorInfo(03));
             return $data;
         }
         $hash = $access->setUserObjectAndGenerateRoomHash($input->get("name"), $input->get("name", "", 'STRING'), "", "", $input->get("email", "", 'STRING'), JSession::getInstance("", "")->getId(), "Joomla", $input->get("room_id"), self::$isAdmin, self::$isRecodring);
         if (preg_match('/\\D/', $hash)) {
             $url = $access->getUrl() . "/?secureHash=" . $hash;
             //Get final URL
             $data = array("url" => $url);
             return $data;
         } else {
             $data = array("error" => $hash, "text" => self::getErrorInfo($hash));
             return $data;
         }
     } else {
         $data = array("error" => 02, "text" => self::getErrorInfo(02));
         return $data;
     }
     $data = array("error" => 01, "text" => self::getErrorInfo(01));
     return $data;
 }
Esempio n. 8
0
 private function getParams()
 {
     $module = JModuleHelper::getModule('instagram');
     $params = new JRegistry();
     $params->loadString($module->params);
     return $params;
 }
Esempio n. 9
0
 public static function init($params = null)
 {
     // init path
     $modulePath = 'modules/' . self::$moduleName . '/';
     $path = str_replace($modulePath, "", JURI::base());
     self::$path = $path . 'modules/' . self::$moduleName . '/';
     if (!$params) {
         jimport('joomla.application.module.helper');
         $module =& JModuleHelper::getModule("mm_feedback");
         $params = new JParameter($module->params);
     }
     // init scripts and styles
     JHTML::script('jquery-1.7.1.min.js', self::$path . 'assets/js/libs/jquery/');
     JHTML::script('jquery.noconflict.js', self::$path . 'assets/js/');
     JHTML::script('jquery.mousewheel-3.0.6.pack.js', self::$path . 'assets/js/libs/jquery/');
     JHTML::script('jquery.fancybox.js', self::$path . 'assets/js/libs/jquery/fancybox/');
     JHTML::stylesheet('jquery.fancybox.css', self::$path . 'assets/js/libs/jquery/fancybox/');
     JHTML::stylesheet('jquery.fancybox-buttons.css', self::$path . 'assets/js/libs/jquery/fancybox/helpers/');
     JHTML::script('jquery.fancybox-buttons.js', self::$path . 'assets/js/libs/jquery/fancybox/helpers/');
     JHTML::stylesheet('jquery.fancybox-thumbs.css', self::$path . 'assets/js/libs/jquery/fancybox/helpers/');
     JHTML::script('jquery.fancybox-thumbs.js', self::$path . 'assets/js/libs/jquery/fancybox/helpers/');
     JHTML::script('default.js', self::$path . 'assets/js/');
     JHTML::stylesheet('zenbox.css', self::$path . 'assets/css/');
     // init inline scripts
     $doc =& JFactory::getDocument();
     $result = array();
     $result[] = "modMmFeedback.baseUrl = '" . JURI::base() . "'";
     $result[] = "modMmFeedback.moduleName = '" . self::$moduleName . "'";
     $doc->addScriptDeclaration(implode(";\n", $result) . ";");
     $instance = new modMmFeedback();
     $instance->params = $params;
     return $instance;
 }
Esempio n. 10
0
 function rend_html_Module($params)
 {
     $list_module = array();
     $modules = array();
     if ($params->get('modulename', '')) {
         $list_module = explode(",", $params->get('modulename'));
     }
     for ($i = 0; $i < count($list_module); $i++) {
         if ($list_module[$i] != 'mod_jatoppanel') {
             $modules[$i] = JModuleHelper::getModule(substr(trim($list_module[$i]), 4));
             if ($modules[$i] && $modules[$i]->id) {
                 $modules[$i]->content = JModuleHelper::renderModule($module);
             }
         }
     }
     if ($list) {
         $class = $params->get('display', 'ja-toppanel-col');
         ob_start();
         $path = JModuleHelper::getLayoutPath('mod_jatoppanel', 'default_modules');
         if (file_exists($path)) {
             require $path;
         }
         $this->_result = ob_get_clean();
     }
 }
Esempio n. 11
0
 function display()
 {
     jimport('joomla.application.module.helper');
     $module =& JModuleHelper::getModule('mod_login');
     $module = JModuleHelper::renderModule($module, array('style' => 'rounded', 'id' => 'section-box'));
     echo $module;
 }
Esempio n. 12
0
 /**
  * KSSystem::loadModule()
  *
  * @param mixed $name
  * @param mixed $params
  * @return
  */
 public static function loadModule($name, $params = array())
 {
     $document = JFactory::getDocument();
     $module = JModuleHelper::getModule($name);
     $renderer = $document->loadRenderer('module');
     return $renderer->render($module, $params, null);
 }
Esempio n. 13
0
 /**
  * Function used to update
  *
  * @param   INT  $called_frm  //Mundhe complet this
  *
  * @return  Array
  *
  * @since  1.0.0
  */
 public function update_mod($called_frm = '0')
 {
     $lang = JFactory::getLanguage();
     $lang->load('mod_quick2cart', JPATH_ROOT);
     $comquick2cartHelper = new comquick2cartHelper();
     jimport('joomla.application.module.helper');
     if (JModuleHelper::getModule('mod_quick2cart')) {
         $module = JModuleHelper::getModule('mod_quick2cart');
         if (JVERSION < '1.6.0') {
             $moduleParams = new JParameter($module->params);
             $layout = $moduleParams->get('viewtype');
             $ckout_text = $moduleParams->get('checkout_text');
         } else {
             $moduleParams = json_decode($module->params);
             if (!empty($moduleParams)) {
                 $layout = $moduleParams->viewtype;
                 $ckout_text = $moduleParams->checkout_text;
             }
         }
     }
     if (isset($layout) && isset($ckout_text)) {
         $data = $comquick2cartHelper->get_module($layout, $ckout_text);
     } else {
         $data = $comquick2cartHelper->get_module();
     }
     echo $data;
     jexit();
 }
Esempio n. 14
0
 function display($tpl = null)
 {
     jimport('joomla.html.pane');
     $pane = JPane::getInstance('Tabs');
     $this->assignRef('pane', $pane);
     $model = $this->getModel();
     $numOfK2Items = $model->countK2Items();
     $this->assignRef('numOfK2Items', $numOfK2Items);
     $numOfVmProducts = $model->countVmProducts();
     $this->assignRef('numOfVmProducts', $numOfVmProducts);
     $numOfK2martProducts = $model->countK2martProducts();
     $this->assignRef('numOfK2martProducts', $numOfK2martProducts);
     $module = JModuleHelper::getModule('mod_k2mart');
     $params = new JRegistry();
     $params->loadString($module->params);
     $params->set('modLogo', "0");
     $params->set('modCSSStyling', "1");
     $module->params = $params->toString();
     $charts = JModuleHelper::renderModule($module);
     $this->assignRef('charts', $charts);
     $document = JFactory::getDocument();
     $document->addCustomTag('<!--[if lte IE 7]><link href="' . JURI::base() . 'components/com_k2mart/css/style_ie7.css" rel="stylesheet" type="text/css" /><![endif]-->');
     $this->loadHelper('html');
     K2martHTMLHelper::title('K2MART_DASHBOARD');
     K2martHTMLHelper::toolbar();
     K2martHTMLHelper::subMenu();
     parent::display($tpl);
 }
Esempio n. 15
0
 function render($position = "")
 {
     global $gantry;
     $output = '';
     $renderer = $gantry->document->loadRenderer('module');
     $options = array('style' => "raw");
     $params = array();
     $group_params = $gantry->getParams($this->_feature_prefix . "-" . $this->_feature_name, true);
     $group_params_reg = new JRegistry();
     foreach ($group_params as $param_name => $param_value) {
         $group_params_reg->set($param_name, $param_value['value']);
     }
     if ($position == $this->get('mainmenu-position')) {
         $params = $gantry->getParams($this->_feature_prefix . "-" . $this->_feature_name . "-mainmenu", true);
         $module = JModuleHelper::getModule('mod_menu', '_z_empty');
         $reg = new JRegistry();
         foreach ($params as $param_name => $param_value) {
             $reg->set($param_name, $param_value['value']);
         }
         $reg->merge($group_params_reg);
         $module->params = $reg->toString();
         $output .= $renderer->render($module, $options);
     }
     return $output;
 }
Esempio n. 16
0
 /**
  * Initialize client configuration object.
  */
 public function init()
 {
     $configObj = JModuleHelper::getModule('mod_kayako')->params;
     $configValue = json_decode($configObj, 1);
     $config = $config = new kyConfig($configValue['apiurl'], $configValue['apikey'], $configValue['secretkey']);
     $config->setIsStandardURLType(true);
     kyConfig::set($config);
 }
 protected function hideModule($moduleName)
 {
     $module = JModuleHelper::getModule($moduleName);
     if (is_object($module) and $module->id > 0) {
         $seed = Prism\Utilities\StringHelper::generateRandomString(16);
         $module->position = 'fp' . JApplicationHelper::getHash($seed);
     }
 }
Esempio n. 18
0
 private static function getModuleParams()
 {
     jimport('joomla.html.parameter');
     jimport('joomla.application.module.helper');
     $module = JModuleHelper::getModule('mod_contactus');
     $moduleParams = new JRegistry();
     return $moduleParams->loadString($module->params);
 }
 protected function hideModule($moduleName)
 {
     $module = JModuleHelper::getModule($moduleName);
     if (is_object($module) and $module->id > 0) {
         $seed = substr(md5(uniqid(time() * rand(), true)), 0, 10);
         $module->position = 'fp' . JApplicationHelper::getHash($seed);
     }
 }
 protected function hideModule($moduleName)
 {
     $module = JModuleHelper::getModule($moduleName);
     if (!empty($module->id)) {
         $seed = substr(md5(uniqid(time() * rand(), true)), 0, 10);
         $module->position = "fp" . JApplicationHelper::getHash($seed);
     }
 }
Esempio n. 21
0
 function getChiaSe($moduleTitle)
 {
     $modSearch = JModuleHelper::getModule('taoyeucau', $moduleTitle);
     $modSearch->title = 'Tạo yêu cầu bất động sản';
     $modSearch->showtitle = 0;
     $attribs['style'] = 'raw';
     $dataHTML = JModuleHelper::renderModule($modSearch, $attribs);
     return $dataHTML;
 }
Esempio n. 22
0
 /**
  * Retrieves the hello message
  *
  * @param   array  $params An object containing the module parameters
  *
  * @access public
  */
 public static function getAjax()
 {
     jimport('joomla.application.module.helper');
     $input = JFactory::getApplication()->input;
     $module = JModuleHelper::getModule('baccessibility');
     $params = new JRegistry();
     $params->loadString($module->params);
     return json_encode($params);
 }
Esempio n. 23
0
 /**
  * Renders a module script and returns the results as a string
  *
  * @param   string  $module   The name of the module to render
  * @param   array   $attribs  Associative array of values
  * @param   string  $content  If present, module information from the buffer will be used
  *
  * @return  string  The output of the script
  *
  * @since   11.1
  */
 public function render($module, $attribs = array(), $content = null)
 {
     if (!is_object($module)) {
         $title = isset($attribs['title']) ? $attribs['title'] : null;
         $module = JModuleHelper::getModule($module, $title);
         if (!is_object($module)) {
             if (is_null($content)) {
                 return '';
             } else {
                 /**
                  * If module isn't found in the database but data has been pushed in the buffer
                  * we want to render it
                  */
                 $tmp = $module;
                 $module = new stdClass();
                 $module->params = null;
                 $module->module = $tmp;
                 $module->id = 0;
                 $module->user = 0;
             }
         }
     }
     // Get the user and configuration object
     // $user = JFactory::getUser();
     $conf = JFactory::getConfig();
     // Set the module content
     if (!is_null($content)) {
         $module->content = $content;
     }
     // Get module parameters
     $params = new JRegistry();
     $params->loadString($module->params);
     // Use parameters from template
     if (isset($attribs['params'])) {
         $template_params = new JRegistry();
         $template_params->loadString(html_entity_decode($attribs['params'], ENT_COMPAT, 'UTF-8'));
         $params->merge($template_params);
         $module = clone $module;
         $module->params = (string) $params;
     }
     $contents = '';
     // Default for compatibility purposes. Set cachemode parameter or use JModuleHelper::moduleCache from within the
     // module instead
     $cachemode = $params->get('cachemode', 'oldstatic');
     if ($params->get('cache', 0) == 1 && $conf->get('caching') >= 1 && $cachemode != 'id' && $cachemode != 'safeuri') {
         // Default to itemid creating method and workarounds on
         $cacheparams = new stdClass();
         $cacheparams->cachemode = $cachemode;
         $cacheparams->class = 'JModuleHelper';
         $cacheparams->method = 'renderModule';
         $cacheparams->methodparams = array($module, $attribs);
         $contents = JModuleHelper::ModuleCache($module, $params, $cacheparams);
     } else {
         $contents = JModuleHelper::renderModule($module, $attribs);
     }
     return $contents;
 }
Esempio n. 24
0
 function display($tpl = null)
 {
     if ($tpl != 'message') {
         $module = JModuleHelper::getModule('mod_userregister');
         $html = JModuleHelper::renderModule($module);
         $this->assignRef('moduleregister', $html);
     }
     parent::display($tpl);
 }
Esempio n. 25
0
 public static function getAjax()
 {
     jimport('joomla.application.module.helper');
     $input = JFactory::getApplication()->input;
     $module = JModuleHelper::getModule('sp_quickcontact');
     $params = new JRegistry();
     $params->loadString($module->params);
     $mail = JFactory::getMailer();
     $success = $params->get('success');
     $failed = $params->get('failed');
     $recipient = $params->get('email');
     $failed_captcha = $params->get('failed_captcha');
     $formcaptcha = $params->get('formcaptcha', 1);
     $captcha_question = $params->get('captcha_question');
     $captcha_answer = $params->get('captcha_answer');
     //inputs
     $inputs = $input->get('data', array(), 'ARRAY');
     foreach ($inputs as $input) {
         if ($input['name'] == 'email') {
             $email = $input['value'];
         }
         if ($input['name'] == 'name') {
             $name = $input['value'];
         }
         if ($input['name'] == 'subject') {
             $subject = $input['value'];
         }
         if ($input['name'] == 'message') {
             $message = nl2br($input['value']);
         }
         if ($formcaptcha) {
             if ($input['name'] == 'sccaptcha') {
                 $sccaptcha = $input['value'];
             }
         }
     }
     if ($formcaptcha) {
         if ($sccaptcha != $captcha_answer) {
             return '<p class="sp_qc_warn">' . $failed_captcha . '</p>';
         }
     }
     $sender = array($email, $name);
     $mail->setSender($sender);
     $mail->addRecipient($recipient);
     $mail->setSubject($subject);
     $mail->isHTML(true);
     $mail->Encoding = 'base64';
     $mail->setBody($message);
     if ($mail->Send()) {
         return '<p class="sp_qc_success">' . $success . '</p>';
     } else {
         return '<p class="sp_qc_warn">' . $failed . '</p>';
     }
 }
Esempio n. 26
0
 function display($tpl = null)
 {
     $providerid = JRequest::getInt('providerid', '0', 'method');
     $externalid = JRequest::getVar('externalid', '', 'method', 'string');
     $moduleProviders = JModuleHelper::getModule('mod_zlogin');
     $htmlProviders = JModuleHelper::renderModule($moduleProviders);
     $this->assign('providerid', $providerid);
     $this->assign('externalid', $externalid);
     $this->assignRef('moduleproviders', $htmlProviders);
     parent::display($tpl);
 }
Esempio n. 27
0
 function display($tpl = null)
 {
     $providerid = JRequest::getInt('providerid', '0', 'method');
     $externalid = JRequest::getVar('externalid', '', 'method', 'string');
     $moduleProviders = JModuleHelper::getModule('mod_zlogin');
     $htmlProviders = JModuleHelper::renderModule($moduleProviders);
     $this->assign('providerid', $providerid);
     $this->assign('externalid', $externalid);
     $this->assignRef('moduleproviders', $htmlProviders);
     $this->assign('message', JText::_('SYSTEM_USER_ALIAS_NOT_FOUND_AUTHENTICATE'));
     parent::display($tpl);
 }
 /**
  * Test JModuleHelper::getModule
  *
  * @return  void
  *
  * @since   3.2
  */
 public function testGetModule()
 {
     $module = JModuleHelper::getModule('mod_search');
     $this->assertEquals($module->id, '63', 'mod_search is module ID 63');
     $module = JModuleHelper::getModule('false');
     $this->assertEquals($module, null, 'There should be no module named false');
     $module = JModuleHelper::getModule('mod_false');
     $this->assertInternalType('object', $module, 'No object was returned');
     $this->assertEquals($module->id, 0, 'The anonymous module should have no id');
     $this->assertEquals($module->title, '', 'The anonymous module should not have a title');
     $this->assertEquals($module->module, 'mod_false', 'The anonymous module should have the given name');
 }
Esempio n. 29
0
 /**
  * Muestra la vista
  *
  * @param <type> $tpl
  */
 function display($tpl = null)
 {
     $db =& JFactory::getDBO();
     $user =& JFactory::getUser();
     // bandera que indica si mostrar la seccion
     // de habilitacion/deshabilitacion de alias
     $showAliasBlock = true;
     // si el usuario no esta logueado
     // no mostrar la seccion de habilitacion/deshabilitacion de alias
     if ($user->guest) {
         $showAliasBlock = false;
     } else {
         // recupero los alias del usuario
         $userid = $user->id;
         $query = 'select a.id, p.icon_url, a.block, p.name as providername, a.label from #__alias a, #__providers p where user_id=' . $userid . ' and a.provider_id=p.id';
         $db->setQuery($query);
         $dbaliaslist = $db->loadObjectList();
         // si el usuario no tiene alias registrados
         // no muestra la seccion de habilitacion/deshabilitacion de alias
         if (count($dbaliaslist) == 0) {
             $showAliasBlock = false;
         } else {
             // arma los mensajes y los hace accesibles a la vista
             $titleAliasBlockAdmin = JText::_('ZONALES_ALIAS_TITLE_BLOCK_ADMIN');
             $messageAliasBlockAdmin = JText::_('ZONALES_ALIAS_MESSAGE_BLOCK_ADMIN');
             $titleUnblock = JText::_('ZONALES_ALIAS_UNBLOCK');
             $titleAlias = JText::_('ZONALES_ALIAS_TITLE');
             $this->assignRef('titleAlias', $titleAlias);
             $this->assignRef('aliaslist', $dbaliaslist);
             $this->assignRef('titleAliasBlockAdmin', $titleAliasBlockAdmin);
             $this->assignRef('messageAliasBlockAdmin', $messageAliasBlockAdmin);
             $this->assignRef('titleUnblock', $titleUnblock);
         }
     }
     // si no se va a mostrar la seccion de habilitacion/deshabilitacion de alias
     // muestra un mensaje en su lugar, indicando la situacion
     if (!$showAliasBlock) {
         $noAliasMessage = JText::_('ZONALES_ALIAS_NO_ALIAS');
     }
     // arma el resto de los mensajes y los hace accesibles
     // a la vista
     $titleNewAlias = JText::_('ZONALES_ALIAS_NEW_TITLE');
     $messageNewAlias = JText::_('ZONALES_ALIAS_NEW_MESSAGE');
     $moduleProviders = JModuleHelper::getModule('mod_zlogin');
     $htmlProviders = JModuleHelper::renderModule($moduleProviders);
     $this->assignRef('titleNewAlias', $titleNewAlias);
     $this->assignRef('messageNewAlias', $messageNewAlias);
     $this->assignRef('moduleproviders', $htmlProviders);
     $this->assign('showAliasBlock', $showAliasBlock);
     $this->assignRef('noAliasMessage', $noAliasMessage);
     parent::display($tpl);
 }
Esempio n. 30
-1
 function render($position = "")
 {
     global $gantry;
     $output = '';
     $renderer = $gantry->document->loadRenderer('module');
     $options = array('style' => "raw");
     $group_params_str = '';
     $params = array();
     $group_params = $gantry->getParams($this->_feature_prefix . "-" . $this->_feature_name, true);
     foreach ($group_params as $param_name => $param_value) {
         $group_params_str .= $param_name . "=" . $param_value['value'] . "\n";
     }
     if ($position == $this->get('mainmenu-position')) {
         $params = $gantry->getParams($this->_feature_prefix . "-" . $this->_feature_name . "-mainmenu", true);
         $module = JModuleHelper::getModule('mod_roknavmenu');
         $module->params = '';
         foreach ($params as $param_name => $param_value) {
             $module->params .= $param_name . "=" . $param_value['value'] . "\n";
         }
         $module->params .= $group_params_str;
         $output .= $renderer->render($module, $options);
     }
     if ($position == $this->get('submenu-position')) {
         $params = $gantry->getParams($this->_feature_prefix . "-" . $this->_feature_name . "-submenu", true);
         $options = array('style' => "submenu");
         $module = JModuleHelper::getModule('mod_roknavmenu');
         $module->params = '';
         foreach ($params as $param_name => $param_value) {
             $module->params .= $param_name . "=" . $param_value['value'] . "\n";
         }
         $module->params .= $group_params_str;
         $output .= $renderer->render($module, $options);
     }
     return $output;
 }