[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_scheduler/tmpl/select/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_scheduler
   6   *
   7   * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  /** The SelectView default layout template. */
  12  
  13  // Restrict direct access
  14  defined('_JEXEC') or die;
  15  
  16  use Joomla\CMS\HTML\HTMLHelper;
  17  use Joomla\CMS\Language\Text;
  18  use Joomla\CMS\Router\Route;
  19  use Joomla\Component\Scheduler\Administrator\View\Select\HtmlView;
  20  
  21  /** @var  HtmlView  $this */
  22  
  23  $app = $this->app;
  24  
  25  $wa = $this->document->getWebAssetManager();
  26  $wa->useStyle('com_scheduler.admin-view-select-task-css');
  27  $wa->useScript('com_scheduler.admin-view-select-task-search');
  28  
  29  ?>
  30  
  31  <!-- Tasks search box on below the toolbar begins -->
  32  <div class="d-none" id="comSchedulerSelectSearchContainer">
  33      <div class="d-flex mt-2">
  34          <div class="ms-auto me-auto">
  35              <label class="visually-hidden" for="comSchedulerSelectSearch">
  36                  <?php echo Text::_('COM_SCHEDULER_TYPE_CHOOSE'); ?>
  37              </label>
  38              <div class="input-group mb-3 me-sm-2">
  39                  <input type="text" value=""
  40                         class="form-control" id="comSchedulerSelectSearch"
  41                         placeholder="<?php echo Text::_('JSEARCH_FILTER'); ?>"
  42                  >
  43                  <div class="input-group-text">
  44                      <span class="icon-search" aria-hidden="true"></span>
  45                  </div>
  46              </div>
  47          </div>
  48      </div>
  49  </div>
  50  <!-- Search box and related elements end -->
  51  
  52  <div id="new-tasks-list">
  53      <div class="new-tasks">
  54          <!-- Hidden alert div -->
  55          <div class="tasks-alert alert alert-info d-none">
  56              <span class="icon-info-circle" aria-hidden="true"></span><span
  57                      class="visually-hidden"><?php echo Text::_('INFO'); ?></span>
  58              <?php echo Text::_('COM_SCHEDULER_MSG_MANAGE_NO_TASK_PLUGINS'); ?>
  59          </div>
  60          <h2 class="pb-3 ms-3" id="comSchedulerSelectTypeHeader">
  61              <?php echo Text::_('COM_SCHEDULER_TYPE_CHOOSE'); ?>
  62          </h2>
  63  
  64          <!-- Parent card -->
  65          <div class="main-card card-columns p-4" id="comSchedulerSelectResultsContainer">
  66  
  67              <!-- Plugin task cards start below -->
  68              <?php foreach ($this->items as $item) : ?>
  69                  <?php // Prepare variables for the link. ?>
  70                  <?php $link = 'index.php?option=com_scheduler&task=task.add&type=' . $item->id; ?>
  71                  <?php $name = $this->escape($item->title); ?>
  72                  <?php $desc = HTMLHelper::_('string.truncate', $this->escape(strip_tags($item->desc)), 200); ?>
  73                  <!-- The task card begins -->
  74                  <a href="<?php echo Route::_($link); ?>" class="new-task mb-3 comSchedulerSelectCard"
  75                     data-function="' . $this->escape($function) : ''; ?>"
  76                     aria-label="<?php echo Text::sprintf('COM_SCHEDULER_SELECT_TASK_TYPE', $name); ?>">
  77                      <div class="new-task-details">
  78                          <h3 class="new-task-title"><?php echo $name; ?></h3>
  79                          <p class="card-body new-task-caption p-0">
  80                              <?php echo $desc; ?>
  81                          </p>
  82                      </div>
  83                      <span class="new-task-link">
  84                          <span class="icon-plus" aria-hidden="true"></span>
  85                      </span>
  86                  </a>
  87                  <!-- The task card ends here -->
  88              <?php endforeach; ?>
  89          </div>
  90      </div>
  91  </div>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer