is_rtl example

__FUNCTION__,
                '2.2.0',
                sprintf(
                    /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name. */
                    __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ),
                    '<code>' . $show . '</code>',
                    '<code>bloginfo()</code>',
                    '<code>is_rtl()</code>'
                )
            );
            if ( function_exists( 'is_rtl' ) ) {
                $output = is_rtl() ? 'rtl' : 'ltr';
            } else {
                $output = 'ltr';
            }
            break;
        case 'name':
        default:
            $output = get_option( 'blogname' );
            break;
    }

    $url = true;

    

function add_editor_style( $stylesheet = 'editor-style.css' ) {
    global $editor_styles;

    add_theme_support( 'editor-style' );

    $editor_styles = (array) $editor_styles;
    $stylesheet    = (array) $stylesheet;

    if ( is_rtl() ) {
        $rtl_stylesheet = str_replace( '.css', '-rtl.css', $stylesheet[0] );
        $stylesheet[]   = $rtl_stylesheet;
    }

    $editor_styles = array_merge( $editor_styles$stylesheet );
}

/** * Removes all visual editor stylesheets. * * @since 3.1.0 * * @global array $editor_styles * * @return bool True on success, false if there were no stylesheets to remove. */
$step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0;

/** * Display installation header. * * @since 2.5.0 * * @param string $body_classes */
function display_header( $body_classes = '' ) {
    header( 'Content-Type: text/html; charset=utf-8' );
    if ( is_rtl() ) {
        $body_classes .= 'rtl';
    }
    if ( $body_classes ) {
        $body_classes = ' ' . $body_classes;
    }
    ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta name="viewport" content="width=device-width" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex,nofollow" /> <title>


/** * Changes the default navigation arrows to svg icons * * @since Twenty Twenty-One 1.0 * * @param string $calendar_output The generated HTML of the calendar. * @return string */
function twenty_twenty_one_change_calendar_nav_arrows( $calendar_output ) {
    $calendar_output = str_replace( '&laquo; ', is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' )$calendar_output );
    $calendar_output = str_replace( ' &raquo;', is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' )$calendar_output );
    return $calendar_output;
}
add_filter( 'get_calendar', 'twenty_twenty_one_change_calendar_nav_arrows' );

/** * Get custom CSS. * * Return CSS for non-latin language, if available, or null * * @since Twenty Twenty-One 1.0 * * @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor". * @return string */
$itemtag = 'dl';
    }
    if ( ! isset( $valid_tags[ $captiontag ] ) ) {
        $captiontag = 'dd';
    }
    if ( ! isset( $valid_tags[ $icontag ] ) ) {
        $icontag = 'dt';
    }

    $columns   = (int) $atts['columns'];
    $itemwidth = $columns > 0 ? floor( 100 / $columns ) : 100;
    $float     = is_rtl() ? 'right' : 'left';

    $selector = "gallery-{$instance}";

    $gallery_style = '';

    /** * Filters whether to print default gallery styles. * * @since 3.1.0 * * @param bool $print Whether to print default gallery styles. * Defaults to false if the theme supports HTML5 galleries. * Otherwise, defaults to true. */
    if (
        ( is_array( $content_func ) && ! empty( $content_func[1] ) && str_starts_with( (string) $content_func[1], 'media' ) ) ||
        ( ! is_array( $content_func ) && str_starts_with( $content_func, 'media' ) )
    ) {
        wp_enqueue_style( 'deprecated-media' );
    }

    ?> <script type="text/javascript"> addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup', isRtl = <?php echo (int) is_rtl(); ?>; </script> <?php     /** This action is documented in wp-admin/admin-header.php */
    do_action( 'admin_enqueue_scripts', 'media-upload-popup' );

    /** * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed. * * @since 2.9.0 */
    do_action( 'admin_print_styles-media-upload-popup' );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

            ?> </ol><!-- .comment-list --> <?php         the_comments_pagination(
            array(
                'before_page_number' => esc_html__( 'Page', 'twentytwentyone' ) . ' ',
                'mid_size'           => 0,
                'prev_text'          => sprintf(
                    '%s <span class="nav-prev-text">%s</span>',
                    is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ),
                    esc_html__( 'Older comments', 'twentytwentyone' )
                ),
                'next_text'          => sprintf(
                    '<span class="nav-next-text">%s</span> %s',
                    esc_html__( 'Newer comments', 'twentytwentyone' ),
                    is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' )
                ),
            )
        );
        ?>
$body_class = 'wp-core-ui wp-customizer js';

if ( wp_is_mobile() ) :
    $body_class .= ' mobile';
    add_filter( 'admin_viewport_meta', '_customizer_mobile_viewport_meta' );
endif;

if ( $wp_customize->is_ios() ) {
    $body_class .= ' ios';
}

if ( is_rtl() ) {
    $body_class .= ' rtl';
}
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );

if ( wp_use_widgets_block_editor() ) {
    $body_class .= ' wp-embed-responsive';
}

$admin_title = sprintf( $wp_customize->get_document_title_template()__( 'Loading&hellip;' ) );

