Spade

Mini Shell

Directory:~$ /home/lmsyaran/www/joomla5/administrator/components/com_modules/tmpl/module/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/www/joomla5/administrator/components/com_modules/tmpl/module/modalreturn.php

<?php

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

defined('_JEXEC') or die;

/** @var \Joomla\Component\Modules\Administrator\View\Module\HtmlView $this
*/

$icon     = 'icon-check';
$title    = $this->item ? $this->item->title : '';
$content  = $this->item ? $this->item->position : '';
$data     = ['contentType' => 'com_modules.module'];

if ($this->item) {
    $data['id']             = $this->item->id;
    $data['title']          = $this->item->title;
    $data['position']       = $this->item->position;
    $data['module-element'] = $this->item->module;

    // Extra data, used in Menu modal
    $data['status']     = $this->item->published;
    $data['access']     = $this->item->access;
    $data['assignment'] = $this->item->assignment;
    $data['assigned']   = $this->item->assigned;
}

// Add Content select script
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('modal-content-select');

// The data for Content select script
$this->document->addScriptOptions('content-select-on-load',
$data, false);

?>

<div class="px-4 py-5 my-5 text-center">
    <span class="fa-8x mb-4 <?php echo $icon; ?>"
aria-hidden="true"></span>
    <h1 class="display-5 fw-bold"><?php echo $title;
?></h1>
    <div class="col-lg-6 mx-auto">
        <p class="lead mb-4">
            <?php echo $content; ?>
        </p>
    </div>
</div>