Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1172934
catalog_counters.tpl
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
Tue, Sep 30, 3:36 AM
Size
1 KB
Mime Type
text/plain
Expires
Thu, Oct 2, 3:36 AM (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
760194
Attached To
rINP In-Portal
catalog_counters.tpl
View Options
// counters
<
inp2:m_ModuleInclude
template
=
"catalog_tab"
tab_init
=
"3"
/>
// category related statistics
$
Catalog.ParentCategoryID =
<
inp2:c_GetParentCategory
/>
;
<
inp2:m_DefineElement
name
=
"category_caption"
>
<
inp2:m_ifnot
check
=
"m_Param"
name
=
"is_first"
>
<
inp2:m_param
name
=
"separator"
/>
</
inp2:m_ifnot
>
<
inp2:m_if
check
=
"m_ParamEquals"
name
=
"current"
value
=
"1"
inverse
=
"1"
>
<
a
class
=
"control_link"
href
=
"javascript:
$
Catalog.go_to_cat(<inp2:m_param name="
cat_id
"
/>
);">
<
inp2:m_param
name
=
"cat_name"
/></
a
>
<
inp2:m_else
/>
<
inp2:m_param
name
=
"cat_name"
/>
</
inp2:m_if
>
</
inp2:m_DefineElement
>
setInnerHTML('category_path', '
<
inp2:c_CategoryPath
separator
=
" / "
render_as
=
"category_caption"
js_escape
=
"1"
strip_nl
=
"2"
/>
');
set_window_title( RemoveTranslationLink(document.getElementById('blue_bar').innerHTML, false).replace(/(
<
[^
<
]+>)/g, '').replace(/\s+/g, ' ').trim() );
<
inp2:m_if
check
=
"m_Get"
name
=
"last_template"
>
<
inp2:m_Get
name
=
"last_template"
result_to_var
=
"last_template"
/>
<
inp2:c_UpdateLastTemplate
template
=
"
$
last_template"
/>
<
inp2:m_else
/>
<
inp2:c_UpdateLastTemplate
template
=
"catalog/catalog"
/>
</
inp2:m_if
>
<
inp2:m_include
t
=
"categories/ci_blocks"
/>
<
inp2:m_RenderElement
name
=
"structure_reload_element"
/>
Event Timeline
Log In to Comment