- Posts: 29
- Thank you received: 0
Multilingual site problem
-
Dunne
Inactive member - Topic Author
- Member
Less
More
8 years 10 months ago #46383
by Dunne
Multilingual site problem was created by Dunne
Hello,
after creating DE and ENG menu, submenu level don't open. Also new menu even setting at template is same
not having same format.
see it at crete-car-rent.eu/index.php/cs/
thank you for help
Michaela
after creating DE and ENG menu, submenu level don't open. Also new menu even setting at template is same
not having same format.
see it at crete-car-rent.eu/index.php/cs/
thank you for help
Michaela
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6769
- Thank you received: 719
8 years 10 months ago #46384
by milos
Replied by milos on topic Multilingual site problem
Hello,
Please change file /templates/hot_luxury/library/menu_js.php and change its contents to this:
Please change file /templates/hot_luxury/library/menu_js.php and change its contents to this:
Code:
<?php
/*------------------------------------------------------------------------
# "Sparky Framework" - Joomla Template Framework
# Copyright (C) 2015 HotThemes. All Rights Reserved.
# License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
# Author: HotThemes
# Website: http://www.hotjoomlatemplates.com
-------------------------------------------------------------------------*/
if($LoadMENU_Acc){ ?>
<link rel="stylesheet" href="<?php echo $template_path ?>/css/menu_accordion.css" type="text/css" />
<script type="text/javascript" src="<?php echo $template_path ?>/js/jquery.hjt.accmenu.js"></script>
<script type="text/javascript">
<?php
foreach($mnucfg as $menu_name => $menu){
if($menu['type'] == "acc"){ ?>
jQuery(document).ready(function(){
jQuery('.mnu_<?php echo $menu_name;?>').accmenu({
collapsible: <?php echo $menu['collapsible'] == "1"? "true" : "false"; ?>,
equalheight: <?php echo $menu['equalheight'] == "1"? "true" : "false"; ?>,
event:'<?php echo $menu['trigger']; ?>',
animation:'<?php echo $menu['animation']; ?>',
subpanelslide:'<?php echo $menu['subpanelslide']; ?>',
subpanelspeed: <?php echo $menu['animation_speed']; ?>
});
});
<?php
}
}
?>
</script>
<?php
}
if($LoadMENU_Navv){?>
<script type="text/javascript">
<?php
foreach($mnucfg as $menu_name => $menu) {
// cut dashes from menu names to prevent JS error
$menu_name_correct = str_replace("-", "", $menu_name);
if($menu['type'] == "navv"){ ?>
(function(jQuery){
jQuery.fn.dropDownMenu_<?php echo $menu_name_correct;?> = function(options) {
var defaults = {
speed: 300,
effect: 'fadeToggle'
};
var options = jQuery.extend(defaults, options);
return this.each(function() {
var screenWidth = jQuery("body").width();
jQuery('.mnu_<?php echo $menu_name;?> ul').hide();
jQuery('.mnu_<?php echo $menu_name;?> li ul li').filter(':last-child').css('border-bottom', 'none');
if(screenWidth > <?php echo $responsiveMenuTriggerValue; ?>) {
jQuery('.mnu_<?php echo $menu_name;?> li').hover(function(){
jQuery(this).children('ul').stop()[options.effect](options.speed);
},function(){
jQuery(this).css('position','relative').children('ul').stop()[options.effect](options.speed);
});
}else{
jQuery('.mnu_<?php echo $menu_name;?> li a[href="#"]').toggle(function(){
jQuery(this).parent().find('ul:first:not(:visible)').stop(true,true)[options.effect](options.speed);
},function(){
jQuery(this).parent().css('position', 'relative').find('ul:first:visible').stop(true,true)[options.effect](options.speed);
});
}
});
};
})(jQuery);
jQuery(document).ready(function(){
jQuery('.mnu_<?php echo $menu_name;?>').dropDownMenu_<?php echo $menu_name_correct;?>({
speed: <?php echo $menu['animation_speed']; ?>,
effect: '<?php echo $menu['animation_effect']; ?>'
});
var navHeight = jQuery('ul.mnu_<?php echo $menu_name;?> > li').outerHeight()
jQuery('ul.mnu_<?php echo $menu_name;?>').parent('div').css('height', navHeight)
});
<?php
}
}
?>
</script>
<?php } ?>
Please Log in to join the conversation.
Time to create page: 0.146 seconds