From 90f1f159b83cac255db4f1fdaecd5ffa7b46c842 Mon Sep 17 00:00:00 2001 From: gigamaster <1905497+gigamaster@users.noreply.github.com> Date: Sat, 11 May 2024 00:02:12 +0200 Subject: [PATCH] Render + default theme --- .../ckeditor/plugins/markTag/icons/mark.png | Bin 0 -> 1388 bytes .../admin/blocks/AdminBlockServer.class.php | 38 -- .../blocks/legacy_admin_block_onlineinfo.html | 2 + .../legacy/admin/templates/module_update.html | 2 +- .../admin/theme/stylesheets/ui-form.css | 17 +- .../admin/theme/stylesheets/ui-media.css | 5 +- .../class/Legacy_HeaderScript.class.php | 4 +- .../legacy/kernel/Legacy_Controller.class.php | 2 +- .../legacy/language/english/global.php | 4 +- .../legacy/language/english/help/help.html | 10 +- .../legacy/language/fr_utf8/help/help.html | 10 +- .../legacy/language/ja_utf8/help/help.html | 10 +- .../legacy/language/pt_utf8/help/help.html | 10 +- .../legacy/language/ru_utf8/help/help.html | 10 +- .../legacy/preload/InstallerChecker.class.php | 1 - .../blocks/legacy_block_siteinfo.html | 28 +- .../templates/legacy_install_modules.html | 44 +- .../legacy/templates/legacy_site_closed.html | 2 +- html/modules/legacy/xoops_version.php | 17 +- .../admin/templates/admin_render.html | 233 +++++-- html/modules/legacyRender/xoops_version.php | 4 +- html/site.webmanifest | 9 +- html/themes/xcl_default/CHANGELOG.md | 9 +- .../component/_inc_top_header.html | 199 ++++++ .../xcl_default/css/jquery-ui.theme.css | 21 +- html/themes/xcl_default/js/plugins.js | 18 +- html/themes/xcl_default/style.css | 154 +++-- .../templates/d3forum/main_category_form.html | 22 +- .../templates/d3forum/main_forum_form.html | 2 +- .../templates/d3forum/main_post_form.html | 30 +- .../legacy/legacy_app_start_page.html | 203 +++--- .../legacy/legacy_block_siteinfo.html | 36 +- .../legacy/legacy_install_completed.html | 23 +- .../legacy/legacy_install_modules.html | 44 +- .../templates/legacy/legacy_redirect.html | 8 +- .../templates/legacy/legacy_site_closed.html | 14 +- .../templates/message/message_inboxlist.html | 4 +- .../templates/message/message_outboxlist.html | 2 + .../templates/message/message_outboxview.html | 1 + .../templates/message/message_settings.html | 2 +- .../templates/page/admin_category_access.html | 185 ++++++ .../templates/page/admin_contents.html | 223 +++++++ .../templates/page/admin_extras.html | 112 ++++ .../templates/page/admin_extras_detail.html | 40 ++ .../templates/page/admin_import.html | 56 ++ .../templates/page/admin_tags.html | 98 +++ .../templates/page/block_content.html | 6 + .../templates/page/block_list.html | 24 + .../templates/page/block_menu.html | 21 + .../templates/page/block_mywaitings.html | 18 + .../templates/page/block_subcategories.html | 16 + .../templates/page/block_tags.html | 14 + .../templates/page/blockedit_content.html | 25 + .../templates/page/blockedit_list.html | 35 ++ .../templates/page/blockedit_menu.html | 13 + .../templates/page/blockedit_mywaitings.html | 8 + .../page/blockedit_subcategories.html | 13 + .../templates/page/blockedit_tags.html | 27 + .../templates/page/inc_breadcrumbs.html | 21 + .../templates/page/independent_print.html | 13 + .../templates/page/independent_rss20.html | 26 + .../page/independent_single_content.html | 13 + .../xcl_default/templates/page/main.css | 39 ++ .../templates/page/main_category_form.html | 117 ++++ .../templates/page/main_content_form.html | 590 ++++++++++++++++++ .../templates/page/main_diff_history.html | 26 + .../templates/page/main_list_contents.html | 197 ++++++ .../xcl_default/templates/page/main_menu.html | 171 +++++ .../templates/page/main_query_contents.html | 42 ++ .../templates/page/main_view_content.html | 234 +++++++ .../templates/page/main_viewhistory.html | 26 + .../templates/pico/main_category_form.html | 16 +- .../templates/pico/main_content_form.html | 43 +- .../templates/pico/main_list_contents.html | 3 +- .../user/blocks/user_block_newusers.html | 8 +- .../templates/user/inc_user_tab_edit.html | 4 +- .../templates/user/inc_user_tab_timeline.html | 2 +- .../templates/user/user_avatar_edit.html | 2 +- .../templates/user/user_block_online.html | 2 +- html/themes/xcl_default/theme.html | 37 +- html/themes/xcl_default/theme.json | 17 + .../admin/templates/admin_menunavi.html | 2 +- 82 files changed, 3331 insertions(+), 508 deletions(-) create mode 100644 html/modules/ckeditor4/ckeditor/plugins/markTag/icons/mark.png create mode 100644 html/themes/xcl_default/component/_inc_top_header.html create mode 100644 html/themes/xcl_default/templates/page/admin_category_access.html create mode 100644 html/themes/xcl_default/templates/page/admin_contents.html create mode 100644 html/themes/xcl_default/templates/page/admin_extras.html create mode 100644 html/themes/xcl_default/templates/page/admin_extras_detail.html create mode 100644 html/themes/xcl_default/templates/page/admin_import.html create mode 100644 html/themes/xcl_default/templates/page/admin_tags.html create mode 100644 html/themes/xcl_default/templates/page/block_content.html create mode 100644 html/themes/xcl_default/templates/page/block_list.html create mode 100644 html/themes/xcl_default/templates/page/block_menu.html create mode 100644 html/themes/xcl_default/templates/page/block_mywaitings.html create mode 100644 html/themes/xcl_default/templates/page/block_subcategories.html create mode 100644 html/themes/xcl_default/templates/page/block_tags.html create mode 100644 html/themes/xcl_default/templates/page/blockedit_content.html create mode 100644 html/themes/xcl_default/templates/page/blockedit_list.html create mode 100644 html/themes/xcl_default/templates/page/blockedit_menu.html create mode 100644 html/themes/xcl_default/templates/page/blockedit_mywaitings.html create mode 100644 html/themes/xcl_default/templates/page/blockedit_subcategories.html create mode 100644 html/themes/xcl_default/templates/page/blockedit_tags.html create mode 100644 html/themes/xcl_default/templates/page/inc_breadcrumbs.html create mode 100644 html/themes/xcl_default/templates/page/independent_print.html create mode 100644 html/themes/xcl_default/templates/page/independent_rss20.html create mode 100644 html/themes/xcl_default/templates/page/independent_single_content.html create mode 100644 html/themes/xcl_default/templates/page/main.css create mode 100644 html/themes/xcl_default/templates/page/main_category_form.html create mode 100644 html/themes/xcl_default/templates/page/main_content_form.html create mode 100644 html/themes/xcl_default/templates/page/main_diff_history.html create mode 100644 html/themes/xcl_default/templates/page/main_list_contents.html create mode 100644 html/themes/xcl_default/templates/page/main_menu.html create mode 100644 html/themes/xcl_default/templates/page/main_query_contents.html create mode 100644 html/themes/xcl_default/templates/page/main_view_content.html create mode 100644 html/themes/xcl_default/templates/page/main_viewhistory.html create mode 100644 html/themes/xcl_default/theme.json diff --git a/html/modules/ckeditor4/ckeditor/plugins/markTag/icons/mark.png b/html/modules/ckeditor4/ckeditor/plugins/markTag/icons/mark.png new file mode 100644 index 0000000000000000000000000000000000000000..e0de094f8a72274ccbcec0d73f53290ee9d2ace0 GIT binary patch literal 1388 zcmV-y1(W)TP)}*lHW-EK6D5xR+8clNczaw!jDXoh^xAJ!s2p z-uqj0OlAjPf(9Zo1L005Dl_myrv@!}lu|y|3mjB4nhiH6D6iAq2pmz(?RJ6yhP&q9|%Lsj4b(_Z`B8 z@pO}tsm5Sve=ro${Yfm^no)BS0vQ!ZXukk6DdlSx0*Q`m=p32Ha_l0x4&-v2Oh75M z1b)xu7}KwH7J(4r6}Zt_Zw-;53e-B(RsuqZ4e+z`>Usc?)yIJfU->lp>`FvO9;gRxr!$ypwbno^TxqDv^p>9Vp9k?XD4Z;MB{5nBrUnn3gjLTg=f?!sM^n&Q}Lt&ffyhd>lX@qn41`7q|n81_XF zbPiCK5E%Z{k`?xt&~qGYH(pY_fU4nFVe!A6{GUQI6`AQXBR=BuXxm2>@TYzsk_j@c(EJWwU zl_3IbsNX5FI0qr(ZtO5jfG6OWmQPM0M0DU5Lj<@2{*L%`3L%mMw;0q3CTyL|MNuq^qIj5Ch^wgt2sVMhiQVBYtBZuD@s9~G)X{wb7CPhI*e)Ci5IU-C zAVr8B`!+sVP$_V4FRzI^d~new#2sfGxP?6(edgOu*FN~8s;aw8oF>J0FE1~bz)!%B uJ#GA2Rn_N=oF>J|&jn76liyxHHU0yeF_;~{Qa=9x0000loadModinfoMessageCatalog('legacy'); - - -// $controller =& $root->mController; -// $user =& $root->mContext->mXoopsUser; -// $groups = implode(',', $user->getGroups()); - -// $cachePath = LEGACY_ADMINDASBOARDSERVER_CACHEPREFIX . md5(XOOPS_SALT . "($groups)". $langMgr->mLanguageName).'.html'; -// $render =& $this->getRenderTarget(); -// if (file_exists($cachePath)) { -// $render->mRenderBuffer = file_get_contents($cachePath); -// return; -// } - - - -// $this->mCurrentModule =& $controller->mRoot->mContext->mXoopsModule; -// -// if (($this->mCurrentModule->get('dirname') === 'legacy') && xoops_getrequest('action') === 'help') { -// $moduleHandler =& xoops_gethandler('module'); -// $t_module =& $moduleHandler->getByDirname(xoops_gethandler('legacy')); -// if (is_object($t_module)) { -// $this->mCurrentModule =& $t_module; -// } -// } -// - - //$systeminfo_message = []; - //& $root->getRenderSystem($this->getRenderSystemName()); - /** * Assign Server * $sys_info @array @@ -127,15 +98,6 @@ public function execute() // file_put_contents($cachePath, $render->mRenderBuffer); } -// public static function clearCache() -// { -// $adminDashboardServercache = glob(LEGACY_ADMINDASBOARDSERVER_CACHEPREFIX . '*.html'); -// if ($adminDashboardServercache) { -// foreach ($adminDashboardServercache as $file) { -// unlink($file); -// } -// } -// } public function hasResult() { diff --git a/html/modules/legacy/admin/templates/blocks/legacy_admin_block_onlineinfo.html b/html/modules/legacy/admin/templates/blocks/legacy_admin_block_onlineinfo.html index 9a97b6d57..39b0794ad 100644 --- a/html/modules/legacy/admin/templates/blocks/legacy_admin_block_onlineinfo.html +++ b/html/modules/legacy/admin/templates/blocks/legacy_admin_block_onlineinfo.html @@ -71,6 +71,7 @@ }); }); + +
diff --git a/html/modules/legacy/admin/templates/module_update.html b/html/modules/legacy/admin/templates/module_update.html index 2d7feb8df..d2c2d31f4 100644 --- a/html/modules/legacy/admin/templates/module_update.html +++ b/html/modules/legacy/admin/templates/module_update.html @@ -33,7 +33,7 @@

<{$smarty.const._AD_LEGACY_LANG_MODUPDATE_CONF}>

<{xoops_token form=$actionForm}> <{xoops_input type=hidden name=dirname value=$module->get('dirname')}> - +
@@ -298,7 +325,12 @@

Core Modules <{$smarty.const._SYS_MODULE_UNINSTALLED}>

- +
Loading...
+ - diff --git a/html/modules/legacy/templates/legacy_site_closed.html b/html/modules/legacy/templates/legacy_site_closed.html index 1bcf423ca..dce6765f3 100644 --- a/html/modules/legacy/templates/legacy_site_closed.html +++ b/html/modules/legacy/templates/legacy_site_closed.html @@ -16,7 +16,7 @@ - + diff --git a/html/modules/legacy/xoops_version.php b/html/modules/legacy/xoops_version.php index d35124611..3c6331c9d 100644 --- a/html/modules/legacy/xoops_version.php +++ b/html/modules/legacy/xoops_version.php @@ -35,10 +35,10 @@ $modversion['adminmenu'] = 'admin/menu.php'; // Templates -$modversion['templates'][1]['file'] = 'legacy_misc_ssllogin.html'; -$modversion['templates'][1]['description'] = 'Template SSL login'; -$modversion['templates'][2]['file'] = 'legacy_misc_smilies.html'; -$modversion['templates'][2]['description'] = ''; +$modversion['templates'][1]['file'] = 'legacy_app_start_page.html'; +$modversion['templates'][1]['description'] = 'The start page if no module is selected.'; +$modversion['templates'][2]['file'] = 'legacy_site_closed.html'; +$modversion['templates'][2]['description'] = 'Used when the site is closed. Maintenance mode, coming soon, etc.'; $modversion['templates'][3]['file'] = 'legacy_search_form.html'; $modversion['templates'][3]['description'] = 'Template Search Form'; $modversion['templates'][4]['file'] = 'legacy_comment_edit.html'; @@ -139,11 +139,10 @@ $modversion['templates'][51]['description'] = 'Replace direct Xoops2 system'; $modversion['templates'][52]['file'] = 'legacy_redirect_front_function.html'; $modversion['templates'][52]['description'] = 'Redirect top page if module content is not selected.'; -$modversion['templates'][52]['file'] = 'legacy_app_start_page.html'; -$modversion['templates'][52]['description'] = 'App start page if module is not selected.'; -$modversion['templates'][53]['file'] = 'legacy_site_closed.html'; -$modversion['templates'][53]['description'] = 'Used when the site is closed. Maintenance mode, coming soon, etc.'; - +$modversion['templates'][53]['file'] = 'legacy_misc_ssllogin.html'; +$modversion['templates'][53]['description'] = 'Template SSL login'; +$modversion['templates'][54]['file'] = 'legacy_misc_smilies.html'; +$modversion['templates'][54]['description'] = 'Combine text and Emojis, smileys or logos. Keywords or symbols to images.'; // Menu $modversion['hasMain'] = 0; diff --git a/html/modules/legacyRender/admin/templates/admin_render.html b/html/modules/legacyRender/admin/templates/admin_render.html index 001c5fe35..90e23c1d5 100644 --- a/html/modules/legacyRender/admin/templates/admin_render.html +++ b/html/modules/legacyRender/admin/templates/admin_render.html @@ -114,29 +114,53 @@
Smarty Template Engine

Render Engine

+

Default Themes

-

The default theme for the frontend uses the suffix _default _default
- While the default backend admin theme uses a prefix admin_

- +

The Frontend theme ensures how the webpage appears on the client browser:

    -
  • The Frontend theme ensures how the webpage appears on the client browser: /html/themes/theme-name/
  • -
  • The Backend theme provides a user interface to manage system preferences: /html/modules/legacy/admin/theme -
    including the module settings, roles and user permissions.
  • +
  • The frontend theme uses the suffix _default
  • +
  • and is placed in the folder themes /html/themes/theme-name/
- -
- You can put a custom backend theme with prefix admin_ in directory /themes e.g. /html/themes/admin_theme +

The Backend theme provides a user interface to manage system preferences, including the module settings, roles and user permissions.

+
    +
  • The backend admin theme uses a prefix admin_
  • +
  • and is placed in the folder /html/modules/legacy/admin/theme
  • +
+
    +

Custom Theme

-

The Smarty tags defined here are needed for the Core Render and components to work properly!
- When making a custom theme, you should base it on the following logic and Smarty Engine variables.

+ +
+
+ +

A theme requires four files, all other folders and files are optional.

+ +
    +
  • theme.html : HTML layout with Smarty logic
  • +
  • style.css : style layout and templates
  • +
  • manifesto.ini.php : required by Render engine
  • +
  • screenshot.jpg or png (Render admin and block themes)
  • +
-

Each installed module has a number of templates. These templates are automatically added to the default template set. -

A custom theme inherits the functionality, features, and style of the default set.

+

The theme.html needs the Smarty tags defined here to work properly.
+ A custom theme must use the following logic and Smarty variables
+ to inherit the functionality, features, and shape of the default template set

-

It is recommended to duplicate the default template set before any customization. You can do it from the Admin using the following modules:
+

It is recommended to duplicate the default template set before any customization.
+ + +

Default Templates

+ +

Theme specifies areas and appearance, module templates specify shape.

+

Template files are regular HTML documents, with additional Smarty-specific tags.
+

Each installed module has a number of templates.
+ These templates are automatically added to the default template set.

+

The Render Engine uses the .html extension for templates of modules and blocks.
+ However, the extension .tpl is used for email templates by convention.

+

You can clone the default templates using the following modules:

  • Admin > Control Panel > Render > Template Management
  • Admin > Control Panel > Components > Templates
  • @@ -144,36 +168,82 @@

    Custom Theme

    In order to customize modules templates or blocks templates (prefix block_)

      -
    • You can copy the templates for each module into your personalized theme under the - /themes/custom-theme/templates/modulename/ directory.
    • -
    • A custom theme can inherit the functionality, features, and style of the default theme and default template-set.
    • -
    • You can override only the templates you have customized, and that, without making any changes to the default set.
    • +
    • You can copy the templates from each module into your personalized theme
      + /themes/custom-theme/templates/modulename/
    • +
    • You can override only the templates you want to customize, and that,
      + without making any changes to the default set.
    -

    Custom themes can save time and effort, they are also a safer solution because of the automatic fallback to default settings.

    +

    Custom themes can save time and effort, they are also a safer solution
    + since you can rely on the automatic fallback to default settings.

    + + +
    + You can override default themes and templates by placing them in the frontend themes folder, + including a custom backend theme with the prefix admin_ e.g. /html/themes/admin_theme +
    + +
+ +
+

+// Theme
+    
+theme-name
+├── component
+│   ├── custom.html
+│   └── [optional]
+├─── css
+├─── js
+├─── templates
+│    └── module-name
+│       ├── block.html
+│       └── template.html
+├─ manifesto.ini.php
+├─ style.css
+├─ screenshot.jpg
+└─ theme.html
+
+
+
+

+// XCube module admin directory tree
+
+module-name
+├── admin
+│   └── templates
+│      ├── blocks
+│      ├── components
+│      └── stylesheets [optional]
+└── templates
+    └── templates
+        ├── blocks
+        └── components [optional]
+
+
+
+

+// D3 module TRUST_PATH directory
+
+module-name *
+└── templates
+        ├── blocks
+        ├── components [optional]
+        └── stylesheets [optional]
+
+* D3 duplicatable modules D3Forum, Pico
+
+
+
-

Default Templates

+
-

Theme specifies areas and appearance, module templates specify shape.

-

Smarty template files are regular HTML documents, with additional Smarty-specific tags.
- Thus allowing the easy implementation of custom design, consistent user interface and user experience.

- -

Frontend default templates are located in the directory /module_name/templates
- Backend default templates are located in the directory /module_name/admin/templates

-

The Render Engine uses the .html extension for templates of modules and blocks.
- However, the extension .tpl is used for email templates by convention.

- -
It is recommended to not edit the default version of these templates !
- First, clone the default template set in Template Management.
-
-

You can put a copy of default templates in the theme directory e.g.: /themes/theme_name/templates/module_name/
- it was /theme_name/modules/templates/ prior to version 2.3.x

+ - <{* Help documentation on "How To Create a Custom Theme") for more details *}>

Template Syntax

@@ -192,33 +262,7 @@

Tag delimiters

-

-// XCube module admin directory tree
-
-module-name
-├── admin
-│   └── templates
-│      ├── blocks
-│      ├── components
-│      └── stylesheets [optional]
-└── templates
-    └── templates
-       ├── blocks
-       └── components [optional]
-
-
-
-

-// D3 in module TRUST_PATH directory
 
-module-name *
-└── templates
-        ├── blocks
-        ├── components [optional]
-        └── stylesheets [optional]
-
-* D3 duplicatable modules D4Forum, Pico
-
@@ -266,7 +310,7 @@

Template Variables

diff --git a/html/modules/legacy/admin/theme/stylesheets/ui-form.css b/html/modules/legacy/admin/theme/stylesheets/ui-form.css index 03d304fa2..9f8229947 100644 --- a/html/modules/legacy/admin/theme/stylesheets/ui-form.css +++ b/html/modules/legacy/admin/theme/stylesheets/ui-form.css @@ -65,7 +65,6 @@ textarea:focus { * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly */ input[type="text"]:disabled, -/*input:read-only:not([type=button]):not([type=submit]):not([type=reset]):not([type=checkbox]):not([type=radio]) {*/ :where(input:read-only):not([type=color]) { background : inherit; color : var(--link-visited); @@ -94,9 +93,6 @@ button, display : inline-block; font-family : var(--font-family); font-size : var(--font-size); - /*font-weight : var(--font-weight);*/ - /*letter-spacing : 0.08rem;*/ - /*line-height : 1.5;*/ padding : var(--button-padding); position : relative; margin : var(--input-margin); @@ -114,14 +110,6 @@ input[type="submit"]:hover, input[type="submit"].button-cancel:hover { background : var( --button-bg-on ); color : var( --button-color-on )!important; - /*background : var( --input-bg );*/ - /*background : rgba(248, 194, 0, 0.42);*/ - /*border-color : rgba(248, 194, 0, 0.42);*/ - /*!* box-shadow : 0 12px 20px -10px rgba(248, 194, 0, 0.42), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(248, 194, 0, 0.2); *!*/ - /*!* box-shadow : 0 2px 2px 0 rgba(248, 194, 0, 0.42), 0 3px 1px -2px rgba(248, 194, 0, 0.42), 0 1px 5px 0 rgba(248, 194, 0, 0.42); *!*/ - /*box-shadow : 0 14px 26px -12px hsla(47, 100%, 50%, 0.42), 0 4px 23px 0 hsla(47, 100%, 50%, 0.42), 0 8px 10px -5px hsla(47, 100%, 50%, 0.42);*/ - /*!* color : var( --input-color ); *!*/ - /*color : #ffffff;*/ } input[type="submit"].button-delete, @@ -145,7 +133,6 @@ input.buttom-uninstall:hover, input[type="reset"]:hover { background : #ff5722; border-color : #ff5722; - /*box-shadow : 0 14px 26px -12px hsla(14, 100%, 57%, 0.42), 0 4px 23px 0 hsla(0, 0%, 0%, 0.12), 0 8px 10px -5px hsla(14, 100%, 57%, 0.2);*/ box-shadow : 0 14px 26px -12px hsla(14, 80%, 45%, 0.42), 0 4px 23px 0 hsla(14, 100%, 49%, 0.42), 0 8px 10px -5px hsla(14, 100%, 49%, 0.42); color : #ffffff; } @@ -185,9 +172,9 @@ select { } select option { - /* font-size : 16px; */ + font-size : 14px; display : block; - padding : 4px 2px; + padding : 5px 2px; margin-bottom : 1px; width : 100% } diff --git a/html/modules/legacy/admin/theme/stylesheets/ui-media.css b/html/modules/legacy/admin/theme/stylesheets/ui-media.css index 14efc628b..96ea7e4dd 100644 --- a/html/modules/legacy/admin/theme/stylesheets/ui-media.css +++ b/html/modules/legacy/admin/theme/stylesheets/ui-media.css @@ -168,7 +168,10 @@ .table-responsive > .table-bordered { border : 0; } - + table.module-update { + max-width: 65vw; + margin: auto; + } nav#help-menu { position :sticky; } diff --git a/html/modules/legacy/class/Legacy_HeaderScript.class.php b/html/modules/legacy/class/Legacy_HeaderScript.class.php index b40c4e239..2ae8565c9 100644 --- a/html/modules/legacy/class/Legacy_HeaderScript.class.php +++ b/html/modules/legacy/class/Legacy_HeaderScript.class.php @@ -307,7 +307,7 @@ public function createOnloadFunctionTag() { $html = null; if (count($this->_mOnloadScript)>0||count($this->_mScript)>0) { - $html = " <{$xoops_sitename}> @@ -24,13 +25,11 @@ margin : 2em auto; transition : background 500ms ease-in-out, color 200ms ease; } - a { color : #face74; font-weight : bold; text-decoration : none; } - a:hover, svg:hover { color : #fff; @@ -217,7 +216,6 @@ background: #333b49; color: #fff; } - .alert, .req { color: #ff6633; @@ -227,6 +225,35 @@ padding : .74em 1.27em; text-align: center; } +.notification { + color : hsl(219, 27%, 65%); + display : flex; + flex-basis : 100%; + flex-direction : row-reverse; + align-items : center; + justify-content : center; + float : none!important; +} +.runtime { + background: hsl(218, 15%, 25%); + border:1px dotted hsl(220, 15%, 16%); + border-radius: 7px; + box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.20); + color: #D3D7DEFF; + display: none; + margin:1rem auto; + padding: .5rem .75rem; + text-align: center; + + position: fixed; + top: 0; + left: 0; + right: 0; + + width: 270px; + min-width: 240px; + z-index: 1000; +} @@ -288,7 +315,7 @@

Core Modules <{$smarty.const._SYS_MODULE_UNINSTALLED}>

-

+

- + @@ -387,10 +431,31 @@

Template Variables

+ + + + + + + + + + + + + + + + + + + + + - + @@ -409,21 +474,53 @@

Include Components and Templates

You can easily include customized components and templates using relative path, theme variable, or refer to database.

-
Relative path
+
Admin Theme Relative path
<{include file="./components/panel-todo.html"}>
-
Theme variable
+
Front Theme variable
+

Use the variable $xoops_theme

<{include file="$xoops_theme/components/panel-todo.html"}>
Database
-

Example from D3 module

+

Example from D3 module. Note the variable inside backticks ( ` )

<{include file="db:`$mydirname`_inc_breadcrumbs.html"}>
Conditional inclusion of subtemplates
<{include_if_exists file="foo.html" else="bar.html"}>
-

Block

+

Fetch Theme Component

+

Note the variable inside backticks ( ` )

+
<{fetch file="`$xoops_imageurl`component/sample.html"}>
+

JSON assign to variable

+

Note the use of local="true" to disable local ssl verification

+

+    // Example using path
+    <{assign var="sample" value="`$smarty.const.XOOPS_ROOT_PATH`/themes/xcl_default/theme.json"}>
+    // Example using local="true"
+    <{json file="$sample" theme="theme" local="true"}>
+
JSON assign variables
+

+    <{foreach item=foo key=key from=$theme}>
+    <{assign var='version' value=$foo->version}>
+    <{assign var='body' value=$foo->body}>
+    <{assign var='color' value=$foo->color}>
+    <{assign var='primary' value=$foo->primary}>
+    <{assign var='inverse' value=$foo->inverse}>
+    <{/foreach}>
+    
+
JSON use variables in theme or CSS
+

+    /* CSS */
+    :root {
+        --pico-background-color: <{$body}>;
+        --pico-color: <{$color}>;
+    }
+    <!-- Theme -->
+    <{$version}>
+    
+ +

Block

The block loop indicates a position, however it is just a legacy code convention to identify areas in the theme layout.
XCL Themes can provide multiple options based on block id, name or title. Example of basic block-left loop:

@@ -444,6 +541,6 @@

Functions and modifiers

Help Resources

-

For general instructions about the core Render Engine, visit module's Help menu.

+

For general instructions about the core Render Engine, visit the module's Help menu.

diff --git a/html/modules/legacyRender/xoops_version.php b/html/modules/legacyRender/xoops_version.php index 93fed176f..f240806bc 100644 --- a/html/modules/legacyRender/xoops_version.php +++ b/html/modules/legacyRender/xoops_version.php @@ -74,7 +74,7 @@ 'description' => '_MI_LR_META_KEYWORDS_DESC', 'formtype' => 'textarea', 'valuetype' => 'text', - 'default' => 'application, web, website, best, top, content, internet, free, news, components, design, development, frameworks, javascript, libraries' + 'default' => 'application, web, website, best, top, content, internet, free, article, content, forum, discussion, components, design, development, frameworks, javascript, libraries, open source' ]; $modversion['config'][]= [ @@ -83,7 +83,7 @@ 'description' => '_MI_LR_META_DESCRIPTION_DESC', 'formtype' => 'textarea', 'valuetype' => 'text', - 'default' => 'XCL is a modular architecture and extensible web application platform written in PHP.' + 'default' => 'XCL is a web application platform with a modular and extensible architecture.' ]; $modversion['config'][]= [ diff --git a/html/site.webmanifest b/html/site.webmanifest index 4511ba095..598889062 100644 --- a/html/site.webmanifest +++ b/html/site.webmanifest @@ -1,12 +1,7 @@ { - "name": "XOOPSCube", - "short_name": "XCL", + "name": "WebApp", + "short_name": "WAP", "icons": [ - { - "src": "/images/favicon/favicon-32x32.png", - "sizes": "32x32", - "type": "image/png" - }, { "src": "/images/favicon/android-chrome-144x144.png", "sizes": "144x144", diff --git a/html/themes/xcl_default/CHANGELOG.md b/html/themes/xcl_default/CHANGELOG.md index f4253654d..bd59e00eb 100644 --- a/html/themes/xcl_default/CHANGELOG.md +++ b/html/themes/xcl_default/CHANGELOG.md @@ -8,20 +8,21 @@ All notable changes to XCL Theme PicoCSS will be documented in this file. ## [XCL Theme 240 ] 2024-04-20 -- Add component block-center (using prefix 'top-' in block-title) +- Add component block-center with Title prefix 'top-' +- Add condition to show Top Block-center (prefix 'top-none') +- Add daarkmode for CKEDITOR4 - Update PicoCSS - Update prefix CSS classes - Update Templates - Update jQuery UI theme built with CSS vars - Theme style with customized CSS vars -- Fix Top Block-center (prefix 'top-none' in block title) - Fix Smarty logic in D3Forum and Pico - Improved Pico's menu and TOC - -- Smarty 2.6 isset and |default:'' +- Smarty 2.6 fix isset and |default:'' ## [XCL Pico 157 ] 2024-02-02 +- Admin front panel block-right with Title prefix 'admin-' - Load PicoCSS from theme folder - Fix PHP8 warning errors related to Smarty - Admin panel (using block-right with prefix 'admin-' in block-title) diff --git a/html/themes/xcl_default/component/_inc_top_header.html b/html/themes/xcl_default/component/_inc_top_header.html new file mode 100644 index 000000000..9cde9819b --- /dev/null +++ b/html/themes/xcl_default/component/_inc_top_header.html @@ -0,0 +1,199 @@ + + + +
+
+
+
+
+
+
+
+
+
+
+ + + +

Nature never rushes, yet everything gets done.

+ +
+ +
\ No newline at end of file diff --git a/html/themes/xcl_default/css/jquery-ui.theme.css b/html/themes/xcl_default/css/jquery-ui.theme.css index 8fa536049..fe1397f15 100644 --- a/html/themes/xcl_default/css/jquery-ui.theme.css +++ b/html/themes/xcl_default/css/jquery-ui.theme.css @@ -626,7 +626,7 @@ background: var(--pico-primary-hover-background); line-height : 1.25; } .ui-tabs .ui-tabs-nav li { - border: 1px solid var(--pico-primary-underline); + /* border: 1px solid var(--pico-primary-underline); */ list-style: none; float: left; position: relative; @@ -641,9 +641,21 @@ background: var(--pico-primary-hover-background); float : left; text-decoration : none; } +/* li .ui-tabs-anchor:first-child { +border-top-left-radius: var(--pico-border-radius); +} +li .ui-tabs-anchor:last-child { + border-top-right-radius: var(--pico-border-radius); +} */ + .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: 0; padding-bottom: 0; + border-radius: var(--pico-border-radius); + border:none; +} +:is(.ui-tabs-tab).ui-state-default,.ui-state-default{ + border-radius: var(--pico-border-radius); } .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor { cursor: pointer; @@ -651,10 +663,11 @@ background: var(--pico-primary-hover-background); .ui-tabs .ui-tabs-nav .ui-tabs-anchor:hover, .ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor { background : var(--pico-primary-hover-background); - color : var(--pico-contrast-inverse) + color : var(--pico-contrast-inverse); } -.ui-tabs .ui-tabs-nav li:first-child {border-top-left-radius: var(--pico-border-radius)} -.ui-tabs .ui-tabs-nav li:last-child {border-top-right-radius: var(--pico-border-radius)} + +:where(li.ui-tabs-tab, a.ui-tabs-anchor):first-child {border-top-left-radius: var(--pico-border-radius)} +:where(li.ui-tabs-tab, a.ui-tabs-anchor):last-child {border-top-right-radius: var(--pico-border-radius)} .ui-tabs .ui-tabs-panel { background : var(--pico-card-background-color); display : block; diff --git a/html/themes/xcl_default/js/plugins.js b/html/themes/xcl_default/js/plugins.js index b5051f365..0331feb04 100644 --- a/html/themes/xcl_default/js/plugins.js +++ b/html/themes/xcl_default/js/plugins.js @@ -211,9 +211,9 @@ $(function () { window.open($(ui.newTab).find('a').attr('href'), '_self'); return false; }, - } - ).find('.ui-tabs-tab').removeClass('ui-corner-all ui-corner-top'); + ); + // .find('.ui-tabs-tab').removeClass('ui-corner-all ui-corner-top'); // 8.1 Remove border from dropdown UL children $(".ui-tabs-tab .dropdown-content ul").children().css( "border", "0" ); @@ -221,26 +221,16 @@ $(function () { // 8.2 url constructor const parseUrl = new URL(window.location.href); const msgAction = parseUrl.searchParams.get("action"); - //console.log(parseUrl.searchParams.get("action")); - //console.log('the action of this url is:', msgAction); // If module message index, highlight the first nav-tab if (msgAction == null) { - // $('#tabs-mail ul:first-child li').addClass('ui-state-hover '); $('#tabs-mail ul.ui-tabs-nav li:first-child').addClass('ui-state-active'); } else { // Highlight current action nav-tab - //$('a[href^="index.php?action=' + msgAction + '"]').parent('li').addClass('mail-tab-active'); - $('a[href="index.php?action=' + msgAction + '"]').parent('li').addClass('ui-state-active'); - // console.log('the tab url is :' + ) + $('a[href="index.php?action=' + msgAction + '"]').parent('li').addClass('ui-tabs-active ui-state-active'); } if (msgAction == 'settings'|| msgAction == 'blacklist'){ // Highlight dropdown menu - $('.settings .dropdown').parent('li').addClass("ui-state-active"); + $('.settings ').parent('li').addClass("ui-state-active"); } - // 9. preload - // $(window).on('load', function() { - // $("div.preload").removeClass("preload"); - // }); - }); diff --git a/html/themes/xcl_default/style.css b/html/themes/xcl_default/style.css index c46474a13..a21f3167e 100644 --- a/html/themes/xcl_default/style.css +++ b/html/themes/xcl_default/style.css @@ -13,16 +13,13 @@ @import "./css/dropdown.css"; /* dROPDOWN MENU Grid-Flex */ /* ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~ - */ +*/ :root { /* Development Mode */ ---dev-mode: none; /* Display Smarty Template Name : block, none */ +--dev-mode: none; /* Display Smarty Template Name : block, none */ -/* CKEditor */ ---ckeditor-color : var(--pico-color); ---ckeditor-background: var(--pico-background-colorr); /* --------------------------- TOOLTIP */ --tooltip-background-color: var(--pico-primary-hover-background); @@ -43,7 +40,8 @@ --z-above : 100; /* dropdown menu */ --z-default : 1; --z-below : -1; - + /* override picocss */ + --pico-border-radius: .5rem; --pico-spacing: 1rem; --pico-typography-spacing-vertical: 1rem; --pico-block-spacing-vertical: var(--pico-spacing); @@ -54,6 +52,7 @@ --pico-form-element-spacing-horizontal: 0.75rem; --pico-text-decoration: none; + } .ui-dev-mode { @@ -111,7 +110,6 @@ body > main > div > aside { padding : .5rem; padding : var(--pico-nav-element-spacing-vertical) var(--pico-nav-element-spacing-horizontal); /* @todo */ border-radius : var(--pico-border-radius); - border:2px dotted rgb(255, 0, 93) } /* BODY FOOTER */ @@ -146,8 +144,7 @@ article header :where( p:last-child ){ /* A HREF LINK COLOR */ [data-theme=dark] { :is([role=button], [type=button], [type=file]::file-selector-button, [type=reset], [type=submit], - button, - [type=checkbox]:checked, [type=checkbox]:checked:active, [type=checkbox]:checked:focus, + button, [type=checkbox]:checked, [type=checkbox]:checked:active, [type=checkbox]:checked:focus, [type=radio]:checked, [type=radio]:checked:active, [type=radio]:checked:focus):not(.outline) { --pico-background-color: hsl(45 70% 40% / 1); } @@ -196,7 +193,6 @@ hr { margin: 2rem 1rem; } /* @todo ? */ display : flex; flex-wrap : wrap; justify-content : space-between; - margin-top : 1rem; white-space : normal; } @@ -221,6 +217,11 @@ section[role=banner] > div > article { } /* -------------------- BREADCRUMBS - MOBILE */ + +nav[aria-label=breadcrumb] { + margin-bottom : 1rem; /* space for pico header image */ +} + @media (max-width : 768px) { nav[aria-label=breadcrumb] ul { list-style-type: none; @@ -296,18 +297,12 @@ section[role=banner] > div > article { :is(button.vote) { margin-bottom : 0; } -/* :is(button,input[type=submit],input[type=button],[role=button]):not(summary) { - - white-space : nowrap; -} */ :where([type=submit],[type=button],[role=button]) svg { display : inline; margin : 0 .25rem 0; vertical-align: -.175em; } -/* :is(footer.action-control) {margin-top:2rem} *//* margin-bottom : 0; 🟠 */ -/* :is(footer.action-control) :where(button, input) {margin-bottom:0;} */ :where(footer.action-control, footer div.grid) :is(div, button, input[type=submit],input[type=button],[role=button], details.dropdown, input, a):not(summary) { margin-bottom : 0; @@ -318,44 +313,12 @@ section[role=banner] > div > article { border-radius : var(--pico-border-radius); margin : 0 .5em; padding : .25rem; - - /* border:2px solid rgb(149, 0, 255) */ - /* padding : var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal); */ } :where(footer.action-control) :is(a, button[type=submit]):hover { background : var(--pico-primary-focus); color : var(--pico-secondary-inverse); - /* border:2px solid rgb(0, 89, 255) */ } -/* ARTICLE > FOOTER > DROPDOWN, FORM, BUTTON */ -article > footer { - padding : var(--pico-spacing)} -/* article > footer > :is(details.dropdown, button, div button), -article > footer > form :is(button, [type=submit]) { ---pico-spacing : 0; - margin : var(--pico-spacing) 0; -} -article > footer :is(button.save-copy) { - border:1px solid var(--pico-form-element-valid-border-color); -} -article > footer :is(button.save-copy):hover { - border:1px solid var(--pico-form-element-valid-active-border-color) -} */ -/* ARTICLE FOOTER BUTTON, DROPDOWN, INPUT */ -/* article > footer :is( [role=button], input[role=button]) { - border : none; - margin-bottom : 0; -} -article > footer :is( [role=button], input[role=button]):hover { - background : var(--pico-form-element-focus-color); -} -/* dropdown */ -/*article footer div :is(details) { - border-radius : var(--pico-border-radius); - box-shadow : var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--pico-outline-width) var(--pico-primary-focus); - margin-bottom : 0; -} */ /* -------------------- BLOCKS */ /* BLOCKS - Title */ [class^="block-title"] { @@ -393,7 +356,7 @@ article > footer :is( [role=button], input[role=button]):hover { .menu-sub { padding-left : 2.25rem; } - +/* BLOCK - PRIVATE MESSAGE */ .block-messages ul#privatemessages { flex-direction : column; width : 100%; @@ -405,8 +368,9 @@ article > footer :is( [role=button], input[role=button]):hover { .block-messages ul#privatemessages li a { display : inherit; } - -ul.block-online-members { +/* BLOCK - LIST MEMBERS */ +/* USERS ONLINE, SITE INFO */ +ul.list-column { border-left : 4px solid var(--pico-muted-border-color); column-count : 3; column-width : 140px; @@ -415,11 +379,11 @@ ul.block-online-members { margin : 1rem 0; padding : 1rem; } -ul.block-online-members li { +ul.list-column li { list-style : none; margin-bottom :.5rem } -ul.block-online-members li > h6 { +ul.list-column li > h6 { font-size : 16px; column-span: all; } @@ -448,7 +412,7 @@ summary[role="link"].contrast:is([aria-current],:hover,:active,:focus) { border-bottom-left-radius: 1rem; } -/* -------------------- TABLE FONT-SIZE IN BLOCKS */ +/* -------------------- TABLE - FONT-SIZE IN BLOCKS */ [class^="block-"] table tbody, tfoot { font-size : 14px; } @@ -675,9 +639,69 @@ p { text-wrap: pretty } /* -------------------- MODULE CKEditor */ /* BUTTON CKEditor forced fix button 📐*/ :is([class^="cke_button"],[class^="cke_combo_button"] ) { - margin-left : 0!important; + margin-left : 0!important; +} +/* fix extra space of combo dropdown */ +.cke_combo_on a.cke_combo_button, .cke_combo_off a.cke_combo_button:hover, .cke_combo_off a.cke_combo_button:focus, +.cke_combo_off a.cke_combo_button:active { + padding : 0!important; +} +/* CKEditor darkmode */ +:root[data-theme=dark] { + --cke-color : #fff; + --cke-background: #111;; + --cke-filter : invert(1) contrast(1.15); + --cke-editable : #1c212c; + --cke-inner : #181b25; +} +/* try to switch mode, fallback ?? */ +:root[data-theme=light] { + --no-var : #fff; +} +/* CKEditor darkmode rounded */ +:is([class^=cke_top],[class^=cke_bottom]) { + filter : var(--cke-filter, none); + border-color : transparent!important; + /* Prevent editor from overflow prent container */ + max-width : 100%; + border-radius : 8px; +} +:where(.cke_chrome) { + border : none!important; +} +.cke_inner { + display : block; + background : var(--cke-inner, var(--no-var), #999)!important; + border : 1px solid var(--cke-background, var(--no-var), #999)!important; + border-radius : 8px; +} +:where(.cke_contents){ + background : var(--cke-editable, var(--no-var), #999)!important; + color : var(--cke-color, var(--no-var))!important; + border-radius : 8px; +} +/* customize editable container */ +.cke_editable { + background : var(--cke-editable, var(--no-var)); + color : var(--no-var, #fff); + border-radius : 8px; + padding : 0.5rem; + cursor : text; + margin : 0.25rem; + width : auto; + min-height : calc(100vh - 1rem); +} +textarea.cke_source { + background : var( --cke-background, #fff); + color : var( --cke-color, #111); + padding : 0.5rem; +} +.cke_wysiwyg_frame, .cke_wysiwyg_div { + background : var(--cke-editable, var(--no-var))!important; + color : var(--cke-color, var(--no-var))!important; } + /* -------------------- MODULE D3FORUM */ /* Used in Dropdowm*/ .author-info { @@ -692,16 +716,13 @@ p { text-wrap: pretty } border-radius : 50%; margin : 0 auto; } -:is(.w48) { - width : 48px; - height : 48px; -} +/* AUTHOR DROPDOWN */ :is(.w96) { width : 96px; height : 96px; } -/* AVATAR css rules from x-layout */ +/* AVATAR css from x-layout */ [data-self="radius-circle"] { border-radius: 50%} /* NAV POST TREE ORDER */ @@ -749,7 +770,7 @@ li.post-tree-item > span { border-radius : var(--pico-border-radius); } -/* FORUM POST CONTENT + SIGNATURE */ +/* FORUM POST - CONTENT + SIGNATURE */ .post-content { } .post-signature { @@ -757,7 +778,7 @@ li.post-tree-item > span { margin-top : 1.5rem; } -/* FORUM ICON LIST LEGEND */ +/* FORUM - ICON LIST LEGEND */ .forum-icon-list { display : block; list-style : none; @@ -765,7 +786,7 @@ li.post-tree-item > span { padding : 0; } -/* Using class badge */ +/* Following classes Using class badge */ .post-vote, .post-vote-count, .post-vote-avg {} @@ -881,11 +902,10 @@ ul.pagenavi li:not([aria-current]):hover a { background : var(--pico-primary-focus); color : var(--pico-secondary-inverse); padding : .25rem .5rem; - /* background : var(--pico-contrast-focus) */ } /* -------------------- SYSTEM Notification */ -/* Replace confirmMsg errorMsgg resultMsg msg-warning */ +/* Replacing older confirmMsg errorMsgg resultMsg msg-warning */ .alert { background : var(--pico-muted-border-color); border-left : 3px solid; @@ -931,7 +951,7 @@ ul.pagenavi li:not([aria-current]):hover a { } /* -------------------- MODULE MESSAGE & USER PROFILE */ -/* Mail tab active overrides the default properties */ +/* Note - Mail tab active overrides the default properties */ .mail-list-item { border-bottom : 1px solid hsl(219, 17%, 21%); @@ -1027,4 +1047,4 @@ ul.pagenavi li:not([aria-current]):hover a { @keyframes left { 0% { transform:translateX(-10px); opacity:0; } 100% { opacity:1; transform:none; } -} \ No newline at end of file +} diff --git a/html/themes/xcl_default/templates/d3forum/main_category_form.html b/html/themes/xcl_default/templates/d3forum/main_category_form.html index 3791c78fd..975f3d817 100644 --- a/html/themes/xcl_default/templates/d3forum/main_category_form.html +++ b/html/themes/xcl_default/templates/d3forum/main_category_form.html @@ -20,16 +20,16 @@
-

<{$smarty.const._MD_D3FORUM_CATEGORYMANAGER}>

- - - <{if $xoops_isadmin}> - - <{/if}> +

<{$formtitle}> + + <{* ----- Permissions *}> + <{if $xoops_isadmin}> + + <{/if}> +

@@ -298,7 +325,12 @@

Core Modules <{$smarty.const._SYS_MODULE_UNINSTALLED}>

- +
Loading...
+ - diff --git a/html/themes/xcl_default/templates/legacy/legacy_redirect.html b/html/themes/xcl_default/templates/legacy/legacy_redirect.html index ec79005ce..3738f8fea 100644 --- a/html/themes/xcl_default/templates/legacy/legacy_redirect.html +++ b/html/themes/xcl_default/templates/legacy/legacy_redirect.html @@ -27,13 +27,13 @@
-
-

logo

-

<{$message}>

+
+

logo

+

<{$message}>

<{$lang_ifnotreload}>

<{if class_exists('AdelieDebug_Preload')}> -

No automatic redirect during AdelieDebug execution.

+

No automatic redirect during AdelieDebug execution.

<{/if}>
diff --git a/html/themes/xcl_default/templates/legacy/legacy_site_closed.html b/html/themes/xcl_default/templates/legacy/legacy_site_closed.html index 5a13588e3..dbd79ffdc 100644 --- a/html/themes/xcl_default/templates/legacy/legacy_site_closed.html +++ b/html/themes/xcl_default/templates/legacy/legacy_site_closed.html @@ -28,6 +28,8 @@ <{$xoops_sitename}> +<{* ----- Favicon SVG located in the root directory ----- *}> + @@ -219,18 +221,6 @@
  • <{$xoops_sitename}>
- diff --git a/html/themes/xcl_default/templates/message/message_inboxlist.html b/html/themes/xcl_default/templates/message/message_inboxlist.html index 255995ce7..22e39078c 100644 --- a/html/themes/xcl_default/templates/message/message_inboxlist.html +++ b/html/themes/xcl_default/templates/message/message_inboxlist.html @@ -90,7 +90,9 @@ <{/foreach}> - + +
+
<{* printhis *}> +
diff --git a/html/themes/xcl_default/templates/message/message_settings.html b/html/themes/xcl_default/templates/message/message_settings.html index 5d2d3b5ca..14fb17862 100644 --- a/html/themes/xcl_default/templates/message/message_settings.html +++ b/html/themes/xcl_default/templates/message/message_settings.html @@ -85,7 +85,7 @@
<{$smarty.const._MD_MESSAGE_SETTINGS_MSG10}>
- + <{$smarty.const._MD_MESSAGE_SETTINGS_MSG18}>
diff --git a/html/themes/xcl_default/templates/page/admin_category_access.html b/html/themes/xcl_default/templates/page/admin_category_access.html new file mode 100644 index 000000000..ffa42ec7a --- /dev/null +++ b/html/themes/xcl_default/templates/page/admin_category_access.html @@ -0,0 +1,185 @@ +
<{$smarty.template}>
+ + +

<{$mod_name|ucfirst}> » <{$smarty.const._MD_PICO_CATEGORY}> » <{$cat_title}>

+ + +<{* ////— ACTION-CONTROL —\\\\ *}> +
+ + + + + : + + + + +
+ <{* ////— DROPDOWN MENU —\\\\ *}> + +
+ +
+ +<{if $cat_id !=0}> +
+ +

<{$smarty.const._MD_A_PICO_H2_INDEPENDENTPERMISSION}>

+
+ <{$gticket_hidden}> + +

+ checked="checked"<{/if}>> + +

+ +
+<{/if}> + + +<{if $cat_id !=$cat_permission_id && $cat_id !=0}> + + +<{else}> + + + +

<{$smarty.const._MD_A_PICO_H2_GROUPPERMS}>

+ +
+ <{$gticket_hidden}> +
X2 / XCL ThemesX2 & XCL Themes XRENDER V3 Output
<{$upload_url}>
<{$xoops_upload_url}>
<{$xoops_dirname}>
<{$mod_url}>
Output the module directory : <{$xoops_dirname}>
<{$xoops_theme}>
<{$ui_layout}>
Output the theme name (frontend) e.g.:
xcl_default
<{$xoops_themecss}>
<{$ui_css}>
Output the theme style.css link:
<{$xoops_themecss}>
<{$xoops_imageurl}>
<{$ui_url}>
Output the selected theme URL :
<{$xoops_imageurl}>
<{$xoops_banner}>
<{$banner}>
Output an image or HTML with a link.Output an image or HTML with a link from Rener > Banner Management.
-

+

+ + + + <{foreach from=$permissions item=perm_title key=perm_name name=group_th}> + + <{/foreach}> + + + + <{foreach from=$groups item=group}> + + + + <{foreach from=$permissions item=perm_title key=perm_name name=group_td}> + + <{/foreach}> + + <{/foreach}> + + + + + + +
+ <{$smarty.const._MD_A_PICO_TH_GROUPNAME}> + + <{$perm_title}>
+ +
<{$group.name}> + + + checked="checked"<{/if}>> +
+ + + + + +

<{$smarty.const._MD_A_PICO_H2_USERPERMS}>

+ +
+ <{$smarty.const._MD_A_PICO_NOTICE_ADDUSERS}> +
+ +
+ <{$gticket_hidden}> + + + + + + <{foreach from=$permissions item=perm_title key=perm_name name=user_th}> + + <{/foreach}> + + + + + <{foreach from=$users item=user}> + + + + + <{foreach from=$permissions item=perm_title key=perm_name name=user_td}> + + <{/foreach}> + + <{/foreach}> + + + <{foreach from=$new_users item=user}> + + + + + <{foreach from=$permissions item=perm_title key=perm_name name=user_td}> + + <{/foreach}> + + <{/foreach}> + + + + + + +
<{$smarty.const._MD_A_PICO_TH_UID}><{$smarty.const._MD_A_PICO_TH_UNAME}> + <{$perm_title}> + +
<{$user.uid}><{$user.name}> + + + checked="checked"<{/if}>> +
+ + + + + + + checked="checked"<{/if}>> +
+ +
+ +
+ +<{/if}> diff --git a/html/themes/xcl_default/templates/page/admin_contents.html b/html/themes/xcl_default/templates/page/admin_contents.html new file mode 100644 index 000000000..c9a712baa --- /dev/null +++ b/html/themes/xcl_default/templates/page/admin_contents.html @@ -0,0 +1,223 @@ +
<{$smarty.template}>
+ +

<{$mod_name|ucfirst}> » <{$smarty.const._MD_PICO_CATEGORY}> » <{$cat_title}>

+ +
+ <{$smarty.const._MD_A_PICO_TIPS_CONTENTS}>
+ <{$smarty.const._MD_A_PICO_LEGEND_CONTENTSTHS}> +
+ +<{* ////— ACTION-CONTROL —\\\\ *}> +
+ +
+ + : + + +
+ + + + +
+ +
+ <{$gticket_hidden}> + + + + + + + + + + + + + + + + + + + <{foreach from=$contents item="content"}> + + + + + + + + + + + + + <{/foreach}> + + + + + + + +
<{$smarty.const._MD_A_PICO_TH_CONTENTSID}><{$smarty.const._MD_PICO_TH_SUBJECT}><{$smarty.const._MD_PICO_TH_VIRTUALPATH}><{$smarty.const._MD_A_PICO_TH_CONTENTSWEIGHT}><{$smarty.const._MD_A_PICO_TH_CONTENTSVISIBLE}> +
+ +
<{$smarty.const._MD_A_PICO_TH_CONTENTSSHOWINNAVI}> +
+ +
<{$smarty.const._MD_A_PICO_TH_CONTENTSSHOWINMENU}> +
+ +
<{$smarty.const._MD_A_PICO_TH_CONTENTSALLOWCOMMENT}> +
+ +
Revision + <{$smarty.const._MD_A_PICO_TH_CONTENTSACTIONS}> + +
+ <{$content.id}> + <{if $cat_id == $smarty.const.SPECIAL_CAT_ID_ALL}> + - + + <{/if}> + + + + <{if $content.wrap_file}> + + <{if strstr($content.filters,"wraps")}>*<{/if}> + +
+ <{$content.wrap_file.mtime_formatted}> + (<{$content.wrap_file.size}> <{$smarty.const._MD_PICO_BYTE}>) + <{/if}> +
+ + + checked="checked"<{/if}>> + + checked="checked"<{/if}>> + + checked="checked"<{/if}>> + + checked="checked"<{/if}>> + + + <{if $content.is_deleted}> +
    + <{foreach from=$content.histories item="history"}> +
  • + <{$history.modified_time_formatted}> + - + <{$history.modifier_uname}> + (<{$history.body_size|number_format}><{$smarty.const._MD_PICO_BYTE}>) +
    + + - + + <{if $history.prev_id}> + - + + <{/if}> +
  • + <{/foreach}> +
+ <{else}> + + <{if ! $content.approval}> + <{$smarty.const._MD_PICO_WAITINGAPPROVAL}> + <{/if}> + + <{if ! $content.visible}> + <{$smarty.const._MD_PICO_INVISIBLE}> + <{/if}> + + <{if $content.locked}> + <{$smarty.const._MD_PICO_ERR_LOCKEDCONTENT}> + <{/if}> + + <{if $content.created_time >= time()}> + <{$smarty.const._MD_PICO_WAITINGRELEASE}> + <{/if}> + + <{if $content.expiring_time < time()}> + <{$smarty.const._MD_PICO_EXPIRED}> + <{/if}> +
+ avatar <{$content.modifier_uname}> +
+ <{$content.modified_time_formatted}> +
+ <{if !$content.is_deleted}> + + + + + + + <{/if}> + + + <{/if}> +
+ <{* ACTION BATCH - DELETE, MOVE, EXPORT *}> + <{$smarty.const._MD_A_PICO_LABEL_CONTENTSRIGHTCHECKED}> + + + + + + +
+ +
diff --git a/html/themes/xcl_default/templates/page/admin_extras.html b/html/themes/xcl_default/templates/page/admin_extras.html new file mode 100644 index 000000000..b0d3c6a6b --- /dev/null +++ b/html/themes/xcl_default/templates/page/admin_extras.html @@ -0,0 +1,112 @@ + +

<{$mod_name|ucfirst}> : <{$smarty.const._MD_A_PICO_H2_EXTRAS}>

+ +
<{$smarty.template}>
+ + +<{* ////— ACTION-CONTROL —\\\\ *}> +
+ +
+ + + + + + <{$pagenav}> +
+ +
+ + + +
+ +
+ + + +
+ <{$gticket_hidden}> + + + + + + + + + + + + + <{foreach from=$extras item="extra"}> + "> + + + + + + + + <{/foreach}> + + + + + + +
+ <{$smarty.const._MD_A_PICO_TH_ID}> + + <{$smarty.const._MD_PICO_TH_SUBJECT}> + + <{$smarty.const._MD_PICO_CREATED}> + + <{$smarty.const._MD_A_PICO_TH_TYPE}> + + <{$smarty.const._MD_A_PICO_TH_SUMMARY}> + + <{$smarty.const._MD_A_PICO_TH_EXTRASACTIONS}> + +
+ <{$extra.id}> + + + <{$extra.content_subject}> + + [<{$smarty.const._EDIT}>] + [<{$smarty.const._MD_A_PICO_LINK_EXTRACT}>] + + <{$extra.created_time_formatted}> + + <{$extra.extra_type_formatted}> + + <{$extra.data_summary_short_raw|escape}> + + + <{$smarty.const._MD_A_PICO_LINK_DETAIL}> +
+ <{$smarty.const._MD_A_PICO_LABEL_EXTRASRIGHTCHECKED}> + + +
+ +
diff --git a/html/themes/xcl_default/templates/page/admin_extras_detail.html b/html/themes/xcl_default/templates/page/admin_extras_detail.html new file mode 100644 index 000000000..6b436ed1c --- /dev/null +++ b/html/themes/xcl_default/templates/page/admin_extras_detail.html @@ -0,0 +1,40 @@ +<{assign var="extra" value=$extras.0}> + +

<{$mod_name|ucfirst}> » <{$smarty.const._MD_A_PICO_H2_EXTRAS}> » <{$extra.id}>

+ +
<{$smarty.template}>
+ +
+
+
<{$smarty.const._MD_A_PICO_TH_ID}>
+
+ <{$extra.id}> +
+
+
+
<{$smarty.const._MD_PICO_TH_SUBJECT}>
+
+ + <{$extra.content_subject}> + +
+
+
+
<{$smarty.const._MD_PICO_CREATED}>
+
+ <{$extra.created_time_formatted}> +
+
+
+
<{$smarty.const._MD_A_PICO_TH_TYPE}>
+
+ <{$extra.extra_type_formatted}> +
+
+
+
<{$smarty.const._MD_A_PICO_TH_SUMMARY}>
+
+ <{$extra.data_summary_raw|escape|nl2br}> +
+
+
diff --git a/html/themes/xcl_default/templates/page/admin_import.html b/html/themes/xcl_default/templates/page/admin_import.html new file mode 100644 index 000000000..269472b3a --- /dev/null +++ b/html/themes/xcl_default/templates/page/admin_import.html @@ -0,0 +1,56 @@ +
<{$smarty.template}>
+ +

<{$mod_name|ucfirst}> » <{$smarty.const._MD_A_PICO_H2_IMPORTFROM}>

+ +
+ <{$smarty.const._MD_A_PICO_HELP_IMPORTFROM}> +
+ +
+
+ <{$gticket_hidden}> + + +

+ +

+
+
+ + +

<{$smarty.const._MD_A_PICO_H2_SYNCALL}>

+ +
+ <{$smarty.const._MD_A_PICO_HELP_SYNCALL}> +
+ +
+
+ <{$gticket_hidden}> +

+ +

+
+
+ + +

<{$smarty.const._MD_A_PICO_H2_CLEARBODYCACHE}>

+ +
+ <{$smarty.const._MD_A_PICO_HELP_CLEARBODYCACHE}> +
+ +
+
+ <{$gticket_hidden}> +

+ +

+
+
diff --git a/html/themes/xcl_default/templates/page/admin_tags.html b/html/themes/xcl_default/templates/page/admin_tags.html new file mode 100644 index 000000000..831964940 --- /dev/null +++ b/html/themes/xcl_default/templates/page/admin_tags.html @@ -0,0 +1,98 @@ +
<{$smarty.template}>
+ +

<{$mod_name|ucfirst}> » <{$smarty.const._MD_A_PICO_H2_TAGS}>

+ +
+ <{$smarty.const._MD_A_PICO_TIPS_TAGS}> +
+ +<{* ////— ACTION-CONTROL —\\\\ *}> +
+ +
+ + + + + +
+ +
+ + + +
+ +
+ + + +
+ <{$gticket_hidden}> + + + + + + + + + + + + + <{foreach from=$tags item="tag"}> + + + + + + + + + <{/foreach}> + + + + + + + +
<{$smarty.const._MD_A_PICO_TH_TAG}><{$smarty.const._MD_PICO_TH_WEIGHT}><{$smarty.const._MD_A_PICO_TH_USED}><{$smarty.const._MD_A_PICO_TH_SUMMARY}><{$smarty.const._MD_PICO_CREATED}>
+ + <{$tag.count}> + <{if !$tag.count == 0}> + <{foreach from=$tag.contents key=k item=content}> + <{$content.id}> + <{/foreach}> + <{else}> + <{$smarty.const._MD_PICO_DELETEDCONTENTS}> + <{/if}> + + <{$tag.created_time|formatTimestamp}> +
+ + + <{$smarty.const._MD_A_PICO_LABEL_EXTRASRIGHTCHECKED}> + +
+ +
+ diff --git a/html/themes/xcl_default/templates/page/block_content.html b/html/themes/xcl_default/templates/page/block_content.html new file mode 100644 index 000000000..e5bf46218 --- /dev/null +++ b/html/themes/xcl_default/templates/page/block_content.html @@ -0,0 +1,6 @@ +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> +<{assign var="b_template" value=$smarty.template}> + +
+ <{$block.content.body}> +
diff --git a/html/themes/xcl_default/templates/page/block_list.html b/html/themes/xcl_default/templates/page/block_list.html new file mode 100644 index 000000000..1e91b5967 --- /dev/null +++ b/html/themes/xcl_default/templates/page/block_list.html @@ -0,0 +1,24 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> + +
+ + + +
diff --git a/html/themes/xcl_default/templates/page/block_menu.html b/html/themes/xcl_default/templates/page/block_menu.html new file mode 100644 index 000000000..60632b890 --- /dev/null +++ b/html/themes/xcl_default/templates/page/block_menu.html @@ -0,0 +1,21 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> + +
+ + <{foreach item=category from=$block.categories}> +
+
+ + <{$category.title}> + +
+
+
+ <{/foreach}> + +
diff --git a/html/themes/xcl_default/templates/page/block_mywaitings.html b/html/themes/xcl_default/templates/page/block_mywaitings.html new file mode 100644 index 000000000..2570728b9 --- /dev/null +++ b/html/themes/xcl_default/templates/page/block_mywaitings.html @@ -0,0 +1,18 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> + +
+ + + +
diff --git a/html/themes/xcl_default/templates/page/block_subcategories.html b/html/themes/xcl_default/templates/page/block_subcategories.html new file mode 100644 index 000000000..205df7bef --- /dev/null +++ b/html/themes/xcl_default/templates/page/block_subcategories.html @@ -0,0 +1,16 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> + +
+ + + +
diff --git a/html/themes/xcl_default/templates/page/block_tags.html b/html/themes/xcl_default/templates/page/block_tags.html new file mode 100644 index 000000000..14ecd8cf1 --- /dev/null +++ b/html/themes/xcl_default/templates/page/block_tags.html @@ -0,0 +1,14 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> + +
+ + + +
diff --git a/html/themes/xcl_default/templates/page/blockedit_content.html b/html/themes/xcl_default/templates/page/blockedit_content.html new file mode 100644 index 000000000..d74ffee51 --- /dev/null +++ b/html/themes/xcl_default/templates/page/blockedit_content.html @@ -0,0 +1,25 @@ + + +

+ : + + <{$smarty.const._EDIT}> +

+ +

+ : + + <{$smarty.const._EDIT}> +

+ +

+ <{$smarty.const._MB_PICO_PROCESSBODY}>: + + checked="checked"<{/if}>> +   + + checked="checked"<{/if}>> +

+ diff --git a/html/themes/xcl_default/templates/page/blockedit_list.html b/html/themes/xcl_default/templates/page/blockedit_list.html new file mode 100644 index 000000000..2b7f8f4bf --- /dev/null +++ b/html/themes/xcl_default/templates/page/blockedit_list.html @@ -0,0 +1,35 @@ + + +

+ : + +

<{$smarty.const._MB_PICO_CATLIMITDSC}>
+

+ +

+ : + +

+ +

+ : + +

+ +

+ : + + <{$smarty.const._EDIT}> +

+ +

+ <{$smarty.const._MB_PICO_DISPLAYBODY}>: + + checked="checked"<{/if}>> +   + + checked="checked"<{/if}>> +

+ diff --git a/html/themes/xcl_default/templates/page/blockedit_menu.html b/html/themes/xcl_default/templates/page/blockedit_menu.html new file mode 100644 index 000000000..3e9e34059 --- /dev/null +++ b/html/themes/xcl_default/templates/page/blockedit_menu.html @@ -0,0 +1,13 @@ + + +

+ : + <{$smarty.const._MB_PICO_CATLIMITDSC}> +

+ +

+ : + + <{$smarty.const._EDIT}> +

+ diff --git a/html/themes/xcl_default/templates/page/blockedit_mywaitings.html b/html/themes/xcl_default/templates/page/blockedit_mywaitings.html new file mode 100644 index 000000000..b471bf8c5 --- /dev/null +++ b/html/themes/xcl_default/templates/page/blockedit_mywaitings.html @@ -0,0 +1,8 @@ + + +

+ : + + <{$smarty.const._EDIT}> +

+ diff --git a/html/themes/xcl_default/templates/page/blockedit_subcategories.html b/html/themes/xcl_default/templates/page/blockedit_subcategories.html new file mode 100644 index 000000000..f16ad34bd --- /dev/null +++ b/html/themes/xcl_default/templates/page/blockedit_subcategories.html @@ -0,0 +1,13 @@ + + +

+ + <{$smarty.const._MB_PICO_PARENTCATDSC}> +

+ +

+ : + + <{$smarty.const._EDIT}> +

+ diff --git a/html/themes/xcl_default/templates/page/blockedit_tags.html b/html/themes/xcl_default/templates/page/blockedit_tags.html new file mode 100644 index 000000000..4a26ba97d --- /dev/null +++ b/html/themes/xcl_default/templates/page/blockedit_tags.html @@ -0,0 +1,27 @@ + + +

+ : + +

+ +

+ : + +

+ +

+ : + +

+ +

+ : + + <{$smarty.const._EDIT}> +

+ diff --git a/html/themes/xcl_default/templates/page/inc_breadcrumbs.html b/html/themes/xcl_default/templates/page/inc_breadcrumbs.html new file mode 100644 index 000000000..27628d556 --- /dev/null +++ b/html/themes/xcl_default/templates/page/inc_breadcrumbs.html @@ -0,0 +1,21 @@ + diff --git a/html/themes/xcl_default/templates/page/independent_print.html b/html/themes/xcl_default/templates/page/independent_print.html new file mode 100644 index 000000000..f059e6a4e --- /dev/null +++ b/html/themes/xcl_default/templates/page/independent_print.html @@ -0,0 +1,13 @@ + + + + + <{$xoops_config.sitename|escape}> - <{$content.subject}> + <{$xoops_module_header}> + + +
+ <{$content.body}> +
+ + diff --git a/html/themes/xcl_default/templates/page/independent_rss20.html b/html/themes/xcl_default/templates/page/independent_rss20.html new file mode 100644 index 000000000..e10c6fe5f --- /dev/null +++ b/html/themes/xcl_default/templates/page/independent_rss20.html @@ -0,0 +1,26 @@ + + + + <{$xoops_config.sitename|escape}> - <{$mymodname}> + <{$mod_url}>/<{$category.link}> + <{$category.desc}> + <{$contents[0].modified_time4rss}> + https://backend.userland.com/rss/ + XOOPScube - pico + <{$category.title}> + <{$xoops_config.adminmail|escape}> + <{$smarty.const._LANGCODE}> + + <{foreach item="content" from=$contents}> + + <{$content.subject}> + <{$mod_url}>/<{$content.link}> + <{$content.body4rss}> + <{$mod_url}>/<{$content.link}> + <{$content.modified_time4rss}> + <{$content.cat_title}> + + <{/foreach}> + + + diff --git a/html/themes/xcl_default/templates/page/independent_single_content.html b/html/themes/xcl_default/templates/page/independent_single_content.html new file mode 100644 index 000000000..bb8ced40b --- /dev/null +++ b/html/themes/xcl_default/templates/page/independent_single_content.html @@ -0,0 +1,13 @@ + + + + + <{$xoops_config.sitename|escape}> - <{$content.subject}> + <{$xoops_module_header}> + + +
+ <{$content.body}> +
+ + diff --git a/html/themes/xcl_default/templates/page/main.css b/html/themes/xcl_default/templates/page/main.css new file mode 100644 index 000000000..b3ee39eaf --- /dev/null +++ b/html/themes/xcl_default/templates/page/main.css @@ -0,0 +1,39 @@ +/* ToDo */ +.pico_container .pico_menu { +} +ul.list-group{ + /*border-left: 1px solid #ddd;*/ + list-style-type: none; + position: relative; + margin:auto; + padding: 10px; + +} +.pico_history_diff { + overflow-x: auto; + white-space: pre-wrap; + word-wrap: break-word; + border: var( --border, 1px solid #060E18B3); /* if --border is not defined, fall-back */ + padding: 1em; +} +.pico_history_diff del { + color: var(--del-color, #c62828); +} +.pico_history_diff ins { + color: var(--ins-color, #388e3c); + text-decoration: none; +} + +/* Apply Level To Heading (Category Name) */ +li.list-group-item div.level1>h4 {margin-left:20px;} +li.list-group-item div.level2>h4 {margin-left:20px;} +li.list-group-item div.level3>h4 {margin-left:30px;} +li.list-group-item div.level4>h4 {margin-left:40px;} +li.list-group-item div.level5>h4 {margin-left:50px;} + +div.category-collapse { + margin-left:10px; + background-color: var(--color3); + border-radius: var(--border-radius); + padding:1em 1.5em +} diff --git a/html/themes/xcl_default/templates/page/main_category_form.html b/html/themes/xcl_default/templates/page/main_category_form.html new file mode 100644 index 000000000..e532154df --- /dev/null +++ b/html/themes/xcl_default/templates/page/main_category_form.html @@ -0,0 +1,117 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> + +<{include file="db:`$mydirname`_inc_breadcrumbs.html"}> + + + +
+ <{$gticket_hidden}> + +
+ +
+

<{$formtitle}>

+
+ + + + <{if $mod_config.use_wraps_mode && $category.id !=0}> + + <{/if}> + + + + + + + + + + <{* ----- CATEGORY OPTIONS *}> +
<{$smarty.const._MD_PICO_TH_CATEGORYOPTIONS}>
+ + + +
style="display:none;"<{/if}>> + + + <{* CONSTANT CUSTOM HTML: trust_path/module/pico/language/[lang]/main.php *}> + <{* -- DEFAULT (option name):(option value) -- *}> + <{$smarty.const._MD_PICO_HOWTO_OVERRIDEOPTIONS}> + <{$category.option_desc}> +
+ <{* ----- /CATEGORY OPTIONS *}> + +
+
+ <{if $page == 'categorymanager' && isset($children_count) == 0}> +
+ +
+ <{/if}> +
+ +
+
+
+ +
+ +
+ + + + + diff --git a/html/themes/xcl_default/templates/page/main_content_form.html b/html/themes/xcl_default/templates/page/main_content_form.html new file mode 100644 index 000000000..a52246f36 --- /dev/null +++ b/html/themes/xcl_default/templates/page/main_content_form.html @@ -0,0 +1,590 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> + + +<{include file="db:`$mydirname`_inc_breadcrumbs.html"}> + + +
+ + <{$gticket_hidden}> + + + + +
+ +
+

<{$formtitle}> <{$content.subject}>

+ + <{if !$content.approval}> + + <{$smarty.const._MD_PICO_WAITINGAPPROVAL}> + + <{/if}> + + <{if !$content.visible}> + + invisible + <{$smarty.const._MD_PICO_INVISIBLE}> + + <{/if}> + + <{if $content.created_time >= time()}> + + <{$smarty.const._MD_PICO_WAITINGRELEASE}> + + <{/if}> + + <{if $content.expiring_time < time()}> + + <{$smarty.const._MD_PICO_EXPIRED}> + + <{/if}> + +
+ + <{* -------Article subject of waiting content *}> + <{if $content.subject_waiting && $page !='makecontent'}> +

+ <{$smarty.const._MD_PICO_TH_SUBJECT_WAITING}> +

+
+
<{$content.subject_waiting|htmlspecialchars_decode}>
+
+ <{/if}> + <{* ------- Article body of waiting content *}> + <{if $content.body_waiting && $page !='makecontent'}> +

+ <{$smarty.const._MD_PICO_TH_BODY_WAITING}> +

+
+
<{$content.body_waiting|htmlspecialchars_decode|nl2br}>
+
+ <{/if}> + + <{* ------- subject *}> + + + <{* ------- category *}> + + + + + <{* ------- vpath *}> + + <{if $mod_config.use_wraps_mode || strstr($content.filters,"wraps")}> + + + <{if $xoops_isadmin}> + + <{/if}> + <{/if}> + + <{* ------- image upload *}> + + + +<{* ------- extra fields sample (TEXTBOX) ------- +
+ + + +

gender

+

+ checked="checked"<{/if}>> + + checked="checked"<{/if}>> + +

+ + + + <{assign var="countries" value=","|explode:"---,USA,UK,France,Japan"}> + + + + + + + +
+------- extra fields ------- *}> + + + <{* ------- html header *}> + <{if $mod_config.allow_each_htmlheader || $content.htmlheader}> + + + + + + <{if ! $mod_config.allow_each_htmlheader}> + <{$smarty.const._MD_PICO_LABEL_HTMLHEADERCONFIGALERT}> + <{/if}> +
+ + + <{* ------- html header reference for waiting content *}> + <{if $content.htmlheader_waiting && $page !='makecontent'}> +

<{$smarty.const._MD_PICO_TH_HTMLHEADER_WAITING}>

+
<{$content.htmlheader_waiting|nl2br}>
+ <{/if}> + + <{/if}> + + + <{* ------- BODY WYSIWYG *}> + <{if $smarty.const.LEGACY_BASE_VERSION|version_compare:'2.2':'>='}> + <{assign var=xcl22 value=1}> + <{/if}> + + + + <{if $body_wysiwyg && !$content.filter_infos.eval.enabled}> + <{$body_wysiwyg}> + <{else}> + + <{if $xcl22}> + + <{assign var=cssClass value=""}> + + <{if $content.filter_infos._editor_info.editor}> + <{if !$content.subject && $content.filter_infos._editor_info.useHtmlAtNew}> + <{assign var=editor value=html}> + <{else}> + <{assign var=editor value=$content.filter_infos._editor_info.editor}> + <{/if}> + <{if $content.filter_infos._editor_info.cssClass}> + <{assign var=cssClass value=" "|cat:$content.filter_infos._editor_info.cssClass}> + <{/if}> + <{else}> + <{if $content.filter_infos.eval.enabled}> + <{assign var=editor value=none}> + <{elseif !$content.subject || !$content.filter_infos.xcode.enabled}> + <{assign var=editor value=html}> + <{else}> + <{assign var=editor value=bbcode}> + <{/if}> + <{/if}> + + <{* ---------- CONTENT WAITING else NEW CONTENT *}> + <{if $content.body_waiting && $page !='makecontent'}> + <{xoops_dhtmltarea class="$editor$cssClass" name=body cols=60 rows=15 value=$content.body_waiting|htmlspecialchars_decode:$smarty.const.ENT_QUOTES editor=$editor}> + <{else}> + <{xoops_dhtmltarea class="$editor$cssClass" name=body cols=60 rows=15 value=$content.body|htmlspecialchars_decode:$smarty.const.ENT_QUOTES editor=$editor}> + <{/if}> + + <{if $legacy_module == 'legacy'}> + <{assign var=editor value=bbcode}> + <{/if}> + + <{else}> + + + <{xoopsdhtmltarea name="body" cols="60" rows="15" value=$content.body pre_style="display:none;" post_style="display:none;"}> + <{/if}> + + <{/if}> + + <{* ------- ORDER / WEIGHT *}> + + + <{* ------- TAGS *}> + + + <{* ------- CONTENT OPTIONS *}> +
+ +
+ + + + <{* ------- CONTENT FILTERS - CODE SYNTAX *}> +
+ +
+ + + + <{* ------- CONTENT TIME *}> + +
+ +
+ + + + + <{* ------- CONTENT HISTORY *}> + <{if $page !='makecontent'}> +
+ +
+ + + + <{/if}> + + +
+
+ <{if $page == 'contentmanager' && $category.can_delete}> + + <{/if}> + + +<{* ----- capture controls for modal preview *}> +<{capture name="controllers"}> + + + <{if !$content.approval && $category.isadminormod && $page !='makecontent'}> + + <{elseif $page == 'contentmanager'}> + + <{/if}> +<{/capture}> + + <{if trim($smarty.capture.controllers)}> + <{$smarty.capture.controllers}> + <{/if}> +
+
+
+ + +<{if isset($preview)}><{$gticket_hidden}> + +
+
+ +

<{$smarty.const._PREVIEW}>

+
+
+ <{foreach from=$preview.errors item="error_message"}> +

+ <{$error_message}> +

+ <{/foreach}> + + <{$preview.body}> +
+
+
+ Cancel + <{if trim($smarty.capture.controllers)}> + <{$smarty.capture.controllers}> + <{/if}> +
+
+
+
+<{/if}> + + +
+<{* ------- Start Form Validation JavaScript /*}> + +<{* ------- End Form Validation JavaScript *}> diff --git a/html/themes/xcl_default/templates/page/main_diff_history.html b/html/themes/xcl_default/templates/page/main_diff_history.html new file mode 100644 index 000000000..2ead8b2c4 --- /dev/null +++ b/html/themes/xcl_default/templates/page/main_diff_history.html @@ -0,0 +1,26 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
<{$smarty.template}>
<{/if}> + +<{include file="db:`$mydirname`_inc_breadcrumbs.html"}> + +
+ +
<{$diff_str}>
+ <{foreach from=$content_histories item="history"}> +
  • + <{$history.modified_time_formatted}> + - + <{$history.modifier_uname}> + (<{$history.body_size|number_format}><{$smarty.const._MD_PICO_BYTE}>) + <{$smarty.const._MD_PICO_REFERIT}> + - + <{$smarty.const._MD_PICO_DOWNLOADIT}> + - + <{$smarty.const._MD_PICO_DIFF2NOW}> + <{if $history.prev_id}> + - + <{$smarty.const._MD_PICO_DIFFFROMPREV}> + <{/if}> +
  • + <{/foreach}> +
    diff --git a/html/themes/xcl_default/templates/page/main_list_contents.html b/html/themes/xcl_default/templates/page/main_list_contents.html new file mode 100644 index 000000000..805d28fd2 --- /dev/null +++ b/html/themes/xcl_default/templates/page/main_list_contents.html @@ -0,0 +1,197 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
    <{$smarty.template}>
    <{/if}> + +<{include file="db:`$mydirname`_inc_breadcrumbs.html"}> + + +<{* ------- Module Top Message - Edit Module's preferences *}> +<{if $category.id == 0 && $mod_config.top_message != null}> +
    + <{$mod_config.top_message}> +
    +<{/if}> + + +<{* ------- Category Top *}> +
    + +
    +
    +

    + + category + <{$category.title}> + + + <{if $mod_config.show_rss}> + + rss + + <{/if}> +

    + <{* ------- Activity Overview - Top Category *}> +

    + + folder + <{$smarty.const._MD_PICO_SUBCATEGORIES_TOTAL}> + <{$category.redundants.subcategories_total|default:''}> + + file + <{$smarty.const._MD_PICO_CONTENTS_TOTAL}> + <{$category.redundants.contents_total}> + +

    + <{* ------- /Activity Overview *}> +
    + +
    + <{$category.desc}> +
    + +
    + + + <{* ----- List Top Categories ----- *}> + + <{* ----- Subcategories ----- *}> + <{if isset($subcategories)}> + <{foreach from=$subcategories item="subcategory"}> +
    +
    +

    + + category + <{$subcategory.title}> + + + <{* ----- Activity Overview - Subcategories ----- *}> + <{* ----- if $category.isadminormod *}> <{* REMOVE SMARTY COMMENT TO MAKE ACTIVITY PRIVATE *}> +
    + + folder + <{* ----- <{$smarty.const._MD_PICO_SUBCATEGORIES_TOTAL}> ----- *}> + <{$subcategory.redundants.subcategories_total > 0}> + + + + file + <{* ----- <{$smarty.const._MD_PICO_CONTENTS_TOTAL}> ----- *}> + <{$subcategory.redundants.contents_total}> + + + <{if $mod_config.show_rss}> + + rss + + <{/if}> +
    + <{* ----- /if *}> <{* REMOVE SMARTY COMMENT TO MAKE ACTIVITY PRIVATE *}> + <{* ----- /Activity Overview - Subcategories ----- *}> +

    +
    + +
    + <{$subcategory.desc}> +
    + +
    + <{/foreach}> + <{/if}> + <{* ----- /Subcategories ----- *}> + + + <{* ----- Content ----- *}> + <{if $contents}> + + <{foreach from=$contents item="content"}> + + <{/foreach}> + + <{/if}> + <{* ----- /Content ----- *}> + + <{if $xoops_isuser}> + + <{/if}> + +
    + +<{* ----- NOTIFICATION ----- *}> +<{if $xoops_isuser}> +<{include file='db:system_notification_select.html'}> +<{/if}> diff --git a/html/themes/xcl_default/templates/page/main_menu.html b/html/themes/xcl_default/templates/page/main_menu.html new file mode 100644 index 000000000..152b27c6b --- /dev/null +++ b/html/themes/xcl_default/templates/page/main_menu.html @@ -0,0 +1,171 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
    <{$smarty.template}>
    <{/if}> + + + + +<{include file="db:`$mydirname`_inc_breadcrumbs.html"}> + + +
    + +<{* ------- Module Top Message - Edit Module's preferences *}> +<{if $category.id == 0 && $mod_config.top_message !=null}> +
    + + <{$mod_config.top_message}> + + <{if $category.isadminormod}> + + <{/if}> +
    +<{/if}> + + + +<{* ------- start categories list *}> + +
    + +<{foreach item=category from=$categories}> + + +
    + + + category + <{$category.title}> + + +

    + <{* ------- Activity Overview *}> + +

    + folder + <{$smarty.const._MD_PICO_SUBCATEGORIES_TOTAL}> <{$category.redundants.subcategories_total}> + + file + <{$smarty.const._MD_PICO_CONTENTS_TOTAL}> + <{$category.redundants.contents_total}> +

    + + <{* ------- Action controllers *}> + + <{if $category.can_post}> + + file new + + <{/if}> + + <{if $category.can_makesubcategory}> + + New Category + + <{/if}> + + <{if $category.isadminormod}> + + edit category + + <{/if}> + + <{if $category.isadminormod && $category.private_contents_counter}> + + category permissions + + <{/if}> + + <{if $xoops_isadmin}> + + category permissions + + <{/if}> + + + <{if $mod_config.show_rss}> + + + rss + + + <{/if}> +

    + +<{foreach item=content from=$category.contents}> +

    + + file <{$content.subject}> + + + <{if $category.isadminormod && ! $content.approval}> + (<{$smarty.const._MD_PICO_WAITINGUPDATE}>) + <{/if}> + + <{if $category.can_edit}> + + file-edit + + <{/if}> +

    + +<{foreachelse}> +

    <{$smarty.const._MD_PICO_ERR_NOCONTENTMATCHED}>

    +<{/foreach}> + +
    + +<{/foreach}> + +
    + + +<{* /////// NOTIFICATION \\\\\\\ *}> +<{if $xoops_isadmin}> +<{include file='db:system_notification_select.html'}> +<{/if}> diff --git a/html/themes/xcl_default/templates/page/main_query_contents.html b/html/themes/xcl_default/templates/page/main_query_contents.html new file mode 100644 index 000000000..e60a76102 --- /dev/null +++ b/html/themes/xcl_default/templates/page/main_query_contents.html @@ -0,0 +1,42 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
    <{$smarty.template}>
    <{/if}> + +<{include file="db:`$mydirname`_inc_breadcrumbs.html"}> + +
    + + + + + + +

    <{$query.title}>

    + +

    <{$query.desc}>

    + + +<{if $contents}> +
      +<{foreach from=$contents item="content"}> +
    • + <{$content.subject}> + <{* <{$content.body}> *}> +
    • +<{/foreach}> +
    +<{else}> + <{$smarty.const._MD_PICO_ERR_NOCONTENTMATCHED}> +<{/if}> + +
    + + <{* /////// NOTIFICATION \\\\\\\ *}> + + <{include file='db:system_notification_select.html'}> + +
    + diff --git a/html/themes/xcl_default/templates/page/main_view_content.html b/html/themes/xcl_default/templates/page/main_view_content.html new file mode 100644 index 000000000..52c211392 --- /dev/null +++ b/html/themes/xcl_default/templates/page/main_view_content.html @@ -0,0 +1,234 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
    <{$smarty.template}>
    <{/if}> + +<{if $mod_config.show_breadcrumbs}> +<{include file="db:`$mydirname`_inc_breadcrumbs.html"}> +<{/if}> + +
    + +
    + <{* REFER TO MODULE PREFERENCES + Extra images generated from the upload file + default images size prefix : image_0_ (larger), image_1_ (small) image_2_ (middle) + *}> + <{if $content.ef.image}> + <{$content.subject}> + <{/if}> + +

    + <{if !$content.approval}> + + <{$smarty.const._MD_PICO_WAITINGAPPROVAL}> + + <{/if}> + + <{if !$content.visible}> + + invisible + <{$smarty.const._MD_PICO_INVISIBLE}> + + <{/if}> + + <{if $content.created_time >= time()}> + + <{$smarty.const._MD_PICO_WAITINGRELEASE}> + + <{/if}> + + <{if $content.expiring_time < time()}> + + <{$smarty.const._MD_PICO_EXPIRED}> + + <{/if}> + + <{$content.subject}> +

    + + <{* ----- Activity Overview *}> +
    + + <{* if $category.isadminormod *}> <{* REMOVE THE SMARTY COMMENT '*' AND SPACES TO MAKE ACTIVITY PRIVATE *}> +
    + + user + <{$content.poster_uname}> + datetime + <{$content.created_time_formatted}> + <{if $content.modified_time > $content.created_time}> + update + <{$content.modified_time_formatted}> + <{/if}> + views + <{$content.viewed}> + +
    + <{* /if *}> <{* REMOVE THE SMARTY COMMENT '*' AND SPACES TO MAKE ACTIVITY PRIVATE *}> + + + <{* ------- ADMIN CONTROL *}> +
    + <{if $content.can_edit}> + edit + <{/if}> + + <{if $xoops_isadmin}> + manage + <{/if}> +
    + + + +
    <{* /action-control *}> + +
    + + <{* ------- WATING OVERVIEW *}> + + <{if $category.isadminormod }> +
    + + <{* ------- subject reference for a waiting content *}> + + <{if $content.subject_waiting && $page !='makecontent'}> +

    <{$smarty.const._MD_PICO_TH_SUBJECT_WAITING}>

    +
    +

    <{$content.subject_waiting|htmlspecialchars_decode}>

    +
    + <{/if}> + + <{* ------- body reference for a waiting content *}> + + <{if $content.body_waiting && $page !='makecontent'}> +

    <{$smarty.const._MD_PICO_TH_BODY_WAITING}>

    +
    +
    <{$content.body_waiting|htmlspecialchars_decode|nl2br}>
    +
    + <{/if}> + +
    + <{/if}> + + + <{* ------- CONTENT *}> + +
    + <{$content.body}> +
    + + + <{* ----- VOTE AND TAGS *}> + +
    + +
    + + <{if $mod_config.use_vote && $content.id}> +
    + <{if $content.can_vote}> +
    + + + + + <{* icon smiley happy = posticon3.svg or thumb up = posticon5.svg *}> + thumb-up + + <{* post-vote-stats *}> + <{$content.votes_count}> +
    + <{* ------- REMOVE SMARTY COMMENT TO ALLOW NEGATIVE VOTE +
    + + + + +
    + ------- REMOVE SMARTY COMMENT TO ALLOW NEGATIVE VOTE *}> + <{/if}> +
    + <{/if}> + + <{* MODULE OPTIONS - print, share *}> +
    + <{if $mod_config.show_printicon}> + + print + + <{/if}> + + <{if $mod_config.show_tellafriend && $content.tellafriend_uri}> + + + + <{/if}> +
    + +
    + + <{* ----- TAGS *}> + + <{if $content.tags_array}> + + <{/if}> + +
    + +
    + + +<{* /////// Page navigation \\\\\\\ *}> + +<{if $mod_config.show_pagenavi && $content.id}> + + + +<{/if}> + + +<{* /////// D3 COMMENT-INTEGRATION \\\\\\\ *}> +<{if $mod_config.comment_dirname && $mod_config.comment_forum_id && $content.allow_comment}> +<{d3comment mydirname=$mydirname class="PicoD3commentContent"}> +<{/if}> + +<{* /////// NOTIFICATION \\\\\\\ *}> +<{include file='db:system_notification_select.html'}> diff --git a/html/themes/xcl_default/templates/page/main_viewhistory.html b/html/themes/xcl_default/templates/page/main_viewhistory.html new file mode 100644 index 000000000..2546e3019 --- /dev/null +++ b/html/themes/xcl_default/templates/page/main_viewhistory.html @@ -0,0 +1,26 @@ +<{* Dev-Mode Toggle *}> +<{if $xoops_isadmin}>
    <{$smarty.template}>
    <{/if}> + +<{include file="db:`$mydirname`_inc_breadcrumbs.html"}> + +
    + +
    <{$history_body_raw|escape|nl2br}>
    + <{foreach from=$content_histories item="history"}> +
  • + <{$history.modified_time_formatted}> + - + <{$history.modifier_uname}> + (<{$history.body_size|number_format}><{$smarty.const._MD_PICO_BYTE}>) + <{$smarty.const._MD_PICO_REFERIT}> + - + <{$smarty.const._MD_PICO_DOWNLOADIT}> + - + <{$smarty.const._MD_PICO_DIFF2NOW}> + <{if $history.prev_id}> + - + <{$smarty.const._MD_PICO_DIFFFROMPREV}> + <{/if}> +
  • + <{/foreach}> +
    diff --git a/html/themes/xcl_default/templates/pico/main_category_form.html b/html/themes/xcl_default/templates/pico/main_category_form.html index e532154df..673499d54 100644 --- a/html/themes/xcl_default/templates/pico/main_category_form.html +++ b/html/themes/xcl_default/templates/pico/main_category_form.html @@ -41,7 +41,7 @@

    <{$formtitle}>