| Server IP : 87.98.231.4 / Your IP : 216.73.217.178 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/plugins/vmcustom/istraxx_download_simple/fields/ |
Upload File : |
<?php
defined('_JEXEC') or die();
/**
* Layout for reminder field
*
* @version $Id: default.php 460 2015-01-14 17:25:07Z milbo $
* @subpackage Plugins -${PHING.GROUP} - ${PHING.FILENAME} - ${PHING.VERSION}
* @author ${PHING.AUTHOR.MAX}
* @copyright Copyright (C) 2018 - 2018 iStraxx UG (haftungsbeschr�nkt). All rights reserved.
* @license LGPLv3
*/
class JFormFieldTeaser extends JFormField{
var $_name = 'teaser';
function getLabel() {
$config = new stdClass();
$config->fieldname = $this->_name;
$config->plugin = (string) $this->element['name'];
$config->psType = 'vmcustom';
$config->layout = (string) $this->element['layout'];
echo $this->renderByRemLayout($config);
}
static public function renderByRemLayout($config ){
$layout = self::_getRemLayoutPath ($config->plugin, $config->psType, $config->layout);
if($layout){
ob_start ();
include ($layout);
return ob_get_clean ();
}
}
static public function _getRemLayoutPath ($pluginName, $group, $layout = 'default') {
$layoutPath='';
jimport ('joomla.filesystem.file');
$defaultPath = VMPATH_ROOT .'/plugins/'. $group . '/' . $pluginName .'/layouts/'. $layout . '.php';
$defaultPath1 = VMPATH_ROOT .'/plugins/'. $group . '/' . $pluginName. '/' . $pluginName .'/layouts/'. $layout . '.php';
$defaultPath2 = VMPATH_ROOT .'/modules/' . $pluginName .'/layouts/'. $layout . '.php';
if (JFile::exists ($defaultPath)) {
$layoutPath = $defaultPath;
} else if (JFile::exists ($defaultPath1)) {
$layoutPath = $defaultPath1;
}else if (JFile::exists ($defaultPath2)) {
$layoutPath = $defaultPath2;
}
if (empty($layoutPath)) {
$warn='The layout: '. $layout. ' does not exist in:';
$warn.='<br />'.$defaultPath;
if (!empty($defaultPathWithGroup)) {
$warn.='<br />'.$defaultPathWithGroup .'<br />';
}
vmWarn($warn);
throw new Exception('Layout missing '.$defaultPath);
return false;
}
return $layoutPath;
}
}