Making WordPress.org


Ignore:
Timestamp:
08/30/2022 05:46:27 AM (22 months ago)
Author:
dufresnesteven
Message:

wporg-themes: Add responsive viewports to theme preview.

Props fahimmurshed, otto42, mapk, melchoyce.
Closes #5063.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-preview.php

    r9630 r12033  
    4040                <span class="collapse-sidebar-arrow"></span>
    4141            </a>
     42            <div class="devices">
     43                <button data-device="preview-desktop" class="preview-desktop active"><span class="screen-reader-text"><?php echo _e( 'Enter desktop preview mode', 'wporg-themes' ); ?></span></button>
     44                <button data-device="preview-tablet" class="preview-tablet"><span class="screen-reader-text"><?php _e( 'Enter tablet preview mode', 'wporg-themes' ); ?></span></button>
     45                <button data-device="preview-mobile" class="preview-mobile"><span class="screen-reader-text"><?php _e( 'Enter mobile preview mode', 'wporg-themes' ); ?></span></button>
     46            </div>
    4247        </div>
    4348    </div>
Note: See TracChangeset for help on using the changeset viewer.