* @copyright Copyright (c) 2012 - 2015, Cherry Team * @link http://www.cxframework.com/ * @license http://www.gnu.org/licenses/gpl-3.0.en.html */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } if ( ! class_exists( 'CX_Control_Stepper' ) ) { /** * Class for the building CX_Control_Stepper elements. */ class CX_Control_Stepper extends CX_Controls_Base { /** * Default settings. * * @since 1.0.0 * @var array */ public $defaults_settings = array( 'id' => 'cx-ui-stepper-id', 'name' => 'cx-ui-stepper-name', 'value' => '0', 'max_value' => '100', 'min_value' => '0', 'step_value' => '1', 'label' => '', 'class' => '', 'placeholder' => '', ); /** * Render html UI_Stepper. * * @since 1.0.0 */ public function render() { $html = ''; $class = implode( ' ', array( $this->settings['class'], ) ); $html .= '
'; if ( '' !== $this->settings['label'] ) { $html .= ' '; } $html .= '
'; $html .= ''; $html .= '
'; $html .= '
'; return $html; } } }