Changeset 14286
- Timestamp:
- 12/16/2024 08:04:18 PM (3 months ago)
- 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 6 6 <hr class="hidden" /> 7 7 8 <?php if ( is_singular( 'page' ) ) {?>8 <?php get_template_part( 'footer', 'edits' ); ?> 9 9 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"> 90 11 <div class="links"> 91 12 <p> 92 See also: 93 <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bporg'); ?></a> • 94 <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bporg'); ?></a> • 95 <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bporg'); ?></a> • 96 <a href="https://ma.tt"><?php _e( 'Matt', 'bporg' ); ?></a> • 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> 98 18 </p> 99 19 </div> 100 101 20 <div class="details"> 102 21 <p> 103 <a href="https:// twitter.com/buddypressdev" class="twitter"><?php _e( 'Follow BuddyPress on Twitter', 'bporg'); ?></a> •104 <a href="https://buddypress.org/ about/gpl/"><?php _e('GPL', 'bporg'); ?></a> •105 <a href="https:// buddypress.org/contact/"><?php _e('Contact Us', 'bporg'); ?></a> •106 <a href="https:// wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a> •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> 108 27 </p> 109 28 </div> 110 111 </div> 29 </div></div> 112 30 <?php wp_footer(); ?> 113 31 </body> -
sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/front-page.php
r10308 r14286 7 7 <div class="post"> 8 8 9 <h 3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>9 <h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2> 10 10 11 11 <?php the_content(); ?> -
sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/functions.php
r7157 r14286 5 5 */ 6 6 function bpcodex_register_stylesheet() { 7 wp_enqueue_style( 'bp-codex-screen', get_stylesheet_directory_uri() . '/screen.css', false, '20 1804220020', 'screen' );7 wp_enqueue_style( 'bp-codex-screen', get_stylesheet_directory_uri() . '/screen.css', false, '202412160001', 'screen' ); 8 8 wp_enqueue_style( 'google-font-source', 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700', false, '1.0', 'all' ); 9 9 } -
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 ?> 1 11 <div id="nav"> 2 12 <a href="#" id="bb-menu-icon"></a> 3 13 <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> 10 49 </ul> 11 50 </div> -
sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php
r10308 r14286 1 1 <?php get_header(); ?> 2 2 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> 3 <h 3 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> 4 4 <cite><?php 5 5 /* translators: 1: post date, 2: post author */ … … 11 11 <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_excerpt(); ?></div> 12 12 <?php endwhile; ?> 13 13 14 14 <?php else : ?> 15 15 <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 3 3 /* Layout 4 4 --------------------------------------------------------------------*/ 5 6 body.home-page.home #main {7 margin-top: 120px;8 }9 5 10 6 #subnav { 11 7 background: transparent; 12 8 border-bottom: none; 13 margin-top: 135px;14 9 } 15 10 … … 126 121 width: 50%; 127 122 } 128 .footer-meta-wrap .footer-meta h 3.title {123 .footer-meta-wrap .footer-meta h2.title { 129 124 font-size: 16px; 130 125 font-weight: 400; -
sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/sidebar.php
r10329 r14286 19 19 $children = wp_list_pages('title_li=&echo=0&child_of=' . $post->post_parent ); 20 20 $rel = '<ul>' . $children . '</ul>'; 21 echo '<div class="related-content-widget widget listified"><h 3 class="widgettitle">Similar</h3>' . $rel . '</div>';21 echo '<div class="related-content-widget widget listified"><h2 class="widgettitle">Similar</h2>' . $rel . '</div>'; 22 22 $show_related = false; 23 23 */ … … 27 27 if ( $children ) { 28 28 $rel = '<ul>' . $children . '</ul>'; 29 echo '<div class="related-content-widget widget listified"><h 3 class="widgettitle">Subpages</h3>' . $rel . '</div>';29 echo '<div class="related-content-widget widget listified"><h2 class="widgettitle">Subpages</h2>' . $rel . '</div>'; 30 30 $show_related = false; 31 31 } … … 44 44 } 45 45 $rel = '<ul>' . $rel . '</ul>'; 46 echo '<div class="related-content-widget widget listified"><h 3 class="widgettitle">Related</h3>' . $rel . '</div>';46 echo '<div class="related-content-widget widget listified"><h2 class="widgettitle">Related</h2>' . $rel . '</div>'; 47 47 } 48 48 } … … 78 78 if ( !empty( $codex_contributors ) ) { 79 79 echo '<div class="section-contributors widget">'; 80 echo '<h 3 class="widgettitle">Top Authors</h3>';80 echo '<h2 class="widgettitle">Top Authors</h2>'; 81 81 $codex_contributors = array_slice( $codex_contributors, 0, 5, true ); 82 82 foreach( (array)$codex_contributors as $contributor_id => $count ) { -
sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/style.css
r1644 r14286 1 1 /** 2 * Theme Name: BuddyPress.org Codex 20133 * Theme URL: https://codex.buddypress.org4 * Description: A WordPress theme for BuddyPress.org codex5 * Author: John James Jacoby6 * Author URI: http://jaco.by7 * Version: 2.18 * Template: bb-base9 * Tags: buddypress, gray, 508, compliance, fixed width, widgets, gallery2 * 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 10 10 */
Note: See TracChangeset
for help on using the changeset viewer.