| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/eadsa/modules/mod_kwickverti_slidingmenu/tmpl/ |
Upload File : |
<?php
/**
* @version $Id: helper.php 8379 2007-08-10 23:20:01Z eddieajau $
* @package Joomla
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
/* Get the parameter infomation */
$with_mootools = $params->get( 'with_mootools' );
$menuwidth = $params->get( 'menuwidth','140' );
$menuheight = $params->get( 'menuheight','70' );
$menuheighthover = $params->get( 'menuheighthover','140' );
$separator_height=$params->get( 'separator_height','2' ); $separator_color=$params->get( 'separator_color','#FFFFFF' );
$status1=$params->get( 'status1' ); $status2=$params->get( 'status2' );
$status3=$params->get( 'status3' ); $status4=$params->get( 'status4' );
$status5=$params->get( 'status5' ); $status6=$params->get( 'status6' );
$status7=$params->get( 'status7' ); $status8=$params->get( 'status8' );
$linkmenu1 =str_replace('&', '&', $params->get( 'linkmenu1','http://www.camp26.biz' )); $linkmenu2 =str_replace('&', '&', $params->get( 'linkmenu2','http://www.camp26.biz' ));
$linkmenu3 =str_replace('&', '&', $params->get( 'linkmenu3','http://www.camp26.biz' )); $linkmenu4 =str_replace('&', '&', $params->get( 'linkmenu4','http://www.camp26.biz' ));
$linkmenu5 =str_replace('&', '&', $params->get( 'linkmenu5','http://www.camp26.biz' )); $linkmenu6 =str_replace('&', '&', $params->get( 'linkmenu6','http://www.camp26.biz' ));
$linkmenu7 =str_replace('&', '&', $params->get( 'linkmenu7','http://www.camp26.biz' )); $linkmenu8 =str_replace('&', '&', $params->get( 'linkmenu8','http://www.camp26.biz' ));
$targetor1 =$params->get( 'targetor1','_blank' ); $targetor2 =$params->get( 'targetor2','_blank' );
$targetor3 =$params->get( 'targetor3','_blank' ); $targetor4 =$params->get( 'targetor4','_blank' );
$targetor5 =$params->get( 'targetor5','_blank' ); $targetor6 =$params->get( 'targetor6','_blank' );
$targetor7 =$params->get( 'targetor7','_blank' ); $targetor8 =$params->get( 'targetor8','_blank' );
$camp26image1 =$params->get( 'camp26image1','1.png' ); $camp26image2 =$params->get( 'camp26image2','2.png' );
$camp26image3 =$params->get( 'camp26image3','3.png' ); $camp26image4 =$params->get( 'camp26image4','4.png' );
$camp26image5 =$params->get( 'camp26image5','5.png' ); $camp26image6 =$params->get( 'camp26image6','6.png' );
$camp26image7 =$params->get( 'camp26image7','7.png' ); $camp26image8 =$params->get( 'camp26image8','8.png' );
$total_menuitems = $status1 + $status2 + $status3 + $status4 + $status5 + $status6 + $status7 + $status8;
/* Width & Height */
$menucontainer = $menuwidth;
$menuheightall = $menuheight * $total_menuitems + 25;
$baseurl = JURI::base();
/*if you want to validate your xml, cut the lines between 'CUT HERE' until 'UNTIL HERE' sign below and put/paste them in the header tag of your template */
/*CUT HERE*/
/* Include stylesheet */
echo '<link href="'.$baseurl.'/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/kwickverti_slidingmenu.css" rel="stylesheet" type="text/css" />';
/* include mootools only if indicated */
if ($with_mootools)
echo " <script src=\"".$baseurl."/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/js/mootools.js\" type=\"text/javascript\" language=\"javascript\"></script>";
echo " <script src=\"".$baseurl."/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/js/kwickverticalslide.js\" type=\"text/javascript\" language=\"javascript\"></script>";
?>
<script type="text/javascript">
window.addEvent('domready', function(){
var myMenu = new slideyVert($$('#kwickmenu .menu'),{openHeight:<?php echo $menuheighthover; ?>});
});
</script>
<!-- Kwick Vertical Sliding Menu for Joomla by http://www.www.camp26.biz -->
<style type="text/css">
/* now lets do the styling thats not covered in the .css */
#kwickmenu {
height: <?php echo $menuheightall; ?>px;
}
#kwickmenu .menus {
width: <?php echo $menucontainer; ?>px;
}
#kwickmenu .menu {
width:<?php echo $menuwidth; ?>px;
height:<?php echo $menuheight; ?>px;
border-bottom: <?php echo $separator_height; ?>px solid <?php echo $separator_color; ?>;
}
/* now lets set up the images */
<?php if ($status1==1) { ?>
#kwickmenu .opt1 {
background: url(<?php echo $baseurl; ?>/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/images/<?php echo $camp26image1?>) ;
}
<?php } else { ?>
<?php } ?>
<?php if ($status2==1) { ?>
#kwickmenu .opt2 {
background: url(<?php echo $baseurl; ?>/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/images/<?php echo $camp26image2 ?>);
}
<?php } else { ?>
<?php } ?>
<?php if ($status3==1) { ?>
#kwickmenu .opt3 {
background: url(<?php echo $baseurl; ?>/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/images/<?php echo $camp26image3 ?>);
}
<?php } else { ?>
<?php } ?>
<?php if ($status4==1) { ?>
#kwickmenu .opt4 {
background: url(<?php echo $baseurl; ?>/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/images/<?php echo $camp26image4 ?>);
}
<?php } else { ?>
<?php } ?>
<?php if ($status5==1) { ?>
#kwickmenu .opt5 {
background: url(<?php echo $baseurl; ?>/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/images/<?php echo $camp26image5 ?>);
}
<?php } else { ?>
<?php } ?>
<?php if ($status6==1) { ?>
#kwickmenu .opt6 {
background: url(<?php echo $baseurl; ?>/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/images/<?php echo $camp26image6 ?>);
}
<?php } else { ?>
<?php } ?>
<?php if ($status7==1) { ?>
#kwickmenu .opt7 {
background: url(<?php echo $baseurl; ?>/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/images/<?php echo $camp26image7 ?>);
}
<?php } else { ?>
<?php } ?>
<?php if ($status8==1) { ?>
#kwickmenu .opt8 {
background: url(<?php echo $baseurl; ?>/modules/mod_kwickverti_slidingmenu/kwickverti_slidingmenu/images/<?php echo $camp26image8 ?>);
border-bottom: 0;
}
<?php } else { ?>
<?php } ?>
</style>
<!--UNTIL HERE -->
<!-- Kwick Vertical Sliding Menu for Joomla by http://www.www.camp26.biz -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-repeat:no-repeat; background-position:center;">
<tr><td>
<div id="menucontainer" align="center">
<div id="kwickmenu" align="center" >
<ul class="menus">
<?php if ($status1==1) { ?>
<li ><a href="<?php echo $linkmenu1; ?>" target="<?php echo $targetor1; ?>" class="menu opt1"></a></li>
<?php } else { ?>
<?php } ?>
<?php if ($status2==1) { ?>
<li ><a href="<?php echo $linkmenu2; ?>" target="<?php echo $targetor2; ?>" class="menu opt2"></a></li>
<?php } else { ?>
<?php } ?>
<?php if ($status3==1) { ?>
<li ><a href="<?php echo $linkmenu3; ?>" target="<?php echo $targetor3; ?>" class="menu opt3"></a></li>
<?php } else { ?>
<?php } ?>
<?php if ($status4==1) { ?>
<li ><a href="<?php echo $linkmenu4; ?>" target="<?php echo $targetor4; ?>" class="menu opt4"></a></li>
<?php } else { ?>
<?php } ?>
<?php if ($status5==1) { ?>
<li ><a href="<?php echo $linkmenu5; ?>" target="<?php echo $targetor5; ?>" class="menu opt5"></a></li>
<?php } else { ?>
<?php } ?>
<?php if ($status6==1) { ?>
<li ><a href="<?php echo $linkmenu6; ?>" target="<?php echo $targetor6; ?>" class="menu opt6"></a></li>
<?php } else { ?>
<?php } ?>
<?php if ($status7==1) { ?>
<li ><a href="<?php echo $linkmenu7; ?>" target="<?php echo $targetor7; ?>" class="menu opt7"></a></li>
<?php } else { ?>
<?php } ?>
<?php if ($status8==1) { ?>
<li ><a href="<?php echo $linkmenu8; ?>" target="<?php echo $targetor8; ?>" class="menu opt8"></a></li>
<?php } else { ?>
<?php } ?>
</ul>
</div>
</div>
</td></tr>
</table>