PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
consultstreet
/
inc
/
customizer
/
controls
/
code
<?php /** * Customize Sortable control class. * * @package consultstreet * * @see WP_Customize_Control * @access public */ /** * Class ConsultStreet_Customize_Sortable_Control */ class ConsultStreet_Customize_Sortable_Control extends ConsultStreet_Customize_Base_Control { /** * Customize control type. * * @access public * @var string */ public $type = 'consultstreet-sortable'; /** * Renders the Underscore template for this control. * * @see WP_Customize_Control::print_template() * @access protected * @return void */ protected function content_template() { ?> <label class='consultstreet-sortable'> <span class="customize-control-title"> {{{ data.label }}} </span> <# if ( data.description ) { #> <span class="description customize-control-description">{{{ data.description }}}</span> <# } #> <ul class="sortable"> <# _.each( data.value, function( choiceID ) { #> <li {{{ data.inputAttrs }}} class='consultstreet-sortable-item' data-value='{{ choiceID }}'> <i class='dashicons dashicons-menu'></i> <i class="dashicons dashicons-visibility visibility"></i> {{{ data.choices[ choiceID ] }}} </li> <# }); #> <# _.each( data.choices, function( choiceLabel, choiceID ) { #> <# if ( -1 === data.value.indexOf( choiceID ) ) { #> <li {{{ data.inputAttrs }}} class='consultstreet-sortable-item invisible' data-value='{{ choiceID }}'> <i class='dashicons dashicons-menu'></i> <i class="dashicons dashicons-visibility visibility"></i> {{{ data.choices[ choiceID ] }}} </li> <# } #> <# }); #> </ul> </label> <?php } /** * Render content is still called, so be sure to override it with an empty function in your subclass as well. */ protected function render_content() { } }
[-] consultstreet-customize-radio-buttonset-control.php
[edit]
[-] consultstreet-customize-category-control.php
[edit]
[-] consultstreet-customize-upgrade-control.php
[edit]
[-] consultstreet-customize-toggle-control.php
[edit]
[-] consultstreet-customize-radio-image-control.php
[edit]
[-] consultstreet-customize-base-control.php
[edit]
[-] consultstreet-customize-heading-control.php
[edit]
[-] consultstreet-customize-typography-control.php
[edit]
[-] consultstreet-customize-sortable-control.php
[edit]
[-] consultstreet-customize-color-control.php
[edit]
[-] consultstreet-customize-plugin-control.php
[edit]
[-] consultstreet-customize-slider-control.php
[edit]
[+]
..