Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1072381
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 24, 6:17 PM
Size
9 KB
Mime Type
text/x-diff
Expires
Sat, Jul 26, 6:17 PM (2 m, 15 s)
Engine
blob
Format
Raw Data
Handle
694976
Attached To
rINP In-Portal
in-portal
View Options
Index: trunk/themes/default2007/platform/elements/menu.tpl
===================================================================
--- trunk/themes/default2007/platform/elements/menu.tpl (revision 8808)
+++ trunk/themes/default2007/platform/elements/menu.tpl (revision 8809)
@@ -1,97 +1,99 @@
<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"><span style="color:#ffffff">Loading menu...</span></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"/>
<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 template="platform/elements/subcats.xml"
m_cat_id="$root_cat"
c_menu_Page="1" pass="m,c.menu"
level="0" max_level="4" rand="$rand"
/>" ><![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="">
<menubar id="menubar" orient="H" showicon="true" showsubicon="false" stlprf="horz_">
<items>
<item id="sub-elem0" url="<inp2:m_Link template="index" m_cat_id="0"/>" ico="['<inp2:m_TemplatesBase module="In-portal"/>img/menu_home.gif']" enb="true" title=""><![CDATA[<inp2:m_RootCategoryName/>]]></item>
<inp2:m_ModuleInclude template="elements/menu.xml" />
</items>
</menubar>
</menumgr>
</inp2:m_DefineElement>
<inp2:m_get name="m_cat_id" result_to_var="current_category"/>
var menu_mgr = NlsMenuUtil.createFromXMLString('<inp2:m_RenderElement name="menu_xml" js_escape="1"/>');
<inp2:m_Set m_cat_id="$current_category"/>
<inp2:c_Field requery="1" name="Name" result_to_var="category_name"/>
menu_mgr.renderMenus();
menu_mgr.renderMenubar('xmlMenuDiv');
</script>
</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"/>
</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 -->
- <!-- menu: ShoppingCart -->
- <inp2:m_RenderElement design="menu_element">
- <inp2:m_Capture to_var="menu_href">
- <inp2:m_Link template="in-commerce/checkout/shop_cart" m_cat_id="0"/>
- </inp2:m_Capture>
-
- <inp2:m_Capture to_var="menu_icon">
- <img src="<inp2:m_TemplatesBase module="In-Commerce"/>img/menu_shopping_cart.gif" alt="" />
- </inp2:m_Capture>
-
- <inp2:m_Capture to_var="menu_title">
- <inp2:m_Phrase name="lu_title_ShoppingCart"/>
- </inp2:m_Capture>
-
- <inp2:m_IsActive template="in-commerce/checkout/shop_cart" result_to_var="current"/>
- </inp2:m_RenderElement>
- <!-- // menu: ShoppingCart -->
+ <inp2:m_if check="m_ModuleEnabled" module="In-Commerce">
+ <!-- menu: ShoppingCart -->
+ <inp2:m_RenderElement design="menu_element">
+ <inp2:m_Capture to_var="menu_href">
+ <inp2:m_Link template="in-commerce/checkout/shop_cart" m_cat_id="0"/>
+ </inp2:m_Capture>
+
+ <inp2:m_Capture to_var="menu_icon">
+ <img src="<inp2:m_TemplatesBase module="In-Commerce"/>img/menu_shopping_cart.gif" alt="" />
+ </inp2:m_Capture>
+
+ <inp2:m_Capture to_var="menu_title">
+ <inp2:m_Phrase name="lu_title_ShoppingCart"/>
+ </inp2:m_Capture>
+
+ <inp2:m_IsActive template="in-commerce/checkout/shop_cart" result_to_var="current"/>
+ </inp2:m_RenderElement>
+ <!-- // menu: ShoppingCart -->
+ </inp2:m_if>
</tr>
</table>
</td>
</tr>
</table>
\ No newline at end of file
Property changes on: trunk/themes/default2007/platform/elements/menu.tpl
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.16
\ No newline at end of property
+1.17
\ No newline at end of property
Index: trunk/themes/default2007/platform/elements/header.tpl
===================================================================
--- trunk/themes/default2007/platform/elements/header.tpl (revision 8808)
+++ trunk/themes/default2007/platform/elements/header.tpl (revision 8809)
@@ -1,41 +1,44 @@
<table class="top-background fullwidth">
<tr>
<td width="203">
<a href="<inp2:m_Link template="index" m_cat_id="0"/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/inportal_logo.gif" width="203" height="54" alt="" /></a><br />
</td>
<td align="right">
<table style="width:auto">
<tr>
<td class="top-select-padding">
<form method="post" name="lang_form" id="lang_form" action="<inp2:m_FormAction />">
<input type="hidden" name="events[lang][OnChangeLanguage]" value="" />
<inp2:m_Phrase label="lu_YourLanguage"/>:
<select name="language" class="input-select" onchange="document.getElementById('lang_form').submit()">
<inp2:m_DefineElement name="lang_elem">
<option value="<inp2:Field name="LanguageId"/>" <inp2:m_if check="SelectedLanguage">selected="selected"</inp2:m_if> ><inp2:Field name="PackName"/></option>
</inp2:m_DefineElement>
<inp2:lang_ListLanguages render_as="lang_elem" no_table="1"/>
</select>
</form>
</td>
- <td width="1">
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/languages_separator.gif" width="1" height="22" alt="" />
- </td>
- <td class="top-select-padding">
- <form method="post" name="cur_form" id="cur_form" action="<inp2:m_FormAction />">
- <inp2:m_Phrase label="lu_YourCurrency"/>:
- <input type="hidden" name="events[curr][OnChangeCurrency]" value="" />
- <select name="curr_iso" class="input-select" onchange="document.getElementById('cur_form').submit()">
- <inp2:m_DefineElement name="currency">
- <option value="<inp2:Field name="ISO"/>" <inp2:m_if check="SelectedCurrency">selected="selected"</inp2:m_if> ><inp2:Field name="ISO"/></option>
- </inp2:m_DefineElement>
- <inp2:curr_ListCurrencies render_as="currency" no_table="1"/>
- </select>
- </form>
- </td>
+
+ <inp2:m_if check="m_ModuleEnabled" module="In-Commerce">
+ <td width="1">
+ <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/languages_separator.gif" width="1" height="22" alt="" />
+ </td>
+ <td class="top-select-padding">
+ <form method="post" name="cur_form" id="cur_form" action="<inp2:m_FormAction />">
+ <inp2:m_Phrase label="lu_YourCurrency"/>:
+ <input type="hidden" name="events[curr][OnChangeCurrency]" value="" />
+ <select name="curr_iso" class="input-select" onchange="document.getElementById('cur_form').submit()">
+ <inp2:m_DefineElement name="currency">
+ <option value="<inp2:Field name="ISO"/>" <inp2:m_if check="SelectedCurrency">selected="selected"</inp2:m_if> ><inp2:Field name="ISO"/></option>
+ </inp2:m_DefineElement>
+ <inp2:curr_ListCurrencies render_as="currency" no_table="1"/>
+ </select>
+ </form>
+ </td>
+ </inp2:m_if>
</tr>
</table>
</td>
</tr>
</table>
\ No newline at end of file
Property changes on: trunk/themes/default2007/platform/elements/header.tpl
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.8
\ No newline at end of property
+1.9
\ No newline at end of property
Event Timeline
Log In to Comment