Your IP : 216.73.216.162


Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/
Upload File :
Current File : /home/x/b/o/xbodynamge/namtation/wp-content/class-ti-notify.php.tar

home/xbodynamge/www/wp-content/themes/responsiveboat/class-ti-notify.php000060400000002001151126373310022630 0ustar00<?php
/**
 * Class Ti_Notify
 */
class Ti_Notify extends WP_Customize_Section {

	/**
	 * The type of customize section being rendered.
	 *
	 * @since  1.0.4
	 * @access public
	 * @var    string
	 */
	public $type = 'ti-notify';

	public $text = '';

	/**
	 * Add custom parameters to pass to the JS via JSON.
	 *
	 * @since  1.0.4
	 * @access public
	 * @return void
	 */
	public function json() {
		$json = parent::json();
		$json['text'] = $this->text;
		return $json;
	}
	/**
	 * Outputs the structure for the customizer control
	 *
	 * @since  1.0.4
	 * @access public
	 * @return void
	 */
	protected function render_template() { ?>
		<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">
			<h3 class="accordion-section-title">
				<span class="section-title">
                    <# if( data.text.length > 0 ){ #>
                        {{{ data.text }}}
                    <# } #>
                </span>
			</h3>
		</li>
		<?php
	}
}
?>