| Current Path : /home/sunflowe/www2/vacancesfloride/libraries/gantry/admin/forms/fields/ |
| Current File : /home/sunflowe/www2/vacancesfloride/libraries/gantry/admin/forms/fields/file.php |
<?php
/**
* @version $Id: file.php 6564 2013-01-16 17:13:36Z btowles $
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2016 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
defined('GANTRY_VERSION') or die();
/**
* @package gantry
* @subpackage admin.elements
*/
gantry_import('core.config.gantryformfield');
class GantryFormFieldFile extends GantryFormField
{
protected $type = 'html';
protected $basetype = 'none';
public function getInput()
{
/** @global $gantry Gantry */
global $gantry;
$html = '';
$filepath = $this->element['path'];
$filepath = realpath($gantry->templatePath . $filepath);
if ($filepath != false) {
ob_start();
include($filepath);
$html = ob_get_clean();
}
return "<div class='html'>" . $html . "</div>";
}
public function getLabel()
{
return "";
}
}