Making WordPress.org

Changeset 14286


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

BuddyPress 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-buddypress-org
Files:
1 added
8 edited

Legend:

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

    r10304 r14286  
    66        <hr class="hidden" />
    77
    8         <?php if ( is_singular( 'page' ) ) { ?>
     8        <?php get_template_part( 'footer', 'edits' ); ?>
    99
    10         <div class="footer-meta-wrap">
    11 
    12             <div class="footer-meta">
    13 
    14             <div class="col-half">
    15 
    16             <h3 class="title">Article Contributors</h3>
    17 
    18             <?php
    19 
    20             global $codex_contributors, $post;
    21 
    22             if ( count( $codex_contributors ) ) {
    23 
    24                 /*
    25 
    26                 TODO: Noel Tock
    27                 Comment out Owner (as per WCLDN discussion)
    28 
    29                 echo '<div class="page-contributors widget">';
    30                 echo '<h3 class="widgettitle">Owner</h3>';
    31                 $userdata = get_userdata( $post->post_author );
    32                     echo '<div class="page-contributor">';
    33                         echo '<div class="contributor-mug float-left">';
    34                         echo get_avatar( $post->post_author, 48 );
    35                         echo '</div>';
    36                         echo '<div class="inner">';
    37                         echo '<h5>' . esc_html( $userdata->display_name ) . '</h5>';
    38                         echo '<p>' . esc_html( $codex_contributors[$post->post_author] ) . ' revision';
    39                         if ( $codex_contributors[$post->post_author] > 1 )
    40                             echo 's';
    41                         echo '</p>';
    42                         echo '</div>';
    43                     echo '</div>';
    44                 echo '</div>';
    45                 unset( $codex_contributors[$post->post_author] );
    46                 */
    47 
    48                 if ( count( $codex_contributors ) ) {
    49                     echo '<div class="contributors">';
    50                     $codex_contributors = array_slice( $codex_contributors, 0, 3, true );
    51                     foreach( (array)$codex_contributors as $contributor_id => $count ) {
    52                         $userdata = get_userdata( $contributor_id );
    53                         if ( ! $userdata ) {
    54                             continue;
    55                         }
    56 
    57                         echo '<div class="contributor">';
    58                             echo '<a href="#"><div class="contributor-avatar float-left">';
    59                                 echo get_avatar( $contributor_id, 48 );
    60                                 echo '<div class="revision-count">' . esc_html( $count ) . '</div>';
    61                                 echo '<div class="contributor-name"><span>' . esc_html( $userdata->display_name ) . '</span></div>';
    62                             echo '</div></a>';
    63                         echo '</div>';
    64                     }
    65                     echo '</div>';
    66                 }
    67             }
    68         ?>
    69 
    70             <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>
    71 
    72             </div>
    73 
    74             <div class="col-half">
    75 
    76             <h3 class="title">Want to help?</h3>
    77 
    78             <p>The BuddyPress 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.buddypress.org/participate-and-contribute/codex-standards-guidelines/">Codex Standards & Guidelines</a>.</p>
    79 
    80             </div>
    81 
    82             </div>
    83 
    84         </div>
    85 
    86         <?php } ?>
    87 
    88         <div id="footer">
    89 
     10        <div id="footer"><div id="footer-inner">
    9011            <div class="links">
    9112                <p>
    92                     See also:
    93                     <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bporg'); ?></a> &bull;
    94                     <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bporg'); ?></a> &bull;
    95                     <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bporg'); ?></a> &bull;
    96                     <a href="https://ma.tt"><?php _e( 'Matt', 'bporg' ); ?></a> &bull;
    97                     <a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php esc_attr_e( 'RSS Feed for Articles', 'bporg' ); ?>"><?php _e( 'Blog RSS', 'bporg' ); ?></a>
     13                    <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bporg' ); ?></a>
     14                    <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bporg' ); ?></a>
     15                    <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bporg' ); ?></a>
     16                    <a href="https://ma.tt"><?php _e( 'Matt', 'bporg' ); ?></a>
     17                    <a href="<?php bloginfo( 'rss2_url' ); ?>"><?php _e( 'Blog RSS', 'bporg' ); ?></a>
    9818                </p>
    9919            </div>
    100 
    10120            <div class="details">
    10221                <p>
    103                     <a href="https://twitter.com/buddypressdev" class="twitter"><?php _e( 'Follow BuddyPress on Twitter', 'bporg'); ?></a> &bull;
    104                     <a href="https://buddypress.org/about/gpl/"><?php _e('GPL', 'bporg'); ?></a> &bull;
    105                     <a href="https://buddypress.org/contact/"><?php _e('Contact Us', 'bporg'); ?></a> &bull;
    106                     <a href="https://wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a> &bull;
    107                     <a href="https://buddypress.org/terms/"><?php _e('Terms of Service', 'bporg'); ?></a>
     22                    <a href="https://buddypress.org/about/gpl/"><?php _e( 'GPL', 'bporg' ); ?></a>
     23                    <a href="https://buddypress.org/contact/"><?php _e( 'Contact Us', 'bporg' ); ?></a>
     24                    <a href="https://wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a>
     25                    <a href="https://buddypress.org/terms/"><?php _e( 'Terms of Service', 'bporg' ); ?></a>
     26                    <a href="https://x.com/buddypressdev"><?php _e( 'X', 'bporg' ); ?></a>
    10827                </p>
    10928            </div>
    110 
    111         </div>
     29        </div></div>
    11230        <?php wp_footer(); ?>
    11331    </body>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/front-page.php

    r10308 r14286  
    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-buddypress-org/functions.php

    r7157 r14286  
    55 */
    66function bpcodex_register_stylesheet() {
    7     wp_enqueue_style( 'bp-codex-screen', get_stylesheet_directory_uri() . '/screen.css', false, '201804220020', 'screen' );
     7    wp_enqueue_style( 'bp-codex-screen', get_stylesheet_directory_uri() . '/screen.css', false, '202412160001', 'screen' );
    88    wp_enqueue_style( 'google-font-source', 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700', false, '1.0', 'all' );
    99}
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/header-nav.php

    r7154 r14286  
     1<?php
     2
     3// "current" CSS class vars
     4$_is_about    = false;
     5$_is_bbpress  = false;
     6$_is_codex    = true;
     7$_is_news     = false;
     8$_is_download = false;
     9
     10?>
    111<div id="nav">
    212    <a href="#" id="bb-menu-icon"></a>
    313    <ul id="bb-nav" class="menu">
    4         <li id="menu-item-251086" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-251086"><a href="https://buddypress.org/about/">About</a></li>
    5         <li id="menu-item-251087" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-251087"><a href="https://codex.buddypress.org/">Documentation</a></li>
    6         <li id="menu-item-252086" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-252086"><a href="https://codex.buddypress.org/participate-and-contribute/">Get Involved</a></li>
    7         <li id="menu-item-251088" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-251088"><a href="https://buddypress.org/blog/">News</a></li>
    8         <li id="menu-item-251089" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-251089"><a href="https://buddypress.org/support/">Support</a></li>
    9         <li id="menu-item-251090" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-251090"><a href="https://buddypress.org/download/">Download</a></li>
     14        <li class="menu-item<?php if ( true === $_is_about ) : ?> current <?php endif; ?>">
     15            <a href="https://buddypress.org/about/">
     16                <?php _e( 'About', 'bborg' ); ?>
     17            </a>
     18        </li>
     19        <li class="menu-item<?php if ( true === $_is_news ) : ?> current <?php endif; ?>">
     20            <a href="https://buddypress.org/blog/">
     21                <?php _e( 'News', 'bborg' ); ?>
     22            </a>
     23        </li>
     24        <li class="menu-item<?php if ( true === $_is_codex ) : ?> current <?php endif; ?>">
     25            <a href="https://codex.buddypress.org/">
     26                <?php _e( 'Codex', 'bborg' ); ?>
     27            </a>
     28        </li>
     29        <li class="menu-item">
     30            <a href="https://developer.buddypress.org">
     31                <?php _e( 'Develop', 'bborg' ); ?>
     32            </a>
     33        </li>
     34        <li class="menu-item">
     35            <a href="https://buddypress.trac.wordpress.org">
     36                <?php _e( 'Make', 'bborg' ); ?>
     37            </a>
     38        </li>
     39        <li class="menu-item<?php if ( true === $_is_bbpress ) : ?> current <?php endif; ?>">
     40            <a href="https://buddypress.org/support/">
     41                <?php _e( 'Forums', 'bborg' ); ?>
     42            </a>
     43        </li>
     44        <li class="menu-item <?php if ( true === $_is_download ) : ?> current <?php endif; ?>">
     45            <a href="https://buddypress.org/download/">
     46                <?php _e( 'Download', 'bborg' ); ?>
     47            </a>
     48        </li>
    1049    </ul>
    1150</div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php

    r10308 r14286  
    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-buddypress-org/screen.css

    r7157 r14286  
    33/* Layout
    44--------------------------------------------------------------------*/
    5 
    6 body.home-page.home #main {
    7   margin-top: 120px;
    8 }
    95
    106#subnav {
    117  background: transparent;
    128  border-bottom: none;
    13   margin-top: 135px;
    149}
    1510
     
    126121  width: 50%;
    127122}
    128 .footer-meta-wrap .footer-meta h3.title {
     123.footer-meta-wrap .footer-meta h2.title {
    129124  font-size: 16px;
    130125  font-weight: 400;
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/sidebar.php

    r10329 r14286  
    1919            $children = wp_list_pages('title_li=&echo=0&child_of=' . $post->post_parent );
    2020            $rel = '<ul>' . $children . '</ul>';
    21             echo '<div class="related-content-widget widget listified"><h3 class="widgettitle">Similar</h3>' . $rel . '</div>';
     21            echo '<div class="related-content-widget widget listified"><h2 class="widgettitle">Similar</h2>' . $rel . '</div>';
    2222            $show_related = false;
    2323            */
     
    2727            if ( $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            }
     
    4444                    }
    4545                    $rel = '<ul>' . $rel . '</ul>';
    46                     echo '<div class="related-content-widget widget listified"><h3 class="widgettitle">Related</h3>' . $rel . '</div>';
     46                    echo '<div class="related-content-widget widget listified"><h2 class="widgettitle">Related</h2>' . $rel . '</div>';
    4747                }
    4848            }
     
    7878        if ( !empty( $codex_contributors ) ) {
    7979            echo '<div class="section-contributors widget">';
    80             echo '<h3 class="widgettitle">Top Authors</h3>';
     80            echo '<h2 class="widgettitle">Top Authors</h2>';
    8181            $codex_contributors = array_slice( $codex_contributors, 0, 5, true );
    8282            foreach( (array)$codex_contributors as $contributor_id => $count ) {
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/style.css

    r1644 r14286  
    11/**
    2  * Theme Name: BuddyPress.org Codex 2013
    3  * Theme URL: https://codex.buddypress.org
    4  * Description: A WordPress theme for BuddyPress.org codex
    5  * Author: John James Jacoby
    6  * Author URI: http://jaco.by
    7  * Version: 2.1
    8  * Template: bb-base
    9  * Tags: buddypress, gray, 508, compliance, fixed width, widgets, gallery
     2 * Theme Name:  BuddyPress.org Codex 2013
     3 * Theme URL:   https://codex.buddypress.org
     4 * Description: A WordPress theme for the BuddyPress.org codex
     5 * Author:      John James Jacoby
     6 * Author URI:  https://buddypress.org
     7 * Version:     2.1
     8 * Template:    bb-base
     9 * Tags:        buddypress
    1010 */
Note: See TracChangeset for help on using the changeset viewer.