Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/activities.photos.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\Language\Text; use Joomla\CMS\Table\Table; defined('_JEXEC') or die(); $album = Table::getInstance('Album', 'CTable'); $album->load($act->cid); $act->album = $album; $this->set('album', $album); // get created date time $date = JDate::getInstance($act->created); if ($config->get('activitydateformat') == "lapse") { $createdTime = CTimeHelper::timeLapse($date); } else { $createdTime = $date->format($config->get('profileDateFormat')); } $user = CFactory::getUser($this->act->actor); if (is_object($act->params)) { $action = $act->params->get('action'); } else { $act->params = new CParameter($act->params); $action = $act->params->get('action'); } // // Load saperate template for featured photo if ($act->app == 'albums.featured') { $this->load('activities/photos/featured'); return; } // Load saperate template for comment on a photo // @since 2.8 .Newers stream uses 'photos.comment' if ($action == 'wall' || $act->app == 'photos.comment') { $this->load('activities.photos.comment'); return; } ?> <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"> <a class="joms-stream__user" href="<?php echo CUrlHelper::userLink($user->id); ?>"><?php echo $user->getDisplayName(false, true); ?></a> <?php // If we're using new stream style or has old style data (which contains {multiple} ) if ($act->params->get('style') == COMMUNITY_STREAM_STYLE || strpos($act->title, '{multiple}')) { // New style $count = $act->params->get('count', $act->params->get('count', 1)); if (CStringHelper::isPlural($count)) { if($act->pageid){ $page = Table::getInstance('Page', 'CTable'); $page->load($act->pageid); $this->set('page', $page); echo Text::sprintf('COM_COMMUNITY_ACTIVITY_PAGE_PHOTOS_UPLOAD_TITLE', $count, CUrlHelper::pageLink($page->id), CStringHelper::escape($page->name)); }elseif($act->groupid){ $group = Table::getInstance('Group', 'CTable'); $group->load($act->groupid); $this->set('group', $group); echo Text::sprintf('COM_COMMUNITY_ACTIVITY_GROUP_PHOTOS_UPLOAD_TITLE', $count, CUrlHelper::groupLink($group->id), CStringHelper::escape($group->name)); }else{ echo Text::sprintf('COM_COMMUNITY_ACTIVITY_PHOTO_UPLOAD_TITLE_MANY', $count, $album->getURI(), CStringHelper::escape($album->name)); } } else { if($act->pageid){ $page = Table::getInstance('Page', 'CTable'); $page->load($act->pageid); $this->set('page', $page); echo Text::sprintf('COM_COMMUNITY_ACTIVITY_PAGE_PHOTO_UPLOAD_TITLE', CUrlHelper::pageLink($page->id), CStringHelper::escape($page->name)); }elseif($act->groupid){ $group = Table::getInstance('Group', 'CTable'); $group->load($act->groupid); $this->set('group', $group); echo Text::sprintf('COM_COMMUNITY_ACTIVITY_GROUP_PHOTO_UPLOAD_TITLE', CUrlHelper::groupLink($group->id), CStringHelper::escape($group->name)); }else{ //since we know animation always been uploaded as single photo, so it will always end in singular condition if($act->params->get('albumType') == 'profile.gif') { echo Text::_('COM_COMMUNITY_ACTIVITY_PHOTO_ANIMATION_UPLOAD_TITLE'); }else { echo Text::sprintf('COM_COMMUNITY_ACTIVITY_PHOTO_UPLOAD_TITLE', $album->getURI(), CStringHelper::escape($album->name)); } } } } ?> <span> <small><?php echo $createdTime; ?></small> <?php if(!$act->groupid) $this->load('/privacy/show'); ?> </span> </div> <?php $my = CFactory::getUser(); $this->load('activities.stream.options'); ?> </div> <div class="joms-stream__body"> <?php //remove for now if ($act->groupid && false) { $group = Table::getInstance('Group', 'CTable'); $group->load($act->groupid); $this->set('group', $group); ?> <a class="joms-stream-reference" href="<?php echo CUrlHelper::groupLink($group->id); ?>"><i class="joms-icon-users"></i><?php echo $group->name; ?></a> <?php } $html = CPhotos::getActivityContentHTML($act); echo $html; ?> </div> <?php // No action for wall comment if ($action != 'wall') { $this->load('activities.actions'); } ?>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка