Page MenuHomeIn-Portal Phabricator

advanced
No OneTemporary

File Metadata

Created
Sun, Jan 5, 11:14 PM

advanced

Index: platform/categories/search_results.tpl
===================================================================
--- platform/categories/search_results.tpl (nonexistent)
+++ platform/categories/search_results.tpl (revision 12666)
@@ -0,0 +1,55 @@
+<!--##
+<NAME>Section - Search Results</NAME>
+<DESC>List of Section Search Results</DESC>
+<SECTION>Platform</SECTION>
+##-->
+
+<!--## PAGE TITLE ELEMENT ##-->
+<inp2:m_DefineElement name="page_title">
+ <inp2:m_Phrase label="lu_title_CategorySearchResults"/>
+</inp2:m_DefineElement>
+<!--## //PAGE TITLE ELEMENT ##-->
+
+<!--## SIDE-BAR ELEMENT ##-->
+<inp2:m_DefineElement name="sidebar">
+ <div class="movable-area">
+ <div class="movable-element">
+ <inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
+ </div>
+ <div class="movable-element">
+ <inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
+ </div>
+ </div>
+</inp2:m_DefineElement>
+<!--## //SIDE-BAR ELEMENT ##-->
+
+<inp2:m_DefineElement name="content">
+
+<div class="movable-element">
+ <inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_CategorySearchResults" templates="platform/categories/search_results"/>
+</div>
+
+<div class="movable-element">
+ <inp2:m_RenderElement design="content_box">
+ <inp2:c_InitList list_name="category_search_results" types="search" parent_cat_id="any" recursive="1"/>
+
+ <inp2:m_Capture to_var="header">
+ <inp2:m_Phrase label="lu_title_CategorySearchResults"/> (<inp2:c_TotalRecords list_name="category_search_results"/>)
+ </inp2:m_Capture>
+
+ <!--##<inp2:m_include template="platform/elements/sorting.elm" list_name="category_search_results"/>##-->
+
+ <inp2:m_include template="platform/elements/categories.elm"/>
+ <inp2:m_include template="platform/elements/search_results.elm"/>
+
+ <table class="fullwidth">
+ <inp2:c_ListCategories list_name="category_search_results" render_as="category_element" columns="2" show_relevance="1" direction="H"/>
+ </table>
+
+ <inp2:m_include template="platform/elements/pagination.elm" prefix="c" list_name="category_search_results"/>
+ </inp2:m_RenderElement>
+</div>
+
+</inp2:m_DefineElement>
+
+<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: platform/search/search_results.tpl
===================================================================
--- platform/search/search_results.tpl (revision 12665)
+++ platform/search/search_results.tpl (revision 12666)
@@ -1,48 +1,48 @@
<!--##
<NAME>Search Results</NAME>
<DESC></DESC>
<SECTION>Platform</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_SearchResults"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/recommend_site.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/mailing_list.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_SearchResults" templates="platform/search/search_results"/>
</div>
<div class="movable-element">
<inp2:m_Set items_found="0"/>
- <inp2:m_ModuleInclude template="elements/content_boxes/search_results.elm"/>
+ <inp2:m_ModuleInclude template="elements/content_boxes/search_results.elm" in-portal_template="platform/elements/content_boxes/search_results.elm"/>
<inp2:m_if check="m_GetEquals" var="items_found" value="0">
<inp2:m_include template="platform/elements/content_boxes/nothing_found.elm"/>
</inp2:m_if>
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: platform/elements/categories.elm.tpl
===================================================================
--- platform/elements/categories.elm.tpl (revision 12665)
+++ platform/elements/categories.elm.tpl (revision 12666)
@@ -1,126 +1,133 @@
<!--## CATEGORY ELEMENT ##-->
<inp2:m_DefineElement name="category_element">
<td style="width: <inp2:ColumnWidth/>">
<table>
<tr>
<td class="directory-icon">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/directory_icon.gif" width="22" height="17" alt="" /><br />
</td>
<td class="directory-text">
<inp2:m_if check="IsCurrent">
<strong><inp2:Field name="Name"/></strong> (<inp2:m_phrase name="lu_SubCats"/>: <inp2:SubCatCount/>)
<inp2:m_else/>
<!--## CHECK IF CATEGORY IS SYM. LINK POINTING TO OTHER CATEGORY ##-->
<inp2:m_if check="IsCategorySymLink">
<a href="<inp2:CategoryLink template="__default__" m_cat_page="1"/>" class="text-title"><i><inp2:Field name="Name"/> @</i></a> <span class="item-statistics">(<!--## <inp2:m_phrase name="lu_SubCats"/>: ##--><inp2:SubCatCount/> / <inp2:ItemCount/>)</span>
<inp2:m_else/>
<a href="<inp2:CategoryLink template="__default__" m_cat_page="1"/>" class="text-title"><inp2:Field name="Name"/></a> <span class="item-statistics">(<!--## <inp2:m_phrase name="lu_SubCats"/>: ##--><inp2:SubCatCount/> / <inp2:ItemCount/>)</span>
</inp2:m_if>
<!--## /CHECK IF CATEGORY IS SYM. LINK POINTING TO OTHER CATEGORY ##-->
</inp2:m_if>
<inp2:m_if check="Field" name="IsNew"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/icon_new.gif" alt="<inp2:m_Phrase name="lu_New" no_editing="1"/>"/></inp2:m_if>
<inp2:m_if check="IsEditorsPick"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/icon_pick.gif" alt="<inp2:m_Phrase name="lu_Pick" no_editing="1"/>"/></inp2:m_if>
<br />
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="4" alt="" /><br />
<inp2:Field name="Description" first_chars="200"/>
+
+ <inp2:m_if check="m_Param" name="show_relevance">
+ <br/>
+
+ <inp2:m_if check="Field" name="Description"><br/></inp2:m_if>
+ <inp2:RelevanceIndicator on_color="Red" off_color="White" relevance_normal_render_as="search_relevance_normal" relevance_full_render_as="search_relevance_full" />
+ </inp2:m_if>
</td>
</tr>
</table>
</td>
</inp2:m_DefineElement>
<!--## /CATEGORY ELEMENT ##-->
<!--## NO CATEGORIES ELEMENT ##-->
<inp2:m_DefineElement name="no_categories">
<inp2:m_phrase name="lu_NoCategories"/>
</inp2:m_DefineElement>
<!--## /NO CATEGORIES ELEMENT ##-->
<!--## NO CATEGORIES ELEMENT ##-->
<inp2:m_DefineElement name="related_category_element">
<!--## CHECK IF CATEGORY IS SYM. LINK POINTING TO OTHER CATEGORY ##-->
<li>
<inp2:m_if check="IsCategorySymLink">
<a href="<inp2:CategoryLink template="__default__" m_cat_page="1"/>" class="text-title"><i><inp2:Field name="Name"/> @</i></a>
<inp2:m_else/>
<a href="<inp2:CategoryLink template="__default__" m_cat_page="1"/>" class="text-title"><inp2:Field name="Name"/></a>
</inp2:m_if>
</li>
<!--## /CHECK IF CATEGORY IS SYM. LINK POINTING TO OTHER CATEGORY ##-->
</inp2:m_DefineElement>
<!--## /NO CATEGORIES ELEMENT ##-->
<inp2:m_DefineElement name="selector_category_element">
<option value="<inp2:m_Param name="category_id"/>">
<inp2:m_Param name="separator"/><inp2:m_Param name="category_name"/>
</option>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="more_category_element">
<tr id="category_<inp2:m_Param name="category_id"/>">
<td>
<inp2:m_Param name="category_name"/>
</td>
<td>
<input type="button" class="delete-button" value="<inp2:m_Phrase label="lu_btn_Delete" no_editing="1"/>" onclick="$ItemCategories.DeleteCategory(<inp2:m_Param name="category_id"/>);"/>
</td>
</tr>
</inp2:m_DefineElement>
<!--## SITEMAP ELEMENTS ##-->
<inp2:m_DefineElement name="more_link_elem">
<li>
<a href="<inp2:c_CategoryLink template="__default__" m_cat_page="1"/>" class="sub-category"><inp2:m_Phrase label="lu_more"/>...</a>
</li>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="sitemap_category_element3">
<li>
<a href="<inp2:CategoryLink template="__default__" m_cat_page="1"/>" class="sub-category"><inp2:Field name="Name" html_escape="1"/></a>1
</li>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="sitemap_category_element2">
<li>
<a href="<inp2:CategoryLink template="__default__" m_cat_page="1"/>" class="sub-category"><inp2:Field name="Name" html_escape="1"/></a>
<inp2:InitList requery="1"/>
<inp2:m_if check="TotalRecords">
<ul>
<inp2:ListCategories render_as="sitemap_category_element2" more_link_render_as="more_link_elem" max_items="50" no_table="1"/>
</ul>
</inp2:m_if>
</li>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="sitemap_category_element1">
<li>
<a href="<inp2:CategoryLink template="__default__" m_cat_page="1"/>" class="sub-category"><inp2:Field name="Name" html_escape="1"/></a>
<inp2:InitList requery="1"/>
<inp2:m_if check="TotalRecords">
<ul>
<inp2:ListCategories render_as="sitemap_category_element2" max_items="50" more_link_render_as="more_link_elem" no_table="1"/>
</ul>
</inp2:m_if>
</li>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="sitemap_category_element">
<li>
<a href="<inp2:CategoryLink template="__default__" m_cat_page="1"/>" class="sub-category"><inp2:Field name="Name" html_escape="1"/> (level 2)</a>
<inp2:InitList requery="1" max_items="50" />
<inp2:m_if check="TotalRecords">
<ul>
<inp2:ListCategories render_as="sitemap_category_element1" max_items="100" more_link_render_as="more_link_elem" no_table="1"/>
</ul>
</inp2:m_if>
</li>
</inp2:m_DefineElement>
<!--## //SITEMAP ELEMENTS ##-->
Index: platform/elements/content_boxes/search_results.elm.tpl
===================================================================
--- platform/elements/content_boxes/search_results.elm.tpl (nonexistent)
+++ platform/elements/content_boxes/search_results.elm.tpl (revision 12666)
@@ -0,0 +1,26 @@
+<inp2:m_RenderElement design="content_box" data_exists="1">
+ <inp2:c_InitList list_name="category_search_results" types="search" parent_cat_id="any" per_page="short_list"/>
+
+ <inp2:m_Capture to_var="header">
+ <inp2:m_phrase name="lu_title_CategorySearchResults"/> (<inp2:c_TotalRecords list_name="category_search_results" />)
+ </inp2:m_Capture>
+
+ <inp2:m_include template="platform/elements/categories.elm"/>
+ <inp2:m_include template="platform/elements/search_results.elm"/>
+
+ <table class="fullwidth">
+ <inp2:c_ListCategories list_name="category_search_results" render_as="category_element" columns="2" show_relevance="1" direction="H"/>
+ </table>
+
+ <div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /><br /></div>
+
+ <inp2:m_if check="c_TotalRecords" list_name="category_search_results">
+ <inp2:m_Set items_found="1"/>
+ </inp2:m_if>
+
+ <inp2:m_DefineElement name="more_link">
+ <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="5" alt="" /><br />
+ <a href="<inp2:m_Link template="platform/categories/search_results" />"><inp2:m_Phrase label="lu_More"/>...</a>
+ </inp2:m_DefineElement>
+ <inp2:c_MoreLink list_name="category_search_results" render_as="more_link"/>
+</inp2:m_RenderElement>
\ No newline at end of file

Event Timeline