Controls_Manager::TEXT, 'default' => '', 'placeholder' => __( '[shortcode attribute="value"]', 'elementor-extras' ), 'label_block' => true, ]; } /** * Get Value Control * * Get the settings for the value control * * @since 2.2.27 * @return string */ public function get_value_control() { return [ 'type' => Controls_Manager::TEXTAREA, 'default' => '', 'description' => __( 'Enter the string that the shortcode needs to return in order for the condition to apply.', 'elementor-extras' ), ]; } /** * Check condition * * @since 2.2.27 * * @access public * * @param string $name The control name to check * @param string $operator Comparison operator * @param mixed $value The control value to check */ public function check( $name = null, $operator, $value ) { $show = false; $output = do_shortcode( $name ); if ( is_string( $output ) && $value === $output ) { $show = true; } return $this->compare( $show, true, $operator ); } }