Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/activities/photos/featured.php
Ðазад
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 * More info at https://www.jomsocial.com/license-agreement */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Table\Table; defined('_JEXEC') or die(); $param = $this->act->params; $user = CFactory::getUser($this->act->actor); $album = Table::getInstance('Album', 'CTable'); $album->load($this->act->cid); $album->user = CFactory::getUser($album->creator); $date = JDate::getInstance($act->created); if ( $config->get('activitydateformat') == "lapse" ) { $createdTime = CTimeHelper::timeLapse($date); } else { $createdTime = $date->format($config->get('profileDateFormat')); } $albumUrl = CRoute::_($album->getURI()); $isPhotoModal = $config->get('album_mode') == 1; if ( $isPhotoModal ) { $albumUrl = 'javascript:" onclick="joms.api.photoOpen(\'' . $album->id . '\', \'\');'; } ?> <div class="joms-stream__header"> <div class= "joms-avatar--stream <?php echo CUserHelper::onlineIndicator($user); ?>"> <a href="<?php echo CUrlHelper::userLink($user->id); ?>"> <img data-author="<?php echo $user->id; ?>" src="<?php echo $user->getThumbAvatar(); ?>" alt="<?php echo $user->getDisplayName(); ?>" > </a> </div> <div class="joms-stream__meta"> <?php echo Text::sprintf('COM_COMMUNITY_ALBUM_IS_FEATURED', '<a href="' . $albumUrl . '">' . $this->escape($album->name) . '</a>'); ?> <span class="joms-stream__time"><small><?php echo $createdTime; ?></small></span> </div> </div> <div class="joms-stream__body"> <div class="joms-media--album"> <div class="joms-media__thumbnail"> <a href="<?php echo $albumUrl; ?>"> <img src="<?php echo $album->getCoverThumbURI()?>" alt="<?php echo $this->escape($album->name)?>" > </a> </div> <div class="joms-media__body"> <h4 class="joms-media__title"> <a href="<?php echo $albumUrl; ?>"> <?php echo $this->escape($album->name)?></a> </h4> <p class="joms-media__desc"><?php echo HTMLHelper::_('string.truncate', $album->description, $config->getInt('streamcontentlength') );?></p> </div> </div> </div> <?php $this->act->isFeatured = true; $this->load('stream/footer'); ?>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка