settings as $setting_key => $setting_id ) { $this->json[ $setting_key ] = array( 'link' => $this->get_link( $setting_key ), 'value' => $this->value( $setting_key ) ); } $this->json[ 'element' ] = $this->element; $this->json[ 'title' ] = __( 'Link values', 'gp-premium' ); $this->json[ 'unlink_title' ] = __( 'Un-link values', 'gp-premium' ); $this->json['label_top'] = esc_html__( 'Top', 'gp-premium' ); $this->json['label_right'] = esc_html__( 'Right', 'gp-premium' ); $this->json['label_bottom'] = esc_html__( 'Bottom', 'gp-premium' ); $this->json['label_left'] = esc_html__( 'Left', 'gp-premium' ); $this->json['desktop_label'] = esc_html__( 'Desktop', 'gp-premium' ); $this->json['tablet_label'] = esc_html__( 'Tablet', 'gp-premium' ); $this->json['mobile_label'] = esc_html__( 'Mobile', 'gp-premium' ); } public function content_template() { ?>
<# if ( data.label || data.description ) { #>
<# if ( data.label ) { #> <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #>
<# } #>
<# if ( 'undefined' !== typeof ( data.desktop_top ) ) { #> <# } #> <# if ( 'undefined' !== typeof (data.tablet_top) ) { #> <# } #> <# if ( 'undefined' !== typeof (data.mobile_top) ) { #> <# } #>
<# if ( 'undefined' !== typeof ( data.mobile_top ) ) { #> <# } #>