| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/components/com_jlexreview/views/embed/ |
Upload File : |
<?php
/**
* @package JLex Review
* @version 4.2.3
* @copyright Copyright (c) 2013-2018 JLexArt. All rights reserved
* @license GNU General Public License version 2 or later;
* @author www.jlexart.com
*/
defined ( "_JEXEC" ) or die;
class JLexReviewViewEmbed extends JViewLegacy
{
protected $body;
protected $els;
protected $item;
public function display($tpl = null)
{
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$config = JLexReviewHelperAdmin::getConfig();
$obj = $app->getInput()->getCmd('obj','');
$id = $app->getInput()->getInt('id', 0);
if ($config->get('embed_enable',0)==0)
{
throw new Exception(JText::_("JR_PAGE_NOT_FOUND"), 404);
return;
}
$model = $this->getModel('embed');
$this->item = $model->loadEntry($obj, $id);
if (!$this->item)
{
throw new Exception(JText::_("JR_PAGE_NOT_FOUND"), 404);
return;
}
// set tmpl
$doc->setMetaData("robots", "noindex");
$app->getInput()->set('tmpl','component');
// markup
$doc->addStyleSheet(JUri::root(true) . '/media/jlexreview/assets/embed.css');
// setting
$config->set('enable_subscribe',0);
$config->set('embed_page',1);
$config->set('u_post_review',false);
$config->set('enable_toolbar', 0);
$config->set('summary_board', 1);
$config->set('object_rating_point', 1);
$config->set('list_review', ($app->getInput()->getInt('list',0)>0?1:0));
$config->set('header', 0);
$config->set('tab_photo',0);
$config->set('comment_enable', 0);
$config->set('rating_criteria_board', 0);
$config->set('star_rating_detail', ($app->getInput()->getInt('sd',0)>0?1:0));
$config->set('jdisplay', 'embed');
require_once JPATH_ROOT . '/components/com_jlexreview/load.php';
$this->body = JLexReviewLoad::init( $this->item->object_name, $this->item->object, $this->item->object_id );
$this->els = '';
parent::display();
}
}