get_previewable_devices example

<?php // Panels and sections are managed here via JavaScript ?></ul> </div> </div> </div> <div id="customize-footer-actions" class="wp-full-overlay-footer"> <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr_x( 'Hide Controls', 'label for hide controls button without length constraints' ); ?>"> <span class="collapse-sidebar-arrow"></span> <span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span> </button> <?php $previewable_devices = $wp_customize->get_previewable_devices(); ?> <?php if ( ! empty( $previewable_devices ) ) : ?> <div class="devices-wrapper"> <div class="devices"> <?php foreach ( (array) $previewable_devices as $device => $settings ) : ?> <?php                         if ( empty( $settings['label'] ) ) {
                            continue;
                        }
                        $active = ! empty( $settings['default'] );
                        $class  = 'preview-' . $device;
                        if ( $active ) {
                            
'login'         => sanitize_url( $login_url ),
            ),
            'browser'                => array(
                'mobile' => wp_is_mobile(),
                'ios'    => $this->is_ios(),
            ),
            'panels'                 => array(),
            'sections'               => array(),
            'nonce'                  => $this->get_nonces(),
            'autofocus'              => $this->get_autofocus(),
            'documentTitleTmpl'      => $this->get_document_title_template(),
            'previewableDevices'     => $this->get_previewable_devices(),
            'l10n'                   => array(
                'confirmDeleteTheme'   => __( 'Are you sure you want to delete this theme?' ),
                /* translators: %d: Number of theme search results, which cannot currently consider singular vs. plural forms. */
                'themeSearchResults'   => __( '%d themes found' ),
                /* translators: %d: Number of themes being displayed, which cannot currently consider singular vs. plural forms. */
                'announceThemeCount'   => __( 'Displaying %d themes' ),
                /* translators: %s: Theme name. */
                'announceThemeDetails' => __( 'Showing details for theme: %s' ),
            ),
        );

        
Home | Imprint | This part of the site doesn't use cookies.