2021-01-22 11:50:28 +01:00
[# rename me to index_head_adder.html]
2021-01-21 17:10:04 +01:00
[def winix_has_uikit "true"]
[def winix_has_jquery "false"]
[# UIkit CSS]
2021-02-09 18:10:01 +01:00
< link rel = "stylesheet" href = "[doc_base_url_common]/uikit/uikit-3.6.16/css/uikit.min.css" >
2021-01-21 17:10:04 +01:00
[# UIkit JS]
2021-02-09 18:10:01 +01:00
< script src = "[doc_base_url_common]/uikit/uikit-3.6.16/js/uikit.min.js" > < / script >
< script src = "[doc_base_url_common]/uikit/uikit-3.6.16/js/uikit-icons.min.js" > < / script >
2021-01-21 17:10:04 +01:00
2012-10-17 08:00:00 +02:00
2015-04-18 20:50:39 +02:00
[if winix_function_is "emacs"]
2021-01-21 19:08:48 +01:00
< script type = "text/javascript" src = "[doc_base_url_common]/codemirror/5.59.2/lib/codemirror.js" > < / script >
< link rel = "stylesheet" href = "[doc_base_url_common]/codemirror/5.59.2/lib/codemirror.css" type = "text/css" >
2015-04-18 20:50:39 +02:00
2021-01-21 19:08:48 +01:00
< script src = "[doc_base_url_common]/codemirror/5.59.2/mode/css/css.js" > < / script >
< script src = "[doc_base_url_common]/codemirror/5.59.2/mode/javascript/javascript.js" > < / script >
< script src = "[doc_base_url_common]/codemirror/5.59.2/mode/xml/xml.js" > < / script >
< script src = "[doc_base_url_common]/codemirror/5.59.2/mode/htmlmixed/htmlmixed.js" > < / script >
2015-04-18 20:50:39 +02:00
2021-01-21 19:08:48 +01:00
<!-- <link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/theme/base16 - light.css" type="text/css"> -->
2015-04-18 20:50:39 +02:00
2021-01-21 19:08:48 +01:00
< script src = "[doc_base_url_common]/codemirror/5.59.2/addon/display/fullscreen.js" > < / script >
< link rel = "stylesheet" href = "[doc_base_url_common]/codemirror/5.59.2/addon/display/fullscreen.css" type = "text/css" >
2015-04-18 20:50:39 +02:00
[if false]
2021-01-21 19:08:48 +01:00
< script src = "[doc_base_url_common]/codemirror/5.59.2/addon/search/search.js" > < / script >
< link rel = "stylesheet" href = "[doc_base_url_common]/codemirror/5.59.2/addon/search/matchesonscrollbar.css" type = "text/css" >
2015-04-18 20:50:39 +02:00
[end]
2021-01-21 19:08:48 +01:00
< script src = "[doc_base_url_common]/codemirror/5.59.2/addon/fold/xml-fold.js" > < / script >
< script src = "[doc_base_url_common]/codemirror/5.59.2/addon/edit/matchtags.js" > < / script >
2015-04-18 20:50:39 +02:00
2021-01-21 19:08:48 +01:00
< script src = "[doc_base_url_common]/codemirror/5.59.2/addon/selection/active-line.js" > < / script >
2015-04-18 20:50:39 +02:00
< style >
.CodeMirror-matchingtag \{
font-weight: bold;
background: none;
\}
.CodeMirror-activeline-background \{
background: #f3f3f3;
\}
.CodeMirror \{
border: 1px solid #dedede;
\}
< / style >
< script type = "text/javascript" >
var winix_code_mirror_editor;
function winix_initialize_editor()
\{
var text_area = document.getElementById("winix_content_id");
if( text_area )
\{
winix_code_mirror_editor = CodeMirror.fromTextArea(text_area, \{
mode: "htmlmixed",
theme: "default",
indentUnit: 4,
smartIndent: true,
tabSize: 4,
indentWithTabs: true,
extraKeys: \{
"F11": function(cm) \{ cm.setOption("fullScreen", !cm.getOption("fullScreen")); \},
"Esc": function(cm) \{ if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false); \}
\},
lineNumbers: true,
lineWiseCopyCut: false,
dragDrop: false,
matchTags: true,
styleActiveLine: true
\});
\}
\}
[if false]
this will probably be used to change the mode in the fly
winix_code_mirror_editor.setOption("mode", "");
before saving (update button by ajax) this method should be used:
cm.save()
Copy the content of the editor into the textarea.
[end]
if( window.addEventListener )
window.addEventListener("load", winix_initialize_editor, false);
else
if( window.attachEvent )
window.attachEvent("onload", winix_initialize_editor);
< / script >
[end]
2012-10-17 08:00:00 +02:00
2010-11-04 17:46:19 +01:00
[if winix_function_is "ckeditor"]
2021-01-21 17:10:04 +01:00
[def winix_has_jquery "true"]
2018-05-10 00:48:14 +02:00
< script type = "text/javascript" src = "[doc_base_url_common]/ckeditor_4.9.2/ckeditor.js" > < / script >
2021-01-22 16:56:51 +01:00
< script type = "text/javascript" src = "[doc_base_url_common]/jquery/1.12.4/jquery.min.js" > < / script >
2018-05-10 19:21:39 +02:00
< script type = "text/javascript" src = "[doc_base_url_common]/winix/update_button.js" > < / script >
2010-11-04 17:46:19 +01:00
[end]
[if winix_function_is "tinymce"]
2021-01-22 16:56:51 +01:00
< script type = "text/javascript" src = "[doc_base_url]/common/tiny_mce/5.6.2/tinymce.min.js" > < / script >
[# tinymce can use a special theme called 'mobile' - it is used when /mobile param is provided]
< script type = "text/javascript" src = "[doc_base_url]/var/tinymce.js[if winix_function_param_is " mobile " ] / - / mobile [ end ] " > < / script >
[def winix_has_jquery "true"]
< script type = "text/javascript" src = "[doc_base_url_common]/jquery/1.12.4/jquery.min.js" > < / script >
< script type = "text/javascript" src = "[doc_base_url_common]/winix/update_button.js" > < / script >
2010-11-04 17:46:19 +01:00
[end]
2011-06-13 03:06:10 +02:00
[if winix_function_is "nicedit"]
2021-01-26 17:24:48 +01:00
< script type = "text/javascript" src = "[doc_base_url_common]/nicedit/0.9_r25/nicEdit.js" > < / script >
2011-06-13 03:06:10 +02:00
[end]
2010-11-04 17:46:19 +01:00
[if winix_function_is "vim"]
2021-01-25 14:34:35 +01:00
[# info from version 0.5-rc1: this editor doesn't work on different domains by default, solution: http://forum.wymeditor.org/forum/viewtopic.php?f=2& t=731& p=2507#p2504 ]
[# you should add one file to winix: wymiframe.html ]
2010-11-04 17:46:19 +01:00
2021-01-21 17:10:04 +01:00
[def winix_has_jquery "true"]
2021-01-25 14:34:35 +01:00
< script type = "text/javascript" src = "[doc_base_url_common]/jquery/1.12.4/jquery.min.js" > < / script >
< script type = "text/javascript" src = "[doc_base_url_common]/wymeditor/1.1.1/wymeditor/jquery.wymeditor.min.js" > < / script >
< link rel = "stylesheet" type = "text/css" href = "[doc_base_url_common]/wymeditor/1.1.1/wymeditor/skins/default/skin.css" >
2010-11-04 17:46:19 +01:00
< script type = "text/javascript" > jQuery ( function ( ) \ { jQuery ( "textarea" ) . wymeditor ( \ { basePath : "[doc_base_url_common]/wymeditor/" , iframeBasePath : "[doc_base_url]/var/" , updateSelector : "form" , updateEvent : 'submit' \ } ) ; \ } ) ; < / script >
[end]
2011-01-27 15:35:25 +01:00
[if winix_function_is "ticket"]
2011-03-23 18:54:53 +01:00
[# !! dodac lightboxa tylko jesli tickety zawieraja obrazki ]
2012-11-04 23:39:02 +01:00
<!--
[# warning: prototype doesn't work with jquery in clock tickets (in client panel)]
2011-01-27 15:35:25 +01:00
< link rel = "stylesheet" href = "[doc_base_url_common]/lightbox/lightbox.css" type = "text/css" media = "screen" >
< script src = "[doc_base_url_common]/lightbox/js/prototype.js" type = "text/javascript" > < / script >
< script src = "[doc_base_url_common]/lightbox/js/scriptaculous.js?load=effects,builder" type = "text/javascript" > < / script >
< script src = "[doc_base_url_common]/lightbox/js/lightbox.js" type = "text/javascript" > < / script >
2012-11-04 23:39:02 +01:00
-->
2011-01-27 15:35:25 +01:00
[end]
2011-01-31 16:51:53 +01:00
2011-04-01 18:30:14 +02:00
[if winix_function_is "gallery"]
2015-03-09 00:22:05 +01:00
[if one gallery_has_not_mount_type [gallery_mount_type_arg_is "lightbox"]]
2011-04-01 18:30:14 +02:00
< link rel = "stylesheet" href = "[doc_base_url_common]/lightbox/lightbox.css" type = "text/css" media = "screen" >
< script src = "[doc_base_url_common]/lightbox/js/prototype.js" type = "text/javascript" > < / script >
< script src = "[doc_base_url_common]/lightbox/js/scriptaculous.js?load=effects,builder" type = "text/javascript" > < / script >
< script src = "[doc_base_url_common]/lightbox/js/lightbox.js" type = "text/javascript" > < / script >
[end]
2015-03-09 00:22:05 +01:00
[if one [gallery_mount_type_arg_is "galleria"] [gallery_mount_type_arg_is "galleriathumb"]]
2021-01-21 17:10:04 +01:00
[def winix_has_jquery "true"]
2011-04-01 18:30:14 +02:00
< script type = "text/javascript" src = "[doc_base_url_common]/jquery-1.4.4.min.js" > < / script >
< script src = "[doc_base_url_common]/aino-galleria/galleria-1.2.2.min.js" type = "text/javascript" > < / script >
[end]
2013-02-26 12:49:22 +01:00
2015-03-09 00:22:05 +01:00
[if one [gallery_mount_type_arg_is "galleria1.2.9"] [gallery_mount_type_arg_is "galleriathumb1.2.9"]]
2021-01-21 17:10:04 +01:00
[def winix_has_jquery "true"]
2013-02-26 12:49:22 +01:00
< script type = "text/javascript" src = "[doc_base_url_common]/jquery-1.9.1.min.js" > < / script >
< script src = "[doc_base_url_common]/galleria/galleria-1.2.9.min.js" type = "text/javascript" > < / script >
[end]
2011-04-01 18:30:14 +02:00
[end]
2011-06-24 22:53:21 +02:00
2012-07-15 17:49:48 +02:00
2013-07-02 09:14:19 +02:00
[if winix_function_is "upload"]
2021-01-22 11:50:28 +01:00
[# https://blueimp.github.io/jQuery-File-Upload/]
2014-08-06 22:14:10 +02:00
[# https://github.com/blueimp/jQuery-File-Upload]
2012-07-15 17:49:48 +02:00
2014-08-06 22:14:10 +02:00
[# Force latest IE rendering engine or ChromeFrame if installed]
<!-- \[if IE\]>
< meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" >
<!\[endif\]-->
2012-07-15 17:49:48 +02:00
2021-01-22 11:50:28 +01:00
< link rel = "stylesheet" href = "[doc_base_url_common]/bootstrap/3.3.7/css/bootstrap.min.css" >
2021-01-21 17:10:04 +01:00
2021-01-22 11:50:28 +01:00
[# in doc_base_url_common/jquery-file-upload/10.31.0_extra/blueimp-gallery/ is download_all_files.sh script in order to download all necessary files]
<!-- blueimp Gallery styles -->
< link rel = "stylesheet" href = "[doc_base_url_common]/jquery-file-upload/10.31.0_extra/blueimp-gallery/blueimp-gallery.min.css" >
2012-07-15 17:49:48 +02:00
2021-01-22 11:50:28 +01:00
[# CSS to style the file input field as button and adjust the Bootstrap progress bars]
< link rel = "stylesheet" href = "[doc_base_url_common]/jquery-file-upload/10.31.0/css/jquery.fileupload.css" >
< link rel = "stylesheet" href = "[doc_base_url_common]/jquery-file-upload/10.31.0/css/jquery.fileupload-ui.css" >
2012-07-15 17:49:48 +02:00
2021-01-22 11:50:28 +01:00
[# CSS adjustments for browsers with JavaScript disabled]
< noscript >
< link rel = "stylesheet" href = "[doc_base_url_common]/jquery-file-upload/10.31.0/css/jquery.fileupload-noscript.css" >
< link rel = "stylesheet" href = "[doc_base_url_common]/jquery-file-upload/10.31.0/css/jquery.fileupload-ui-noscript.css" >
< / noscript >
2012-07-15 17:49:48 +02:00
2021-01-22 11:50:28 +01:00
[def winix_has_jquery "true"]
< script src = "[doc_base_url_common]/jquery/1.12.4/jquery.min.js" > < / script >
<!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/vendor/jquery.ui.widget.js" > < / script >
<!-- The Templates plugin is included to render the upload/download listings -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0_extra/tmpl.min.js" > < / script >
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0_extra/load-image.all.min.js" > < / script >
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0_extra/canvas-to-blob.min.js" > < / script >
<!-- blueimp Gallery script -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0_extra/jquery.blueimp-gallery.min.js" > < / script >
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.iframe-transport.js" > < / script >
<!-- The basic File Upload plugin -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload.js" > < / script >
<!-- The File Upload processing plugin -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-process.js" > < / script >
<!-- The File Upload image preview & resize plugin -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-image.js" > < / script >
<!-- The File Upload audio preview plugin -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-audio.js" > < / script >
<!-- The File Upload video preview plugin -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-video.js" > < / script >
<!-- The File Upload validation plugin -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-validate.js" > < / script >
<!-- The File Upload user interface plugin -->
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-ui.js" > < / script >
[if false]
[# the code to run the plugin we have in fun_upload.html]
<!-- The main application script -->
2018-11-15 18:01:40 +01:00
<!--
2021-01-22 11:50:28 +01:00
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/demo.js" > < / script >
2018-11-15 18:01:40 +01:00
-->
2021-01-22 11:50:28 +01:00
[end]
2012-07-15 17:49:48 +02:00
2021-01-22 11:50:28 +01:00
<!-- The XDomainRequest Transport is included for cross - domain file deletion for IE 8 and IE 9 -->
<!-- \[if (gte IE 8)&(lt IE 10)\]>
< script src = "[doc_base_url_common]/jquery-file-upload/10.31.0/js/cors/jquery.xdr-transport.js" > < / script >
<!\[endif\]-->
2011-06-24 22:53:21 +02:00
[end]
2012-07-15 17:49:48 +02:00
2011-08-02 02:10:45 +02:00
[if winix_function_is "sort"]
2015-03-09 00:22:05 +01:00
[if not item_is]
2021-01-28 20:16:44 +01:00
< script type = "text/javascript" src = "[doc_base_url_common]/winix/winix_sort.js" > < / script >
2011-08-02 02:10:45 +02:00
[end]
[end]
2011-06-24 22:53:21 +02:00
2013-03-29 23:03:28 +01:00
[if winix_function_is "imgcrop"]
2021-01-21 17:10:04 +01:00
[def winix_has_jquery "true"]
2013-03-29 23:03:28 +01:00
< script type = "text/javascript" src = "[doc_base_url_common]/jquery-1.9.1.min.js" > < / script >
< script type = "text/javascript" src = "[doc_base_url_common]/jcrop-0.9.12/js/jquery.Jcrop.js" > < / script >
< link type = "text/css" rel = "stylesheet" href = "[doc_base_url_common]/jcrop-0.9.12/css/jquery.Jcrop.css" >
[end]
2015-03-09 00:22:05 +01:00
[if false]
[# temporarily blocked]
2011-06-24 22:53:21 +02:00
[if winix_has_plugin "stats"]
[include "stats_info.html"]
[end]
2015-03-09 00:22:05 +01:00
[end]
2011-06-24 22:53:21 +02:00