[# def? means define a variable if such a variable does not exist yet] [# true and false are ezc functions defined by winix] [def? winix_has_uikit false] [def? winix_has_jquery false] [def? winix_has_htmx false] [def? winix_set_charset true] [def? winix_set_viewport true] [def? winix_load_uikit true] [def? winix_load_htmx true] [def? winix_load_clocklet false] [def? winix_clocklet_uikit_theme true] [def? winix_load_flatpickr false] [def? winix_load_litepicker false] [if winix_set_charset] [end] [if winix_set_viewport] [end] [if winix_load_uikit] [def winix_has_uikit true] [# UIkit CSS] [# UIkit JS] [end] [if winix_load_htmx] [def winix_has_htmx true] [end] [if winix_has_htmx] [end] [if or [winix_function_is "emacs"] [winix_function_is "env"] [winix_function_is "meta"]] [if false] [end] [end] [if winix_function_is "ckeditor"] [def winix_has_jquery true] [end] [if winix_function_is "tinymce"] [# tinymce can use a special theme called 'mobile' - it is used when /mobile param is provided] [def winix_has_jquery true] [end] [if winix_function_is "nicedit"] [end] [if winix_function_is "vim"] [# 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 ] [def winix_has_jquery true] [end] [if winix_function_is "gallery"] [if gallery_mount_type_arg_is "lightbox"] [# https://lokeshdhakar.com/projects/lightbox2/ ] [def winix_has_jquery true] [end] [if gallery_mount_type_arg_is "galleriajs"] [# https://galleriajs.github.io/ ] [# formerly called aino-gallery ] [def winix_has_jquery true] [end] [end] [if winix_function_is "upload"] [# https://blueimp.github.io/jQuery-File-Upload/] [# https://github.com/blueimp/jQuery-File-Upload] [# Force latest IE rendering engine or ChromeFrame if installed] [# 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] [# CSS to style the file input field as button and adjust the Bootstrap progress bars] [# CSS adjustments for browsers with JavaScript disabled] [def winix_has_jquery true] [if false] [# the code to run the plugin we have in fun_upload.html] [end] [end] [if winix_function_is "sort"] [if not request.is_item] [end] [end] [if winix_function_is "imgcrop"] [def winix_has_jquery true] [end] [if winix_load_clocklet] [# https://github.com/luncheon/clocklet ] [# https://luncheon.github.io/clocklet/demo.html - color samples here too] [if winix_clocklet_uikit_theme] [end] [end] [if winix_load_flatpickr] [# date picker, time picker, date and time picker, date range picker (selecting time works only for the first day), available different themes ] [# the datepicker on mobile devices is a native datepicker (this functionality can be disabled via disableMobile option) ] [# https://flatpickr.js.org ] [# https://github.com/flatpickr/flatpickr ] [# options: https://flatpickr.js.org/options/ ] [if is_not [lang "flatpickr_locale_url"] "none"] [end] [if false] [# can be inserted in this way: ] [end] [end] [if winix_load_litepicker] [# date picker and date range picker ] [# can show a dialog with more than one month, config parameters: numberOfColumns and numberOfMonths] [# https://litepicker.com ] [# https://github.com/wakirin/litepicker/ ] [# options: https://litepicker.com/docs/options ] [# in bundle.js there are all plugins, you can use litepicker.js to load the datepicker without plugins] [if false] [# can be inserted in this way: ] [end] [end] [if false] [# temporarily blocked] [if winix_has_plugin "stats"] [include "stats_info.html"] [end] [end]