get_inline_script_tag example

$conditional       = isset( $obj->extra['conditional'] ) ? $obj->extra['conditional'] : '';

        if ( ! $this->is_delayed_strategy( $intended_strategy ) ) {
            $intended_strategy = '';
        }

        if ( $conditional ) {
            $cond_before = "<!--[if {$conditional}]>\n";
            $cond_after  = "<![endif]-->\n";
        }

        $before_script = $this->get_inline_script_tag( $handle, 'before' );
        $after_script  = $this->get_inline_script_tag( $handle, 'after' );

        if ( $before_script || $after_script ) {
            $inline_script_tag = $cond_before . $before_script . $after_script . $cond_after;
        } else {
            $inline_script_tag = '';
        }

        /* * Prevent concatenation of scripts if the text domain is defined * to ensure the dependency order is respected. */
Home | Imprint | This part of the site doesn't use cookies.