diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/404.php wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/404.php
index eaf33ef6f..b7baf6707 100644
|
|
|
$wp_query = new WP_Query( array( 'no_found_rows' => true, 'post_type' => 'post', |
| 13 | 13 | |
| 14 | 14 | <div class="col-5"> |
| 15 | 15 | <div class="storycontent"> |
| 16 | | <h3><?php _e( 'Page Not Found', 'wporg-showcase' ); ?></h3> |
| | 16 | <h2><?php _e( 'Page Not Found', 'wporg-showcase' ); ?></h2> |
| 17 | 17 | <p><?php _e( 'Sorry, we could not not find that site in the Showcase. We do have many others available though. Here’s one chosen at random!', 'wporg-showcase' ); ?></p> |
| 18 | 18 | <?php //breadcrumb(); ?> |
| 19 | | <h3><?php the_title(); ?></h3> |
| | 19 | <h2><?php the_title(); ?></h2> |
| 20 | 20 | <a href=' http://<?php get_site_domain( false ); ?>'> |
| 21 | 21 | <?php site_screenshot_tag( 518, 'screenshot site-screenshot'); ?> |
| 22 | 22 | </a> |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php
index 46be48d22..fc83a8a31 100644
|
|
|
get_header(); |
| 17 | 17 | <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> |
| 18 | 18 | <?php site_screenshot_tag( 145, 'screenshot alignleft' ); ?> |
| 19 | 19 | </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> |
| 21 | 21 | <div class="excerpt"><?php the_content_limit(200); ?></div> |
| 22 | 22 | <div class="meta"><?php tags_with_count( 'flat', '<strong>' . __( 'Tags:', 'wporg-showcase' ) . '</strong> ', ', ', '<br />'); ?><?php edit_post_link( __( 'Edit this entry', 'wporg-showcase' ) ); ?></div> |
| 23 | 23 | <div style="clear:both;"></div> |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
index 897443338..773d10875 100644
|
|
|
function site_screenshot_tag( $width = '', $classes='screenshot' ) { |
| 81 | 81 | function wp_flavors() { |
| 82 | 82 | global $post; |
| 83 | 83 | |
| 84 | | echo '<h4>' . __( 'Flavor', 'wporg-showcase' ). '</h4>'; |
| | 84 | echo '<h3>' . __( 'Flavor', 'wporg-showcase' ). '</h3>'; |
| 85 | 85 | echo '<ul id="flavors">'; |
| 86 | 86 | |
| 87 | 87 | $flavors = array( 'WordPress.org', 'WordPress.com', 'WordPress.com VIP', 'WordPress MS' ); |
| … |
… |
function popular_tags ($number = 10) { |
| 131 | 131 | $args = array('number' => $number, 'orderby' => 'count', 'order' => 'DESC'); |
| 132 | 132 | $tags = get_terms( 'post_tag', $args ); |
| 133 | 133 | |
| 134 | | $out = '<h4>' . __( 'Browse Popular Tags', 'wporg-showcase' ). '</h4>'; |
| | 134 | $out = '<h3 class="heading">' . __( 'Browse Popular Tags', 'wporg-showcase' ). '</h3>'; |
| 135 | 135 | $out .= '<ul class="submenu wpsc-popular-tags">'; |
| 136 | 136 | |
| 137 | 137 | foreach ($tags as $tag) { |
| … |
… |
function popular_tags ($number = 10) { |
| 150 | 150 | |
| 151 | 151 | function breadcrumb() { ?> |
| 152 | 152 | |
| 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> |
| 154 | 154 | |
| 155 | 155 | <?php if ( is_search() ) : ?> |
| 156 | 156 | <?php |
| … |
… |
function breadcrumb() { ?> |
| 172 | 172 | ?> |
| 173 | 173 | <?php endif; // is_search ?> |
| 174 | 174 | |
| 175 | | </h3> |
| | 175 | </h2> |
| 176 | 176 | <?php |
| 177 | 177 | } |
| 178 | 178 | |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php
index 232512e8f..2f5357ac6 100644
|
|
|
$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader |
| 7 | 7 | |
| 8 | 8 | $prefix = is_ssl() ? 'https://' : 'http://s.'; |
| 9 | 9 | wp_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 ); |
| | 10 | wp_enqueue_style( 'showcase', get_stylesheet_uri(), array(), 19 ); |
| 11 | 11 | require WPORGPATH . 'header.php'; |
| 12 | 12 | ?> |
| 13 | 13 | <div id="headline"> |
| 14 | 14 | <div class="wrapper"> |
| 15 | 15 | <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> |
| 17 | 17 | </div> |
| 18 | 18 | </div> |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/index.php wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/index.php
index 9979e3536..e072eec9a 100644
|
|
|
|
| 2 | 2 | <div id="pagebody"> |
| 3 | 3 | <div class="wrapper archives"> |
| 4 | 4 | <?php get_sidebar( 'left' ); ?> |
| 5 | | <div class="col-5"> |
| | 5 | <div class="col-5 archives-content"> |
| 6 | 6 | <?php |
| 7 | 7 | breadcrumb(); |
| 8 | 8 | $num_posts = 400; |
| … |
… |
|
| 13 | 13 | <?php if ( have_posts() ) : ?> |
| 14 | 14 | <?php while ( have_posts() ) : the_post(); ?> |
| 15 | 15 | |
| 16 | | <?php the_date('', '<h4>', '</h4>'); ?> |
| | 16 | <?php the_date('', '<h3 class="heading">', '</h3>'); ?> |
| 17 | 17 | <div class="storycontent"><a href='<?php the_permalink(); ?>' title='<?php the_title_attribute(); ?>'><?php the_title(); ?></a></div> |
| 18 | 18 | |
| 19 | 19 | <?php endwhile; // have_posts ?> |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php
index a226d3f49..a1273ba30 100644
|
|
|
add_action( 'wp_head', function() { |
| 13 | 13 | get_header(); |
| 14 | 14 | ?> |
| 15 | 15 | <div id="pagebody" class="home"> |
| | 16 | <h2 class="screen-reader-text"><?php _e( 'Featured Sites', 'wporg-showcase' ); ?></h2> |
| 16 | 17 | <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 9, 'post_status' => 'publish' ) ); ?> |
| 17 | 18 | <?php if ( have_posts() ) : ?> |
| 18 | 19 | |
| … |
… |
get_header(); |
| 68 | 69 | <div class="maincontentwrapper"> |
| 69 | 70 | <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 3, 'tag' => 'business', 'orderby' => 'rand' ) ); ?> |
| 70 | 71 | <?php if ( have_posts() ) : ?> |
| 71 | | <h3><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h3> |
| | 72 | <h2><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h2> |
| 72 | 73 | <ul class="wpsc-recent"> |
| 73 | 74 | |
| 74 | 75 | <?php while ( have_posts() ) : the_post(); ?> |
| … |
… |
get_header(); |
| 77 | 78 | <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> |
| 78 | 79 | <?php site_screenshot_tag( 215 ); ?> |
| 79 | 80 | </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> |
| 81 | 82 | <?php |
| 82 | 83 | the_content_limit( 90 ); |
| 83 | 84 | the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); |
| … |
… |
get_header(); |
| 91 | 92 | <?php query_posts( array( 'posts_per_page' => 9 ) ); ?> |
| 92 | 93 | <?php if ( have_posts() ) : ?> |
| 93 | 94 | |
| 94 | | <h3><?php _e( 'Recently Added Sites', 'wporg-showcase' ); ?></h3> |
| | 95 | <h2><?php _e( 'Recently Added Sites', 'wporg-showcase' ); ?></h2> |
| 95 | 96 | <ul class="wpsc-recent"> |
| 96 | 97 | |
| 97 | 98 | <?php while ( have_posts() ) : the_post(); ?> |
| … |
… |
get_header(); |
| 100 | 101 | <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> |
| 101 | 102 | <?php site_screenshot_tag( 215 ); ?> |
| 102 | 103 | </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> |
| 104 | 105 | <?php |
| 105 | 106 | the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); |
| 106 | 107 | ?> |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php
index 48ce12237..5259b4e9b 100644
|
|
|
|
| 1 | 1 | <div class="col-2 secondary leftsidebar"> |
| | 2 | <h2 class="screen-reader-text"><?php _e( 'Sidebar', 'wporg-showcase' ); ?></h2> |
| 2 | 3 | <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site"><?php _e( 'Submit a Site →', 'wporg-showcase' ); ?></a> |
| 3 | 4 | |
| 4 | | <h4 class="search"><?php _e( 'Search', 'wporg-showcase' ); ?></h4> |
| | 5 | <h4 class="heading search"><?php _e( 'Search', 'wporg-showcase' ); ?></h4> |
| 5 | 6 | <?php // @todo: use get_search_form(); ?> |
| 6 | 7 | <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> |
| 7 | 8 | <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" class="text" /> |
| … |
… |
|
| 11 | 12 | <?php popular_tags(); ?> |
| 12 | 13 | <a href='<?php echo home_url( '/tag-cloud/' ); ?>' class="wpsc-all-tags"><?php _e( 'View All Tags →', 'wporg-showcase' ); ?></a> |
| 13 | 14 | |
| 14 | | <h4><?php _e( 'Browse by Flavor', 'wporg-showcase' ); ?></h4> |
| | 15 | <h3 class="heading"><?php _e( 'Browse by Flavor', 'wporg-showcase' ); ?></h4> |
| 15 | 16 | <ul class="submenu"> |
| 16 | 17 | <?php wp_list_categories( 'exclude=4&title_li=' ); ?> |
| 17 | 18 | </ul> |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php
index 2715bb1aa..6ce6a96f2 100644
|
|
|
|
| 1 | 1 | <div class="col-3 rightsidebar"> |
| 2 | 2 | <div class="rightsidebarwrapper"> |
| 3 | 3 | <div class="currentSiteRating"> |
| | 4 | <h2 class="screen-reader-text"><?php _e( 'Site Details', 'wporg-showcase' ); ?></h2> |
| 4 | 5 | <p class="button"><a href="http://<?php get_site_domain( false ); ?>"><?php _e( 'Visit Site', 'wporg-showcase' ); ?></a></p> |
| 5 | 6 | |
| 6 | 7 | <?php wp_flavors(); ?> |
| 7 | 8 | <br /> |
| 8 | | <?php tags_with_count( 'list', '<h4>' . __( 'Tags', 'wporg-showcase' ) . '</h4><ul>', '', '</ul>' ); ?> |
| | 9 | <?php tags_with_count( 'list', '<h3>' . __( 'Tags', 'wporg-showcase' ) . '</h3><ul>', '', '</ul>' ); ?> |
| 9 | 10 | </div> |
| 10 | 11 | </div> |
| 11 | 12 | </div> |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/style.css wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/style.css
index dea0302cf..d4629b3de 100644
|
|
|
textarea.text { |
| 90 | 90 | color: #666; |
| 91 | 91 | } |
| 92 | 92 | |
| 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 { |
| 104 | 94 | padding-top: 0; |
| 105 | 95 | } |
| 106 | 96 | |
| 107 | | .archives h4 { |
| | 97 | .archives-content .heading { |
| 108 | 98 | margin-top: 10px; |
| 109 | 99 | } |
| 110 | 100 | |
| … |
… |
h4.search { |
| 139 | 129 | text-align: left; |
| 140 | 130 | } |
| 141 | 131 | |
| 142 | | .gallery-caption h5 { |
| | 132 | .gallery-caption h4 { |
| 143 | 133 | margin-top: 10px; |
| 144 | 134 | } |
| 145 | 135 | |
| 146 | | h5 { |
| | 136 | h4, |
| | 137 | .archives-content .heading { |
| 147 | 138 | font-size: 16px; |
| 148 | 139 | margin-bottom: 5px; |
| 149 | 140 | } |
| 150 | 141 | |
| 151 | | h5 a { |
| | 142 | h4 a { |
| 152 | 143 | font-weight: normal; |
| 153 | 144 | } |
| 154 | 145 | |
| … |
… |
ul#flavors li.flavor-used { |
| 207 | 198 | margin: 0 0 30px 0; |
| 208 | 199 | } |
| 209 | 200 | |
| 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 | |
| | 210 | h2 { |
| 211 | 211 | font-weight: normal; |
| 212 | 212 | font-size: 20px; |
| 213 | 213 | margin-bottom: 20px; |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | | h3 a { |
| | 216 | h2 a { |
| 217 | 217 | font-weight: normal; |
| 218 | 218 | } |
| 219 | 219 | |
| … |
… |
a.wpsc-hero-learnmore { |
| 592 | 592 | width: 150px; |
| 593 | 593 | } |
| 594 | 594 | |
| 595 | | .secondary h4 { |
| | 595 | .secondary .heading, |
| | 596 | .archives-content .heading { |
| 596 | 597 | color: #444; |
| 597 | 598 | font-size: 13px; |
| 598 | 599 | line-height: 1.2; |
| … |
… |
a.wpsc-hero-learnmore { |
| 600 | 601 | padding: 0 0 10px 0; |
| 601 | 602 | |
| 602 | 603 | margin: 47px 0 11px 0; |
| | 604 | border-bottom: 1px solid #DEDEDE; |
| | 605 | font-weight: bold; |
| | 606 | } |
| | 607 | |
| | 608 | .archives-content .heading { |
| | 609 | margin-top: 0; |
| 603 | 610 | } |
| 604 | 611 | |
| 605 | 612 | .home .secondary h4.search { |
| … |
… |
a.wpsc-hero-learnmore { |
| 714 | 721 | float: left; |
| 715 | 722 | } |
| 716 | 723 | |
| 717 | | .home .main-content h3 { |
| | 724 | .home .main-content h2 { |
| 718 | 725 | font-weight: bold; |
| 719 | 726 | margin: 0 0 29px 14px; |
| 720 | 727 | } |
| … |
… |
a.wpsc-hero-learnmore { |
| 760 | 767 | line-height: 1.4 |
| 761 | 768 | } |
| 762 | 769 | |
| 763 | | .wpsc-recent h5 { |
| | 770 | .wpsc-recent h4 { |
| 764 | 771 | font-size: 14px; |
| 765 | 772 | line-height: 1.2; |
| 766 | 773 | margin: 13px 0 0 0; |
| 767 | 774 | } |
| 768 | 775 | |
| 769 | | .wpsc-recent h5 a { |
| | 776 | .wpsc-recent h4 a { |
| 770 | 777 | font-style: normal; |
| 771 | 778 | font-weight: bold; |
| 772 | 779 | } |
| … |
… |
a.wpsc-hero-learnmore { |
| 812 | 819 | margin-top: 50px; |
| 813 | 820 | } |
| 814 | 821 | |
| | 822 | #headline h1 { |
| | 823 | color: #555; |
| | 824 | font-size: 28px; |
| | 825 | line-height: 1em; |
| | 826 | text-shadow: #fff 0px 1px 0px; |
| | 827 | padding-top: 18px; |
| | 828 | padding-left: 9px; |
| | 829 | padding-bottom: 18px; |
| | 830 | display: -webkit-box; |
| | 831 | display: -webkit-flex; |
| | 832 | display: -moz-box; |
| | 833 | display: -ms-flexbox; |
| | 834 | display: flex; |
| | 835 | font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif; |
| | 836 | font-weight: 300; |
| | 837 | } |
| | 838 | |
| 815 | 839 | /* Large devices */ |
| 816 | 840 | @media ( max-width: 992px ) { |
| 817 | 841 | |