2017-11-16 04:37:32 +00:00
|
|
|
<?php
|
2021-03-05 03:08:47 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
2022-07-09 15:45:08 +00:00
|
|
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
|
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
2021-03-05 03:08:47 +00:00
|
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
// No direct access to this file
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
|
2024-03-02 20:10:30 +00:00
|
|
|
use Joomla\CMS\Factory;
|
|
|
|
use Joomla\CMS\Language\Text;
|
|
|
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
|
|
|
use Joomla\CMS\Layout\LayoutHelper;
|
|
|
|
use Joomla\CMS\Router\Route;
|
|
|
|
Html::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
|
|
|
Html::_('behavior.formvalidator');
|
|
|
|
Html::_('formbehavior.chosen', 'select');
|
|
|
|
Html::_('behavior.keepalive');
|
2021-03-05 03:08:47 +00:00
|
|
|
?>
|
2017-11-16 04:37:32 +00:00
|
|
|
<?php if ($this->canDo->get('get_snippets.access')): ?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
Joomla.submitbutton = function(task) {
|
|
|
|
if (task === 'get_snippets.back') {
|
|
|
|
parent.history.back();
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
var form = document.getElementById('adminForm');
|
|
|
|
form.task.value = task;
|
|
|
|
form.submit();
|
|
|
|
}
|
|
|
|
}
|
2021-03-05 03:08:47 +00:00
|
|
|
</script>
|
2020-02-04 23:18:34 +00:00
|
|
|
|
2024-04-27 13:45:07 +00:00
|
|
|
<form action="<?php echo Route::_('index.php?option=com_componentbuilder'); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
2020-02-04 23:18:34 +00:00
|
|
|
<input type="hidden" name="task" value="" />
|
2024-03-02 20:10:30 +00:00
|
|
|
<?php echo Html::_('form.token'); ?>
|
2020-02-04 23:18:34 +00:00
|
|
|
</form>
|
2020-01-03 01:41:55 +00:00
|
|
|
|
2017-11-18 00:04:14 +00:00
|
|
|
<div id="snippets-github" class="bulk-updater-toggler">
|
2017-11-16 04:37:32 +00:00
|
|
|
<br /><br /><br />
|
2024-03-02 20:10:30 +00:00
|
|
|
<center><h1> <?php echo Text::_('COM_COMPONENTBUILDER_GETTING_AVAILABLE_LIBRARIES'); ?> <br /><?php echo Text::_('COM_COMPONENTBUILDER_LOADING'); ?>.<span class="loading-dots">.</span></h1></center>
|
2017-12-03 18:09:04 +00:00
|
|
|
</div>
|
|
|
|
<div id="libraries-display" style="display: none;">
|
|
|
|
<div id="libraries-grid" class="uk-grid uk-grid-preserve uk-grid-width-small-1-1 uk-grid-width-medium-1-3 uk-grid-width-large-1-4" data-uk-grid="{gutter:10}" data-uk-check-display>
|
|
|
|
</div>
|
2017-11-16 04:37:32 +00:00
|
|
|
</div>
|
2017-11-18 00:04:14 +00:00
|
|
|
<div class="bulk-updater-toggler uk-hidden">
|
2024-03-02 20:10:30 +00:00
|
|
|
<h1><?php echo Text::_('COM_COMPONENTBUILDER_BULK_TOOLS'); ?></h1>
|
2017-11-18 00:04:14 +00:00
|
|
|
</div>
|
2017-11-16 04:37:32 +00:00
|
|
|
<div id="snippets-display" style="display: none;">
|
2017-11-18 00:04:14 +00:00
|
|
|
<div class="uk-hidden-small">
|
|
|
|
<nav class="uk-navbar uk-width-1-1">
|
|
|
|
<a href="https://github.com/vdm-io/Joomla-Component-Builder-Snippets" class="uk-navbar-brand uk-hidden-medium" target="_blank"><i class="uk-icon-github"></i> gitHub</a>
|
|
|
|
<ul class="uk-navbar-nav snippets-menu bulk-updater-toggler">
|
2024-03-02 20:10:30 +00:00
|
|
|
<li data-uk-filter="" class="uk-active"><a href=""><i class="uk-icon-asterisk"></i><span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_ALL'); ?></span></a></li>
|
|
|
|
<li data-uk-filter="equal"><a href=""><i class="uk-icon-chain"></i><span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_IN_SYNC'); ?></span></a></li>
|
|
|
|
<li data-uk-filter="behind"><a href=""><i class="uk-icon-chain-broken"></i><span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_OUT_OF_DATE'); ?></span></a></li>
|
|
|
|
<li data-uk-filter="new"><a href=""><i class="uk-icon-coffee"></i><span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_NEW'); ?></span></a></li>
|
|
|
|
<li data-uk-filter="diverged"><a href=""><i class="uk-icon-code-fork"></i><span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_DIVERGED'); ?></span></a></li>
|
|
|
|
<li data-uk-filter="ahead"><a href=""><i class="uk-icon-joomla"></i><span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_AHEAD'); ?></span></a></li>
|
2017-11-18 00:04:14 +00:00
|
|
|
<li data-uk-sort="snippet-name">
|
|
|
|
<a href="">
|
|
|
|
<i class="uk-icon-sort-amount-asc"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_NAME_ASC'); ?></span>
|
|
|
|
<span class="uk-visible-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_NAME'); ?></span>
|
2017-11-18 00:04:14 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li data-uk-sort="snippet-name:desc">
|
|
|
|
<a href="">
|
|
|
|
<i class="uk-icon-sort-amount-desc"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_NAME_DESC'); ?></span>
|
|
|
|
<span class="uk-visible-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_NAME'); ?></span>
|
2017-11-18 00:04:14 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li data-uk-sort="snippet-types">
|
|
|
|
<a href="">
|
|
|
|
<i class="uk-icon-sort-amount-asc"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_TYPE_ASC'); ?></span>
|
|
|
|
<span class="uk-visible-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_TYPE'); ?></span>
|
2017-11-18 00:04:14 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li data-uk-sort="snippet-types:desc">
|
|
|
|
<a href="">
|
|
|
|
<i class="uk-icon-sort-amount-desc"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<span class="uk-hidden-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_TYPE_DESC'); ?></span>
|
|
|
|
<span class="uk-visible-medium"> <?php echo Text::_('COM_COMPONENTBUILDER_TYPE'); ?></span>
|
2017-11-18 00:04:14 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="uk-navbar-flip">
|
|
|
|
<ul class="uk-navbar-nav">
|
2017-12-03 18:09:04 +00:00
|
|
|
<li class="bulk-updater-toggler">
|
2024-03-02 20:10:30 +00:00
|
|
|
<a class="getreaction" data-type="getLibraries" title="<?php echo Text::_('COM_COMPONENTBUILDER_BACK_TO_LIBRARIES'); ?>">
|
2017-12-03 18:09:04 +00:00
|
|
|
<i class="uk-icon-puzzle-piece"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<span class="uk-hidden-medium"><?php echo Text::_('COM_COMPONENTBUILDER_LIBRARIES'); ?></span>
|
2017-12-03 18:09:04 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-11-18 00:04:14 +00:00
|
|
|
<li>
|
2024-03-02 20:10:30 +00:00
|
|
|
<a class="getreaction" data-uk-toggle="{target:'.bulk-updater-toggler', animation:'uk-animation-slide-bottom, uk-animation-slide-bottom'}" data-type="bulk" title="<?php echo Text::_('COM_COMPONENTBUILDER_ACCESS_BULK_TOOLS'); ?>">
|
2017-11-18 00:04:14 +00:00
|
|
|
<i class="uk-icon-cog"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<span class="uk-hidden-medium"><?php echo Text::_('COM_COMPONENTBUILDER_BULK'); ?></span>
|
2017-11-18 00:04:14 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-06-29 02:19:50 +00:00
|
|
|
</ul>
|
2017-11-18 00:04:14 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<div class="uk-visible-small">
|
|
|
|
<nav class="uk-navbar uk-width-1-1">
|
|
|
|
<ul class="uk-navbar-nav snippets-menu">
|
|
|
|
<li data-uk-filter="" class="uk-active"><a href=""><i class="uk-icon-asterisk"></i></a></li>
|
|
|
|
<li data-uk-filter="equal"><a href=""><i class="uk-icon-chain"></i></a></li>
|
|
|
|
<li data-uk-filter="behind"><a href=""><i class="uk-icon-chain-broken"></i></a></li>
|
|
|
|
<li data-uk-filter="new"><a href=""><i class="uk-icon-coffee"></i></a></li>
|
|
|
|
<li data-uk-filter="diverged"><a href=""><i class="uk-icon-code-fork"></i></a></li>
|
|
|
|
<li data-uk-filter="ahead"><a href=""><i class="uk-icon-joomla"></i></a></li>
|
2024-03-02 20:10:30 +00:00
|
|
|
<li class="bulk-updater-toggler"><a class="getreaction" data-type="getLibraries" title="<?php echo Text::_('COM_COMPONENTBUILDER_BACK_TO_LIBRARIES'); ?>"><i class="uk-icon-puzzle-piece"></i></a></li>
|
|
|
|
<li><a class="getreaction" data-uk-toggle="{target:'.bulk-updater-toggler', animation:'uk-animation-slide-bottom, uk-animation-slide-bottom'}" data-type="bulk" title="<?php echo Text::_('COM_COMPONENTBUILDER_ACCESS_BULK_TOOLS'); ?>"><i class="uk-icon-cog"></i></a></li>
|
2017-11-18 00:04:14 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<div class="bulk-updater-toggler uk-hidden">
|
|
|
|
<br />
|
|
|
|
<div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}">
|
|
|
|
<div class="uk-width-medium-1-4">
|
|
|
|
<div class="uk-panel uk-panel-box uk-panel-box-primary">
|
2017-11-20 12:35:30 +00:00
|
|
|
<div class="uk-badge uk-panel-badge uk-badge-notification"><a href="#behind-meaning" data-uk-offcanvas class="uk-text-contrast"><i class="uk-icon-info"></i></a></div>
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3 class="uk-panel-title"><i class="uk-icon-chain-broken"></i> <?php echo Text::_('COM_COMPONENTBUILDER_OUT_OF_DATE'); ?></h3>
|
|
|
|
<div id="bulk-notice-behind" class="uk-alert uk-alert-warning" style="display: none;"><?php echo Text::_('COM_COMPONENTBUILDER_THERE_ARE_NO_OUT_OF_DATE_SNIPPETS_AT_THIS_TIME'); ?></div>
|
|
|
|
<button id="bulk-button-behind" class="getreaction uk-button uk-button-primary uk-width-1-1" data-status="behind" data-type="all" title="<?php echo Text::_('COM_COMPONENTBUILDER_BULK_UPDATE_ALL_OUT_DATED_SNIPPETS'); ?>">
|
2017-11-18 00:04:14 +00:00
|
|
|
<i class="uk-icon-cloud-download"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<?php echo Text::_('COM_COMPONENTBUILDER_UPDATE_ALL_OUT_DATED_SNIPPETS'); ?>
|
2017-11-18 00:04:14 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-medium-1-4">
|
|
|
|
<div class="uk-panel uk-panel-box uk-panel-box-primary">
|
2017-11-20 12:35:30 +00:00
|
|
|
<div class="uk-badge uk-panel-badge uk-badge-notification"><a href="#new-meaning" data-uk-offcanvas class="uk-text-contrast"><i class="uk-icon-info"></i></a></div>
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3 class="uk-panel-title"><i class="uk-icon-coffee"></i> <?php echo Text::_('COM_COMPONENTBUILDER_NEW'); ?></h3>
|
|
|
|
<div id="bulk-notice-new" class="uk-alert uk-alert-warning" style="display: none;"><?php echo Text::_('COM_COMPONENTBUILDER_THERE_ARE_NO_NEW_SNIPPETS_AT_THIS_TIME'); ?></div>
|
|
|
|
<button id="bulk-button-new" class="getreaction uk-button uk-button-primary uk-width-1-1" data-status="new" data-type="all" title="<?php echo Text::_('COM_COMPONENTBUILDER_BULK_GET_ALL_NEW_SNIPPETS'); ?>">
|
2017-11-18 00:04:14 +00:00
|
|
|
<i class="uk-icon-cloud-download"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<?php echo Text::_('COM_COMPONENTBUILDER_GET_ALL_NEW_SNIPPETS'); ?>
|
2017-11-18 00:04:14 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-medium-1-4">
|
|
|
|
<div class="uk-panel uk-panel-box uk-panel-box-primary">
|
2017-11-20 12:35:30 +00:00
|
|
|
<div class="uk-badge uk-panel-badge uk-badge-notification"><a href="#diverged-meaning" data-uk-offcanvas class="uk-text-contrast"><i class="uk-icon-info"></i></a></div>
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3 class="uk-panel-title"><i class="uk-icon-code-fork"></i> <?php echo Text::_('COM_COMPONENTBUILDER_DIVERGED'); ?></h3>
|
|
|
|
<div id="bulk-notice-diverged" class="uk-alert uk-alert-warning" style="display: none;"><?php echo Text::_('COM_COMPONENTBUILDER_THERE_ARE_NO_DIVERGED_SNIPPETS_AT_THIS_TIME'); ?></div>
|
|
|
|
<button id="bulk-button-diverged" class="getreaction uk-button uk-button-primary uk-width-1-1" data-status="diverged" data-type="all" title="<?php echo Text::_('COM_COMPONENTBUILDER_BULK_UPDATE_ALL_DIVERGED_SNIPPETS'); ?>">
|
2017-11-18 00:04:14 +00:00
|
|
|
<i class="uk-icon-cloud-download"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<?php echo Text::_('COM_COMPONENTBUILDER_UPDATE_ALL_DIVERGED_SNIPPETS'); ?>
|
2017-11-18 00:04:14 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="uk-width-medium-1-4">
|
|
|
|
<div class="uk-panel uk-panel-box uk-panel-box-primary">
|
2017-11-20 12:35:30 +00:00
|
|
|
<div class="uk-badge uk-panel-badge uk-badge-notification"><a href="#ahead-meaning" data-uk-offcanvas class="uk-text-contrast"><i class="uk-icon-info"></i></a></div>
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3 class="uk-panel-title"><i class="uk-icon-joomla"></i> <?php echo Text::_('COM_COMPONENTBUILDER_AHEAD'); ?></h3>
|
|
|
|
<div id="bulk-notice-ahead" class="uk-alert uk-alert-warning" style="display: none;"><?php echo Text::_('COM_COMPONENTBUILDER_THERE_ARE_NO_AHEAD_SNIPPETS_AT_THIS_TIME'); ?></div>
|
|
|
|
<button id="bulk-button-ahead" class="getreaction uk-button uk-button-primary uk-width-1-1" data-status="ahead" data-type="all" title="<?php echo Text::_('COM_COMPONENTBUILDER_BULK_UPDATE_ALL_AHEAD_SNIPPETS'); ?>">
|
2017-11-18 00:04:14 +00:00
|
|
|
<i class="uk-icon-cloud-download"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<?php echo Text::_('COM_COMPONENTBUILDER_REVERT_ALL_AHEAD_SNIPPETS'); ?>
|
2017-11-18 00:04:14 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-17 17:51:35 +00:00
|
|
|
</div>
|
2017-11-18 00:04:14 +00:00
|
|
|
<br />
|
2024-03-02 20:10:30 +00:00
|
|
|
<div id="bulk-notice-all" class="uk-alert uk-alert-warning" style="display: none;"><?php echo Text::_('COM_COMPONENTBUILDER_THERE_ARE_NO_SNIPPETS_TO_UPDATE_AT_THIS_TIME'); ?></div>
|
|
|
|
<button id="bulk-button-all" class="getreaction uk-button uk-button-success uk-width-1-1" data-status="all" data-type="all" title="<?php echo Text::_('COM_COMPONENTBUILDER_BULK_UPDATE_ALL_AVAILABLE_SNIPPETS'); ?>">
|
2017-11-18 00:04:14 +00:00
|
|
|
<i class="uk-icon-cloud-download"></i>
|
2024-03-02 20:10:30 +00:00
|
|
|
<?php echo Text::_('COM_COMPONENTBUILDER_JUST_GET_ALL_SNIPPETS'); ?>
|
2017-11-18 00:04:14 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2017-11-16 04:37:32 +00:00
|
|
|
<br />
|
2017-11-18 00:04:14 +00:00
|
|
|
<div id="snippets-grid" class="bulk-updater-toggler uk-grid uk-grid-preserve uk-grid-width-small-1-1 uk-grid-width-medium-1-3 uk-grid-width-large-1-4" data-uk-grid="{gutter:10, controls: '.snippets-menu'}" data-uk-check-display>
|
|
|
|
</div>
|
2017-11-16 04:37:32 +00:00
|
|
|
</div>
|
2017-11-20 12:35:30 +00:00
|
|
|
<div id="new-meaning" class="uk-offcanvas">
|
|
|
|
<div class="uk-offcanvas-bar"><br /><br /><br /><div class="uk-panel">
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3><?php echo Text::_('COM_COMPONENTBUILDER_NEW'); ?></h3>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_NEW_MEANS_THAT_WE_COULD_NOT_FIND_A_LOCAL_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_AND_SO_HAVE_MARKED_THIS_SNIPPET_AS_NEW'); ?></p>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_THE_SEARCH_FOR_THE_SNIPPETS_ARE_CASE_SENSITIVE_SO_IF_YOU_CHANGED_THE_LOCAL_BNAMESB_OF_EITHER_OR_THE_BSNIPPET_LIBRARY_OR_SNIPPET_TYPESB_IN_ANY_SMALL_WAY_THE_SYSTEM_WILL_NOT_BE_ABLE_TO_CONNECT_YOUR_LOCAL_SNIPPETS_WITH_THOSE_IN_THE_COMMUNITY_REPOSITORY_SO_WE_STRONGLY_ADVICE_TO_BKEEP_TO_THE_COMMUNITY_NAMINGB_TO_AVOID_MISMATCHING_THAT_WILL_IN_TURN_CAUSE_DUPLICATION_SO_IF_YOU_CHANGED_ANY_NAMES_JUST_CHANGE_THEM_BACK_AND_ALL_WILL_AGAIN_WORK_AS_EXPECTED'); ?></p>
|
2017-11-20 12:35:30 +00:00
|
|
|
</div></div>
|
|
|
|
</div>
|
|
|
|
<div id="equal-meaning" class="uk-offcanvas">
|
|
|
|
<div class="uk-offcanvas-bar"><br /><br /><br /><div class="uk-panel">
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3><?php echo Text::_('COM_COMPONENTBUILDER_EQUAL'); ?></h3>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_EQUAL_MEANS_THAT_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_AND_YOUR_LOCAL_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_THE_SAME_BCREATIONB_AND_BMODIFIED_DATEB'); ?></p>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_WE_DID_NOT_CHECK_THE_SNIPPET_IT_SELF_TO_SEE_IF_IT_CHANGED_WE_ONLY_WORK_ON_DATES'); ?></p>
|
2017-11-20 12:35:30 +00:00
|
|
|
</div></div>
|
|
|
|
</div>
|
|
|
|
<div id="ahead-meaning" class="uk-offcanvas">
|
|
|
|
<div class="uk-offcanvas-bar"><br /><br /><br /><div class="uk-panel">
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3><?php echo Text::_('COM_COMPONENTBUILDER_AHEAD'); ?></h3>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_AHEAD_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BNEWER_MODIFIED_DATEB_THEN_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE'); ?></p>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_WE_DID_NOT_CHECK_THE_SNIPPET_IT_SELF_TO_SEE_IF_IT_CHANGED_WE_ONLY_WORK_ON_DATES'); ?></p>
|
2017-11-20 12:35:30 +00:00
|
|
|
</div></div>
|
|
|
|
</div>
|
|
|
|
<div id="behind-meaning" class="uk-offcanvas">
|
|
|
|
<div class="uk-offcanvas-bar"><br /><br /><br /><div class="uk-panel">
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3><?php echo Text::_('COM_COMPONENTBUILDER_BEHIND'); ?></h3>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_BEHIND_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BOLDER_MODIFIED_DATEB_THEN_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE'); ?></p>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_WE_DID_NOT_CHECK_THE_SNIPPET_IT_SELF_TO_SEE_IF_IT_CHANGED_WE_ONLY_WORK_ON_DATES'); ?></p>
|
2017-11-20 12:35:30 +00:00
|
|
|
</div></div>
|
|
|
|
</div>
|
|
|
|
<div id="diverged-meaning" class="uk-offcanvas">
|
|
|
|
<div class="uk-offcanvas-bar"><br /><br /><br /><div class="uk-panel">
|
2024-03-02 20:10:30 +00:00
|
|
|
<h3><?php echo Text::_('COM_COMPONENTBUILDER_DIVERGED'); ?></h3>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_DIVERGED_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BDIVERGEDB_FROM_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_IN_THAT_IT_DOES_NOT_HAVE_THE_SAME_BCREATIONB_OR_BMODIFIED_DATEB'); ?></p>
|
|
|
|
<p><?php echo Text::_('COM_COMPONENTBUILDER_WE_DID_NOT_CHECK_THE_SNIPPET_IT_SELF_TO_SEE_IF_IT_CHANGED_WE_ONLY_WORK_ON_DATES'); ?></p>
|
2017-11-20 12:35:30 +00:00
|
|
|
</div></div>
|
|
|
|
</div>
|
2024-03-02 20:10:30 +00:00
|
|
|
<div id="loading" style="display: none;"><br /><h3><?php echo Text::_('COM_COMPONENTBUILDER_PLEASE_WAIT_LOADING'); ?>.<span class="loading-dots">.</span></h3></div>
|
2017-11-16 04:37:32 +00:00
|
|
|
<script type="text/javascript">
|
2018-02-27 12:17:38 +00:00
|
|
|
|
2024-03-02 20:10:30 +00:00
|
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
|
|
document.querySelectorAll(".loading-dots").forEach(function(loading_dots) {
|
|
|
|
let x = 0;
|
|
|
|
let intervalId = setInterval(function() {
|
|
|
|
if (!loading_dots.classList.contains("loading-dots")) {
|
|
|
|
clearInterval(intervalId);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
let dots = ".".repeat(x % 8);
|
|
|
|
loading_dots.textContent = dots;
|
|
|
|
x++;
|
|
|
|
}, 500);
|
|
|
|
});
|
2019-07-08 16:05:54 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
<?php
|
2024-03-02 20:10:30 +00:00
|
|
|
$app = Factory::getApplication();
|
2019-07-08 16:05:54 +00:00
|
|
|
?>
|
|
|
|
function JRouter(link) {
|
|
|
|
<?php
|
2020-01-03 01:41:55 +00:00
|
|
|
if ($app->isClient('site'))
|
2019-07-08 16:05:54 +00:00
|
|
|
{
|
2024-03-02 20:10:30 +00:00
|
|
|
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
2019-07-08 16:05:54 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo 'var url = "";';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
return url+link;
|
|
|
|
}
|
2021-03-05 03:08:47 +00:00
|
|
|
</script>
|
|
|
|
<?php else: ?>
|
2024-03-02 20:10:30 +00:00
|
|
|
<h1><?php echo Text::_('COM_COMPONENTBUILDER_NO_ACCESS_GRANTED'); ?></h1>
|
2021-03-05 03:08:47 +00:00
|
|
|
<?php endif; ?>
|