'dashicons-desktop', 'tablet' => 'dashicons-tablet', 'mobile' => 'dashicons-smartphone', ]; $devices = isset( $this->choices['devices'] ) ? $this->choices['devices'] : []; $device_menu = ''; $loop_index = 0; foreach ( $devices as $device ) { $loop_index++; $device_menu .= '
  • '; } $this->json['deviceMenu'] = $device_menu; } /** * An Underscore (JS) template for this control's content (but not its container). * * Class variables for this control class are available in the `data` JS object; * export custom variables by overriding {@see WP_Customize_Control::to_json()}. * * @see WP_Customize_Control::print_template() * @since 1.0 */ protected function content_template() { ?>
    {{{ data.label }}}
    <# if (data.description) { #>
    {{{ data.description }}}
    <# } #>