- md5
- 41d65ebcc3542920f98ed3da8c9ac92a
- sha1
- f654fc411f9c5b50177d56a1a3fa6b2d7b0aa5ab
- sha256
- 889d712c431314bdad311a4b0428dd7feca711fe161e77f3824d38332fb07962
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_sampledata
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\HTML\HTMLHelper;
HTMLHelper::_('jquery.framework');
HTMLHelper::_('script', 'mod_sampledata/sampledata-process.js', false, true);
Text::script('MOD_SAMPLEDATA_CONFIRM_START');
Text::script('MOD_SAMPLEDATA_ITEM_ALREADY_PROCESSED');
Text::script('MOD_SAMPLEDATA_INVALID_RESPONSE');
Factory::getDocument()->addScriptDeclaration('
var modSampledataUrl = "index.php?option=com_ajax&format=json&group=sampledata",
modSampledataIconProgress = "' . Uri::root(true) . '/media/system/images/ajax-loader.gif";
');
?>
<?php if ($items) : ?>
<ul class="list-group list-group-flush">
<?php foreach($items as $i => $item) : ?>
<li class="list-group-item sampledata-<?php echo $item->name; ?>">
<div class="d-flex justify-content-between align-items-center">
<div class="mr-2">
<span class="icon-<?php echo $item->icon; ?>" aria-hidden="true"></span>
<?php echo htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8'); ?>
</div>
<a href="#" class="btn btn-primary btn-sm" onclick="sampledataApply(this)" data-type="<?php echo $item->name; ?>" data-steps="<?php echo $item->steps; ?>">
<?php echo Text::_('JLIB_INSTALLER_INSTALL'); ?></a>
</div>
<p class="small mt-1"><?php echo $item->description; ?></p>
</li>
<?php // Progress bar ?>
<li class="list-group-item sampledata-progress-<?php echo $item->name; ?> d-none">
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated w-100" role="progressbar"></div>
</div>
</li>
<?php // Progress messages ?>
<li class="list-group-item sampledata-progress-<?php echo $item->name; ?> d-none">
<ul class="unstyled"></ul>
</li>
<?php endforeach; ?>
</ul>
<?php else : ?>
<joomla-alert type="warning"><?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php endif; ?>
No other release has this exact content. See every version of this file.