Page MenuHomeIn-Portal Phabricator

advanced
No OneTemporary

File Metadata

Created
Wed, Feb 12, 9:10 AM

advanced

Index: platform/elements/menu_subsections.xml.tpl
===================================================================
--- platform/elements/menu_subsections.xml.tpl (nonexistent)
+++ platform/elements/menu_subsections.xml.tpl (revision 11539)
@@ -0,0 +1,19 @@
+<inp2:m_Random result_to_var="rand"/>
+<inp2:m_DefineElement name="top_menu_item">
+ <item id="menu<inp2:m_Param name="page_id"/>"
+ url="<inp2:m_if check="m_Param" name="external_url"><inp2:m_Param name="external_url"/><inp2:m_else/><inp2:m_Link template="$template" m_cat_id="$cat_id" m_cat_page="1"/></inp2:m_if>"
+ <inp2:m_if check="m_Param" name="menu_icon">
+ ico="['<inp2:m_TemplatesBase/><inp2:m_Param name="menu_icon"/>']"
+ <inp2:m_else/>
+ ico="['<inp2:m_TemplatesBase module="In-Portal"/>img/menu_inedit.gif']"
+ </inp2:m_if>
+ enb="true" title=""
+ subid="subpages<inp2:m_Param name="page_id"/>"
+ suburl="<inp2:m_link __NO_REWRITE__="1" template="platform/elements/menu_subsections.xml"
+ m_cat_id="$cat_id"
+ m_cat_page="1"
+ page_id="$page_id"
+ level="0" max_level="4"
+ />" ><![CDATA[<inp2:m_Param name="title"/>]]></item>
+</inp2:m_DefineElement>
+<inp2:st_CachedMenu level="0" category_id="0" render_as="top_menu_item" no_editing="1"/>
\ No newline at end of file
Property changes on: platform/elements/menu_subsections.xml.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.1.2.1
\ No newline at end of property
Index: platform/elements/menu_sections.xml.tpl
===================================================================
--- platform/elements/menu_sections.xml.tpl (nonexistent)
+++ platform/elements/menu_sections.xml.tpl (revision 11539)
@@ -0,0 +1,32 @@
+<inp2:m_XMLTemplate cache="600"/>
+<inp2:m_Get var="page_id" result_to_var="page_id"/>
+<inp2:m_Inc param="level" by="1"/>
+<inp2:m_Get var="level" result_to_var="level"/>
+<inp2:m_Get var="max_level" result_to_var="max_level"/>
+<inp2:m_Random result_to_var="rand"/>
+<inp2:conf_ConfigValue name="CategoriesRebuildSerial" result_to_var="serial"/>
+<menus>
+ <menu id="subpages<inp2:m_Param name="page_id"/>"
+ orient="V" showicon="true" showsubicon="true" stlprf=""
+ submenuic="['<inp2:m_TemplatesBase module="In-portal"/>img/arrow_white.gif']">
+ <items>
+ <inp2:m_DefineElement name="top_sub_menu_elem">
+ <item id="menu<inp2:m_Param name="page_id"/>" url="<inp2:m_if check="m_Param" name="external_url"><inp2:m_Param name="external_url"/><inp2:m_else/><inp2:m_Link template="$template" m_cat_id="0" m_cat_page="1"/></inp2:m_if>" enb="true"
+ <inp2:m_if inverse="1" check="m_ParamEquals" name="level" value="$max_level">
+ <inp2:m_if check="m_Param" name="has_sub_menu">
+ subid="subpages<inp2:m_Param name="page_id"/>"
+ suburl="<inp2:m_link __NO_REWRITE__="1" template="platform/elements/menu_subsections.xml"
+ m_cat_id="$cat_id"
+ m_cat_page="1"
+ page_id="$page_id"
+ level="$level" max_level="4"
+ rand="$rand" serial="$serial"/>"
+ </inp2:m_if>
+ </inp2:m_if>
+ ><![CDATA[<inp2:m_Param name="title"/>]]></item>
+ </inp2:m_DefineElement>
+
+ <inp2:st_CachedMenu except="index" menu_id="$page_id" category_id="$cat_id" render_as="top_sub_menu_elem" no_editing="1"/>
+ </items>
+ </menu>
+</menus>
\ No newline at end of file
Property changes on: platform/elements/menu_sections.xml.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.1.2.1
\ No newline at end of property
Index: platform/elements/menu.elm.tpl
===================================================================
--- platform/elements/menu.elm.tpl (revision 11538)
+++ platform/elements/menu.elm.tpl (revision 11539)
@@ -1,115 +1,97 @@
<table class="menu-background fullwidth">
<tr>
<td align="left">
<table style="width: auto;">
<tr>
<td>
<script type="text/javascript" src="<inp2:m_TemplatesBase module='In-Portal'/>inc/nlsmenu.js"></script>
<script type="text/javascript" src="<inp2:m_TemplatesBase module='In-Portal'/>inc/nlsmenueffect.js"></script>
<script type="text/javascript" src="<inp2:m_TemplatesBase module='In-Portal'/>inc/nlsmenuext_dyn.js"></script>
<script type="text/javascript" src="<inp2:m_TemplatesBase module='In-Portal'/>inc/nlsmenuext_xml.js"></script>
<link rel="StyleSheet" href="<inp2:m_TemplatesBase module='In-Portal'/>inc/dmenu.css" type="text/css" />
<div id="xmlMenuDiv"></div>
<script type="text/javascript">
- <inp2:m_DefineElement name="dmenu_element">
- <inp2:m_ModuleInfo key="Name" value="$module" return="RootCat" result_to_var="root_cat"/>
- <inp2:m_Random result_to_var="rand"/>
- <inp2:m_Set m_cat_id="$root_cat"/>
- <inp2:conf_ConfigValue name="CategoriesRebuildSerial" result_to_var="serial"/>
- <item id="sub-elem<inp2:m_Param name="root_cat"/>"
- url="<inp2:c_CategoryLink template="__default__" module="$module" cat_id="Root"/>"
- ico="['<inp2:m_TemplatesBase module="$module"/>img/<inp2:m_Param name="icon"/>']"
- enb="true" title=""
- subid="sub<inp2:m_Param name="root_cat"/>"
- suburl="<inp2:m_link __NO_REWRITE__="1" template="platform/elements/subcats.xml"
- m_cat_id="$root_cat"
- m_cat_page="1"
- c_menu_Page="1" pass="m,c.menu"
- level="0" max_level="4" serial="$serial"
- />" ><![CDATA[<inp2:c_Field requery="1" name="Name"/>]]></item>
- </inp2:m_DefineElement>
-
<inp2:m_DefineElement name="menu_xml">
<menumgr id="mgr" flowoverformelement="false" defaulteffect="aoslide" icpath="">
<!--## USE droponclick="false" TO OPEN MENU ONMOUSE-OVER ##-->
<menubar id="menubar" orient="H" showicon="true" showsubicon="false" stlprf="horz_" droponclick="true" >
<items>
<item id="sub-elem0" url="<inp2:m_Link template="index" m_cat_id="0" m_cat_page="1"/>" ico="['<inp2:m_TemplatesBase module="In-portal"/>img/menu_home.gif']" enb="true" title=""><![CDATA[<inp2:m_RootCategoryName/>]]></item>
+ <inp2:m_Include template="platform/elements/menu_sections.xml" />
</items>
</menubar>
</menumgr>
</inp2:m_DefineElement>
<inp2:m_get name="m_cat_id" result_to_var="current_category"/>
addLoadEvent(
function() {
var menu_mgr = NlsMenuUtil.createFromXMLString('<inp2:m_RenderElement name="menu_xml" no_editing="1" js_escape="1"/>');
-
// menu_mgr.renderMenus();
menu_mgr.renderMenubar('xmlMenuDiv');
}
);
</script>
<noscript>
<inp2:m_DefineElement name="static_menu_element">
<inp2:m_ModuleInfo key="Name" value="$module" return="RootCat" result_to_var="root_cat"/>
<inp2:m_Random result_to_var="rand"/>
<inp2:m_Set m_cat_id="$root_cat"/>
<inp2:c_CategoryLink template="__default__" module="$module" cat_id="Root" result_to_var="link"/>
<inp2:m_TemplatesBase module="$module" result_to_var="module_path"/>
<inp2:c_Field requery="1" name="Name" result_to_var="title"/>
<inp2:m_RenderElement name="menu_element" menu_href="$link" menu_title="$title" menu_icon_src="{$module_path}img/{$icon}" no_editing="1"/>
</inp2:m_DefineElement>
<table>
<tr>
<inp2:m_Link template="index" m_cat_id="0" m_cat_page="1" result_to_var="link"/>
<inp2:m_RootCategoryName result_to_var="title"/>
<inp2:m_TemplatesBase module="In-portal" result_to_var="module_path"/>
<inp2:m_RenderElement name="menu_element" menu_href="$link" menu_title="$title" menu_icon_src="{$module_path}img/menu_home.gif" no_editing="1"/>
</tr>
</table>
</noscript>
<inp2:m_Set m_cat_id="$current_category"/>
<inp2:c_Field requery="1" name="Name" result_to_var="category_name"/>
</td>
</tr>
</table>
</td>
<td align="right">
<table style="width: auto;">
<tr>
<!-- menu: My Account -->
<inp2:m_RenderElement design="menu_element" no_editing="1">
<inp2:m_Capture to_var="menu_href">
<inp2:m_Link template="platform/my_account/my_account" m_cat_id="0" m_cat_page="1"/>
</inp2:m_Capture>
<inp2:m_Capture to_var="menu_icon">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/menu_my_account.gif" alt="" /><br />
</inp2:m_Capture>
<inp2:m_Capture to_var="menu_title">
<inp2:m_Phrase name="lu_title_MyAccount"/>
</inp2:m_Capture>
<inp2:m_IsActive template=".*/my_account" result_to_var="current"/>
</inp2:m_RenderElement>
<!-- // menu: My Account -->
<inp2:m_if check="m_ModuleEnabled" module="In-Commerce">
<!-- menu: ShoppingCart -->
<inp2:m_Include t="in-commerce/elements/menu_element.elm"/>
<!-- // menu: ShoppingCart -->
</inp2:m_if>
</tr>
</table>
</td>
</tr>
</table>
\ No newline at end of file
Property changes on: platform/elements/menu.elm.tpl
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.2.4
\ No newline at end of property
+1.1.2.5
\ No newline at end of property

Event Timeline