File manager - Edit - /home/verseaumee/ptitsanes/plugins/solidres/experience/components/com_solidres/views/expembed/view.html.php
Back
<?php /** ------------------------------------------------------------------------ SOLIDRES - Accommodation booking extension for Joomla ------------------------------------------------------------------------ * @author Solidres Team <contact@solidres.com> * @website https://www.solidres.com * @copyright Copyright (C) 2013 - 2019 Solidres. All Rights Reserved. * @license GNU General Public License version 3, or later ------------------------------------------------------------------------ */ defined('_JEXEC') or die; use Joomla\CMS\Helper\ModuleHelper; use Joomla\CMS\Factory as CMSFactory; class SolidresViewExpEmbed extends SRViewLegacy { public function display($tpl = null) { $app = CMSFactory::getApplication('site'); $embedId = (string) $app->input->get('embedId', '0', 'uint'); $module = ModuleHelper::getModuleById($embedId); if ($module->id && $module->module === 'mod_sr_experience_search') { $app->input->set('tmpl', 'component'); echo '<div id="embed-' . $embedId . '">' . ModuleHelper::renderModule($module) . '</div>'; CMSFactory::getDocument()->addScriptDeclaration(<<<JS Solidres.jQuery(document).ready(function($) { $('#embed-{$embedId} form').attr('target', '_blank'); }); JS ); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings