Файловый менеджер - Редактировать - /var/www/html/components/com_osmembership/view/plugins/tmpl/schedulesppagebuilder.php
Ðазад
<?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; /** * Layout variables * ----------------- * @var array $items * @var \Joomla\Registry\Registry $params * @var array $subscriptions */ JLoader::register('SppagebuilderHelperRoute', JPATH_ROOT . '/components/com_sppagebuilder/helpers/route.php'); $openPages = $params->get('open_pages'); $config = OSMembershipHelper::getConfig(); $bootstrapHelper = OSMembershipHelperBootstrap::getInstance(); $centerClass = $bootstrapHelper->getClassMapping('center'); ?> <table class="adminlist <?php echo $bootstrapHelper->getClassMapping('table table-striped table-bordered'); ?>"> <thead> <tr> <th class="title"><?php echo Text::_('OSM_TITLE'); ?></th> <th class="title <?php echo $centerClass; ?>"><?php echo Text::_('OSM_ACCESSIBLE_ON'); ?></th> </tr> </thead> <tbody> <?php foreach ($items as $item) { $pagesLink = Route::_(SppagebuilderHelperRoute::getPageRoute($item->id, '0')); $subscription = $subscriptions[$item->plan_id]; $date = Factory::getDate($subscription->active_from_date); $date->add(new DateInterval('P' . $item->number_days . 'D')); ?> <tr> <td> <i class="icon-file"></i> <?php if ($item->isReleased || ($subscription->active_in_number_days >= $item->number_days)) { ?> <a href="<?php echo $pagesLink ?>"<?php echo($openPages ? '' : ' target="_blank"'); ?>><?php echo $item->title; ?></a> <?php } else { echo $item->title . ' <span class="label">' . Text::_('OSM_LOCKED') . '</span>'; } ?> </td> <td class="<?php echo $centerClass; ?>"> <?php echo HTMLHelper::_('date', $date->format('Y-m-d H:i:s'), $config->date_format); ?> </td> </tr> <?php } ?> </tbody> </table>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка