%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.14 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/modules/mod_sj_megamenu_res/tmpl/ |
Upload File : |
<?php
/**
* @package Sj Megamenu
* @version 2.5
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (c) 2012 YouTech Company. All Rights Reserved.
* @author YouTech Company http://www.smartaddons.com
*
*/
defined('_JEXEC') or die;
$db =& JFactory::getDBO();
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$module_id = $item->params->get('xmp_modules');
$query = "SELECT * FROM `#__modules` AS a WHERE a.id =".$module_id[0];
$db->setQuery($query);
$result = $db->loadObject();
if( $result != null ){
$_module = JModuleHelper::renderModule($result);
}
$module_float = $item->params->get('xmp_position');
if( $module_float == "right" ){
$module_float = "module_right";
}else{ $module_float = "module_left"; }
// Note. It is important to remove spaces between elements.
$class = $item->anchor_css ? 'class="'.$item->anchor_css.'" ' : '';
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
$show_image = '';
$show_descr = $item->params->get('xmp_desc', '');
$show_descr = trim($show_descr);
$show_title = $item->title;
if ( $item->menu_image ) {
$show_image = '<img class="menu-image" src="'.$item->menu_image.'" alt="'.$item->title.'" />';
// add text (title)
if( !$item->params->get('menu_text', 1) ){
$show_title = '';
}
}
$linktype = $show_image;
if ($show_title || $show_descr){
$linktype .= '<span class="menu-title">';
if ($show_title){
$linktype .= '<span>'.$show_title.'</span>';
}
if ($show_descr){
$linktype .= '<em>'.$show_descr.'</em>';
}
$linktype .= '</span>';
}
$flink = $item->flink;
$flink = JFilterOutput::ampReplace(htmlspecialchars($flink));
$anchor_htm5 = '';
$anchor_htm5 .= $show_image ? ' data-image="on"' : ' data-image="off"';
$anchor_htm5 .= $show_title ? ' data-title="on"' : ' data-title="off"';
$anchor_htm5 .= $show_descr ? ' data-description="on"' : ' data-description="off"';?>
<?php if( $item->params->get('xmp_showlink', '1') == "1" ){
switch ($item->browserNav) :
default:
case 0:
?><a <?php echo $class.$title.$anchor_htm5; ?> href="<?php echo $flink; ?>"><?php echo $linktype; ?></a><?php
break;
case 1:
// _blank
?><a <?php echo $class.$title.$anchor_htm5; ?> href="<?php echo $flink; ?>" target="_blank"><?php echo $linktype; ?></a><?php
break;
case 2:
// window.open
$options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$params->get('window_open');
?><a <?php echo $class.$title.$anchor_htm5; ?> href="<?php echo $flink; ?>" onclick="window.open(this.href,'targetWindow','<?php echo $options;?>');return false;"><?php echo $linktype; ?></a><?php
break;
endswitch;
}?>
<div class="sj-megamenu-child"
<?php if ( $fixed_width ): ?>
style="width: <?php echo $fixed_width;?>px"
<?php endif; ?>
>
<ul class="submenu sj-magamenu-jmod">
<li class="jmod-output">
<div class="module-content"><?php echo $_module;?></div>
</li>
</ul>
</div>