CoreFiles by mySites.guru
webcron_link.php57 lines, 1,536 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
c645e01ef779dc410ad0894fa9191f50
sha1
2acf3515a9004a7470da20f5291c7f2ba1b5d6cd
sha256
6ade9fbb25e5cf3d1f9c607e55d00205e41435f14ded585f24053eb943f00c6b
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_scheduler
 *
 * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;

extract($displayData);

/**
 * Layout variables
 * -----------------
 *
 * @var  string $id    DOM id of the field.
 * @var  string $label Label of the field.
 * @var  string $name  Name of the input field.
 * @var  string $value Value attribute of the field.
 */

Text::script('ERROR');
Text::script('MESSAGE');
Text::script('COM_SCHEDULER_CONFIG_WEBCRON_LINK_COPY_SUCCESS');
Text::script('COM_SCHEDULER_CONFIG_WEBCRON_LINK_COPY_FAIL');

/** @var CMSApplication $app */
$app = Factory::getApplication();
$wa  = $app->getDocument()->getWebAssetManager();
$wa->getRegistry()->addExtensionRegistryFile('com_scheduler');
$wa->useScript('com_scheduler.scheduler-config');
?>

<div class="input-group">
    <input
        type="text"
        class="form-control"
        name="<?php echo $name; ?>"
        id="<?php echo $id; ?>"
        readonly
        value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>"
    >
    <button
        class="btn btn-primary"
        type="button"
        id="link-copy"
        title="<?php echo Text::_('COM_SCHEDULER_CONFIG_WEBCRON_LINK_COPY_DESC'); ?>"><?php echo Text::_('JLIB_HTML_BATCH_COPY'); ?>
    </button>
</div>

The same content is in 233 releases, Joomla 4.2.0-beta3 to 6.3.0-alpha1. See them all, or every version of this file.