install travel templates

More
11 years 11 months ago #29574 by ivan.milic
Replied by ivan.milic on topic install travel templates
In index.php of template you have this code:
Code:
window.onload = function() { <?php if($bottommodules) { ?> BoxHeights.equalise(<?php if($showuser[5]) { ?>'c1'<?php } if($showuser[6]) { ?><?php if($showuser[5]) { ?>,<?php } ?>'c2'<?php } if($showuser[7]) { ?>,'c3'<?php } if($showuser[8]) { ?>,'c4'<?php } ?>); <?php } ?> <?php if($uppermodules) { ?> BoxHeights.equalise(<?php if($showadvert[1]) { ?>'c5'<?php } if($showadvert[2]) { ?><?php if($showadvert[1]) { ?>,<?php } ?>'c6'<?php } if($showadvert[3]) { ?>,'c7'<?php } if($showadvert[4]) { ?>,'c8'<?php } ?>); <?php } ?> <?php if($footer1modules) { ?> BoxHeights.equalise(<?php if($showuser[9]) { ?>'c9'<?php } if($showuser[10]) { ?><?php if($showuser[9]) { ?>,<?php } ?>'c10'<?php } if($showuser[11]) { ?>,'c11'<?php } if($showuser[12]) { ?>,'c12'<?php } ?>); <?php } ?> <?php if($footer2modules) { ?> BoxHeights.equalise(<?php if($showuser[13]) { ?>'c13'<?php } if($showuser[14]) { ?><?php if($showuser[13]) { ?>,<?php } ?>'c14'<?php } if($showuser[15]) { ?>,'c15'<?php } if($showuser[16]) { ?>,'c16'<?php } ?>); <?php } ?> <?php if($footer3modules) { ?> BoxHeights.equalise(<?php if($showfooter[1]) { ?>'f1'<?php } if($showfooter[2]) { ?><?php if($showfooter[2]) { ?>,<?php } ?>'f2'<?php } if($showfooter[3]) { ?>,'f3'<?php } if($showfooter[4]) { ?>,'f4'<?php } ?>); <?php } ?> <?php if($showleft && !$showright) { ?> BoxHeights.equalise('column_left','content_wrap'); <?php } ?> <?php if(!$showleft && $showright) { ?> BoxHeights.equalise('column_right','content_wrap'); <?php } ?> <?php if($showleft && $showright) { ?> BoxHeights.equalise('column_left','column_right','content_wrap'); <?php } ?> }

change it to:

Code:
var eqFN = function() { <?php if($bottommodules) { ?> BoxHeights.equalise(<?php if($showuser[5]) { ?>'c1'<?php } if($showuser[6]) { ?><?php if($showuser[5]) { ?>,<?php } ?>'c2'<?php } if($showuser[7]) { ?>,'c3'<?php } if($showuser[8]) { ?>,'c4'<?php } ?>); <?php } ?> <?php if($uppermodules) { ?> BoxHeights.equalise(<?php if($showadvert[1]) { ?>'c5'<?php } if($showadvert[2]) { ?><?php if($showadvert[1]) { ?>,<?php } ?>'c6'<?php } if($showadvert[3]) { ?>,'c7'<?php } if($showadvert[4]) { ?>,'c8'<?php } ?>); <?php } ?> <?php if($footer1modules) { ?> BoxHeights.equalise(<?php if($showuser[9]) { ?>'c9'<?php } if($showuser[10]) { ?><?php if($showuser[9]) { ?>,<?php } ?>'c10'<?php } if($showuser[11]) { ?>,'c11'<?php } if($showuser[12]) { ?>,'c12'<?php } ?>); <?php } ?> <?php if($footer2modules) { ?> BoxHeights.equalise(<?php if($showuser[13]) { ?>'c13'<?php } if($showuser[14]) { ?><?php if($showuser[13]) { ?>,<?php } ?>'c14'<?php } if($showuser[15]) { ?>,'c15'<?php } if($showuser[16]) { ?>,'c16'<?php } ?>); <?php } ?> <?php if($footer3modules) { ?> BoxHeights.equalise(<?php if($showfooter[1]) { ?>'f1'<?php } if($showfooter[2]) { ?><?php if($showfooter[2]) { ?>,<?php } ?>'f2'<?php } if($showfooter[3]) { ?>,'f3'<?php } if($showfooter[4]) { ?>,'f4'<?php } ?>); <?php } ?> <?php if($showleft && !$showright) { ?> BoxHeights.equalise('column_left','content_wrap'); <?php } ?> <?php if(!$showleft && $showright) { ?> BoxHeights.equalise('column_right','content_wrap'); <?php } ?> <?php if($showleft && $showright) { ?> BoxHeights.equalise('column_left','column_right','content_wrap'); <?php } ?> } if (window.addEventListener) { window.addEventListener('load', eqFN, false); } else if (window.attachEvent) // Microsoft { window.attachEvent('onload', eqFN); }

Please Log in to join the conversation.

More
11 years 11 months ago #29611 by peterk2006
Replied by peterk2006 on topic install travel templates
Do not go out: (

Please Log in to join the conversation.

More
11 years 11 months ago #29619 by ivan.milic
Replied by ivan.milic on topic install travel templates
Remove this line :

for (var i=0;i<this.num;i++) if (!$(arguments)) return;

from
templates/hot_destinations/js/equal_heights.js

Please Log in to join the conversation.

More
11 years 11 months ago #29625 by peterk2006
Replied by peterk2006 on topic install travel templates
also did not help ...

Please Log in to join the conversation.

More
11 years 11 months ago #29631 by ivan.milic
Replied by ivan.milic on topic install travel templates
Try like this(whole file):
Code:
var BoxHeights = { maxh: 0, boxes: Array(), num: 0, equalise: function() { this.num = arguments.length; this.boxes = arguments; this.maxheight(); if(!this.maxh){ this.maxh = 0; for (var i=0;i<this.num;i++){ if(jQuery("#" + arguments[i])[0]) if(jQuery("#" + arguments[i]).innerHeight() > this.maxh) this.maxh = jQuery("#" + arguments[i]).innerHeight(); } this.maxh+= 20; } for (var i=0;i<this.num;i++) { try{ jQuery("#" + arguments[i]).css('height',this.maxh+"px"); }catch(e){} } }, maxheight: function() { var heights = new Array(); for (var i=0;i<this.num;i++) { if(jQuery('#' + this.boxes)[0]) if (navigator.userAgent.toLowerCase().indexOf('opera') == -1) { heights.push($(this.boxes).scrollHeight); } else { heights.push($(this.boxes).offsetHeight); } } heights.sort(this.sortNumeric); this.maxh = heights[this.num-1]; }, sortNumeric: function(f,s) { return f-s; } }

Please Log in to join the conversation.

More
11 years 11 months ago - 11 years 11 months ago #29633 by peterk2006
Replied by peterk2006 on topic install travel templates
How to remove the name of the category in the material?
text1
here it is possible to make adjustments, but there is no
text
Last edit: 11 years 11 months ago by peterk2006.

Please Log in to join the conversation.

Time to create page: 0.111 seconds
Powered by Kunena Forum