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:
@@ -354,6 +354,10 @@ void item_is_link_redirect(Info & i)
|
||||
i.res = cur->request->item.link_redirect == 1;
|
||||
}
|
||||
|
||||
void item_file_size(Info & i)
|
||||
{
|
||||
i.res = cur->request->item.file_size;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -454,6 +458,19 @@ void item_tab_link(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void item_tab_filetype_is_none(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].file_type == WINIX_ITEM_FILETYPE_NONE;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_filetype_is_image(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].file_type == WINIX_ITEM_FILETYPE_IMAGE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_can_read(Info & i)
|
||||
@@ -667,6 +684,18 @@ void item_tab_is_link_redirect(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void item_tab_file_size(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].file_size;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_has_next(Info & i)
|
||||
{
|
||||
i.res = item_index + 1 < cur->request->item_tab.size();
|
||||
}
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user