-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70d5705
commit bb7a886
Showing
20 changed files
with
54 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?php | ||
|
||
/* | ||
* @package XT Search for Algolia | ||
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<?php | ||
|
||
/** | ||
/* | ||
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2018-2022 Extly, CB. All rights reserved. | ||
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @package XT Search for Algolia | ||
* @see https://www.extly.com | ||
*/ | ||
|
||
$header = <<<'EOF' | ||
@package XT Tailwind for Joomla | ||
@author Extly, CB. <[email protected]> | ||
@copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
@copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
@license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
@see https://www.extly.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
|
||
/* | ||
* @package Extly Infrastructure Support for Joomla | ||
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2021 Extly, CB. All rights reserved. | ||
* @license http://www.opensource.org/licenses/mit-license.html MIT License | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
*/ | ||
|
@@ -29,6 +29,7 @@ | |
final class ScriptHelper | ||
{ | ||
const CLIENT_FRONTEND = 1; | ||
|
||
const CLIENT_ADMINISTRATOR = 0; | ||
|
||
public static function addScriptDeclaration($script) | ||
|
@@ -68,7 +69,6 @@ public static function addStyleDeclaration($style) | |
* | ||
* @param string $extensionScript Param | ||
* @param mixed $attribs Html Attributes | ||
* @param mixed $options | ||
*/ | ||
public static function addDeferredExtensionScript($extensionScript, $options = [], $attribs = []) | ||
{ | ||
|
@@ -104,7 +104,6 @@ public static function addDeferredExtensionStylesheet($extensionRelativeScript, | |
* | ||
* @param string $extensionScriptUri Param | ||
* @param mixed $attribs Html Attributes | ||
* @param mixed $options | ||
*/ | ||
public static function addDeferredScript($extensionScriptUri, $options = [], $attribs = []) | ||
{ | ||
|
@@ -134,8 +133,6 @@ public static function addDeferredScript($extensionScriptUri, $options = [], $at | |
* ScriptHelper::addDeferredStylesheet('https://cdn.jsdelivr.net/npm/...instantsearch.min.css'); | ||
* | ||
* @param string $stylesheetUri Param | ||
* @param mixed $options | ||
* @param mixed $attribs | ||
*/ | ||
public static function addDeferredStylesheet($stylesheetUri, $options = [], $attribs = []) | ||
{ | ||
|
@@ -161,10 +158,6 @@ public static function addDeferredStylesheet($stylesheetUri, $options = [], $att | |
* addInlineScript (Extension). | ||
* | ||
* Example: ScriptHelper::addInlineScript('lib_xtdir4alg/app/autocomplete.min.js'); | ||
* | ||
* @param mixed $extensionRelativeScript | ||
* @param mixed $options | ||
* @param mixed $attribs | ||
*/ | ||
public static function addInlineExtensionScript($extensionRelativeScript, $options = [], $attribs = []) | ||
{ | ||
|
@@ -197,11 +190,6 @@ public static function addInlineExtensionScript($extensionRelativeScript, $optio | |
* addInlineStylesheet. | ||
* | ||
* Example: ScriptHelper::addInlineStylesheet('mod_xtdir4alg_autocomplete/xtdir4alg_autocomplete.min.css'); | ||
* | ||
* @param string $extensionStyle | ||
* @param mixed $extensionRelativeStylesheet | ||
* @param mixed $options | ||
* @param mixed $attribs | ||
*/ | ||
public static function addInlineExtensionStylesheet($extensionRelativeStylesheet, $options = [], $attribs = []) | ||
{ | ||
|
@@ -310,10 +298,6 @@ public static function addScriptVersion($url, $options = [], $attribs = []) | |
* addDeferredStyle. | ||
* | ||
* @deprecated | ||
* | ||
* @param mixed $stylesheetUri | ||
* @param mixed $options | ||
* @param mixed $attribs | ||
*/ | ||
public static function addDeferredStyle($stylesheetUri, $options = [], $attribs = []) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
@@ -14,7 +14,7 @@ | |
@package XT Tailwind for Joomla | ||
@author Extly, CB. <[email protected]> | ||
@copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
@copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
@license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
@see https://www.extly.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
@@ -54,17 +54,17 @@ | |
// Add template js - JavaScript to be deferred - Removed to Optimize | ||
// $templateJsFile = CMSHTMLHelper::script('template.js', ['relative' => true, 'pathOnly' => true]); | ||
// $templateJsFile = $templateJsFile.'?'.$mediaversion; | ||
// $htmlAssetRepository->push(ScriptTag::create(ScriptHelper::addMediaVersion($templateJsFile))); | ||
// $htmlAssetRepository->push(new ScriptTag(ScriptHelper::addMediaVersion($templateJsFile))); | ||
|
||
// Add template.css | ||
$templateCssFile = CMSHTMLHelper::stylesheet('template.css', ['relative' => true, 'pathOnly' => true]); | ||
$htmlAssetRepository->push(LinkCriticalStylesheetTag::create(ScriptHelper::addMediaVersion($templateCssFile))); | ||
$htmlAssetRepository->push(new LinkCriticalStylesheetTag(ScriptHelper::addMediaVersion($templateCssFile))); | ||
|
||
// Additional inline head scripts | ||
$headScripts = $params->get('headScripts'); | ||
|
||
if (!empty($headScripts)) { | ||
$htmlAssetRepository->push(InlineScriptTag::create($headScripts)); | ||
$htmlAssetRepository->push(new InlineScriptTag($headScripts)); | ||
} | ||
|
||
$headData = $document->getHeadData(); | ||
|
@@ -73,13 +73,13 @@ | |
|
||
// Prism - Deferred Stylesheet | ||
$prismCssFile = CMSHTMLHelper::stylesheet('prism.css', ['relative' => true, 'pathOnly' => true]); | ||
$htmlAssetRepository->push(LinkStylesheetTag::create(ScriptHelper::addMediaVersion($prismCssFile))); | ||
$htmlAssetRepository->push(new LinkStylesheetTag(ScriptHelper::addMediaVersion($prismCssFile))); | ||
|
||
// Prism - Deferred JavaScript | ||
$prismJsFile = CMSHTMLHelper::script('prism.js', ['relative' => true, 'pathOnly' => true]); | ||
$htmlAssetRepository->push(ScriptTag::create(ScriptHelper::addMediaVersion($prismJsFile))); | ||
$htmlAssetRepository->push(new ScriptTag(ScriptHelper::addMediaVersion($prismJsFile))); | ||
|
||
$htmlAssetRepository->push(ScriptTag::create('https://buttons.github.io/buttons.js')); | ||
$htmlAssetRepository->push(new ScriptTag('https://buttons.github.io/buttons.js')); | ||
|
||
$logoTitle = htmlspecialchars($params->get('logoTitle', '@Anibal_Sanchez')); | ||
$siteDescription = htmlspecialchars($params->get('siteDescription'), \ENT_QUOTES, 'UTF-8'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
@@ -59,17 +59,17 @@ | |
// Add template js - JavaScript to be deferred - Removed to Optimize | ||
// $templateJsFile = CMSHTMLHelper::script('template.js', ['relative' => true, 'pathOnly' => true]); | ||
// $templateJsFile = $templateJsFile.'?'.$mediaversion; | ||
// $htmlAssetRepository->push(ScriptTag::create(ScriptHelper::addMediaVersion($templateJsFile))); | ||
// $htmlAssetRepository->push(new ScriptTag(ScriptHelper::addMediaVersion($templateJsFile))); | ||
|
||
// Add template.css | ||
$templateCssFile = CMSHTMLHelper::stylesheet('template.css', ['relative' => true, 'pathOnly' => true]); | ||
$htmlAssetRepository->push(LinkCriticalStylesheetTag::create(ScriptHelper::addMediaVersion($templateCssFile))); | ||
$htmlAssetRepository->push(new LinkCriticalStylesheetTag(ScriptHelper::addMediaVersion($templateCssFile))); | ||
|
||
// Additional inline head scripts | ||
$headScripts = $params->get('headScripts'); | ||
|
||
if (!empty($headScripts)) { | ||
$htmlAssetRepository->push(InlineScriptTag::create($headScripts)); | ||
$htmlAssetRepository->push(new InlineScriptTag($headScripts)); | ||
} | ||
|
||
$headData = $document->getHeadData(); | ||
|
@@ -90,7 +90,7 @@ | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<base href="<?php echo CMSUri::current(); ?>"> | ||
<?php | ||
echo HtmlAssetTagsBuilder::create()->generate(HtmlAssetRepository::GLOBAL_POSITION_HEAD); | ||
echo (new HtmlAssetTagsBuilder())->generate(HtmlAssetRepository::GLOBAL_POSITION_HEAD); | ||
?> | ||
</head> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @package XT Tailwind for Joomla | ||
* | ||
* @author Extly, CB. <[email protected]> | ||
* @copyright Copyright (c)2012-2022 Extly, CB. All rights reserved. | ||
* @copyright Copyright (c)2012-2023 Extly, CB. All rights reserved. | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* | ||
* @see https://www.extly.com | ||
|
@@ -54,17 +54,17 @@ | |
// Add template js - JavaScript to be deferred - Removed to Optimize | ||
// $templateJsFile = CMSHTMLHelper::script('template.js', ['relative' => true, 'pathOnly' => true]); | ||
// $templateJsFile = $templateJsFile.'?'.$mediaversion; | ||
// $htmlAssetRepository->push(ScriptTag::create(ScriptHelper::addMediaVersion($templateJsFile))); | ||
// $htmlAssetRepository->push(new ScriptTag(ScriptHelper::addMediaVersion($templateJsFile))); | ||
|
||
// Add template.css | ||
$templateCssFile = CMSHTMLHelper::stylesheet('template.css', ['relative' => true, 'pathOnly' => true]); | ||
$htmlAssetRepository->push(LinkCriticalStylesheetTag::create(ScriptHelper::addMediaVersion($templateCssFile))); | ||
$htmlAssetRepository->push(new LinkCriticalStylesheetTag(ScriptHelper::addMediaVersion($templateCssFile))); | ||
|
||
// Additional inline head scripts | ||
$headScripts = $params->get('headScripts'); | ||
|
||
if (!empty($headScripts)) { | ||
$htmlAssetRepository->push(InlineScriptTag::create($headScripts)); | ||
$htmlAssetRepository->push(new InlineScriptTag($headScripts)); | ||
} | ||
|
||
$headData = $document->getHeadData(); | ||
|
@@ -73,13 +73,13 @@ | |
|
||
// Prism - Deferred Stylesheet | ||
$prismCssFile = CMSHTMLHelper::stylesheet('prism.css', ['relative' => true, 'pathOnly' => true]); | ||
$htmlAssetRepository->push(LinkStylesheetTag::create(ScriptHelper::addMediaVersion($prismCssFile))); | ||
$htmlAssetRepository->push(new LinkStylesheetTag(ScriptHelper::addMediaVersion($prismCssFile))); | ||
|
||
// Prism - Deferred JavaScript | ||
$prismJsFile = CMSHTMLHelper::script('prism.js', ['relative' => true, 'pathOnly' => true]); | ||
$htmlAssetRepository->push(ScriptTag::create(ScriptHelper::addMediaVersion($prismJsFile))); | ||
$htmlAssetRepository->push(new ScriptTag(ScriptHelper::addMediaVersion($prismJsFile))); | ||
|
||
$htmlAssetRepository->push(ScriptTag::create('https://buttons.github.io/buttons.js')); | ||
$htmlAssetRepository->push(new ScriptTag('https://buttons.github.io/buttons.js')); | ||
|
||
$logoTitle = htmlspecialchars($params->get('logoTitle', '@Anibal_Sanchez')); | ||
$siteDescription = htmlspecialchars($params->get('siteDescription'), \ENT_QUOTES, 'UTF-8'); | ||
|
@@ -191,4 +191,4 @@ | |
<jdoc:include type="XTHtmlAssetsBody" name="body" style="none" /> | ||
</body> | ||
|
||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
; | ||
; Extly, CB <[email protected]> | ||
; Copyright (c)2012-2022 Extly, CB All rights reserved. | ||
; Copyright (c)2012-2023 Extly, CB All rights reserved. | ||
; License GNU General Public License version 3 or later; see LICENSE.txt | ||
; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
; | ||
; Extly, CB <[email protected]> | ||
; Copyright (c)2012-2022 Extly, CB All rights reserved. | ||
; Copyright (c)2012-2023 Extly, CB All rights reserved. | ||
; License GNU General Public License version 3 or later; see LICENSE.txt | ||
; | ||
|
||
|
Oops, something went wrong.