<div id="sidebar"> <div id="tilos_store" > <mw module="content/search" url="<? print page_link_to_layout('shop'); ?>" > </div> <div class="sidebox"> <editable rel="page" field="sidebar2"> <microweber module="content/category_tree" title="Products" for_page="<? print 'shop';?>" /> </editable> </div> </div>
<div id="top_nav"> <ul> <? if(user_id() != false): ?> <? $shop_page = array(); $shop_page['content_layout_name'] = 'shop'; $shop_page=get_pages($shop_page); $shop_page = $shop_page[0]; // var_dump($shop_page); ?> <li><a href="<? print page_link_to_layout('members'); ?>">Profile</a>|</li> <li><a href="#" onclick="mw.users.LogOut()">Log Out</a>|</li> <li><a href="<? print page_link($shop_page['id']); ?>">View cart</a></li> <? else: ?> <? $members = array(); $members['content_layout_name'] = 'members'; $members=get_pages($members); $members = $members[0]; // var_dump($shop_page); ?>