Page MenuHomeIn-Portal Phabricator

advanced
No OneTemporary

File Metadata

Created
Wed, Feb 12, 4:25 PM

advanced

Index: platform/elements/menu_subsections.xml.tpl
===================================================================
--- platform/elements/menu_subsections.xml.tpl (revision 12876)
+++ platform/elements/menu_subsections.xml.tpl (revision 12877)
@@ -1,32 +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" no_editing="1">
- <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"
+ <item id="menu<inp2:m_Param name="page_id"/>" url="<inp2:m_Link template="$template" m_cat_id="$cat_id" use_section="$use_section" m_cat_page="1"/>" 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"/>
</items>
</menu>
</menus>
\ No newline at end of file
Index: platform/elements/menu_sections.xml.tpl
===================================================================
--- platform/elements/menu_sections.xml.tpl (revision 12876)
+++ platform/elements/menu_sections.xml.tpl (revision 12877)
@@ -1,19 +1,19 @@
<inp2:m_Random result_to_var="rand"/>
<inp2:m_DefineElement name="top_menu_item" no_editing="1">
<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>"
+ url="<inp2:m_Link template="$template" m_cat_id="$cat_id" use_section="$use_section" m_cat_page="1"/>"
<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 newline at end of file
Index: platform/elements/footer.elm.tpl
===================================================================
--- platform/elements/footer.elm.tpl (revision 12876)
+++ platform/elements/footer.elm.tpl (revision 12877)
@@ -1,15 +1,15 @@
<table class="fullwidth footer-table">
<tr>
<td>
Powered by In-portal &#174; 1997-<inp2:lang.current_CurrentDate format="Y"/>, <a href="http://www.intechnic.com" target="_blank">Intechnic Corporation</a>. <inp2:m_Phrase label="lu_AllRightsReserved"/>
</td>
</tr>
</table>
<div class="footer-links">
- <a href="<inp2:m_Link template="platform/sitemap"/>"><inp2:m_Phrase label="lu_SiteMap"/></a> | <a href="<inp2:m_Link template="platform/terms"/>"><inp2:m_Phrase label="lu_TermAndCondition"/></a> | <a href="<inp2:m_Link template="platform/privacy"/>"><inp2:m_Phrase label="lu_PrivacyPolicy"/></a>
+ <a href="<inp2:m_Link template='platform/sitemap' use_section='1'/>"><inp2:m_Phrase label="lu_SiteMap"/></a> | <a href="<inp2:m_Link template='platform/terms' use_section='1'/>"><inp2:m_Phrase label="lu_TermAndCondition"/></a> | <a href="<inp2:m_Link template='platform/privacy' use_section='1'/>"><inp2:m_Phrase label="lu_PrivacyPolicy"/></a>
</div>
<inp2:m_RegisterPageHit/>
\ No newline at end of file
Index: platform/elements/menu.elm.tpl
===================================================================
--- platform/elements/menu.elm.tpl (revision 12876)
+++ platform/elements/menu.elm.tpl (revision 12877)
@@ -1,109 +1,105 @@
<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="menu_xml" no_editing="1">
<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"/>
$(document).ready(
function() {
var menu_mgr = NlsMenuUtil.createFromXMLString('<inp2:m_RenderElement name="menu_xml" js_escape="1"/>');
// menu_mgr.renderMenus();
menu_mgr.renderMenubar('xmlMenuDiv');
<inp2:m_if check="m_GetConst" name="EDITING_MODE" equals_to="2">
// make all spans with phrases clickable inside menus, that were just created
aTemplateManager.setupEditTranslationButtons('#xmlMenuDiv');
</inp2:m_if>
}
);
</script>
<noscript>
<inp2:m_DefineElement name="static_top_menu_element">
- <inp2:m_if check="m_Param" name="external_url">
- <inp2:m_Param name="external_url" result_to_var="link"/>
- <inp2:m_else/>
- <inp2:m_Link template="$template" m_cat_id="$cat_id" m_cat_page="1" result_to_var="link"/>
- </inp2:m_if>
+ <inp2:m_Link template="$template" m_cat_id="$cat_id" m_cat_page="1" use_section="$use_section" result_to_var="link"/>
<inp2:m_if check="m_Param" name="menu_icon">
<inp2:m_TemplatesBase result_to_var="module_path"/>
<inp2:m_RenderElement name="menu_element" menu_href="$link" menu_title="$title" menu_icon_src="{$module_path}{$menu_icon}"/>
<inp2:m_else/>
<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_inedit.gif"/>
</inp2:m_if>
</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"/>
<inp2:st_CachedMenu level="0" category_id="0" render_as="static_top_menu_element"/>
</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">
<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

Event Timeline