WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/21/2014 10:04:40 AM (7 years ago)
Author:
obenland
Message:

WP.org Themes: Bring theme installer goodies to the front-end.

This brings most of the Backbone and Themes API-based functionality
from the admin's theme install screen to the front-end.

There are of course still loads of things to do, but it works
decently enough to share it with the world and give an idea of where
this is headed.

See https://make.wordpress.org/meta/2014/11/20/theme-repository-theme/
See #745.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/single.php

    r887 r1001  
    1515
    1616<div id="pagebody">
    17         <div class="wrapper">
     17    <div class="wrapper">
    1818        <div class="col-12">
    19         <div class="theme-browser">
    20         TODO menu bar
    21        
    22         <div class="themes">
    23         <?php if ( have_posts() ) : ?>
     19            <div class="theme-browser">
     20                TODO menu bar
    2421
    25             <?php while ( have_posts() ) : the_post(); ?>
    26                 <?php get_template_part( 'content', 'single' ); ?>
    27             <?php endwhile; ?>
    28         <?php else : ?>
    29             <?php get_template_part( 'content', 'none' ); ?>
    30         <?php endif; ?>
    31         </div>
    32         </div>
     22                <div class="themes">
     23                    <?php
     24                        if ( have_posts() ) :
     25                            while ( have_posts() ) :
     26                                the_post();
     27
     28                                get_template_part( 'content', 'single' );
     29                            endwhile;
     30                        else :
     31                            get_template_part( 'content', 'none' );
     32                        endif;
     33                    ?>
     34                </div>
     35            </div>
    3336        </div>
    3437    </div>
    3538</div>
    36 
    3739<?php get_footer(); ?>
Note: See TracChangeset for help on using the changeset viewer.