Making WordPress.org

Changeset 9933


Ignore:
Timestamp:
05/27/2020 01:44:38 AM (6 years ago)
Author:
dufresnesteven
Message:

Showcase: Improve heading structure.

See: #4112

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase
Files:
9 edited

Legend:

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

    r9570 r9933  
    1414                                        <div class="col-5">
    1515                                                <div class="storycontent">
    16                                                                 <h3><?php _e( 'Page Not Found', 'wporg-showcase' ); ?></h3>
     16                                                                <h2><?php _e( 'Page Not Found', 'wporg-showcase' ); ?></h2>
    1717                                                                <p><?php _e( 'Sorry, we could not not find that site in the Showcase. We do have many others available though. Here&#8217;s one chosen at random!', 'wporg-showcase' ); ?></p>
    1818                                                                <?php //breadcrumb(); ?>
    19                                                                 <h3><?php the_title(); ?></h3>
     19                                                                <h2><?php the_title(); ?></h2>
    2020                                                                <a href=' http://<?php get_site_domain( false ); ?>'>
    2121                                                                        <?php site_screenshot_tag( 518, 'screenshot site-screenshot'); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php

    r7416 r9933  
    1818                                                <?php site_screenshot_tag( 145, 'screenshot alignleft' ); ?>
    1919                                        </a>
    20                                         <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
     20                                        <h3 class="heading"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    2121                                        <div class="excerpt"><?php the_content_limit(200); ?></div>
    2222                                        <div class="meta"><?php tags_with_count( 'flat', '<strong>' . __( 'Tags:', 'wporg-showcase' ) . '</strong> ', ', ', '<br />'); ?><?php edit_post_link( __( 'Edit this entry', 'wporg-showcase' ) ); ?></div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

    r9573 r9933  
    8282        global $post;
    8383
    84         echo '<h4>' . __( 'Flavor', 'wporg-showcase' ). '</h4>';
     84        echo '<h2 class="heading">' . __( 'Flavor', 'wporg-showcase' ). '</h2>';
    8585        echo '<ul id="flavors">';
    8686
    … …  
    132132        $tags = get_terms( 'post_tag', $args );
    133133
    134         $out = '<h4>' . __( 'Browse Popular Tags', 'wporg-showcase' ). '</h4>';
     134        $out = '<h2 class="heading">' . __( 'Browse Popular Tags', 'wporg-showcase' ). '</h2>';
    135135        $out .= '<ul class="submenu wpsc-popular-tags">';
    136136
    … …  
    151151function breadcrumb() { ?>
    152152
    153         <h3><a href="<?php echo home_url( '/' ); ?>" title="<?php esc_attr_e( 'Showcase', 'wporg-showcase' ); ?>"><?php _e( 'Showcase', 'wporg-showcase' ); ?></a>
     153        <h2><a href="<?php echo home_url( '/' ); ?>" title="<?php esc_attr_e( 'Showcase', 'wporg-showcase' ); ?>"><?php _e( 'Showcase', 'wporg-showcase' ); ?></a>
    154154
    155155                <?php if ( is_search() ) : ?>
    … …  
    173173                <?php endif; // is_search ?>
    174174
    175         </h3>
     175        </h2>
    176176<?php
    177177}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php

    r9574 r9933  
    88$prefix = is_ssl() ? 'https://' : 'http://s.';
    99wp_enqueue_style( 'blog-wp4', $prefix.'wordpress.org/style/blog-wp4.css', array(), 4 );
    10 wp_enqueue_style( 'showcase', $prefix.'wordpress.org/wp-content/themes/pub/wporg-showcase/style.css', array(), 19 );
     10wp_enqueue_style( 'showcase', get_stylesheet_uri(), array(), 19 );
    1111require WPORGPATH . 'header.php';
    1212?>
    … …  
    1414        <div class="wrapper">
    1515                <a id="wpsc-mobile-menu-button" class="" href="#" onclick="toggle_wpsc_mobile_menu();"></a>
    16                 <h2><?php _e( 'WordPress Website Showcase', 'wporg-showcase' ); ?></h2>
     16                <h1><?php _e( 'WordPress Website Showcase', 'wporg-showcase' ); ?></h1>
    1717        </div>
    1818</div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/index.php

    r6456 r9933  
    33        <div class="wrapper archives">
    44                <?php get_sidebar( 'left' ); ?>
    5                 <div class="col-5">
     5                <div class="col-5 archives-content">
    66                <?php
    77                        breadcrumb();
    … …  
    1414                        <?php while ( have_posts() ) : the_post(); ?>
    1515
    16                                 <?php the_date('', '<h4>', '</h4>'); ?>
     16                                <?php the_date('', '<h3 class="heading">', '</h3>'); ?>
    1717                                <div class="storycontent"><a href='<?php the_permalink(); ?>' title='<?php the_title_attribute(); ?>'><?php the_title(); ?></a></div>
    1818
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php

    r7416 r9933  
    1414?>
    1515<div id="pagebody" class="home">
     16        <h2 class="screen-reader-text"><?php _e( 'Featured Sites', 'wporg-showcase' ); ?></h2>
    1617        <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 9, 'post_status' => 'publish' ) ); ?>
    1718        <?php if ( have_posts() ) : ?>
    … …  
    6970                        <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 3, 'tag' => 'business', 'orderby' => 'rand' ) ); ?>
    7071                        <?php if ( have_posts() ) : ?>
    71                         <h3><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h3>
     72                        <h2><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h2>
    7273                        <ul class="wpsc-recent">
    7374
    … …  
    7879                                                        <?php site_screenshot_tag( 215 ); ?>
    7980                                                </a>
    80                                                 <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
     81                                                <h3><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    8182                                                <?php
    8283                                                        the_content_limit( 90 );
    … …  
    9293                        <?php if ( have_posts() ) : ?>
    9394
    94                         <h3><?php _e( 'Recently Added Sites', 'wporg-showcase' ); ?></h3>
     95                        <h2><?php _e( 'Recently Added Sites', 'wporg-showcase' ); ?></h2>
    9596                        <ul class="wpsc-recent">
    9697
    … …  
    101102                                                <?php site_screenshot_tag( 215 ); ?>
    102103                                        </a>
    103                                         <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
     104                                        <h3><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    104105                                        <?php
    105106                                                the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php

    r6273 r9933  
    22                        <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site"><?php _e( 'Submit a Site &rarr;', 'wporg-showcase' ); ?></a>
    33
    4                         <h4 class="search"><?php _e( 'Search', 'wporg-showcase' ); ?></h4>
     4                        <h2 class="heading search"><?php _e( 'Search', 'wporg-showcase' ); ?></h2>
    55                        <?php // @todo: use get_search_form(); ?>
    66                        <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    … …  
    1212                        <a href='<?php echo home_url( '/tag-cloud/' ); ?>' class="wpsc-all-tags"><?php _e( 'View All Tags &rarr;', 'wporg-showcase' ); ?></a>
    1313
    14                         <h4><?php _e( 'Browse by Flavor', 'wporg-showcase' ); ?></h4>
     14                        <h2 class="heading"><?php _e( 'Browse by Flavor', 'wporg-showcase' ); ?></h2>
    1515                        <ul class="submenu">
    1616                                <?php wp_list_categories( 'exclude=4&title_li=' ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php

    r7416 r9933  
    66                                <?php wp_flavors(); ?>
    77                                <br />
    8                                 <?php tags_with_count( 'list', '<h4>' . __( 'Tags', 'wporg-showcase' ) . '</h4><ul>', '', '</ul>' ); ?>
     8                                <?php tags_with_count( 'list', '<h2 class="heading">' . __( 'Tags', 'wporg-showcase' ) . '</h2><ul>', '', '</ul>' ); ?>
    99                        </div>
    1010                </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/style.css

    r9571 r9933  
    9191}
    9292
    93 h4 {
    94         border-bottom:1px solid #DEDEDE;
    95         color:#333333;
    96         font-size:12px;
    97         font-weight:bold;
    98         margin-bottom:10px;
    99         padding-bottom:4px;
    100         padding-top:1px;
    101 }
    102 
    103 h4.search {
     93.heading.search {
    10494        padding-top: 0;
    10595}
    10696
    107 .archives h4 {
     97.archives-content .heading {
    10898        margin-top: 10px;
    10999}
    … …  
    140130}
    141131
    142 .gallery-caption h5 {
     132.gallery-caption h4 {
    143133        margin-top: 10px;
    144134}
    145135
    146 h5 {
     136h4,
     137.archives-content .heading {
    147138        font-size: 16px;
    148139        margin-bottom: 5px;
    149140}
    150141
    151 h5 a {
     142h4 a {
    152143        font-weight: normal;
    153144}
    … …  
    208199}
    209200
    210 h3 {
     201.story-excerpt .heading {
     202        font-size: 16px;
     203        margin-bottom: 5px;
     204}
     205
     206.story-excerpt .heading a {
     207        font-weight: normal;
     208}
     209
     210h2 {
    211211        font-weight: normal;
    212212        font-size: 20px;
    … …  
    214214}
    215215
    216 h3 a {
     216h2 a {
    217217        font-weight: normal;
    218218}
    … …  
    593593}
    594594
    595 .secondary h4 {
     595.secondary .heading,
     596.archives-content .heading,
     597.rightsidebarwrapper .heading {
    596598        color: #444;
    597599        font-size: 13px;
    … …  
    600602        padding: 0 0 10px 0;
    601603
    602         margin: 47px 0 11px 0;
     604        margin: 48px 0 12px 0;
     605        border-bottom: 1px solid #DEDEDE;
     606        font-weight: bold;
     607}
     608
     609.rightsidebarwrapper .heading {
     610        margin-top: 30px;
     611}
     612
     613.archives-content .heading {
     614        margin-top: 16px;
    603615}
    604616
    … …  
    715727}
    716728
    717 .home .main-content h3 {
     729.home .main-content h2 {
    718730        font-weight: bold;
    719731        margin: 0 0 29px 14px;
    … …  
    761773}
    762774
    763 .wpsc-recent h5 {
     775.wpsc-recent h3 {
    764776        font-size: 14px;
    765777        line-height: 1.2;
    … …  
    767779}
    768780
    769 .wpsc-recent h5 a {
     781.wpsc-recent h3 a {
    770782        font-style: normal;
    771783        font-weight: bold;
    … …  
    813825}
    814826
     827#headline h1 {
     828        color: #555;
     829        font-size: 28px;
     830        line-height: 1em;
     831        text-shadow: #fff 0px 1px 0px;
     832        padding-top: 18px;
     833        padding-left: 9px;
     834        padding-bottom: 18px;
     835        display: -webkit-box;
     836        display: -webkit-flex;
     837        display: -moz-box;
     838        display: -ms-flexbox;
     839        display: flex;
     840        font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;
     841        font-weight: 300;
     842}
     843
    815844/* Large devices */
    816845@media ( max-width: 992px ) {
Note: See TracChangeset for help on using the changeset viewer.