Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/activities.events.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\Factory; use Joomla\CMS\Table\Table; defined('_JEXEC') or die('Restricted access'); $user = CFactory::getUser($this->act->actor); // Setup event table $event = Table::getInstance('Event', 'CTable'); $event->load($act->eventid); $this->set('event', $event); $action = ''; if (is_object($act->params)) { $action = $act->params->get('action'); $actors = $act->params->get('actors'); }else { if (isset($act->action)) $action = $act->action; $actors = $act->actors; } $this->set('actors', $actors); ?> <?php if( $this->act->app == 'events.wall') { ?> <?php $this->load('activities.profile'); ?> <?php } else if( $action == 'events.create') { ?> <?php if(Factory::getApplication()->input->get('view') != 'events'){$this->load('activities.events.create');}; //hide this from event page ?> <?php } else if( $action == 'events.attendence.attend') { ?> <?php $this->load('activities.events.attend'); ?> <?php } else if( $this->act->app == 'events.featured') { ?> <?php $this->load('activities/events/featured'); ?> <?php } else { ?> <?php $table = Table::getInstance('Activity','CTable'); $table->load($this->act->id); if(!$table->delete()){ ?> <a class="cStream-Avatar cFloat-L" href="<?php echo CUrlHelper::userLink($user->id); ?>"> <img class="cAvatar" data-author="<?php echo $user->id; ?>" src="<?php echo $user->getThumbAvatar(); ?>"> </a> <div class="cStream-Content"> <div class="cStream-Attachment"> <?php $html = CGroups::getActivityContentHTML($act); echo $html; ?> </div> <?php $this->load('activities.actions'); ?> </div> <?php } } ?>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка