Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/stream/videos.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\Date\Date; use Joomla\CMS\Table\Table; use Joomla\Registry\Registry; defined('_JEXEC') or die('Restricted access'); $user = CFactory::getUser($this->act->actor); if ( !is_object($act->params)) $act->params = new Registry($act->params); $param = $act->params; $video = Table::getInstance( 'Video' , 'CTable' ); $video->load( $act->cid ); $this->set('video', $video); $mood = $param->get('mood',null); // Attach to $act since it is used by the video library $act->video = $video; // Load saperate template for featured videos if( $act->app == 'videos.featured'){ $this->load('activities/videos/featured'); return; } // Load saperate template for comment on videos // param is legacy code, its kept to make sure we are able to distinguish this as a comment if ($act->app == 'videos.comment' || $param->get('action') == 'wall') { $this->load('activities/videos/comment'); return; } $stream = new stdClass(); if($act->groupid){ $group = Table::getInstance( 'Group' , 'CTable' ); $group->load( $act->groupid ); $stream->group = $group; $act->appTitle = $group->name; } if($act->pageid){ $page = Table::getInstance( 'Page' , 'CTable' ); $page->load( $act->pageid ); $stream->page = $page; $act->appTitle = $page->name; } // get created date time $date = Date::getInstance($this->act->created); if ( $config->get('activitydateformat') == "lapse" ) { $createdTime = CTimeHelper::timeLapse($date); } else { $createdTime = $date->format($config->get('profileDateFormat')); } $stream->actor = $user; $stream->target = null; $stream->headline = CVideos::getActivityTitleHTML($act); $stream->message = ""; $stream->pageid = $act->pageid; $stream->groupid = $act->groupid; $stream->eventid = $act->eventid; $stream->attachments = array(); $stream->access = $video->permissions; $stream->createdtime = $createdTime; $quoteContent = CActivities::format($act->title,$mood); //if(!empty($quoteContent) && $param->get('style') == COMMUNITY_STREAM_STYLE){ if($param->get('style') == COMMUNITY_STREAM_STYLE){ $attachment = new stdClass(); $attachment->type = 'text'; $attachment->message = $quoteContent; $attachment->hasMood = is_null($mood) ? false : true; /* Temporary fix for sprint 2 */ if ($this->act instanceof CTableActivity) { /* If this's CTableActivity then we use getProperties() */ $activity = new CActivity($this->act->getProperties()); } else { /* If it's standard object than we just passing it */ $activity = new CActivity($this->act); } $attachment->activity = $activity; $attachment->address = $activity->getLocation(); $stream->attachments[] = $attachment; } $attachment = new stdClass(); $attachment->type = 'video'; $attachment->id = $act->cid; $attachment->title = $video->title; $attachment->thumbnail = (($video->thumb) ? $video->thumb : $video->getThumbnail()); $attachment->description = $video->description; $attachment->duration = CVideosHelper::toNiceHMS(CVideosHelper::formatDuration($video->duration)); $attachment->access = $act->access; $attachment->video_type = $video->type; $attachment->link = $video->path; $stream->attachments[] = $attachment; $this->set('stream', $stream); $this->load('stream/base-extended');
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка