Skip to content

Commit

Permalink
Render + default theme
Browse files Browse the repository at this point in the history
  • Loading branch information
gigamaster committed May 10, 2024
1 parent f6ea0a8 commit 90f1f15
Show file tree
Hide file tree
Showing 82 changed files with 3,331 additions and 508 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 0 additions & 38 deletions html/modules/legacy/admin/blocks/AdminBlockServer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,6 @@ public function execute()
$langMgr->loadModinfoMessageCatalog('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
Expand Down Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
});
});
</script>

<div class="ui-block-online-stats-info">
<a id="open-online" href="#">
<div class="ui-block-online-stats-title">
Expand All @@ -80,6 +81,7 @@
<img class="svg" src="<{'icons/icon-user-online.svg'|theme}>" width="1em" height="1em" alt="user-online"> <{$smarty.const._MB_USER_MORE}></div>
</a>
</div>

<div class="display:none" id="dialog-online" title="<{$smarty.const._WHOSONLINE}>">
<div id="view-online-users"></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion html/modules/legacy/admin/templates/module_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2><{$smarty.const._AD_LEGACY_LANG_MODUPDATE_CONF}></h2>
<{xoops_token form=$actionForm}>
<{xoops_input type=hidden name=dirname value=$module->get('dirname')}>

<table class="outer">
<table class="outer module-update">
<thead>
<tr>
<td class="head ui-card-block-image" width="240" colspan="2">
Expand Down
17 changes: 2 additions & 15 deletions html/modules/legacy/admin/theme/stylesheets/ui-form.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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,
Expand All @@ -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;
}
Expand Down Expand Up @@ -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%
}
Expand Down
5 changes: 4 additions & 1 deletion html/modules/legacy/admin/theme/stylesheets/ui-media.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
.table-responsive > .table-bordered {
border : 0;
}

