Re: Apple Zen Template Support Thread
hhhhhhhhhhaaaaaaaaaaaaaaa
Jettrue
I knew there should be a solution and for this I didn't want to miss this contribution. thanks, in between because of no answer I was trying to get the last minute answer from Get Em Fast,
thanks again,
about category-url-generator, I will see it and if I found a good answer I let the thers to know too.
bye
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
jettrue
Apple Zen is not guaranteed to be compatible with every other mod out there, so you may have to abandon Apple Zen. As far was the right to left, in includes/templates/apple_zen/css/stylesheet_header_menu.css, you can change div#dropMenu ul.level8{top: 0; left: 12em; background:#4f4f4f} to div#dropMenu ul.level8{top: 0; left: -12em; background:#4f4f4f}
For the multi-site module, I'm sure there's some sort of modified functionality for the right category sidebox that causes it to filter. You'll need to find out what they did to make that work for that mod, and somehow apply that to includes/classes/categories_ul_generator.php (there's a category query in there, since it hasn't been modified for your multi-site module, of course it will show all categories, that is what it is designed to do).
As far as the language issue, I've not dealt with two languages, so I'm not fully sure what your issue is. There are three language files with apple_zen:
==includes/languages/english/apple_zen/header.php
==includes/languages/english/extra_definitions/apple_zen/headermenu.php
==includes/languages/english/extra_definitions/apple_zen/order_steps_defines.php
So maybe you need to copy them and place them in your custom language folder after modifying them?
SORRY JETTRUE, BUT HOW DO I GET THE HEADER BOX FROM RIGHT TO LEFT TOO? SO? FROM RIGH FIRST HOME, then category, then information etc .
I added a "direction:rtl," to mainwrapper of stylsheet.css , doesn't work, also to headerwrapper, doesn't worked, any idea please.
thanks
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
reza
SORRY JETTRUE, BUT HOW DO I GET THE HEADER BOX FROM RIGHT TO LEFT TOO? SO? FROM RIGH FIRST HOME, then category, then information etc .
I added a "direction:rtl," to mainwrapper of stylsheet.css , doesn't work, also to headerwrapper, doesn't worked, any idea please.
thanks
No, you'll have to do that manually. Open up includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php and shift things around in the order you want them.
For example, this is the section for HOME:
Code:
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
<ul class="level2">
<li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_NEW); ?>"><?php echo HEADER_TITLE_NEW_PRODUCTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo HEADER_TITLE_ALL_PRODUCTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_SPECIALS); ?>"><?php echo HEADER_TITLE_SPECIALS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li>
</ul>
</li>
Move that down to after this:
Code:
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
<ul class="level2">
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
</ul>
</li>
<?php } else { ?>
<li><a class="noLine" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
<?php } ?>
And keep moving things around.
1 Attachment(s)
Re: Apple Zen Template Support Thread
hi
well this is what I get after just implementing header css flyout, I did changes in stylsheet.header_menu.css , and in order to get the menu bar goes to right as the site is right to left, I changed div#dropMenu li to float:right.
as I need this header, could you please check my css file and solve this problem, as you can see in the figure (zip file) mouse goes over a menu item, the submenu sping one box to left instead of being onder tjhat menu:
****************
stylesheet_header_menu.css
---------------------------------
body {
behavior: url(includes/csshover.htc);
}
/*green*/
div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover {color: #4f4f4f!important;background:#D5E88F;}
/*blue
div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover, div#dropMenu ul.level2 a:hover {color: #ffffff!important;background:#6C99D9;}
*/
/*red
div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover, div#dropMenu ul.level2 a:hover {color: #ffffff!important;background:#DC262E;}
*/
/*grey
div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover, div#dropMenu ul.level2 a:hover {color: #4f4f4f!important;background:#D5D5D5;}
*/
#dropMenuWrapper {
width:100%;
height:2.17em;
margin:0;
font-size:1em;
}
div#dropMenu {
width:70em;
margin:0 auto;
text-align:center;
z-index:1000;
position:relative;
}
div#dropMenu ul {
margin: 0;
padding: 0;
}
div#dropMenu li {
position: relative;
list-style: none;
margin: 0;
float: RIGHT;
line-height: 1em;
}
div#dropMenu ul.level1 {
width:70em;
margin:0 auto;
text-align:center;
background:#000000;
height:2.17em;
z-index:1000;
}
div#dropMenu li:hover {}
/*div#dropMenu li.submenu {background: url(../images/dropmenu.gif) 95% 50% no-repeat;} */
div#dropMenu li.submenu:hover {}
div#dropMenu li a {display: block; padding: .6em 2em .6em 2em;text-decoration: none; text-transform:uppercase; color:#ffffff; text-align:center; border-right:1px solid #ffffff;}
div#dropMenu>ul a {width: auto;}
div#dropMenu ul ul {position: absolute; width: 12em;display: none;}
div#dropMenu ul ul li {border-bottom: 1px solid #CCC; width:12em;}
/*div#dropMenu li.submenu li.submenu {background: url(../images/submenu.gif) 95% 50% no-repeat;} */
div#dropMenu ul.level1 li.submenu:hover ul.level2,
div#dropMenu ul.level2 li.submenu:hover ul.level3,
div#dropMenu ul.level3 li.submenu:hover ul.level4,
div#dropMenu ul.level4 li.submenu:hover ul.level5 {display:block;z-index:1000;}
div#dropMenu ul.level2 {top: 2.17em; background:#4f4f4f;z-index:1000;}
div#dropMenu ul.level3, div#dropMenu ul.level4, div#dropMenu ul.level5 {top: 0; left: -12em; background:#4f4f4f}
div#dropMenu ul.level2 a {padding: 0.5em 0 0.5em 0.25em;color: white; text-transform:none;} /* this is text color on drop-down submenu */
div#dropMenu ul.level2 a:hover {color:#4f4f4f;}
-*************************************************
thanks
Re: Apple Zen Template Support Thread
hi jettrue
again I come to ask you another question,
because I have too much category and in sideboxes is very horrible figure to get show them , I found in http://www.amazon.com/, above when your mouse goes over the " see all 41 product category", a window opens and if you don't select it will close automatically,
do you know what is the name of this script or the name of this action? or which are keywords to find something about it?
thanks
Re: Apple Zen Template Support Thread
Hi!
Great template. :)
I have disabled the shopping cart as we only use Zen for it's catalog functions.
SHOPPING CART is still displayed in the horizontal menu. I have read a similar request in post# 53 and followed jettrue's instructions explaining how to remove CONTACT US (tpl_drop_menu.php) but haven't succeeded.
Your help would be much appreciated. :)
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
reza
hi
well this is what I get after just implementing header css flyout, I did changes in stylsheet.header_menu.css , and in order to get the menu bar goes to right as the site is right to left, I changed div#dropMenu li to float:right.
as I need this header, could you please check my css file and solve this problem, as you can see in the figure (zip file) mouse goes over a menu item, the submenu sping one box to left instead of being onder tjhat menu:
****************
thanks
Change the -12em back to 12em, maybe? If I could see a real site, that would help me greatly.
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
reza
hi jettrue
again I come to ask you another question,
because I have too much category and in sideboxes is very horrible figure to get show them , I found in
http://www.amazon.com/, above when your mouse goes over the " see all 41 product category", a window opens and if you don't select it will close automatically,
do you know what is the name of this script or the name of this action? or which are keywords to find something about it?
thanks
I'm not really sure, however you may be able to do something similar (but without the fancy expanding and collapsing box) with a CSS popup. You can do a google for CSS popups and see a few examples. I used some here:
www.jmb.jadetrue.com (hover over "Our Newest Additions" and "Important Info".
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
penzman
Hi!
Great template. :)
I have disabled the shopping cart as we only use Zen for it's catalog functions.
SHOPPING CART is still displayed in the horizontal menu. I have read a similar request in post# 53 and followed jettrue's instructions explaining how to remove CONTACT US (tpl_drop_menu.php) but haven't succeeded.
Your help would be much appreciated. :)
You would remove this section:
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
<ul class="level2">
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
</ul>
</li>
<?php } else { ?>
from includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
jettrue
You would remove this section:
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
<ul class="level2">
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
</ul>
</li>
<?php } else { ?>
from includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php
Mmm, I have, not exactly sure if that's exactly what I attempted before but followed your instructions and the Shopping Cart is still appearing in the horizontal menu. I have renamed the original file to keep it intact, tried over and over, refreshed, nothing. Same result now.
Here's what's left after I ''gutted'' the file.
?>
<!-- menu area -->
<div id="dropMenuWrapper">
<div id="dropMenu">
<ul class="level1">
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
<ul class="level2">
<li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_NEW); ?>"><?php echo HEADER_TITLE_NEW_PRODUCTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo HEADER_TITLE_ALL_PRODUCTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_SPECIALS); ?>"><?php echo HEADER_TITLE_SPECIALS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li>
</ul>
</li>
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_CATEGORIES; ?></a>
<?php
// load the UL-generator class and produce the menu list dynamically from there
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
$menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
$menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
echo $menulist;
?>
</li>
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_INFORMATION; ?></a>
<ul class="level2">
<li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo HEADER_TITLE_SHIPPING_INFO; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo HEADER_TITLE_PRIVACY_POLICY; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo HEADER_TITLE_CONDITIONS_OF_USE; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo HEADER_TITLE_ABOUT_US; ?></a></li>
<?php if (defined('FILENAME_SITE_MAP')) { ?><li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_SITE_MAP; ?></a></li>
<?php } ?><?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?><li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_GV_FAQ; ?></a></li>
<?php } ?><?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?><li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_DISCOUNT_COUPON; ?></a></li>
<?php } ?><?php if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') { ?><li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE; ?></a></li><?php } ?><?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
</ul>
</li>
<li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
<ul class="level2">
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo HEADER_TITLE_NEWSLETTERS; ?></a></li><?php } else { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
</ul>
</div>
</div>