Files
2025-07-13 11:19:53 +02:00

56 lines
1.2 KiB
PHP

<?php
/**
* Creative Elements - live Theme & Page Builder
*
* @author WebshopWorks, Elementor
* @copyright 2019-2022 WebshopWorks.com & Elementor.com
* @license https://www.gnu.org/licenses/gpl-3.0.html
*/
namespace CE;
defined('_PS_VERSION_') or die;
/**
* Elementor hidden control.
*
* A base control for creating hidden control. Used to save additional data in
* the database without a visual presentation in the panel.
*
* @since 1.0.0
*/
class ControlHidden extends BaseDataControl
{
/**
* Get hidden control type.
*
* Retrieve the control type, in this case `hidden`.
*
* @since 1.0.0
* @access public
*
* @return string Control type.
*/
public function getType()
{
return 'hidden';
}
/**
* Render hidden control output in the editor.
*
* Used to generate the control HTML in the editor using Underscore JS
* template. The variables for the class are available using `data` JS
* object.
*
* @since 1.0.0
* @access public
*/
public function contentTemplate()
{
?>
<input type="hidden" data-setting="{{{ data.name }}}" />
<?php
}
}