pro_label = __( 'Pro', 'epsilon-framework' ); $this->allowed = apply_filters( 'epsilon_upsell_control_display', true ); $manager->register_control_type( 'Epsilon_Control_Upsell' ); parent::__construct( $manager, $id, $args ); } /** * */ public function to_json() { parent::to_json(); $this->json['button_text'] = $this->button_text; $this->json['button_url'] = $this->button_url; $this->json['second_button_text'] = $this->second_button_text; $this->json['second_button_url'] = $this->second_button_url; $this->json['separator'] = $this->separator; $this->json['allowed'] = $this->allowed; $arr = array(); $i = 0; foreach ( $this->options as $option ) { $arr[ $i ]['option'] = $option; $i ++; } $i = 0; foreach ( $this->requirements as $help ) { $arr[ $i ]['help'] = $help; $i ++; } $this->json['options'] = $arr; $this->json['pro_label'] = $this->pro_label; } /** * */ public function content_template() { //@formatter:off ?> <# if ( data.allowed ) { #>