added: ezc functions:
void dir_tab_subject(Info & i); void dir_tab_is_root(Info & i); changed: in dir_tab_link: now it doesn't print the proto and base address - you should use [doc_base_url] git-svn-id: svn://ttmath.org/publicrep/winix/trunk@879 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
8f8e44fee5
commit
43b4075b16
|
@ -6,7 +6,7 @@
|
|||
<div id="winix_ls_browse_leftcolumn">
|
||||
|
||||
[if dir_childs_tab "with_parent"]
|
||||
<h2>[for dir_tab]<a href="[dir_tab_link]ls/ckeditor_browse/fullscreen/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">[dir_tab_url]/</a>[end]</h2>
|
||||
<h2>[for dir_tab]<a href="[doc_base_url][dir_tab_link]ls/ckeditor_browse/fullscreen/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">[dir_tab_url]/</a>[end]</h2>
|
||||
|
||||
<ul>
|
||||
[for dir_childs_tab "with_parent"]
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
[if-one dir_tab]
|
||||
<ul id="winix_current_dir">
|
||||
[for dir_tab]
|
||||
<li><a href="[dir_tab_link]">[dir_tab_url] / </a></li>
|
||||
<li><a href="[doc_base_url][dir_tab_link]">[dir_tab_url] / </a></li>
|
||||
[end]
|
||||
|
||||
[if-one item_is]
|
||||
|
|
|
@ -294,21 +294,29 @@ void dir_tab_url(Info & i)
|
|||
|
||||
void dir_tab_link(Info & i)
|
||||
{
|
||||
doc_proto(i);
|
||||
|
||||
if( !cur->request->subdomain.empty() )
|
||||
i.out << cur->request->subdomain << '.';
|
||||
|
||||
i.out << config->base_url;
|
||||
|
||||
for(size_t a = 0 ; a <= dir_index && a < cur->request->dir_tab.size() ; ++a)
|
||||
{
|
||||
// index zero is a root directory
|
||||
if( a != 0 )
|
||||
i.out << cur->request->dir_tab[a]->url;
|
||||
|
||||
i.out << '/';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void dir_tab_is_root(Info & i)
|
||||
{
|
||||
i.res = (dir_index == 0);
|
||||
}
|
||||
|
||||
|
||||
void dir_tab_subject(Info & i)
|
||||
{
|
||||
if( dir_index < cur->request->dir_tab.size() )
|
||||
i.out << cur->request->dir_tab[dir_index]->subject;
|
||||
}
|
||||
|
||||
|
||||
void dir_last_link_to(Info & i)
|
||||
{
|
||||
|
|
|
@ -205,6 +205,8 @@ void Templates::CreateFunctions()
|
|||
ezc_functions.Insert("dir_tab", dir_tab);
|
||||
ezc_functions.Insert("dir_tab_url", dir_tab_url);
|
||||
ezc_functions.Insert("dir_tab_link", dir_tab_link);
|
||||
ezc_functions.Insert("dir_tab_subject", dir_tab_subject);
|
||||
ezc_functions.Insert("dir_tab_is_root", dir_tab_is_root);
|
||||
|
||||
ezc_functions.Insert("dir_last_link_to", dir_last_link_to);
|
||||
ezc_functions.Insert("dir_last_is_link_redirect", dir_last_is_link_redirect);
|
||||
|
|
|
@ -115,6 +115,8 @@ namespace TemplatesFunctions
|
|||
void dir_tab(Info & i);
|
||||
void dir_tab_url(Info & i);
|
||||
void dir_tab_link(Info & i);
|
||||
void dir_tab_subject(Info & i);
|
||||
void dir_tab_is_root(Info & i);
|
||||
|
||||
void dir_last_link_to(Info &);
|
||||
void dir_last_is_link_redirect(Info & i);
|
||||
|
|
Loading…
Reference in New Issue