?>
    wp_enqueue_style( 'colors' );
    ?> <script type="text/javascript"> addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();} var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = '<?php echo esc_js( $current_screen->id ); ?>', typenow = '<?php echo esc_js( $current_screen->post_type ); ?>', adminpage = '<?php echo esc_js( $admin_body_class ); ?>', thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>', decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>', isRtl = <?php echo (int) is_rtl(); ?>; </script> <?php     /** This action is documented in wp-admin/admin-header.php */
    do_action( 'admin_enqueue_scripts', $hook_suffix );

    /** This action is documented in wp-admin/admin-header.php */
    do_action( "admin_print_styles-{$hook_suffix});  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action( 'admin_print_styles' );

    

    function twenty_twenty_one_the_posts_navigation() {
        the_posts_pagination(
            array(
                'before_page_number' => esc_html__( 'Page', 'twentytwentyone' ) . ' ',
                'mid_size'           => 0,
                'prev_text'          => sprintf(
                    '%s <span class="nav-prev-text">%s</span>',
                    is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ),
                    wp_kses(
                        __( 'Newer <span class="nav-short">posts</span>', 'twentytwentyone' ),
                        array(
                            'span' => array(
                                'class' => array(),
                            ),
                        )
                    )
                ),
                'next_text'          => sprintf(
                    '<span class="nav-next-text">%s</span> %s',
                    
<?php // Template for the Crop area layout, used for example in the Customizer. ?> <script type="text/html" id="tmpl-crop-content"> <img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>" /> <div class="upload-errors"></div> </script> <?php // Template for the Site Icon preview, used for example in the Customizer. ?> <script type="text/html" id="tmpl-site-icon-preview"> <h2><?php _e( 'Preview' ); ?></h2> <strong aria-hidden="true"><?php _e( 'As a browser icon' ); ?></strong> <div class="favicon-preview"> <img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" height="" alt="" /> <div class="favicon"> <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>" /> </div> <span class="browser-title" aria-hidden="true"><# print( '<?php echo esc_js( get_bloginfo( 'name' ) ); ?>' ) #></span> </div> <strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong> <div class="app-icon-preview"> <img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>" /> </div> </script>


    $guessurl = site_url();

    if ( ! $guessurl ) {
        $guessurl = wp_guess_url();
    }

    $styles->base_url        = $guessurl;
    $styles->content_url     = defined( 'WP_CONTENT_URL' ) ? WP_CONTENT_URL : '';
    $styles->default_version = get_bloginfo( 'version' );
    $styles->text_direction  = function_exists( 'is_rtl' ) && is_rtl() ? 'rtl' : 'ltr';
    $styles->default_dirs    = array( '/wp-admin/', '/wp-includes/css/' );

    // Open Sans is no longer used by core, but may be relied upon by themes and plugins.     $open_sans_font_url = '';

    /* * translators: If there are characters in your language that are not supported * by Open Sans, translate this to 'off'. Do not translate into your own language. */
    if ( 'off' !== _x( 'on', 'Open Sans font: on or off' ) ) {
        $subsets = 'latin,latin-ext';

        
/** * Filters the link text of the header logo above the login form. * * @since 5.2.0 * * @param string $login_header_text The login header logo link text. */
    $login_header_text = apply_filters( 'login_headertext', $login_header_text );

    $classes = array( 'login-action-' . $action, 'wp-core-ui' );

    if ( is_rtl() ) {
        $classes[] = 'rtl';
    }

    if ( $interim_login ) {
        $classes[] = 'interim-login';

        ?> <style type="text/css">html{background-color: transparent;}</style> <?php
        if ( 'success' === $interim_login ) {
            
$admin_body_class = preg_replace( '/[^a-z0-9_-]+/i', '-', $hook_suffix );
?> <script type="text/javascript"> addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = '<?php echo esc_js( $current_screen->id ); ?>', typenow = '<?php echo esc_js( $current_screen->post_type ); ?>', adminpage = '<?php echo esc_js( $admin_body_class ); ?>', thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>', decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>', isRtl = <?php echo (int) is_rtl(); ?>; </script> <?php
/** * Fires when enqueuing scripts for all admin pages. * * @since 2.8.0 * * @param string $hook_suffix The current admin page. */
do_action( 'admin_enqueue_scripts', $hook_suffix );

$default_editor_styles = array(
            array( 'css' => $default_editor_styles_file_contents ),
        );
    }

    $editor_settings = array(
        'alignWide'                        => get_theme_support( 'align-wide' ),
        'allowedBlockTypes'                => true,
        'allowedMimeTypes'                 => get_allowed_mime_types(),
        'defaultEditorStyles'              => $default_editor_styles,
        'blockCategories'                  => get_default_block_categories(),
        'isRTL'                            => is_rtl(),
        'imageDefaultSize'                 => $image_default_size,
        'imageDimensions'                  => $image_dimensions,
        'imageEditing'                     => true,
        'imageSizes'                       => $available_image_sizes,
        'maxUploadFileSize'                => $max_upload_size,
        // The following flag is required to enable the new Gallery block format on the mobile apps in 5.9.         '__unstableGalleryWithImageBlocks' => true,
    );

    $theme_settings = get_classic_theme_supports_block_editor_settings();
    foreach ( $theme_settings as $key => $value ) {
        
Home | Imprint | This part of the site doesn't use cookies.