changed: winix 'upload' function is a file manager now
we're using an jquery upload plugin
added: Item struct has new rows: hash, hash_type, file_size, sort_index
added: css mount parameter
you can specify css files there, and javascript wysiwyg editors
(ckeditor, tinymce) can make use of it
changed: post parsers can parse post variables with the same name
(a postfix is added in such a case)
added: common_dir parameter to the config
this is a path to common directory (directory with common static files)
it is needed to the 'css' mount parameter
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@746 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -192,6 +192,7 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("fil_tosmall", fil_tosmall);
|
||||
ezc_functions.Insert("fil_firstup", fil_firstup);
|
||||
|
||||
|
||||
/*
|
||||
doc
|
||||
*/
|
||||
@@ -200,6 +201,14 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("doc_base_url_static", doc_base_url_static);
|
||||
ezc_functions.Insert("doc_base_url_common", doc_base_url_common);
|
||||
ezc_functions.Insert("doc_current_url", doc_current_url);
|
||||
ezc_functions.Insert("doc_css_tab", doc_css_tab);
|
||||
ezc_functions.Insert("doc_css_tab_file", doc_css_tab_file);
|
||||
ezc_functions.Insert("doc_css_tab_file_is_global", doc_css_tab_file_is_global);
|
||||
ezc_functions.Insert("doc_css_tab_has_next", doc_css_tab_has_next);
|
||||
ezc_functions.Insert("doc_css_is_empty", doc_css_is_empty);
|
||||
ezc_functions.Insert("doc_css_is_one", doc_css_is_one);
|
||||
ezc_functions.Insert("doc_css_more_than_one", doc_css_more_than_one);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@@ -245,6 +254,7 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("item_is_link_to", item_is_link_to);
|
||||
ezc_functions.Insert("item_link_to", item_link_to);
|
||||
ezc_functions.Insert("item_is_link_redirect", item_is_link_redirect);
|
||||
ezc_functions.Insert("item_file_size", item_file_size);
|
||||
|
||||
ezc_functions.Insert("item_tab", item_tab);
|
||||
ezc_functions.Insert("item_tab_id", item_tab_id);
|
||||
@@ -257,6 +267,8 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("item_tab_dir", item_tab_dir);
|
||||
ezc_functions.Insert("item_tab_url", item_tab_url);
|
||||
ezc_functions.Insert("item_tab_link", item_tab_link);
|
||||
ezc_functions.Insert("item_tab_filetype_is_none", item_tab_filetype_is_none);
|
||||
ezc_functions.Insert("item_tab_filetype_is_image", item_tab_filetype_is_image);
|
||||
ezc_functions.Insert("item_tab_can_read", item_tab_can_read);
|
||||
ezc_functions.Insert("item_tab_can_write", item_tab_can_write);
|
||||
ezc_functions.Insert("item_tab_user", item_tab_user);
|
||||
@@ -278,6 +290,8 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("item_tab_is_link_to", item_tab_is_link_to);
|
||||
ezc_functions.Insert("item_tab_link_to", item_tab_link_to);
|
||||
ezc_functions.Insert("item_tab_is_link_redirect", item_tab_is_link_redirect);
|
||||
ezc_functions.Insert("item_tab_file_size", item_tab_file_size);
|
||||
ezc_functions.Insert("item_tab_has_next", item_tab_has_next);
|
||||
|
||||
|
||||
/*
|
||||
@@ -297,6 +311,13 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("mount_page_arg_is", mount_page_arg_is);
|
||||
ezc_functions.Insert("mount_has_html_template", mount_has_html_template);
|
||||
ezc_functions.Insert("mount_first_html_template", mount_first_html_template);
|
||||
ezc_functions.Insert("mount_css_tab", mount_css_tab);
|
||||
ezc_functions.Insert("mount_css_tab_file", mount_css_tab_file);
|
||||
ezc_functions.Insert("mount_css_tab_file_is_global", mount_css_tab_file_is_global);
|
||||
ezc_functions.Insert("mount_css_tab_has_next", mount_css_tab_has_next);
|
||||
ezc_functions.Insert("mount_css_is_empty", mount_css_is_empty);
|
||||
ezc_functions.Insert("mount_css_is_one", mount_css_is_one);
|
||||
ezc_functions.Insert("mount_css_more_than_one", mount_css_more_than_one);
|
||||
ezc_functions.Insert("mount_cur_type", mount_cur_type);
|
||||
ezc_functions.Insert("mount_cur_dir", mount_cur_dir);
|
||||
ezc_functions.Insert("mount_cur_fs", mount_cur_fs);
|
||||
@@ -713,6 +734,15 @@ using namespace TemplatesFunctions;
|
||||
}
|
||||
|
||||
|
||||
void Templates::Generate(Ezc::Pattern & pattern)
|
||||
{
|
||||
using namespace TemplatesFunctions;
|
||||
|
||||
generator.Generate(cur->request->page, pattern);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Templates::SetConfig(Config * pconfig)
|
||||
{
|
||||
TemplatesFunctions::config = pconfig;
|
||||
|
||||
Reference in New Issue
Block a user