added: a new index template: index_fullscreen.html

is chosen automatically when 'fullscreen' parameter is passed


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@776 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-12-01 18:54:09 +00:00
parent 7902389ef1
commit 024ce8e73c
9 changed files with 201 additions and 33 deletions

View File

@@ -26,6 +26,7 @@
[if mount_type_is "thread"]<p class="withnext">{form_emacs_content_thread}</p>[end]
[if mount_type_is "ticket"]<p class="withnext">{form_emacs_content_ticket}</p>[end]
[# template fun_ls.html uses the name: itemcontent to refer to this textarea item]
<textarea class="multitext" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent">[item_content]</textarea>
<input type="hidden" name="contenttype" value="2">

View File

@@ -3,18 +3,48 @@
[if winix_function_param_is "ckeditor_browse"]
<script type="text/javascript">function select(link) \{ window.opener.CKEDITOR.tools.callFunction([ls_ckeditor_funnum_browse], link); window.close(); \} </script>
<div id="winix_ls_browse_leftcolumn">
[if-any item_tab]
<ul class="ls_browse">
[for item_tab]
<li><a href="javascript:select('[item_tab_link]')"><img src="[item_tab_link]/-/thumb" alt="[item_tab_subject]" height="120"></a></li>
[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>
<ul>
[for dir_childs_tab "with_parent"]
<li>
[if dir_childs_is_parent]
[# make sure the name of the textarea in fun_ckeditor.html is called: itemcontent]
[# is it needed?]
<a href="[doc_base_url][dir_parent]ls/ckeditor_browse/fullscreen/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">../</a>
[else]
<a href="[doc_base_url][dir][dir_childs_tab_url]/ls/ckeditor_browse/fullscreen/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">[dir_childs_tab_url]/</a>
[end]
</li>
[end]
</ul>
[end]
</ul>
[end]
</div>
<div id="winix_ls_browse_rightcolumn">
[if-any item_tab]
<h2>{ls_pictures_in_dir} [dir]</h2>
<ul>
[for item_tab]
<li><a href="javascript:select('[item_tab_link]')"><img src="[item_tab_link]/-/thumb" alt="[item_tab_subject]" height="120"></a></li>
[end]
</ul>
[else]
<h2>{ls_no_picture}</h2>
[end]
</div>
[else]
<h1>{ls_header}</h1>
@@ -24,6 +54,7 @@
[if winix_function_param_is "l"]
[# loading dir childs table with a parent directory]
[# now the parameter can be passed directly to if-one]
[dir_childs_tab "with_parent"]
[if-one dir_childs_tab item_tab]

View File

@@ -4,7 +4,8 @@
[include "index_head.html"]
[# now we don't need the check of fullscreen here]
[# we've got a second template for fullscreen -- index_fullscreen.html]
[if-no winix_function_param_is "fullscreen"]
<body>
@@ -44,6 +45,6 @@
</div> <!-- winix_containerfull -->
</body>
[end] [# is-no winix_function_param_is "fullscreen"]
[end] [# if-no winix_function_param_is "fullscreen"]
</html>

30
html/index_fullscreen.html Executable file
View File

@@ -0,0 +1,30 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="{language}">
<head>
<title>[doc_title]</title>
<meta http-equiv="content-type" content="text/html; charset={charset}">
[if doc_css_tab]
[for doc_css_tab]
<link rel="stylesheet" href="[if-no doc_css_tab_file_is_global][doc_base_url_static][end][doc_css_tab_file]" type="text/css">
[end]
[else]
<link rel="stylesheet" href="[doc_base_url_static]/winix/winix.css" type="text/css">
[end]
[include "index_head_functions_add.html"]
</head>
<body>
<div id="winix_containerfull">
[include "slog.html"]
[content]
</div> <!-- winix_containerfull -->
</body>
</html>