Making WordPress.org

Changeset 14291


Ignore:
Timestamp:
12/16/2024 08:23:32 PM (3 months ago)
Author:
johnjamesjacoby
Message:

bbPress Codex: theme tweaks

Part of bb-base theme changes

See: https://buddypress.trac.wordpress.org/ticket/9262

Location:
sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/footer.php

    r10304 r14291  
    33        <hr class="hidden" />
    44
    5         <?php if ( is_singular( 'page' ) ) : ?>
     5        <?php get_template_part( 'footer', 'edits' ); ?>
    66
    7             <div class="footer-meta-wrap">
    8                 <div class="footer-meta">
    9                     <div class="col-half">
    10                         <h3 class="title">Article Contributors</h3>
    11 
    12                         <?php
    13 
    14                         global $codex_contributors;
    15 
    16                         if ( count( $codex_contributors ) ) : ?>
    17 
    18                             <div class="contributors">
    19 
    20                                 <?php
    21                                 $codex_contributors = array_slice( $codex_contributors, 0, 3, true );
    22                                 foreach ( (array) $codex_contributors as $contributor_id => $count ) :
    23                                     $userdata = get_userdata( $contributor_id );
    24                                     if ( ! $userdata ) {
    25                                         continue;
    26                                     }
    27                                     ?>
    28 
    29                                     <div class="contributor">
    30                                         <a href="#">
    31                                             <div class="contributor-avatar float-left">
    32                                                 <?php echo get_avatar( $contributor_id, 48 ); ?>
    33                                                 <div class="revision-count"><?php echo esc_html( $count ); ?></div>
    34                                                 <div class="contributor-name"><span><?php echo esc_html( $userdata->display_name ); ?></span></div>
    35                                             </div>
    36                                         </a>
    37                                     </div>
    38 
    39                                 <?php endforeach; ?>
    40 
    41                             </div>
    42 
    43                         <?php endif; ?>
    44 
    45                         <p class="date">Updated <strong><?php echo human_time_diff( get_the_modified_time( 'U', get_queried_object_id() ) ); ?></strong> ago / Published <strong><?php echo human_time_diff( get_the_time( 'U', get_queried_object_id() ) ); ?></strong> ago</p>
    46                     </div>
    47 
    48                     <div class="col-half">
    49                         <h3 class="title">Want to help?</h3>
    50                         <p>The bbPress Codex is volunteer-powered, which means you can contribute too! If you're interested in updating existing articles or creating entirely new ones, please read our <a href="https://codex.bbpress.org/participate-and-contribute/codex-standards-guidelines/">Codex Standards & Guidelines</a>.</p>
    51                     </div>
    52                 </div>
    53             </div>
    54 
    55         <?php endif; ?>
    56 
    57         <div id="footer">
     7        <div id="footer"><div id="footer-inner">
    588            <div class="links">
    599                <p>
    60                     See also:
    61                     <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bbporg'); ?></a> &bull;
    62                     <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bbporg'); ?></a> &bull;
    63                     <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bbporg'); ?></a> &bull;
    64                     <a href="https://ma.tt"><?php _e( 'Matt', 'bbporg' ); ?></a> &bull;
     10                    <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bbporg'); ?></a>
     11                    <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bbporg'); ?></a>
     12                    <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bbporg'); ?></a>
     13                    <a href="https://ma.tt"><?php _e( 'Matt', 'bbporg' ); ?></a>
    6514                    <a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php esc_attr_e( 'RSS Feed for Articles', 'bbporg' ); ?>"><?php _e( 'Blog RSS', 'bbporg' ); ?></a>
    6615                </p>
     
    6817            <div class="details">
    6918                <p>
    70                     <a href="https://twitter.com/bbpress" class="twitter"><?php _e( 'Follow bbPress on Twitter', 'bbporg'); ?></a> &bull;
    71                     <a href="https://bbpress.org/about/gpl/"><?php _e('GPL', 'bbporg'); ?></a> &bull;
    72                     <a href="https://bbpress.org/contact/"><?php _e('Contact Us', 'bbporg'); ?></a> &bull;
    73                     <a href="https://wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a> &bull;
     19                    <a href="https://bbpress.org/about/gpl/"><?php _e('GPL', 'bbporg'); ?></a>
     20                    <a href="https://bbpress.org/contact/"><?php _e('Contact Us', 'bbporg'); ?></a>
     21                    <a href="https://wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a>
    7422                    <a href="https://bbpress.org/terms/"><?php _e('Terms of Service', 'bbporg'); ?></a>
     23                    <a href="https://x.com/bbpress"><?php _e( 'X', 'bbporg'); ?></a>
    7524                </p>
    7625            </div>
    77         </div>
     26        </div></div>
    7827        <?php wp_footer(); ?>
    7928    </body>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/front-page.php

    r10308 r14291  
    77            <div class="post">
    88
    9                 <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
     9                <h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>
    1010
    1111                <?php the_content(); ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/header-nav.php

    r7154 r14291  
    55        <li><a href="https://bbpress.org/plugins/">Plugins</a></li>
    66        <li><a href="https://bbpress.org/themes/">Themes</a></li>
    7         <li class="current"class="current"><a href="https://codex.bbpress.org/">Documentation</a></li>
     7        <li class="current"><a href="https://codex.bbpress.org/">Documentation</a></li>
    88        <li><a href="https://bbpress.org/blog/">Blog</a></li>
    99        <li><a href="https://bbpress.org/forums/">Support</a></li>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/index.php

    r10308 r14291  
    11<?php get_header(); ?>
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    3             <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
     3            <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    44            <cite><?php
    55                /* translators: 1: post date, 2: post author */
     
    1111            <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_excerpt(); ?></div>
    1212<?php endwhile;  ?>
    13    
     13
    1414<?php else : ?>
    1515            <p><em><?php _e( 'Sorry, no posts matched your criteria.' ); ?></em></p>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/page.php

    r10303 r14291  
    11<?php get_header(); ?>
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    3                 <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
     3                <h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>
    44                <div style="margin-bottom: 20px;"><?php echo codex_get_breadcrumb(); ?></div>
    55                <?php if ( get_the_content() ) :
     
    2424
    2525    $args         = array( 'order' => 'ASC', );
    26     $revisions    = wp_get_post_revisions( get_queried_object_id(), $args );   
     26    $revisions    = wp_get_post_revisions( get_queried_object_id(), $args );
    2727    $post_authors = array( $post->post_author => 1 );
    2828    foreach( (array)$revisions as $revision ) {
     
    4242    $codex_contributors = array_reverse( $post_authors, true );
    4343?>
    44                
     44
    4545<?php locate_template( array( 'sidebar.php' ), true ); ?>
    4646
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/sidebar.php

    r10329 r14291  
    2121            $children = wp_list_pages('title_li=&echo=0&child_of=' . $post->post_parent );
    2222            $rel      = '<ul>' . $children . '</ul>';
    23             echo '<div class="related-content-widget widget listified"><h3 class="widgettitle">Similar</h3>' . $rel . '</div>';
     23            echo '<div class="related-content-widget widget listified"><h2 class="widgettitle">Similar</h2>' . $rel . '</div>';
    2424            $show_related = false;
    2525        } else {
     
    2727            if ( !empty( $children ) ) {
    2828                $rel = '<ul>' . $children . '</ul>';
    29                 echo '<div class="related-content-widget widget listified"><h3 class="widgettitle">Subpages</h3>' . $rel . '</div>';
     29                echo '<div class="related-content-widget widget listified"><h2 class="widgettitle">Subpages</h2>' . $rel . '</div>';
    3030                $show_related = false;
    3131            }
     
    4343                }
    4444                $rel = '<ul>' . $rel . '</ul>';
    45                 echo '<div class="related-content-widget widget listified"><h3 class="widgettitle">Related</h3>' . $rel . '</div>';
     45                echo '<div class="related-content-widget widget listified"><h2 class="widgettitle">Related</h2>' . $rel . '</div>';
    4646            }
    4747        } ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/style.css

    r7157 r14291  
    1313--------------------------------------------------------------------*/
    1414
    15 body.home-page.home #main {
    16     margin-top: 120px;
    17 }
    18 
    1915#subnav {
    2016    background: transparent;
     
    5753    width: 50%;
    5854}
    59 .footer-meta-wrap .footer-meta h3.title {
     55.footer-meta-wrap .footer-meta h2.title {
    6056    font-size: 16px;
    6157    font-weight: 400;
Note: See TracChangeset for help on using the changeset viewer.