Making WordPress.org

Ticket #4601: 4601.diff

File 4601.diff, 57.6 KB (added by imath, 6 years ago)
  • buddypress.org/public_html/wp-content/plugins

  • buddypress.org/public_html/wp-content/themes/bporg-developer/css/style.css

    Property changes on: buddypress.org/public_html/wp-content/plugins
    ___________________________________________________________________
    Added: svn:externals
    ## -0,0 +1 ##
    +handbook https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook
     
     1#header {
     2        background-color: #be3631;
     3        border-bottom: 1px solid #9e1611;
     4        width: 100%;
     5        z-index: 99;
     6        font-size: 13px;
     7}
     8
     9#header-inner {
     10        margin: 0 auto;
     11        width: 100%;
     12        height: 80px;
     13        padding: 0;
     14}
     15
     16@media screen and (min-width: 960px) {
     17        #header-inner, #footer {
     18                max-width: 960px;
     19        }
     20}
     21
     22#header #network-title {
     23        text-indent: -9999px;
     24        width: 265px;
     25}
     26
     27#header #network-title a {
     28        margin-top: 8px;
     29        width: 265px;
     30        height: 62px;
     31        float: left;
     32        background: url( '../images/buddypress-logo.png' ) no-repeat 0 0;
     33}
     34
     35.site-header,
     36.menu-container,
     37.devhub-wrap div#inner-search div#inner-search-icon-container div#inner-search-icon,
     38.devhub-wrap div#inner-search {
     39        background-color: #cf4944;
     40}
     41
     42.site-header h1 a {
     43        text-decoration: none;
     44}
     45
     46#bb-menu-icon,
     47#mobile-menu-button {
     48        display: none;
     49}
     50
     51#bb-menu-icon:before,
     52#mobile-menu-button:before {
     53        font: normal 16px/1 'dashicons';
     54        color: #000;
     55        content: '\f349'
     56}
     57
     58#nav {
     59        float: right;
     60        margin: 30px 0 0 0;
     61        line-height: 20px;
     62}
     63#nav li {
     64        display: inline;
     65        margin: 0 3px 0 3px;
     66        list-style: none;
     67}
     68#nav li a {
     69        text-decoration: none;
     70        color: #fff;
     71        height: auto;
     72        line-height: 1;
     73        padding: 5px 10px;
     74        font-weight: 600;
     75        -moz-border-radius: 3px;
     76        -webkit-border-radius: 3px;
     77        -o-border-radius: 3px;
     78        -ms-border-radius: 3px;
     79        border-radius: 3px;
     80        border: 1px solid transparent;
     81}
     82#nav li a:hover {
     83        background-color: #cf4944;
     84        color: rgba(255,255,255,0.9);
     85}
     86
     87#nav li a.active {
     88        color: #fff;
     89}
     90
     91.hidden {
     92        height: 0;
     93        width: 0;
     94        overflow: hidden;
     95        position: absolute;
     96        background: none;
     97        left: -999em;
     98}
     99
     100/* Text meant only for screen readers. */
     101.screen-reader-text {
     102        clip: rect(1px, 1px, 1px, 1px);
     103        height: 1px;
     104        overflow: hidden;
     105        position: absolute !important;
     106        width: 1px;
     107        word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
     108}
     109
     110.screen-reader-text:focus {
     111        background-color: #f1f1f1;
     112        -webkit-border-radius: 3px;
     113        border-radius: 3px;
     114        -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
     115        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
     116        clip: auto !important;
     117        color: #21759b;
     118        display: block;
     119        font-size: 14px;
     120        font-size: 0.875rem;
     121        font-weight: 700;
     122        height: auto;
     123        left: 5px;
     124        line-height: normal;
     125        padding: 15px 23px 14px;
     126        text-decoration: none;
     127        top: 5px;
     128        width: auto;
     129        z-index: 100000; /* Above WP toolbar. */
     130}
     131
     132.devhub-wrap {
     133        border-bottom: solid 1px #efefef;
     134}
     135
     136.table-of-contents ul li,
     137.no-bullets li {
     138        list-style: none;
     139}
     140
     141div[class*="-table-of-contents-container"] ul a:hover,
     142div[class*="-table-of-contents-container"] ul a:focus,
     143div[class*="-table-of-contents-container"] ul li button.dashicons:hover,
     144div[class*="-table-of-contents-container"] > ul > li.open > div > a:not(:focus),
     145div[class*="-table-of-contents-container"] .current-menu-ancestor .expandable button.dashicons:hover,
     146div[class*="-table-of-contents-container"] .current-menu-item .expandable button.dashicons:hover,
     147div[class*="-table-of-contents-container"] ul li button.dashicons:focus {
     148        color: #fff !important;
     149        background-color: rgb(190, 54, 49) !important;
     150}
     151
     152div[class*="-table-of-contents-container"] ul li button.dashicons,
     153div[class*="-table-of-contents-container"] .current-menu-item > .expandable button.dashicons:not(:focus) {
     154        color: rgb(190, 54, 49);
     155}
     156
     157.devhub-wrap .source-code-links span {
     158        border: none;
     159        margin-left: 0;
     160        padding-left: 0;
     161        margin-right: 1em;
     162        padding-right: 1em;
     163}
     164
     165.devhub-wrap .source-code-links span:first-child {
     166        border-right: 1px solid #999;
     167}
     168
     169.devhub-wrap a {
     170        color: rgb(190, 54, 49);
     171}
     172
     173.devhub-wrap a:hover,
     174.post-type-archive-handbook ul.items li a:hover,
     175.single-handbook ul.items li a:hover,
     176.table-of-contents ul.items li a:hover {
     177        color: rgb(221, 130, 59);
     178}
     179
     180.devhub-wrap a.button.shiny-blue,
     181.devhub-wrap button.shiny-blue,
     182.devhub-wrap input[type="button"].shiny-blue,
     183.devhub-wrap input[type="reset"].shiny-blue,
     184.devhub-wrap input[type="submit"].shiny-blue {
     185  background-color: rgb(190, 54, 49);
     186  background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(193, 64, 59)), to(rgb(190, 54, 49)));
     187  background-image: -webkit-linear-gradient(top, rgb(193, 64, 59), rgb(190, 54, 49));
     188  background-image: -moz-linear-gradient(top, rgb(193, 64, 59), rgb(190, 54, 49));
     189  background-image: -ms-linear-gradient(top, rgb(193, 64, 59), rgb(190, 54, 49));
     190  background-image: -o-linear-gradient(top, rgb(193, 64, 59), rgb(190, 54, 49));
     191  background-image: linear-gradient(to bottom, rgb(193, 64, 59), rgb(190, 54, 49));
     192  border-color: rgb(190, 54, 49);
     193  border-bottom-color: rgb(190, 54, 49);
     194  -webkit-box-shadow: inset 0 1px 0 rgba(239,141,67, 0.5);
     195  box-shadow: inset 0 1px 0 rgba(239,141,67, 0.5);
     196  color: #fff;
     197  text-decoration: none;
     198  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
     199  padding: 3px 8px;
     200}
     201
     202.devhub-wrap a.button.shiny-blue:hover,
     203.devhub-wrap button.shiny-blue:hover,
     204.devhub-wrap input[type="button"].shiny-blue:hover,
     205.devhub-wrap input[type="reset"].shiny-blue:hover,
     206.devhub-wrap input[type="submit"].shiny-blue:hover {
     207  background-color: #278ab7;
     208  background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(221, 130, 59)), to(rgb(190, 54, 49)));
     209  background-image: -webkit-linear-gradient(top, rgb(221, 130, 59), rgb(190, 54, 49));
     210  background-image: -moz-linear-gradient(top, rgb(221, 130, 59), rgb(190, 54, 49));
     211  background-image: -ms-linear-gradient(top, rgb(221, 130, 59), rgb(190, 54, 49));
     212  background-image: -o-linear-gradient(top, rgb(221, 130, 59), rgb(190, 54, 49));
     213  background-image: linear-gradient(to bottom, rgb(221, 130, 59), rgb(190, 54, 49));
     214  border-color: rgb(190, 54, 49);
     215  -webkit-box-shadow: inset 0 1px 0 rgba(239,141,67, 0.6);
     216  box-shadow: inset 0 1px 0 rgba(239,141,67, 0.6);
     217  color: #fff;
     218  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
     219}
     220
     221p.source-code-links a,
     222p#add-user-note a,
     223body .meta a,
     224#footer p a {
     225        border: 0;
     226        color: rgb(190, 54, 49);
     227}
     228#footer p a:hover {
     229        color: rgb(221, 130, 59);
     230}
     231
     232#footer {
     233        padding: 24px 0;
     234        font-size: 12px;
     235        margin: 0 auto 24px auto;
     236        color: inherit;
     237}
     238
     239#footer div.links {
     240        float: right;
     241}
     242
     243#footer p {
     244        margin: 0;
     245}
     246
     247/* Shrink logo to make room for navigation */
     248@media screen and ( max-width: 820px ) {
     249        #header-inner h1 a {
     250                width: 65px !important;
     251        }
     252}
     253
     254/* Do not fix #header for non-desktops */
     255@media screen and ( max-width: 782px ) {
     256        #header {
     257                z-index: 999999;
     258        }
     259        #main {
     260                margin: 100px 10px 40px 10px;
     261        }
     262        #footer {
     263                padding: 10px;
     264                margin: 10px;
     265        }
     266        #footer div.links,
     267        #footer div.details {
     268                float: none;
     269                margin: 10px 0;
     270        }
     271        #bb-menu-icon,
     272        #mobile-menu-button {
     273                display: block;
     274                position: absolute;
     275                right: 0;
     276                padding: 33px 20px 33px 33px;
     277                text-decoration: none;
     278        }
     279        #header #nav {
     280                margin: 0;
     281                float: right;
     282                overflow: visible;
     283        }
     284        #header #bb-nav {
     285                position: absolute;
     286                width: 100%;
     287                right: 0;
     288                top: 81px;
     289                border-bottom: 1px solid #aaa;
     290        }
     291        #header #bb-nav li {
     292                width: 100%;
     293                text-align: center;
     294                margin: 0;
     295                padding: 0;
     296        }
     297        #header #nav #bb-nav li a {
     298                display: block;
     299                margin: 0;
     300                padding: 20px;
     301                color: #000;
     302                text-shadow: none;
     303                border-radius: 0;
     304        }
     305        #header #nav #bb-nav li.current a,
     306        #header #nav #bb-nav li a:hover {
     307                color: #fff;
     308        }
     309        #header #bb-nav {
     310                display: none;
     311        }
     312        #header #nav:hover #bb-nav,
     313        #header #nav:focus #bb-nav {
     314                background-color: #eee;
     315                display: block !important;
     316        }
     317        #header #nav:hover #bb-menu-icon:before,
     318        #header #nav:focus #bb-menu-icon:before {
     319                color: #fff;
     320        }
     321}
  • buddypress.org/public_html/wp-content/themes/bporg-developer/footer.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/css/style.css
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php
     2/**
     3 * The template for displaying the footer.
     4 *
     5 * Contains the closing of the #content div and all content after
     6 *
     7 * @package bporg-developer
     8 * @since 1.0.0
     9 */
     10?>
     11        </div><!-- #content -->
     12
     13    </div><!-- #page -->
     14
     15    <hr class="hidden" />
     16
     17    <div id="footer">
     18        <div class="links">
     19            <p>
     20                <?php esc_html_e( 'See also:', 'bporg-developer' ); ?>
     21                <a href="https://wordpress.org"><?php esc_html_e( 'WordPress.org', 'bporg-developer' ); ?></a> &bull;
     22                <a href="https://bbpress.org"><?php esc_html_e( 'bbPress.org', 'bporg-developer' ); ?></a> &bull;
     23                <a href="https://buddypress.org"><?php esc_html_e( 'BuddyPress.org', 'bporg-developer' ); ?></a> &bull;
     24                <a href="https://ma.tt"><?php esc_html_e( 'Matt', 'bporg-developer' ); ?></a> &bull;
     25                <a href="<?php bloginfo( 'rss2_url' ); ?>"><?php esc_html_e( 'Blog RSS', 'bporg-developer' ); ?></a>
     26            </p>
     27        </div>
     28        <div class="details">
     29            <p>
     30                <a href="https://twitter.com/buddypressdev" class="twitter"><?php esc_html_e( 'Follow BuddyPress on Twitter', 'bporg-developer' ); ?></a> &bull;
     31                <a href="https://buddypress.org/about/gpl/"><?php esc_html_e( 'GPL', 'bporg-developer' ); ?></a> &bull;
     32                <a href="https://buddypress.org/contact/"><?php esc_html_e( 'Contact Us', 'bporg-developer' ); ?></a> &bull;
     33                <a href="https://wordpress.org/about/privacy/"><?php esc_html_e('Privacy', 'bporg-developer'); ?></a> &bull;
     34                <a href="https://buddypress.org/terms/"><?php esc_html_e( 'Terms of Service', 'bporg-developer' ); ?></a>
     35            </p>
     36        </div>
     37    </div>
     38    <?php wp_footer(); ?>
     39</body>
     40</html>
  • buddypress.org/public_html/wp-content/themes/bporg-developer/functions.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/footer.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php namespace DevHub;
     2/**
     3 * BuddyPress Developer Theme functions.
     4 *
     5 * @package bporg-developer
     6 * @since 1.0.0
     7 */
     8
     9// Exit if accessed directly
     10defined( 'ABSPATH' ) || exit;
     11
     12/**
     13 * Enqueue the needed styles.
     14 *
     15 * @since 1.0.0
     16 */
     17function bporg_developer_enqueue_styles() {
     18    wp_enqueue_style( 'wporg-developer', get_template_directory_uri() . '/style.css' );
     19    wp_enqueue_style( 'bporg-developer-main',
     20        get_stylesheet_directory_uri() . '/css/style.css',
     21        array( 'wp-dev-sass-compiled', 'dashicons' ),
     22        wp_get_theme()->get('Version')
     23    );
     24}
     25add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\bporg_developer_enqueue_styles', 20 );
     26
     27/**
     28 * Add the BP REST API handbook post type.
     29 *
     30 * @since 1.0.0
     31 *
     32 * @param  array $post_types The list of Handbook post types.
     33 * @return array The list of Handbook post types.
     34 */
     35function bporg_developer_register_rest_api( $post_types = array() ) {
     36    $post_types[] = 'bp-rest-api';
     37    return $post_types;
     38}
     39add_filter( 'handbook_post_types', __NAMESPACE__ . '\\bporg_developer_register_rest_api', 100, 1 );
     40
     41/**
     42 * Override the generated Handbook post type label.
     43 *
     44 * @since 1.0.0
     45 *
     46 * @param  string $label     The generated Handbook post type label.
     47 * @param  string $post_type The current Handbook post type.
     48 * @return string The BP REST API post type label.
     49 */
     50function bporg_developer_set_rest_api_label( $label, $post_type ) {
     51    if ( 'bp-rest-api-handbook' === $post_type ) {
     52        $label = __( 'BP REST API Handbook', 'bporg-developer' );
     53    }
     54
     55    return $label;
     56}
     57add_filter( 'handbook_label', __NAMESPACE__ . '\\bporg_developer_set_rest_api_label', 100, 2 );
     58
     59/**
     60 * Init some starter content for the documentation site.
     61 *
     62 * @since 1.0.0.
     63 */
     64function bporg_developer_starter_content() {
     65    register_nav_menu( 'header-nav-menu', 'Main nav bar' );
     66
     67    add_theme_support( 'title-tag' );
     68
     69    add_theme_support( 'starter-content', array(
     70        'widgets' => array(
     71            // Place the BP REST API Chapters accordeon.
     72            'bp-rest-api-handbook' => array(
     73                'bp-rest-api-chapters' => array(
     74                    'handbook_pages',
     75                    array(
     76                        'title'  => __( 'Chapters', 'bporg-developer' ),
     77                    ),
     78                ),
     79            ),
     80
     81            // Place a link to the codex.
     82            'landing-footer-1' => array(
     83                'more-resources' => array(
     84                    'text',
     85                    array(
     86                        'title'  => __( 'More resources', 'bporg-developer' ),
     87                        'text'   => sprintf( '<a href="https://codex.buddypress.org/">%s</a>', __( 'BuddyPress Codex', 'bporg-developer' ) ),
     88                        'filter' => true,
     89                        'visual' => true,
     90                    ),
     91                ),
     92            ),
     93
     94            // Place a link to the support forums.
     95            'landing-footer-2' => array(
     96                'more-resources' => array(
     97                    'text',
     98                    array(
     99                        'title'  => __( 'Need help?', 'bporg-developer' ),
     100                        'text'   => sprintf( '<a href="https://buddypress.org/support/">%s</a>', __( 'BuddyPress support forums', 'bporg-developer' ) ),
     101                        'filter' => true,
     102                        'visual' => true,
     103                    ),
     104                ),
     105            ),
     106        ),
     107
     108        // Create initial pages.
     109        'posts' => array(
     110            'landing' => array(
     111                'post_title' => __( 'Home', 'bporg-developer' ),
     112                'post_type'  => 'page',
     113                'post_name'  => 'landing',
     114                'template'   => 'page-home-landing.php',
     115            ),
     116            'reference' => array(
     117                'post_title' => __( 'Reference', 'bporg-developer' ),
     118                'post_type'  => 'page',
     119                'post_name'  => 'reference',
     120                'template'   => 'page-under-construction.php',
     121            ),
     122            'bp-rest-api' => array(
     123                'post_title'   => __( 'BP REST API Handbook', 'bporg-developer' ),
     124                'post_type'    => 'bp-rest-api-handbook',
     125                'post_name'    => 'bp-rest-api',
     126                'menu_order'   => 0,
     127                'post_content' => __( 'Let’s start documenting the BP REST API!', 'bporg-developer' ),
     128            ),
     129        ),
     130
     131        // Default to a static front page and assign the front and posts pages.
     132        'options' => array(
     133            'show_on_front'  => 'page',
     134            'page_on_front'  => '{{landing}}',
     135        ),
     136
     137        // Set the site title and description.
     138        'theme_mods'  => array(
     139            'blogname'        => __( 'BuddyPress Developer Resources', 'bporg-developer' ),
     140            'blogdescription' => __( 'Your best buddies ever to help you code.', 'bporg-developer' ),
     141        ),
     142
     143        // Set up nav menus
     144        'nav_menus'   => array(
     145            // Assign a menu to the "header-nav-menu" location.
     146            'header-nav-menu' => array(
     147                'name'  => __( 'BuddyPress.org nav', 'bporg-developer' ),
     148                'items' => array(
     149                    'about' => array(
     150                        'type'  => 'custom',
     151                        'title' => __( 'About', 'bporg-developer' ),
     152                        'url'   => 'https://buddypress.org/about/',
     153                    ),
     154                    'plugins' => array(
     155                        'type'  => 'custom',
     156                        'title' => __( 'Plugins', 'bporg-developer' ),
     157                        'url'   => 'https://buddypress.org/plugins/',
     158                    ),
     159                    'themes' => array(
     160                        'type'  => 'custom',
     161                        'title' => __( 'Themes', 'bporg-developer' ),
     162                        'url'   => 'https://buddypress.org/themes/',
     163                    ),
     164                    'documentation' => array(
     165                        'type'  => 'custom',
     166                        'title' => __( 'Documentation', 'bporg-developer' ),
     167                        'url'   => 'https://codex.buddypress.org/',
     168                    ),
     169                    'blog' => array(
     170                        'type'  => 'custom',
     171                        'title' => __( 'Blog', 'bporg-developer' ),
     172                        'url'   => 'https://buddypress.org/blog/',
     173                    ),
     174                    'download' => array(
     175                        'type'  => 'custom',
     176                        'title' => __( 'Download', 'bporg-developer' ),
     177                        'url'   => 'https://buddypress.org/download/',
     178                    ),
     179                ),
     180            ),
     181
     182            // Assign a menu to the "devhub-menu" location.
     183            'devhub-menu' => array(
     184                'name'  => __( 'DevHub menu', 'bporg-developer' ),
     185                'items' => array(
     186                    'link_home' => array(
     187                        'title' => __( 'All Developer Resources', 'bporg-developer' ),
     188                    ),
     189                ),
     190            ),
     191
     192            // Assign a menu to the "reference-home-api" location.
     193            'reference-home-api' => array(
     194                'name'  => __( 'BuddyPress API', 'bporg-developer' ),
     195                'items' => array(
     196                    'bp-attachment' => array(
     197                        'type'  => 'custom',
     198                        'title' => __( 'BP Attachment API', 'bporg-developer' ),
     199                        'url'   => 'https://codex.buddypress.org/plugindev/bp_attachment/',
     200                    ),
     201                    'bp-theme-compat' => array(
     202                        'type'  => 'custom',
     203                        'title' => __( 'BP Theme Compat API', 'bporg-developer' ),
     204                        'url'   => 'https://codex.buddypress.org/plugindev/how-to-enjoy-bp-theme-compat-in-plugins/',
     205                    ),
     206                    'bp-component' => array(
     207                        'type'  => 'custom',
     208                        'title' => __( 'BP Component API', 'bporg-developer' ),
     209                        'url'   => 'https://codex.buddypress.org/developer/bp_component/',
     210                    ),
     211                    'bp-user-query' => array(
     212                        'type'  => 'custom',
     213                        'title' => __( 'BP User Query API', 'bporg-developer' ),
     214                        'url'   => 'https://codex.buddypress.org/developer/bp_user_query/',
     215                    ),
     216                    'bp-member-types' => array(
     217                        'type'  => 'custom',
     218                        'title' => __( 'Member Types API', 'bporg-developer' ),
     219                        'url'   => 'https://codex.buddypress.org/developer/member-types/',
     220                    ),
     221                    'bp-group-types' => array(
     222                        'type'  => 'custom',
     223                        'title' => __( 'Group Types API', 'bporg-developer' ),
     224                        'url'   => 'https://codex.buddypress.org/developer/group-types/',
     225                    ),
     226                    'bp-nav' => array(
     227                        'type'  => 'custom',
     228                        'title' => __( 'BP Nav API', 'bporg-developer' ),
     229                        'url'   => 'https://codex.buddypress.org/developer/navigation-api/',
     230                    ),
     231                    'bp-group-extension' => array(
     232                        'type'  => 'custom',
     233                        'title' => __( 'Group Extension API', 'bporg-developer' ),
     234                        'url'   => 'https://codex.buddypress.org/developer/group-extension-api/',
     235                    ),
     236                ),
     237            ),
     238        ),
     239    ) );
     240}
     241add_action( 'after_setup_theme', __NAMESPACE__ . '\\bporg_developer_starter_content' );
     242
     243/**
     244 * Callback function to output the BP stable version input.
     245 *
     246 * @since 1.0.0
     247 */
     248function bporg_developer_version_setting_callback() {
     249    printf(
     250        '<input type="text" id="_bp_get_stable_version" name="_bp_get_stable_version" value="%s" class="regular-text ltr" />',
     251        esc_attr( get_option( '_bp_get_stable_version', '' ) )
     252    );
     253}
     254
     255/**
     256 * Add a setting to set the latest BuddyPress stable version.
     257 *
     258 * @since 1.0.0
     259 */
     260function bporg_developer_version_setting() {
     261    register_setting( 'general', '_bp_get_stable_version', 'esc_attr' );
     262
     263    add_settings_field(
     264        '_bp_get_stable_version',
     265        sprintf( '<label for="_bp_get_stable_version">%s</label>', esc_html__( 'BuddyPress latest stable version', 'bporg-developer' ) ),
     266        __NAMESPACE__ . '\\bporg_developer_version_setting_callback',
     267        'general'
     268    );
     269}
     270add_action( 'admin_init', __NAMESPACE__ . '\\bporg_developer_version_setting' );
     271
     272/**
     273 * Get site section root URL based on URL path.
     274 *
     275 * @since 1.0.0
     276 *
     277 * @return string The section root URL.
     278 */
     279function bporg_developer_get_site_section_url() {
     280    $parts = explode( '/', $GLOBALS['wp']->request );
     281    switch ( $parts[0] ) {
     282        case 'reference':
     283        case 'plugins':
     284        case 'themes':
     285        case 'bp-rest-api':
     286            return home_url( '/' . $parts[0] . '/' );
     287        default:
     288            return apply_filters( 'bporg_developer_get_site_section_url', home_url( '/' ), $parts[0] );
     289    }
     290}
     291
     292/**
     293 * Get site section title based on URL path.
     294 *
     295 * @since 1.0.0
     296 *
     297 * @return string The section title.
     298 */
     299function bporg_developer_get_site_section_title() {
     300    $parts = explode( '/', $GLOBALS['wp']->request );
     301
     302    switch ( $parts[0] ) {
     303        case 'resources':
     304        case 'resource':
     305            return sprintf( __( 'Developer Resources: %s', 'bporg-developer' ), get_the_title() );
     306        case 'reference':
     307            return  __( 'Code Reference', 'bporg-developer' );
     308        case 'plugins':
     309            return __( 'Plugin Handbook', 'bporg-developer' );
     310        case 'themes':
     311            return __( 'Theme Handbook', 'bporg-developer' );
     312        case 'bp-rest-api':
     313            return __( 'BP REST API Handbook', 'bporg-developer' );
     314        default:
     315            return apply_filters( 'bporg_developer_get_site_section_title', __( 'Developer Resources', 'bporg-developer' ) );
     316    }
     317}
     318
     319/**
     320 * Gets the current BP version.
     321 *
     322 * NB: used to generate the link to the function/class on BP Trac.
     323 *
     324 * @since 1.0.0
     325 *
     326 * @param  string $prefix          The prefix to append to the BP current version.
     327 * @param  bool   $ignore_unstable Whether to ignore unstable versions (eg: alpha,
     328 *                                 beta, RC).
     329 * @return string The version to use to build the Trac link.
     330 */
     331function bporg_developer_get_current_version( $prefix = 'tags/', $ignore_unstable = true ) {
     332    $version    = 'trunk';
     333    $bp_version = '';
     334
     335    // BuddyPress might be active.
     336    if ( function_exists( 'bp_get_version' ) ) {
     337        $bp_version = bp_get_version();
     338    }
     339
     340    // Try to get the option value.
     341    $bp_version = get_option( '_bp_get_stable_version', $bp_version );
     342
     343    if ( $bp_version ) {
     344        if ( false !== strpos( $bp_version, '-' ) ) {
     345            if ( ! $ignore_unstable ) {
     346                list( $bp_version, $dev_version ) = explode( '-', $bp_version, 2 );
     347            } else {
     348                $bp_version = '';
     349            }
     350        }
     351
     352        if ( $bp_version ) {
     353            $version = $prefix . $bp_version;
     354        }
     355    }
     356
     357    return $version;
     358}
     359
     360/**
     361 * Output the the URL to the actual source file and line.
     362 *
     363 * @since 1.0.0
     364 *
     365 * @param int  $post_id     The ID of the Code Reference post type.
     366 * @param bool $line_number Whether to include the line number anchor.
     367 */
     368function bporg_developer_source_file_link( $post_id = null, $line_number = true ) {
     369    echo esc_url( bporg_developer_get_source_file_link( $post_id, $line_number ) );
     370}
     371
     372/**
     373 * Retrieve the URL to the actual source file and line.
     374 *
     375 * @since 1.0.0
     376 *
     377 * @param null $post_id     Post ID.
     378 * @param bool $line_number Whether to append the line number to the URL.
     379 *                          Default true.
     380 * @return string Source file URL with or without line number.
     381 */
     382function bporg_developer_get_source_file_link( $post_id = null, $line_number = true ) {
     383
     384    $post_id = empty( $post_id ) ? get_the_ID() : $post_id;
     385    $url     = '';
     386
     387    // Source file.
     388    $source_file = get_source_file( $post_id );
     389    if ( ! empty( $source_file ) ) {
     390        $bp_version = bporg_developer_get_current_version( 'tags/' );
     391        $url        = 'https://buddypress.trac.wordpress.org/browser/' . $bp_version . '/src/' . $source_file;
     392        // Line number.
     393        if ( $line_number = get_post_meta( get_the_ID(), '_wp-parser_line_num', true ) ) {
     394            $url .= "#L{$line_number}";
     395        }
     396    }
     397
     398    return $url;
     399}
     400
     401/**
     402 * Get current (latest) version of the parsed WP code as a wp-parser-since
     403 * term object.
     404 *
     405 * By default returns the major version (X.Y.0) term object because minor
     406 * releases rarely add enough, if any, new things to feature.
     407 *
     408 * For development versions, the development suffix ("-beta1", "-RC1") gets removed.
     409 *
     410 * @since 1.0.0
     411 *
     412 * @param  boolean $ignore_minor Use the major release version X.Y.0 instead of the actual version X.Y.Z?
     413 * @return object|WP_Error
     414 */
     415function bporg_developer_get_current_version_term( $ignore_minor = true ) {
     416    $current_version = bporg_developer_get_current_version( '' );
     417
     418    if ( $ignore_minor ) {
     419        $version_parts = explode( '.', $current_version, 3 );
     420        if ( count( $version_parts ) == 2 ) {
     421            $version_parts[] = '0';
     422        } else {
     423            $version_parts[2] = '0';
     424        }
     425        $current_version = implode( '-', $version_parts );
     426    }
     427
     428    $version = get_terms( 'wp-parser-since', array(
     429        'number' => '1',
     430        'order'  => 'DESC',
     431        'slug'   => $current_version,
     432    ) );
     433
     434    return is_wp_error( $version ) ? $version : reset( $version );
     435}
     436
     437if ( ! function_exists( 'wp_body_open' ) ) :
     438        /**
     439         * Fire the wp_body_open action.
     440         *
     441         * Added for backwards compatibility to support pre 5.2.0 WordPress versions.
     442         */
     443        function wp_body_open() {
     444                /**
     445                 * Triggered after the opening <body> tag.
     446                 */
     447                do_action( 'wp_body_open' );
     448        }
     449endif;
  • buddypress.org/public_html/wp-content/themes/bporg-developer/header.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/functions.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php
     2/**
     3 * The Header for our theme.
     4 *
     5 * Displays all of the <head> section and everything up till <div id="content">
     6 *
     7 * @package bporg-developer
     8 * @since 1.0.0
     9 */
     10?>
     11<!DOCTYPE html><html>
     12
     13<?php get_template_part( 'template-parts/header', 'head' ); ?>
     14
     15<body id="wordpress-org" <?php body_class(); ?>>
     16
     17<?php wp_body_open(); ?>
     18
     19<?php get_template_part( 'template-parts/header', 'accessibility' ); ?>
     20
     21<div id="header">
     22        <div id="header-inner">
     23
     24                <?php get_template_part( 'template-parts/header', 'nav' ); ?>
     25
     26                <div id="network-title">
     27                        <a href="https://buddypress.org"><?php bloginfo( 'name' ); ?></a>
     28                </div>
     29
     30        </div>
     31        <div style="clear:both"></div>
     32</div>
     33
     34<header id="masthead" class="site-header<?php if ( is_front_page() ) { echo ' home'; } ?>" role="banner">
     35        <?php if ( get_query_var( 'is_handbook' ) ) : ?>
     36        <a href="#" id="secondary-toggle" onclick="return false;"><strong><?php _e( 'Menu', 'bporg-developer' ); ?></strong></a>
     37        <?php endif; ?>
     38        <div class="site-branding">
     39                <h1 class="site-title">
     40                        <a href="<?php echo esc_url( DevHub\bporg_developer_get_site_section_url() ); ?>" rel="home"><?php echo DevHub\bporg_developer_get_site_section_title(); ?></a>
     41                </h1>
     42
     43                <?php if ( is_front_page() ) : ?>
     44
     45            <p class="site-description"><?php bloginfo( 'description', 'display' ); ?></p>
     46
     47        <?php else : ?>
     48
     49            <nav id="site-navigation" class="main-navigation" role="navigation">
     50                <button class="menu-toggle dashicons dashicons-arrow-down-alt2" aria-controls="primary-menu" aria-expanded="false" aria-label="<?php esc_attr_e( 'Primary Menu', 'bporg-developer' ); ?>"></button>
     51                <?php
     52                $active_menu = is_post_type_archive( 'command' ) || is_singular( 'command' ) ? 'devhub-cli-menu' : 'devhub-menu';
     53                wp_nav_menu( array(
     54                    'theme_location'  => $active_menu,
     55                    'container_class' => 'menu-container',
     56                    'container_id'    => 'primary-menu',
     57                ) ); ?>
     58            </nav>
     59
     60                <?php endif; ?>
     61        </div>
     62</header><!-- #masthead -->
     63
     64<div id="page" class="hfeed site devhub-wrap">
     65        <?php do_action( 'before' ); ?>
     66        <?php
     67        if ( DevHub\should_show_search_bar() ) : ?>
     68                <div id="inner-search">
     69                        <?php get_search_form(); ?>
     70                        <div id="inner-search-icon-container">
     71                                <div id="inner-search-icon">
     72                                        <div class="dashicons dashicons-search"><span class="screen-reader-text"><?php _e( 'Search', 'bporg-developer' ); ?></span></div>
     73                                </div>
     74                        </div>
     75                </div>
     76
     77        <?php endif; ?>
     78        <div id="content" class="site-content">
  • buddypress.org/public_html/wp-content/themes/bporg-developer/languages/bporg-developer.pot

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/header.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/images/buddypress-logo.png
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
    Added: svn:mime-type
    ## -0,0 +1 ##
    +application/octet-stream
    \ No newline at end of property
     
     1# <!=Copyright (C) 2019 The BuddyPress community
     2# This file is distributed under the GNU General Public License.=!>
     3msgid ""
     4msgstr ""
     5"Project-Id-Version: bporg-developer 1.0.0\n"
     6"Report-Msgid-Bugs-To: https://github.com/imath/bporg-developer/issues\n"
     7"POT-Creation-Date: 2019-07-12 06:50:36+00:00\n"
     8"MIME-Version: 1.0\n"
     9"Content-Type: text/plain; charset=utf-8\n"
     10"Content-Transfer-Encoding: 8bit\n"
     11"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
     12"Last-Translator: imath <contact@imathi.eu>\n"
     13"Language-Team: FRENCH <contact@imathi.eu>\n"
     14"X-Generator: grunt-wp-i18n 1.0.3\n"
     15
     16#: footer.php:20
     17msgid "See also:"
     18msgstr ""
     19
     20#: footer.php:21
     21msgid "WordPress.org"
     22msgstr ""
     23
     24#: footer.php:22
     25msgid "bbPress.org"
     26msgstr ""
     27
     28#: footer.php:23
     29msgid "BuddyPress.org"
     30msgstr ""
     31
     32#: footer.php:24
     33msgid "Matt"
     34msgstr ""
     35
     36#: footer.php:25
     37msgid "Blog RSS"
     38msgstr ""
     39
     40#: footer.php:30
     41msgid "Follow BuddyPress on Twitter"
     42msgstr ""
     43
     44#: footer.php:31
     45msgid "GPL"
     46msgstr ""
     47
     48#: footer.php:32
     49msgid "Contact Us"
     50msgstr ""
     51
     52#: footer.php:33
     53msgid "Privacy"
     54msgstr ""
     55
     56#: footer.php:34
     57msgid "Terms of Service"
     58msgstr ""
     59
     60#: functions.php:52 functions.php:123 functions.php:313
     61msgid "BP REST API Handbook"
     62msgstr ""
     63
     64#: functions.php:76
     65msgid "Chapters"
     66msgstr ""
     67
     68#: functions.php:86
     69msgid "More resources"
     70msgstr ""
     71
     72#: functions.php:87
     73msgid "BuddyPress Codex"
     74msgstr ""
     75
     76#: functions.php:99
     77msgid "Need help?"
     78msgstr ""
     79
     80#: functions.php:100
     81msgid "BuddyPress support forums"
     82msgstr ""
     83
     84#. Template Name of the plugin/theme
     85msgid "Home"
     86msgstr ""
     87
     88#. Template Name of the plugin/theme
     89msgid "Reference"
     90msgstr ""
     91
     92#: functions.php:127
     93msgid "Let’s start documenting the BP REST API!"
     94msgstr ""
     95
     96#: functions.php:139
     97msgid "BuddyPress Developer Resources"
     98msgstr ""
     99
     100#: functions.php:140
     101msgid "Your best buddies ever to help you code."
     102msgstr ""
     103
     104#: functions.php:147
     105msgid "BuddyPress.org nav"
     106msgstr ""
     107
     108#: functions.php:151
     109msgid "About"
     110msgstr ""
     111
     112#: functions.php:156
     113msgid "Plugins"
     114msgstr ""
     115
     116#: functions.php:161
     117msgid "Themes"
     118msgstr ""
     119
     120#: functions.php:166
     121msgid "Documentation"
     122msgstr ""
     123
     124#: functions.php:171
     125msgid "Blog"
     126msgstr ""
     127
     128#: functions.php:176
     129msgid "Download"
     130msgstr ""
     131
     132#: functions.php:184
     133msgid "DevHub menu"
     134msgstr ""
     135
     136#: functions.php:187
     137msgid "All Developer Resources"
     138msgstr ""
     139
     140#: functions.php:194
     141msgid "BuddyPress API"
     142msgstr ""
     143
     144#: functions.php:198
     145msgid "BP Attachment API"
     146msgstr ""
     147
     148#: functions.php:203
     149msgid "BP Theme Compat API"
     150msgstr ""
     151
     152#: functions.php:208
     153msgid "BP Component API"
     154msgstr ""
     155
     156#: functions.php:213
     157msgid "BP User Query API"
     158msgstr ""
     159
     160#: functions.php:218
     161msgid "Member Types API"
     162msgstr ""
     163
     164#: functions.php:223
     165msgid "Group Types API"
     166msgstr ""
     167
     168#: functions.php:228
     169msgid "BP Nav API"
     170msgstr ""
     171
     172#: functions.php:233
     173msgid "Group Extension API"
     174msgstr ""
     175
     176#: functions.php:265
     177msgid "BuddyPress latest stable version"
     178msgstr ""
     179
     180#: functions.php:305
     181msgid "Developer Resources: %s"
     182msgstr ""
     183
     184#: functions.php:307 page-home-landing.php:20
     185msgid "Code Reference"
     186msgstr ""
     187
     188#: functions.php:309
     189msgid "Plugin Handbook"
     190msgstr ""
     191
     192#: functions.php:311
     193msgid "Theme Handbook"
     194msgstr ""
     195
     196#: functions.php:315
     197msgid "Developer Resources"
     198msgstr ""
     199
     200#: header.php:36
     201msgid "Menu"
     202msgstr ""
     203
     204#: header.php:50
     205msgid "Primary Menu"
     206msgstr ""
     207
     208#: header.php:72
     209msgid "Search"
     210msgstr ""
     211
     212#: page-home-landing.php:21
     213msgid "Looking for documentation for the BuddyPress codebase?"
     214msgstr ""
     215
     216#: page-home-landing.php:22
     217msgid "Visit the reference"
     218msgstr ""
     219
     220#: page-home-landing.php:26
     221msgid "BP REST API"
     222msgstr ""
     223
     224#: page-home-landing.php:27
     225msgid "Getting started on making BuddyPress applications?"
     226msgstr ""
     227
     228#: page-home-landing.php:28
     229msgid "Make Applications "
     230msgstr ""
     231
     232#: page-home-landing.php:32
     233msgid "Contribute"
     234msgstr ""
     235
     236#: page-home-landing.php:33
     237msgid "Help Make BuddyPress"
     238msgstr ""
     239
     240#: page-home-landing.php:34
     241msgid "Visit BuddyPress Trac"
     242msgstr ""
     243
     244#: page-home-landing.php:48
     245msgid "Developer news"
     246msgstr ""
     247
     248#: page-home-landing.php:51
     249msgid "Follow the development team’s blog."
     250msgstr ""
     251
     252#: page-reference-landing.php:22
     253msgid ""
     254"Want to know what&#39;s going on inside BuddyPress? Search the Code "
     255"Reference for more information about BuddyPress&#39; functions, classes, "
     256"methods, and hooks."
     257msgstr ""
     258
     259#: page-reference-landing.php:23
     260msgid "Try it out:"
     261msgstr ""
     262
     263#: page-reference-landing.php:28
     264msgid "Or browse through topics:"
     265msgstr ""
     266
     267#: page-reference-landing.php:30
     268msgid "Functions"
     269msgstr ""
     270
     271#: page-reference-landing.php:31
     272msgid "Hooks"
     273msgstr ""
     274
     275#: page-reference-landing.php:32
     276msgid "Classes"
     277msgstr ""
     278
     279#: page-reference-landing.php:33
     280msgid "Methods"
     281msgstr ""
     282
     283#: page-reference-landing.php:41
     284msgid "New &amp; Updated in BuddyPress %s:"
     285msgstr ""
     286
     287#: page-reference-landing.php:67
     288msgid "View all&hellip;"
     289msgstr ""
     290
     291#: page-reference-landing.php:74
     292msgid "API"
     293msgstr ""
     294
     295#: page-under-construction.php:29
     296msgid "Under construction"
     297msgstr ""
     298
     299#: reference/template-source.php:15
     300msgid "Source"
     301msgstr ""
     302
     303#: reference/template-source.php:17
     304msgid "File: %s"
     305msgstr ""
     306
     307#: reference/template-source.php:28
     308msgid "Expand full source code"
     309msgstr ""
     310
     311#: reference/template-source.php:29
     312msgid "Collapse full source code"
     313msgstr ""
     314
     315#: reference/template-source.php:31 reference/template-source.php:35
     316msgid "View on Trac"
     317msgstr ""
     318
     319#: template-parts/header-accessibility.php:11
     320msgid "Skip to:"
     321msgstr ""
     322
     323#: template-parts/header-accessibility.php:12
     324msgid "Content"
     325msgstr ""
     326
     327#. Theme Name of the plugin/theme
     328msgid "bporg-developer"
     329msgstr ""
     330
     331#. Author URI of the plugin/theme
     332msgid "https://buddypress.org/"
     333msgstr ""
     334
     335#. Description of the plugin/theme
     336msgid "wporg-developer child theme."
     337msgstr ""
     338
     339#. Author of the plugin/theme
     340msgid "The BuddyPress community"
     341msgstr ""
     342
     343#. Template Name of the plugin/theme
     344msgid "Under Construction"
     345msgstr ""
     346 No newline at end of file
  • buddypress.org/public_html/wp-content/themes/bporg-developer/page-home-landing.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/languages/bporg-developer.pot
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php
     2/**
     3 * The template for displaying the Code Reference landing page.
     4 *
     5 * Template Name: Home
     6 *
     7 * @package bporg-developer
     8 * @since 1.0.0
     9 */
     10
     11get_header(); ?>
     12
     13        <div id="primary" class="content-area">
     14
     15                <div class="home-landing">
     16
     17                        <div class="inner-wrap section">
     18
     19                                <div class="box box-code-ref">
     20                                        <h3 class="widget-title"><div class="dashicons dashicons-editor-code"></div><?php esc_html_e( 'Code Reference', 'bporg-developer' ); ?></h3>
     21                                        <p class="widget-description"><?php esc_html_e( 'Looking for documentation for the BuddyPress codebase?', 'bporg-developer' ); ?></p>
     22                                        <a href="<?php echo esc_url( home_url( '/reference' ) ); ?>"><?php esc_html_e( 'Visit the reference', 'bporg-developer' ); ?></a>
     23                                </div>
     24
     25                                <div class="box box-rest-api">
     26                                        <h3 class="widget-title"><div class="dashicons dashicons-rest-api"></div><?php esc_html_e( 'BP REST API', 'bporg-developer' ); ?></h3>
     27                                        <p class="widget-description"><?php esc_html_e( 'Getting started on making BuddyPress applications?', 'bporg-developer' ); ?></p>
     28                                        <a href="<?php echo esc_url( get_post_type_archive_link( 'bp-rest-api-handbook' ) ); ?>"><?php esc_html_e( 'Make Applications ', 'bporg-developer' ); ?></a>
     29                </div>
     30
     31                <div class="box box-contribute">
     32                                        <h3 class="widget-title"><div class="dashicons dashicons-buddicons-buddypress-logo"></div><?php esc_html_e( 'Contribute', 'bporg-developer' ); ?></h3>
     33                                        <p class="widget-description"><?php esc_html_e( 'Help Make BuddyPress', 'bporg-developer' ); ?></p>
     34                                        <a href="https://buddypress.trac.wordpress.org"><?php esc_html_e( 'Visit BuddyPress Trac', 'bporg-developer' ); ?></a>
     35                                </div>
     36
     37                        </div>
     38
     39                        <div class="search-guide inner-wrap section">
     40
     41                                <?php if ( is_active_sidebar( 'landing-footer-1') ) { ?>
     42                                        <?php dynamic_sidebar( 'landing-footer-1' ); ?>
     43                                <?php } else { ?>
     44                                        <div class=" box"></div>
     45                                <?php } ?>
     46
     47                                <div class="box">
     48                                        <h3 class="widget-title"><?php esc_html_e( 'Developer news', 'bporg-developer' ); ?></h3>
     49                                        <div class="widget-text">
     50                                                <p>
     51                                                        <a href="https://bpdevel.wordpress.com/"><?php esc_html_e( 'Follow the development team’s blog.', 'bporg-developer' ); ?></a>
     52                                                </p>
     53                                        </div>
     54                                </div>
     55
     56                                <?php if ( is_active_sidebar( 'landing-footer-2') ) { ?>
     57                                        <?php dynamic_sidebar( 'landing-footer-2' ); ?>
     58                                <?php } else { ?>
     59                                        <div class=" box"></div>
     60                                <?php } ?>
     61
     62                        </div>
     63
     64                </div><!-- /home-landing -->
     65        </div><!-- #primary -->
     66
     67<?php get_footer(); ?>
     68
  • buddypress.org/public_html/wp-content/themes/bporg-developer/page-reference-landing.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/page-home-landing.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php
     2/**
     3 * The template for displaying the Code Reference landing page.
     4 *
     5 * Template Name: Reference
     6 *
     7 * @package bporg-developer
     8 * @since 1.0.0
     9 */
     10
     11get_header(); ?>
     12
     13        <div id="primary" class="content-area">
     14
     15                <div id="content-area">
     16                        <?php breadcrumb_trail(); ?>
     17                </div>
     18
     19                <main id="main" class="site-main" role="main">
     20                        <div class="reference-landing">
     21                                <div class="search-guide section clear">
     22                                        <h4 class="ref-intro"><?php _e( 'Want to know what&#39;s going on inside BuddyPress? Search the Code Reference for more information about BuddyPress&#39; functions, classes, methods, and hooks.', 'bporg-developer' ); ?></h4>
     23                                        <h3 class="search-intro"><?php _e( 'Try it out:', 'bporg-developer' ); ?></h3>
     24                                        <?php get_search_form(); ?>
     25                                </div><!-- /search-guide -->
     26
     27                                <div class="topic-guide section">
     28                                        <h4><?php _e( 'Or browse through topics:', 'bporg-developer' ); ?></h4>
     29                                        <ul class="unordered-list horizontal-list no-bullets">
     30                                                <li><a href="<?php echo get_post_type_archive_link( 'wp-parser-function' ) ?>"><?php _e( 'Functions', 'bporg-developer' ); ?></a></li>
     31                                                <li><a href="<?php echo get_post_type_archive_link( 'wp-parser-hook' ) ?>"><?php _e( 'Hooks', 'bporg-developer' ); ?></a></li>
     32                                                <li><a href="<?php echo get_post_type_archive_link( 'wp-parser-class' ) ?>"><?php _e( 'Classes', 'bporg-developer' ); ?></a></li>
     33                                                <li><a href="<?php echo get_post_type_archive_link( 'wp-parser-method' ) ?>"><?php _e( 'Methods', 'bporg-developer' ); ?></a></li>
     34                                        </ul>
     35                                </div><!-- /topic-guide -->
     36
     37                                <div class="new-in-guide section two-columns clear">
     38                    <?php $version = DevHub\bporg_developer_get_current_version_term(); ?>
     39                                        <?php if ( $version && ! is_wp_error( $version ) ) : ?>
     40                        <div class="widget box gray">
     41                            <h3 class="widget-title"><?php printf( __( 'New &amp; Updated in BuddyPress %s:', 'bporg-developer' ), substr( $version->name, 0, -2 ) ); ?></h3>
     42                            <div class="widget-content">
     43                                <ul class="unordered-list no-bullets">
     44                                    <?php
     45
     46                                    $list = new WP_Query( array(
     47                                        'posts_per_page' => 15,
     48                                        'post_type'      => DevHub\get_parsed_post_types(),
     49                                        'orderby'        => 'title',
     50                                        'order'          => 'ASC',
     51                                        'tax_query'      => array( array(
     52                                            'taxonomy' => 'wp-parser-since',
     53                                            'field'    => 'ids',
     54                                            'terms'    => $version->term_id,
     55                                        ) ),
     56                                    ) );
     57
     58                                    while ( $list->have_posts() ) : $list->the_post(); ?>
     59
     60                                        <li>
     61                                            <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
     62                                                <?php the_title(); ?>
     63                                            </a>
     64                                        </li>
     65
     66                                    <?php endwhile; ?>
     67                                    <li class="view-all-new-in"><a href="<?php echo esc_attr( get_term_link( $version, 'wp-parser-since' ) ); ?>"><?php _e( 'View all&hellip;', 'bporg-developer' ); ?></a></li>
     68                                </ul>
     69                            </div>
     70                        </div>
     71                    <?php endif; ?>
     72                    <?php if ( has_nav_menu( 'reference-home-api' ) ) : ?>
     73                        <div class="widget box gray">
     74                            <h3 class="widget-title"><?php _e( 'API', 'bporg-developer' ); ?></h3>
     75                            <div class="widget-content">
     76                                <?php wp_nav_menu(
     77                                        [
     78                                            'theme_location' => 'reference-home-api',
     79                                            'menu_class'     => 'unordered-list no-bullets',
     80                                        ]
     81                                    );
     82                                ?>
     83                            </div>
     84                        </div>
     85                    <?php endif; ?>
     86                                </div><!-- /new-in-guide -->
     87
     88                        </div><!-- /reference-landing -->
     89
     90                </main><!-- #main -->
     91        </div><!-- #primary -->
     92
     93<?php get_footer(); ?>
  • buddypress.org/public_html/wp-content/themes/bporg-developer/page-under-construction.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/page-reference-landing.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php
     2/**
     3 * The template for displaying the under construction page.
     4 *
     5 * Template Name: Under Construction
     6 *
     7 * @package bporg-developer
     8 * @since 1.0.0
     9 */
     10
     11get_header(); ?>
     12
     13        <div id="primary" class="content-area">
     14
     15                <div id="content-area">
     16                        <?php breadcrumb_trail(); ?>
     17                </div>
     18
     19                <main id="main" class="site-main" role="main">
     20                        <div class="reference-landing">
     21                <div class="section clear">
     22
     23                    <?php while ( have_posts() ) : the_post(); ?>
     24
     25                        <?php if ( get_the_content() ) :
     26                            get_template_part( 'content', 'page' );
     27                           
     28                        else: ?>
     29                            <h2><?php esc_html_e( 'Under construction', 'bporg-developer' ); ?></h2>
     30                        <?php endif; ?>
     31
     32                        <?php
     33                            // If comments are open or we have at least one comment, load up the comment template
     34                            if ( comments_open() || '0' != get_comments_number() ) :
     35                                comments_template();
     36                            endif;
     37                        ?>
     38
     39                    <?php endwhile; // end of the loop. ?>
     40
     41                </div><!-- /section.clear -->
     42
     43                        </div><!-- /reference-landing -->
     44
     45                </main><!-- #main -->
     46        </div><!-- #primary -->
     47
     48<?php get_footer(); ?>
  • buddypress.org/public_html/wp-content/themes/bporg-developer/reference/template-source.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/page-under-construction.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php namespace DevHub;
     2/**
     3 * Reference Template: Source Information
     4 *
     5 * @package bporg-developer
     6 * @subpackage Reference
     7 * @since 1.0.0
     8 */
     9
     10$source_file = get_source_file();
     11if ( ! empty( $source_file ) ) :
     12        ?>
     13        <hr />
     14        <section class="source-content">
     15                <h3><?php _e( 'Source', 'bporg-developer' ); ?></h3>
     16                <p>
     17                        <?php printf( __( 'File: %s', 'bporg-developer' ),
     18                                '<a href="' . esc_url( get_source_file_archive_link( $source_file ) ) . '">' . esc_html( $source_file ) . '</a>'
     19                        ); ?>
     20                </p>
     21
     22                <?php if ( post_type_has_source_code() ) : ?>
     23                        <div class="source-code-container">
     24                                <pre class="brush: php; toolbar: false; first-line: <?php echo esc_attr( get_post_meta( get_the_ID(), '_wp-parser_line_num', true ) ); ?>"><?php echo htmlentities( get_source_code() ); ?></pre>
     25                        </div>
     26                        <p class="source-code-links">
     27                                <span>
     28                                        <a href="#" class="show-complete-source"><?php _e( 'Expand full source code', 'bporg-developer' ); ?></a>
     29                                        <a href="#" class="less-complete-source"><?php _e( 'Collapse full source code', 'bporg-developer' ); ?></a>
     30                                </span>
     31                                <span><a href="<?php bporg_developer_source_file_link(); ?>"><?php _e( 'View on Trac', 'bporg-developer' ); ?></a></span>
     32                        </p>
     33                <?php else : ?>
     34                        <p>
     35                                <a href="<?php bporg_developer_source_file_link(); ?>"><?php _e( 'View on Trac', 'bporg-developer' ); ?></a>
     36                        </p>
     37                <?php endif; ?>
     38        </section>
     39<?php endif; ?>
  • buddypress.org/public_html/wp-content/themes/bporg-developer/single-bp-rest-api-handbook.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/reference/template-source.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/screenshot.png
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
    Added: svn:mime-type
    ## -0,0 +1 ##
    +application/octet-stream
    \ No newline at end of property
     
     1<?php namespace DevHub;
     2/**
     3 * The Template for displaying all single posts.
     4 *
     5 * @package bporg-developer
     6 * @since 1.0.0
     7 */
     8
     9get_header(); ?>
     10
     11<?php get_sidebar( 'handbook' ); ?>
     12
     13                <main id="primary" <?php post_class( 'site-main' ); ?> role="main">
     14
     15                <?php breadcrumb_trail(); ?>
     16
     17                <?php while ( have_posts() ) : the_post(); ?>
     18
     19                        <?php get_template_part( 'content', 'handbook' ); ?>
     20
     21                        <?php \WPorg_Handbook_Navigation::show_nav_links( 'BP REST API Table of Contents' ); ?>
     22
     23                <?php endwhile; // end of the loop. ?>
     24
     25                </main><!-- #main -->
     26
     27<?php get_footer(); ?>
  • buddypress.org/public_html/wp-content/themes/bporg-developer/style.css

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/single-bp-rest-api-handbook.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1/*
     2Theme Name: bporg-developer
     3Theme URI: https://buddypress.org/
     4Author: The BuddyPress community
     5Author URI: https://buddypress.org/
     6Template: wporg-developer
     7Description: wporg-developer child theme.
     8Version: 1.0.0
     9License: GNU General Public License
     10License URI: license.txt
     11Text Domain: bporg-developer
     12Domain Path: /languages/
     13Tags:
     14
     15This theme, like WordPress, is licensed under the GPL.
     16Use it to make something cool, have fun, and share what you've learned with others.
     17
     18 bporg-developer is based on wporg-developer
     19
     20Resetting and rebuilding styles have been helped along thanks to the fine work of
     21Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
     22along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
     23and Blueprint http://www.blueprintcss.org/
     24*/
  • buddypress.org/public_html/wp-content/themes/bporg-developer/template-parts/header-accessibility.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/style.css
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php
     2/**
     3 * The accessibility part of our theme's Header.
     4 *
     5 * @package bporg-developer
     6 * @subpackage TemplateParts
     7 * @since 1.0.0
     8 */
     9?>
     10        <dl id="accessibility" class="screen-reader-text">
     11                <dt><?php esc_html_e( 'Skip to:', 'bporg-developer' ); ?></dt>
     12                <dd><a href="#content" title="Skip to content"><?php esc_html_e( 'Content', 'bporg-developer' ); ?></a></dd>
     13        </dl>
     14        <hr class="hidden" />
  • buddypress.org/public_html/wp-content/themes/bporg-developer/template-parts/header-head.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/template-parts/header-accessibility.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php
     2/**
     3 * The head part of our theme's Header.
     4 *
     5 * @package bporg-developer
     6 * @subpackage TemplateParts
     7 * @since 1.0.0
     8 */
     9?>
     10<html <?php language_attributes(); ?>>
     11<head>
     12        <meta charset="<?php bloginfo( 'charset' ); ?>" />
     13        <meta name="viewport" content="width=device-width, initial-scale=1" />
     14        <link rel="profile" href="https://gmpg.org/xfn/11" />
     15        <?php wp_head(); ?>
     16</head>
  • buddypress.org/public_html/wp-content/themes/bporg-developer/template-parts/header-nav.php

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/template-parts/header-head.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1<?php
     2/**
     3 * The navigation part of our theme's Header.
     4 *
     5 * @package bporg-developer
     6 * @subpackage TemplateParts
     7 * @since 1.0.0
     8 */
     9?>
     10<div id="nav">
     11        <a href="#" id="bb-menu-icon"></a>
     12
     13    <?php wp_nav_menu( array(
     14        'container'      => '',
     15        'menu_class'     => 'menu',
     16        'menu_id'        => 'bb-nav',
     17        'theme_location' => 'header-nav-menu',
     18    ) ); ?>
     19
     20</div>
  • buddypress.org/public_html/wp-content/themes

    Property changes on: buddypress.org/public_html/wp-content/themes/bporg-developer/template-parts/header-nav.php
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property