table.module-update {
max-width: 65vw;
margin: auto;
}
nav#help-menu {
position :sticky;
}
Expand Down
4 changes: 1 addition & 3 deletions html/modules/legacy/class/Legacy_HeaderScript.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function createOnloadFunctionTag()
{
$html = null;
if (count($this->_mOnloadScript)>0||count($this->_mScript)>0) {
$html = "<script crossorigin=\"anonymous\" aria-label=\"script\">\n";
$html = "<script crossorigin=\"anonymous\">\n";
if ('google' == $this->_mType) {
$html .= "google.setOnLoadCallback(function() {\n";
}
Expand Down Expand Up @@ -370,8 +370,6 @@ protected function _getRenderConfig(string $key)
$handler =& xoops_gethandler('config');
$configArr =& $handler->getConfigsByDirname('legacyRender');

// @todo @gigamaster PHP74 Null coalesce operator - No need to explicitly initialize the variable.
// return $configArr[$key];
return $configArr[$key] ?? '';
}
}
2 changes: 1 addition & 1 deletion html/modules/legacy/kernel/Legacy_Controller.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,11 @@ public function _processBlock()
// @gigamaster added 'getTemplate' to link block in front theme
$context->mAttributes['legacy_BlockShowFlags'][$blockProcedure->getEntryIndex()] = true;
$context->mAttributes['legacy_BlockContents'][$blockProcedure->getEntryIndex()][] = [
'id' => $blockProcedure->getId(),
'name' => $blockProcedure->getName(),
'title' => $blockProcedure->getTitle(),
'content' => $renderBuffer->getResult(),
'weight' => $blockProcedure->getWeight(),
'id' => $blockProcedure->getId(),
'template' => $blockProcedure->getTemplate(),
];
} else {
Expand Down
4 changes: 2 additions & 2 deletions html/modules/legacy/language/english/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
define( '_WAP_LICENSE' , 'Open Source Licenses');
define( '_WAP_LICENSE_DSC' , "Open-source licensed software is usually available for free, but this is not always the case. XCL's source code is designed to be publicly available. Anyone can view, modify and distribute the code as they see fit.
Modules and themes are released under the BSD, GPL and MIT licenses.<br>
The BSD license of XCube allows proprietary use and permits incorporation of the software into proprietary products.");
The BSD license of the core XCube allows proprietary use and permits incorporation of the software into proprietary products.");

define( '_WAP_BUNDLE' , 'XCL Bundle Package');
define( '_WAP_BUNDLE_DSC' , "XCL is a general purpose open source web application maintained on GitHub.
Expand Down Expand Up @@ -102,7 +102,7 @@
define( '_WARNINWRITEABLE' , "<span>WARNING: <b>Mainfile</b> is writable !<br><span class='alert-install'>{0}</span><br> Change this file permissions for security reasons: Unix (0444), Windows (read-only)</span>");
define( '_WARNPHPENV' , 'WARNING: php.ini parameter "%s" is set to "%s". %s');
define( '_WARNSECURITY' , '(It may cause a security problem)');
define( '_WARN_INSTALL_TIP' , 'Activate the Preload — For development purposes only!<br>The preload allows to keep mainfile unchanged and install directory.<br>Remember to chomd and delete install to prevent any security problem.');
define( '_WARN_INSTALL_TIP' , 'Activate the Preload — For development purposes only!<br>The preload allows you to keep the <code>mainfile</code> unchanged and <code>install</code> directory.<br>Remember to chomd <code>mainfile</code> and <strong>delet</strong> <code>install</code> to prevent any security problem.');

//%%%%%% File Name themeuserpost.php %%%%%
define( '_PROFILE' , 'Profile');
Expand Down
10 changes: 5 additions & 5 deletions html/modules/legacy/language/english/help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ <h6>Block Default Settings</h6>
<h6>Block Actions</h6>
<p>Frontend themes usually include a component with block actions. Webmasters can access the menu next to the Block Title to manage a block.</p>

<div class="tips">It is noteworthy that all blocks can also be managed in the "Components" module, although the user interface is slightly different.</div>
<div class="tips">It is worth noting that all blocks can also be managed in the Components module, although the user interface is slightly different.</div>

<h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<ul>
Expand All @@ -303,9 +303,9 @@ <h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<h3>Comment Management</h3>

<p>The Comment management is a built-in feature.
It provides a textarea comment box where users can generate their own comments and leave them on a specific piece of content.</p>
You can follow the last comments of your articles on your Dashboard.
In addition to having a quick view, you can also give Reply to the comment as well as moderate its status as a public, pending and delete it as spam.
It provides a comment box where users can generate their own comments on a specific piece of content.
You can follow the latest comments on your articles from the Dashboard.
In addition to having a quick overview, you can also reply to the comment as well as moderate its status as public, pending or delete it as spam.</p>

<div class="tips">D3 modules comments are easily integrated (module preferences) and managed through D3Forum.</div>

Expand Down Expand Up @@ -339,7 +339,7 @@ <h3>Language</h3>
<p>The built-in language manager aims to facilitate the localization process and branding customization.
It leverages the adaptability of modular architecture to align UI elements with a brand's tone and voice.

<h3>language and character set</h3>
<h3>Character set</h3>

<p>UTF-8 Unicode is the common character encoding method and the default character set for distributed languages, including english, fr_utf8, ja_utf8, pt_utf8, ru_utf8.

Expand Down
10 changes: 5 additions & 5 deletions html/modules/legacy/language/fr_utf8/help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ <h6>Block Default Settings</h6>
<h6>Block Actions</h6>
<p>Frontend themes usually include a component with block actions. Webmasters can access the menu next to the Block Title to manage a block.</p>

<div class="tips">It is noteworthy that all blocks can also be managed in the "Components" module, although the user interface is slightly different.</div>
<div class="tips">It is worth noting that all blocks can also be managed in the Components module, although the user interface is slightly different.</div>

<h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<ul>
Expand All @@ -302,9 +302,9 @@ <h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<h3>Comment Management</h3>

<p>The Comment management is a built-in feature.
It provides a textarea comment box where users can generate their own comments and leave them on a specific piece of content.</p>
You can follow the last comments of your articles on your Dashboard.
In addition to having a quick view, you can also give Reply to the comment as well as moderate its status as a public, pending and delete it as spam.
It provides a comment box where users can generate their own comments on a specific piece of content.
You can follow the latest comments on your articles from the Dashboard
In addition to having a quick overview, you can also reply to the comment as well as moderate its status as public, pending or delete it as spam.</p>

<div class="tips">D3 modules comments are easily integrated (module preferences) and managed through D3Forum.</div>

Expand Down Expand Up @@ -338,7 +338,7 @@ <h3>Language</h3>
<p>The built-in language manager aims to facilitate the localization process and branding customization.
It leverages the adaptability of modular architecture to align UI elements with a brand's tone and voice.

<h3>language and character set</h3>
<h3>Character set</h3>

<p>UTF-8 Unicode is the common character encoding method and the default character set for distributed languages, including english, fr_utf8, ja_utf8, pt_utf8, ru_utf8.

Expand Down
10 changes: 5 additions & 5 deletions html/modules/legacy/language/ja_utf8/help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ <h6>Block Default Settings</h6>
<h6>Block Actions</h6>
<p>Frontend themes usually include a component with block actions. Webmasters can access the menu next to the Block Title to manage a block.</p>

<div class="tips">It is noteworthy that all blocks can also be managed in the "Components" module, although the user interface is slightly different.</div>
<div class="tips">It is worth noting that all blocks can also be managed in the Components module, although the user interface is slightly different.</div>

<h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<ul>
Expand All @@ -302,9 +302,9 @@ <h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<h3>Comment Management</h3>

<p>The Comment management is a built-in feature.
It provides a textarea comment box where users can generate their own comments and leave them on a specific piece of content.</p>
You can follow the last comments of your articles on your Dashboard.
In addition to having a quick view, you can also give Reply to the comment as well as moderate its status as a public, pending and delete it as spam.
It provides a comment box where users can generate their own comments on a specific piece of content.
You can follow the latest comments on your articles from the Dashboard.
In addition to having a quick overview, you can also reply to the comment as well as moderate its status as public, pending or delete it as spam.</p>

<div class="tips">D3 modules comments are easily integrated (module preferences) and managed through D3Forum.</div>

Expand Down Expand Up @@ -338,7 +338,7 @@ <h3>Language</h3>
<p>The built-in language manager aims to facilitate the localization process and branding customization.
It leverages the adaptability of modular architecture to align UI elements with a brand's tone and voice.

<h3>language and character set</h3>
<h3>Character set</h3>

<p>UTF-8 Unicode is the common character encoding method and the default character set for distributed languages, including english, fr_utf8, ja_utf8, pt_utf8, ru_utf8.

Expand Down
10 changes: 5 additions & 5 deletions html/modules/legacy/language/pt_utf8/help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ <h6>Block Default Settings</h6>
<h6>Block Actions</h6>
<p>Frontend themes usually include a component with block actions. Webmasters can access the menu next to the Block Title to manage a block.</p>

<div class="tips">It is noteworthy that all blocks can also be managed in the "Components" module, although the user interface is slightly different.</div>
<div class="tips">It is worth noting that all blocks can also be managed in the Components module, although the user interface is slightly different.</div>

<h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<ul>
Expand All @@ -301,9 +301,9 @@ <h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<h3>Comment Management</h3>

<p>The Comment management is a built-in feature.
It provides a textarea comment box where users can generate their own comments and leave them on a specific piece of content.</p>
You can follow the last comments of your articles on your Dashboard.
In addition to having a quick view, you can also give Reply to the comment as well as moderate its status as a public, pending and delete it as spam.
It provides a comment box where users can generate their own comments on a specific piece of content.
You can follow the latest comments on your articles from the Dashboard.
In addition to having a quick overview, you can also reply to the comment as well as moderate its status as public, pending or delete it as spam.</p>

<div class="tips">D3 modules comments are easily integrated (module preferences) and managed through D3Forum.</div>

Expand Down Expand Up @@ -337,7 +337,7 @@ <h3>Language</h3>
<p>The built-in language manager aims to facilitate the localization process and branding customization.
It leverages the adaptability of modular architecture to align UI elements with a brand's tone and voice.

<h3>language and character set</h3>
<h3>Character set</h3>

<p>UTF-8 Unicode is the common character encoding method and the default character set for distributed languages, including english, fr_utf8, ja_utf8, pt_utf8, ru_utf8.

Expand Down
10 changes: 5 additions & 5 deletions html/modules/legacy/language/ru_utf8/help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ <h6>Block Default Settings</h6>
<h6>Block Actions</h6>
<p>Frontend themes usually include a component with block actions. Webmasters can access the menu next to the Block Title to manage a block.</p>

<div class="tips">It is noteworthy that all blocks can also be managed in the "Components" module, although the user interface is slightly different.</div>
<div class="tips">It is worth noting that all blocks can also be managed in the Components module, although the user interface is slightly different.</div>

<h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<ul>
Expand All @@ -301,9 +301,9 @@ <h4 class="help-rel"><i class="i-help"></i> Related content</h4>
<h3>Comment Management</h3>

<p>The Comment management is a built-in feature.
It provides a textarea comment box where users can generate their own comments and leave them on a specific piece of content.</p>
You can follow the last comments of your articles on your Dashboard.
In addition to having a quick view, you can also give Reply to the comment as well as moderate its status as a public, pending and delete it as spam.
It provides a comment box where users can generate their own comments on a specific piece of content.
You can follow the latest comments on your articles from the Dashboard.
In addition to having a quick overview, you can also reply to the comment as well as moderate its status as public, pending or delete it as spam.</p>

<div class="tips">D3 modules comments are easily integrated (module preferences) and managed through D3Forum.</div>

Expand Down Expand Up @@ -337,7 +337,7 @@ <h3>Language</h3>
<p>The built-in language manager aims to facilitate the localization process and branding customization.
It leverages the adaptability of modular architecture to align UI elements with a brand's tone and voice.

<h3>language and character set</h3>
<h3>Character set</h3>

<p>UTF-8 Unicode is the common character encoding method and the default character set for distributed languages, including english, fr_utf8, ja_utf8, pt_utf8, ru_utf8.

Expand Down
Loading

0 comments on commit 90f1f15

Please sign in to comment.