8889841chome/clixcotz/lions.clix.co.tz/wp-content/plugins/elementor/core/dynamic-tags/tag.php000064400000004312150514210750025016 0ustar00get_settings(); ob_start(); $this->render(); $value = ob_get_clean(); if ( ! Utils::is_empty( $value ) ) { // TODO: fix spaces in `before`/`after` if WRAPPED_TAG ( conflicted with .elementor-tag { display: inline-flex; } ); if ( ! Utils::is_empty( $settings, 'before' ) ) { $value = wp_kses_post( $settings['before'] ) . $value; } if ( ! Utils::is_empty( $settings, 'after' ) ) { $value .= wp_kses_post( $settings['after'] ); } if ( static::WRAPPED_TAG ) : $value = '' . $value . ''; endif; } elseif ( ! Utils::is_empty( $settings, 'fallback' ) ) { $value = $settings['fallback']; } return $value; } /** * @since 2.0.0 * @access public */ final public function get_content_type() { return 'ui'; } /** * @since 2.0.9 * @access public */ public function get_editor_config() { $config = parent::get_editor_config(); $config['wrapped_tag'] = $this::WRAPPED_TAG; return $config; } /** * @since 2.0.0 * @access protected */ protected function register_advanced_section() { $this->start_controls_section( 'advanced', [ 'label' => esc_html__( 'Advanced', 'elementor' ), ] ); $this->add_control( 'before', [ 'label' => esc_html__( 'Before', 'elementor' ), 'ai' => [ 'active' => false, ], ] ); $this->add_control( 'after', [ 'label' => esc_html__( 'After', 'elementor' ), 'ai' => [ 'active' => false, ], ] ); $this->add_control( 'fallback', [ 'label' => esc_html__( 'Fallback', 'elementor' ), 'ai' => [ 'active' => false, ], ] ); $this->end_controls_section(); } }