Making WordPress.org

Changeset 2877


Ignore:
Timestamp:
04/01/2016 09:16:09 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Whitespace cleanup.

Location:
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/views/wordcamp/metabox-status.php

    r2824 r2877  
    4545        <div class="clear"></div>
    4646    </div> <!-- #minor-publishing -->
    47 
    48 
     47   
    4948    <div id="major-publishing-actions">
    5049        <div id="delete-action">
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-admin.php

    r171 r2877  
    8585     */
    8686    function admin_head () {
    87 ?>
     87        ?>
     88
    8889        <style type="text/css" media="screen">
    89         /*<![CDATA[*/
    90 <?php
    91             // Add extra actions to WordCamp Post Type admin header area
    92             do_action( 'wcpt_admin_head' );
    93 ?>
     90            /*<![CDATA[*/
     91            <?php
     92                // Add extra actions to WordCamp Post Type admin header area
     93                do_action( 'wcpt_admin_head' );
     94            ?>
     95            /*]]>*/
     96        </style>
    9497
    95         /*]]>*/
    96         </style>
    97 <?php
     98        <?php
    9899    }
    99100
     
    125126            return false;
    126127
    127 ?>
    128         <h3><?php _e( 'WordCamps', 'wcpt' ); ?></h3>
    129         <table class="form-table">
    130             <tr valign="top">
    131                 <th scope="row"><?php _e( 'WordCamps', 'wcpt' ); ?></th>
    132                 <td>
     128        ?>
     129            <h3><?php _e( 'WordCamps', 'wcpt' ); ?></h3>
    133130
    134                 </td>
    135             </tr>
    136         </table>
    137 <?php
     131            <table class="form-table">
     132                <tr valign="top">
     133                    <th scope="row"><?php _e( 'WordCamps', 'wcpt' ); ?></th>
     134                    <td>
     135
     136                    </td>
     137                </tr>
     138            </table>
     139        <?php
    138140
    139141        // Add extra actions to WordCamp Post Type profile update
     
    171173        // Loop through menu order and do some rearranging
    172174        foreach ( $menu_order as $index => $item ) {
    173 
    174175            // Current item is our forum CPT, so set our separator here
    175176            if ( ( ( 'edit.php?post_type=' . WCPT_POST_TYPE_ID ) == $item ) ) {
     
    181182            if ( !in_array( $item, array( 'separator-wcpt' ) ) )
    182183                $wcpt_menu_order[] = $item;
    183 
    184184        }
    185185
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-functions.php

    r2847 r2877  
    4444 */
    4545function wcpt_has_access () {
    46 
    4746    if ( is_super_admin () )
    4847        $has_access = true;
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-loader.php

    r2838 r2877  
    8383
    8484// Load everything up
    85 $wcpt_loader = new WCPT_Loader;
     85$wcpt_loader     = new WCPT_Loader;
    8686$wordcamp_loader = new WordCamp_Loader;
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r2876 r2877  
    123123        $statuses = WordCamp_Loader::get_post_statuses();
    124124
    125         add_meta_box( 'submitdiv', __( 'Status', 'wordcamporg' ), array( $this, 'metabox_status' ),
    126             WCPT_POST_TYPE_ID, 'side', 'high' );
     125        add_meta_box(
     126            'submitdiv',
     127            __( 'Status', 'wordcamporg' ),
     128            array( $this, 'metabox_status' ),
     129            WCPT_POST_TYPE_ID,
     130            'side',
     131            'high'
     132        );
    127133    }
    128134
     
    136142     */
    137143    function metabox_save( $post_id, $post ) {
    138 
    139144        // Don't add/remove meta on revisions and auto-saves
    140145        if ( wp_is_post_autosave( $post_id ) || wp_is_post_revision( $post_id ) )
     
    166171        // Loop through meta keys and update
    167172        foreach ( $wcpt_meta_keys as $key => $value ) {
    168 
    169173            // Get post value
    170174            $post_value   = wcpt_key_to_str( $key, 'wcpt_' );
     
    224228    }
    225229
    226 
    227230    /**
    228231     * Geocode the given address into a latitude and longitude pair.
     
    261264     */
    262265    function meta_keys( $meta_group = '' ) {
    263 
    264266        /*
    265267         * Warning: These keys are used for both the input field label and the postmeta key, so if you want to
     
    276278            case 'organizer':
    277279                $retval = array (
    278                     'Organizer Name'                  => 'text',
    279                     'WordPress.org Username'          => 'text',
    280                     'Email Address'                   => 'text',    // Note: This is the lead organizer's e-mail address, which is different than the "E-mail Address" field
    281                     'Telephone'                       => 'text',
    282                     'Mailing Address'                 => 'textarea',
    283                     'Sponsor Wrangler Name'           => 'text',
    284                     'Sponsor Wrangler E-mail Address' => 'text',
    285                     'Budget Wrangler Name'            => 'text',
    286                     'Budget Wrangler E-mail Address'  => 'text',
    287                     'Venue Wrangler Name'                   => 'text',
    288                     'Venue Wrangler E-mail Address'         => 'text',
    289                     'Speaker Wrangler Name'                 => 'text',
    290                     'Speaker Wrangler E-mail Address'       => 'text',
    291                     'Food/Beverage Wrangler Name'           => 'text',
    292                     'Food/Beverage Wrangler E-mail Address' => 'text',
    293                     'Swag Wrangler Name'                    => 'text',
    294                     'Swag Wrangler E-mail Address'          => 'text',
    295                     'Volunteer Wrangler Name'               => 'text',
    296                     'Volunteer Wrangler E-mail Address'     => 'text',
    297                     'Printing Wrangler Name'                => 'text',
    298                     'Printing Wrangler E-mail Address'      => 'text',
    299                     'Design Wrangler Name'                  => 'text',
    300                     'Design Wrangler E-mail Address'        => 'text',
    301                     'Website Wrangler Name'                 => 'text',
    302                     'Website Wrangler E-mail Address'       => 'text',
    303                     'Social Media/Publicity Wrangler Name'            => 'text',
    304                     'Social Media/Publicity Wrangler E-mail Address'  => 'text',
    305                     'A/V Wrangler Name'                     => 'text',
    306                     'A/V Wrangler E-mail Address'           => 'text',
    307                     'Party Wrangler Name'                   => 'text',
    308                     'Party Wrangler E-mail Address'         => 'text',
    309                     'Travel Wrangler Name'                  => 'text',
    310                     'Travel Wrangler E-mail Address'        => 'text',
    311                     'Safety Wrangler Name'                  => 'text',
    312                     'Safety Wrangler E-mail Address'        => 'text',
    313                     'Mentor Name'                     => 'text',
    314                     'Mentor E-mail Address'           => 'text',
     280                    'Organizer Name'                                 => 'text',
     281                    'WordPress.org Username'                         => 'text',
     282                    'Email Address'                                  => 'text', // Note: This is the lead organizer's e-mail address, which is different than the "E-mail Address" field
     283                    'Telephone'                                      => 'text',
     284                    'Mailing Address'                                => 'textarea',
     285                    'Sponsor Wrangler Name'                          => 'text',
     286                    'Sponsor Wrangler E-mail Address'                => 'text',
     287                    'Budget Wrangler Name'                           => 'text',
     288                    'Budget Wrangler E-mail Address'                 => 'text',
     289                    'Venue Wrangler Name'                            => 'text',
     290                    'Venue Wrangler E-mail Address'                  => 'text',
     291                    'Speaker Wrangler Name'                          => 'text',
     292                    'Speaker Wrangler E-mail Address'                => 'text',
     293                    'Food/Beverage Wrangler Name'                    => 'text',
     294                    'Food/Beverage Wrangler E-mail Address'          => 'text',
     295                    'Swag Wrangler Name'                             => 'text',
     296                    'Swag Wrangler E-mail Address'                   => 'text',
     297                    'Volunteer Wrangler Name'                        => 'text',
     298                    'Volunteer Wrangler E-mail Address'              => 'text',
     299                    'Printing Wrangler Name'                         => 'text',
     300                    'Printing Wrangler E-mail Address'               => 'text',
     301                    'Design Wrangler Name'                           => 'text',
     302                    'Design Wrangler E-mail Address'                 => 'text',
     303                    'Website Wrangler Name'                          => 'text',
     304                    'Website Wrangler E-mail Address'                => 'text',
     305                    'Social Media/Publicity Wrangler Name'           => 'text',
     306                    'Social Media/Publicity Wrangler E-mail Address' => 'text',
     307                    'A/V Wrangler Name'                              => 'text',
     308                    'A/V Wrangler E-mail Address'                    => 'text',
     309                    'Party Wrangler Name'                            => 'text',
     310                    'Party Wrangler E-mail Address'                  => 'text',
     311                    'Travel Wrangler Name'                           => 'text',
     312                    'Travel Wrangler E-mail Address'                 => 'text',
     313                    'Safety Wrangler Name'                           => 'text',
     314                    'Safety Wrangler E-mail Address'                 => 'text',
     315                    'Mentor Name'                                    => 'text',
     316                    'Mentor E-mail Address'                          => 'text',
    315317                );
    316318
     
    356358                    'Multi-Event Sponsor Region'      => 'mes-dropdown',
    357359
    358                     'Organizer Name'                  => 'text',
    359                     'WordPress.org Username'          => 'text',
    360                     'Email Address'                   => 'text',
    361                     'Telephone'                       => 'text',
    362                     'Mailing Address'                 => 'textarea',
    363                     'Sponsor Wrangler Name'           => 'text',
    364                     'Sponsor Wrangler E-mail Address' => 'text',
    365                     'Budget Wrangler Name'            => 'text',
    366                     'Budget Wrangler E-mail Address'  => 'text',
    367                     'Venue Wrangler Name'                   => 'text',
    368                     'Venue Wrangler E-mail Address'         => 'text',
    369                     'Speaker Wrangler Name'                 => 'text',
    370                     'Speaker Wrangler E-mail Address'       => 'text',
    371                     'Food/Beverage Wrangler Name'           => 'text',
    372                     'Food/Beverage Wrangler E-mail Address' => 'text',
    373                     'Swag Wrangler Name'                    => 'text',
    374                     'Swag Wrangler E-mail Address'          => 'text',
    375                     'Volunteer Wrangler Name'               => 'text',
    376                     'Volunteer Wrangler E-mail Address'     => 'text',
    377                     'Printing Wrangler Name'                => 'text',
    378                     'Printing Wrangler E-mail Address'      => 'text',
    379                     'Design Wrangler Name'                  => 'text',
    380                     'Design Wrangler E-mail Address'        => 'text',
    381                     'Website Wrangler Name'                 => 'text',
    382                     'Website Wrangler E-mail Address'       => 'text',
    383                     'Social Media/Publicity Wrangler Name'            => 'text',
    384                     'Social Media/Publicity Wrangler E-mail Address'  => 'text',
    385                     'A/V Wrangler Name'                     => 'text',
    386                     'A/V Wrangler E-mail Address'           => 'text',
    387                     'Party Wrangler Name'                   => 'text',
    388                     'Party Wrangler E-mail Address'         => 'text',
    389                     'Travel Wrangler Name'                  => 'text',
    390                     'Travel Wrangler E-mail Address'        => 'text',
    391                     'Safety Wrangler Name'                  => 'text',
    392                     'Safety Wrangler E-mail Address'        => 'text',
    393                     'Mentor Name'                     => 'text',
    394                     'Mentor E-mail Address'           => 'text',
     360                    'Organizer Name'                                 => 'text',
     361                    'WordPress.org Username'                         => 'text',
     362                    'Email Address'                                  => 'text',
     363                    'Telephone'                                      => 'text',
     364                    'Mailing Address'                                => 'textarea',
     365                    'Sponsor Wrangler Name'                          => 'text',
     366                    'Sponsor Wrangler E-mail Address'                => 'text',
     367                    'Budget Wrangler Name'                           => 'text',
     368                    'Budget Wrangler E-mail Address'                 => 'text',
     369                    'Venue Wrangler Name'                            => 'text',
     370                    'Venue Wrangler E-mail Address'                  => 'text',
     371                    'Speaker Wrangler Name'                          => 'text',
     372                    'Speaker Wrangler E-mail Address'                => 'text',
     373                    'Food/Beverage Wrangler Name'                    => 'text',
     374                    'Food/Beverage Wrangler E-mail Address'          => 'text',
     375                    'Swag Wrangler Name'                             => 'text',
     376                    'Swag Wrangler E-mail Address'                   => 'text',
     377                    'Volunteer Wrangler Name'                        => 'text',
     378                    'Volunteer Wrangler E-mail Address'              => 'text',
     379                    'Printing Wrangler Name'                         => 'text',
     380                    'Printing Wrangler E-mail Address'               => 'text',
     381                    'Design Wrangler Name'                           => 'text',
     382                    'Design Wrangler E-mail Address'                 => 'text',
     383                    'Website Wrangler Name'                          => 'text',
     384                    'Website Wrangler E-mail Address'                => 'text',
     385                    'Social Media/Publicity Wrangler Name'           => 'text',
     386                    'Social Media/Publicity Wrangler E-mail Address' => 'text',
     387                    'A/V Wrangler Name'                              => 'text',
     388                    'A/V Wrangler E-mail Address'                    => 'text',
     389                    'Party Wrangler Name'                            => 'text',
     390                    'Party Wrangler E-mail Address'                  => 'text',
     391                    'Travel Wrangler Name'                           => 'text',
     392                    'Travel Wrangler E-mail Address'                 => 'text',
     393                    'Safety Wrangler Name'                           => 'text',
     394                    'Safety Wrangler E-mail Address'                 => 'text',
     395                    'Mentor Name'                                    => 'text',
     396                    'Mentor E-mail Address'                          => 'text',
    395397
    396398                    'Venue Name'                      => 'text',
     
    420422    function admin_print_scripts() {
    421423        if ( get_post_type() == WCPT_POST_TYPE_ID ) :
     424
    422425        ?>
    423426
     
    467470        if ( !wcpt_has_access() )
    468471            return false;
    469 
    470472    }
    471473
     
    478480     */
    479481    function user_profile_wordcamp( $profileuser ) {
    480 
    481482        if ( !wcpt_has_access() )
    482483            return false;
    483 
    484484        ?>
    485485
    486486        <h3><?php _e( 'WordCamps', 'wcpt' ); ?></h3>
     487
    487488        <table class="form-table">
    488489            <tr valign="top">
    489490                <th scope="row"><?php _e( 'WordCamps', 'wcpt' ); ?></th>
     491
    490492                <td>
    491 
    492493                </td>
    493494            </tr>
     
    558559
    559560            case 'wcpt_date' :
    560 
    561561                // Has a start date
    562562                if ( $start = wcpt_get_wordcamp_start_date() ) {
     
    612612            echo implode( ' - ', (array) $wc );
    613613        }
     614
    614615        return $actions;
    615616    }
     
    723724
    724725        if ( ! empty( $post_data['post_status'] ) ) {
    725 
    726726            // Only network admins can change WordCamp statuses.
    727727            if ( ! current_user_can( 'network_admin' ) ) {
     
    930930    public function original_application_metabox( $post ) {
    931931        $application_data = get_post_meta( $post->ID, '_application_data', true );
    932 
    933932        require_once( WCPT_DIR . 'views/wordcamp/metabox-original-application.php' );
    934933    }
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-loader.php

    r2870 r2877  
    11<?php
    2 define( 'WCPT_POST_TYPE_ID', 'wordcamp' );
    3 define( 'WCPT_YEAR_ID', 'wordcamp_year' );
    4 define( 'WCPT_SLUG', 'wordcamps' );
     2
     3define( 'WCPT_POST_TYPE_ID',   'wordcamp'           );
     4define( 'WCPT_YEAR_ID',        'wordcamp_year'      );
     5define( 'WCPT_SLUG',           'wordcamps'          );
    56define( 'WCPT_DEFAULT_STATUS', 'wcpt-needs-vetting' );
    67define( 'WCPT_FINAL_STATUS',   'wcpt-closed'        );
    7 // todo realign
    8 
    9 if ( !class_exists( 'WordCamp_Loader' ) ) :
     8
     9if ( ! class_exists( 'WordCamp_Loader' ) ) :
    1010/**
    1111 * WordCamp_Loader
     
    2222     */
    2323    function __construct() {
    24         add_action( 'plugins_loaded', array( $this, 'includes' ) );
    25 
    26         add_action( 'init', array( $this, 'register_post_types' ) );
    27         add_action( 'init', array( $this, 'register_post_statuses' ) );
     24        add_action( 'plugins_loaded', array( $this, 'includes'               ) );
     25        add_action( 'init',           array( $this, 'register_post_types'    ) );
     26        add_action( 'init',           array( $this, 'register_post_statuses' ) );
    2827    }
    2928
     
    3635     */
    3736    function includes () {
    38 
    3937        // Load the files
    4038        require_once ( WCPT_DIR . 'wcpt-wordcamp/wordcamp-template.php' );
     
    4543
    4644        require_once( WCPT_DIR . 'wcpt-wordcamp/wordcamp-new-site.php' );
     45
    4746        $GLOBALS['wordcamp_new_site'] = new WordCamp_New_Site;
    4847    }
     
    5655     */
    5756    function register_post_types() {
    58 
    5957        // WordCamp post type labels
    6058        $wcpt_labels = array (
    61             'name'                  => __( 'WordCamps', 'wcpt' ),
    62             'singular_name'         => __( 'WordCamp', 'wcpt' ),
    63             'add_new'               => __( 'Add New', 'wcpt' ),
    64             'add_new_item'          => __( 'Create New WordCamp', 'wcpt' ),
    65             'edit'                  => __( 'Edit', 'wcpt' ),
    66             'edit_item'             => __( 'Edit WordCamp', 'wcpt' ),
    67             'new_item'              => __( 'New WordCamp', 'wcpt' ),
    68             'view'                  => __( 'View WordCamp', 'wcpt' ),
    69             'view_item'             => __( 'View WordCamp', 'wcpt' ),
    70             'search_items'          => __( 'Search WordCamps', 'wcpt' ),
    71             'not_found'             => __( 'No WordCamps found', 'wcpt' ),
     59            'name'                  => __( 'WordCamps',                   'wcpt' ),
     60            'singular_name'         => __( 'WordCamp',                    'wcpt' ),
     61            'add_new'               => __( 'Add New',                     'wcpt' ),
     62            'add_new_item'          => __( 'Create New WordCamp',         'wcpt' ),
     63            'edit'                  => __( 'Edit',                        'wcpt' ),
     64            'edit_item'             => __( 'Edit WordCamp',               'wcpt' ),
     65            'new_item'              => __( 'New WordCamp',                'wcpt' ),
     66            'view'                  => __( 'View WordCamp',               'wcpt' ),
     67            'view_item'             => __( 'View WordCamp',               'wcpt' ),
     68            'search_items'          => __( 'Search WordCamps',            'wcpt' ),
     69            'not_found'             => __( 'No WordCamps found',          'wcpt' ),
    7270            'not_found_in_trash'    => __( 'No WordCamps found in Trash', 'wcpt' ),
    73             'parent_item_colon'     => __( 'Parent WordCamp:', 'wcpt' )
     71            'parent_item_colon'     => __( 'Parent WordCamp:',            'wcpt' )
    7472        );
    7573
     
    127125    public static function get_post_statuses() {
    128126        return array(
    129             'wcpt-needs-vetting'   => _x( 'Needs Vetting', 'wordcamp status', 'wordcamporg' ),
    130             'wcpt-needs-orientati' => _x( 'Needs Orientation/Interview', 'wordcamp status', 'wordcamporg' ),
    131             'wcpt-more-info-reque' => _x( 'More Info Requested', 'wordcamp status', 'wordcamporg' ),
    132             'wcpt-needs-rejection' => _x( 'Needs Rejection E-mail', 'wordcamp status', 'wordcamporg' ),
    133             'wcpt-interview-sched' => _x( 'Interview/Orientation Scheduled', 'wordcamp status', 'wordcamporg' ),
    134             'wcpt-rejected'        => _x( 'Rejected', 'wordcamp status', 'wordcamporg' ),
     127            'wcpt-needs-vetting'   => _x( 'Needs Vetting',                               'wordcamp status', 'wordcamporg' ),
     128            'wcpt-needs-orientati' => _x( 'Needs Orientation/Interview',                 'wordcamp status', 'wordcamporg' ),
     129            'wcpt-more-info-reque' => _x( 'More Info Requested',                         'wordcamp status', 'wordcamporg' ),
     130            'wcpt-needs-rejection' => _x( 'Needs Rejection E-mail',                      'wordcamp status', 'wordcamporg' ),
     131            'wcpt-interview-sched' => _x( 'Interview/Orientation Scheduled',             'wordcamp status', 'wordcamporg' ),
     132            'wcpt-rejected'        => _x( 'Rejected',                                    'wordcamp status', 'wordcamporg' ),
    135133            'wcpt-approved-pre-pl' => _x( 'Approved for Pre-Planning Pending Agreement', 'wordcamp status', 'wordcamporg' ),
    136             'wcpt-needs-email'     => _x( 'Needs E-mail Address', 'wordcamp status', 'wordcamporg' ),
    137             'wcpt-needs-site'      => _x( 'Needs Site', 'wordcamp status', 'wordcamporg' ),
    138             'wcpt-needs-polldaddy' => _x( 'Needs Polldaddy Account', 'wordcamp status', 'wordcamporg' ),
    139             'wcpt-needs-mentor'    => _x( 'Needs Mentor', 'wordcamp status', 'wordcamporg' ),
    140             'wcpt-needs-pre-plann' => _x( 'Needs to be Added to Pre-Planning Schedule', 'wordcamp status', 'wordcamporg' ),
    141             'wcpt-pre-planning'    => _x( 'In Pre-Planning', 'wordcamp status', 'wordcamporg' ),
    142             'wcpt-needs-budget-re' => _x( 'Needs Budget Review', 'wordcamp status', 'wordcamporg' ),
    143             'wcpt-budget-rev-sche' => _x( 'Budget Review Scheduled', 'wordcamp status', 'wordcamporg' ),
    144             'wcpt-needs-contract'  => _x( 'Needs Contract to be Signed', 'wordcamp status', 'wordcamporg' ),
    145             'wcpt-needs-fill-list' => _x( 'Needs to Fill Out WordCamp Listing', 'wordcamp status', 'wordcamporg' ),
    146             'wcpt-needs-schedule'  => _x( 'Needs to be Added to Official Schedule', 'wordcamp status', 'wordcamporg' ),
    147             'wcpt-scheduled'       => _x( 'WordCamp Scheduled', 'wordcamp status', 'wordcamporg' ),
    148             'wcpt-needs-debrief'   => _x( 'Needs Debrief', 'wordcamp status', 'wordcamporg' ),
    149             'wcpt-debrief-schedul' => _x( 'Debrief Scheduled', 'wordcamp status', 'wordcamporg' ),
    150             'wcpt-closed'          => _x( 'WordCamp Closed', 'wordcamp status', 'wordcamporg' ),
     134            'wcpt-needs-email'     => _x( 'Needs E-mail Address',                        'wordcamp status', 'wordcamporg' ),
     135            'wcpt-needs-site'      => _x( 'Needs Site',                                  'wordcamp status', 'wordcamporg' ),
     136            'wcpt-needs-polldaddy' => _x( 'Needs Polldaddy Account',                     'wordcamp status', 'wordcamporg' ),
     137            'wcpt-needs-mentor'    => _x( 'Needs Mentor',                                'wordcamp status', 'wordcamporg' ),
     138            'wcpt-needs-pre-plann' => _x( 'Needs to be Added to Pre-Planning Schedule',  'wordcamp status', 'wordcamporg' ),
     139            'wcpt-pre-planning'    => _x( 'In Pre-Planning',                             'wordcamp status', 'wordcamporg' ),
     140            'wcpt-needs-budget-re' => _x( 'Needs Budget Review',                         'wordcamp status', 'wordcamporg' ),
     141            'wcpt-budget-rev-sche' => _x( 'Budget Review Scheduled',                     'wordcamp status', 'wordcamporg' ),
     142            'wcpt-needs-contract'  => _x( 'Needs Contract to be Signed',                 'wordcamp status', 'wordcamporg' ),
     143            'wcpt-needs-fill-list' => _x( 'Needs to Fill Out WordCamp Listing',          'wordcamp status', 'wordcamporg' ),
     144            'wcpt-needs-schedule'  => _x( 'Needs to be Added to Official Schedule',      'wordcamp status', 'wordcamporg' ),
     145            'wcpt-scheduled'       => _x( 'WordCamp Scheduled',                          'wordcamp status', 'wordcamporg' ),
     146            'wcpt-needs-debrief'   => _x( 'Needs Debrief',                               'wordcamp status', 'wordcamporg' ),
     147            'wcpt-debrief-schedul' => _x( 'Debrief Scheduled',                           'wordcamp status', 'wordcamporg' ),
     148            'wcpt-closed'          => _x( 'WordCamp Closed',                             'wordcamp status', 'wordcamporg' ),
    151149        );
    152150    }
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php

    r2876 r2877  
    205205        // Make sure the new blog is https.
    206206        update_option( 'siteurl', set_url_scheme( get_option( 'siteurl' ), 'https' ) );
    207         update_option( 'home', set_url_scheme( get_option( 'home' ), 'https' ) );
     207        update_option( 'home',    set_url_scheme( get_option( 'home' ),    'https' ) );
    208208    }
    209209
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-template.php

    r1652 r2877  
    1414 * @return object Multidimensional array of WordCamp information
    1515 */
    16 function wcpt_has_wordcamps ( $args = '' ) {
     16function wcpt_has_wordcamps( $args = '' ) {
    1717    global $wcpt_template;
    1818
    19     $default = array (
     19    $default = array(
    2020        // Narrow query down to WordCamp Post Type
    2121        'post_type'        => WCPT_POST_TYPE_ID,
     
    8484 * @return object WordCamp information
    8585 */
    86 function wcpt_wordcamps () {
     86function wcpt_wordcamps() {
    8787    global $wcpt_template;
    8888    return $wcpt_template->have_posts();
     
    101101 * @return object WordCamp information
    102102 */
    103 function wcpt_the_wordcamp () {
     103function wcpt_the_wordcamp() {
    104104    global $wcpt_template;
    105105    return $wcpt_template->the_post();
     
    117117 * @uses wcpt_get_wordcamp_id()
    118118 */
    119 function wcpt_wordcamp_id () {
     119function wcpt_wordcamp_id() {
    120120    echo wcpt_get_wordcamp_id();
    121121}
     
    131131     * @return string WordCamp id
    132132     */
    133     function wcpt_get_wordcamp_id () {
     133    function wcpt_get_wordcamp_id() {
    134134        global $wcpt_template;
    135135
     
    154154 * @uses wcpt_get_wordcamp_permalink()
    155155 */
    156 function wcpt_wordcamp_permalink ( $wordcamp_id = 0 ) {
     156function wcpt_wordcamp_permalink( $wordcamp_id = 0 ) {
    157157    echo wcpt_get_wordcamp_permalink( $wordcamp_id );
    158158}
     
    171171     * @return string Permanent link to WordCamp
    172172     */
    173     function wcpt_get_wordcamp_permalink ( $wordcamp_id = 0 ) {
     173    function wcpt_get_wordcamp_permalink( $wordcamp_id = 0 ) {
    174174        if ( empty( $wordcamp_id ) )
    175175            $wordcamp_id = wcpt_get_wordcamp_id();
     
    190190 * @uses wcpt_get_wordcamp_title()
    191191 */
    192 function wcpt_wordcamp_title ( $wordcamp_id = 0 ) {
     192function wcpt_wordcamp_title( $wordcamp_id = 0 ) {
    193193    echo wcpt_get_wordcamp_title( $wordcamp_id );
    194194}
     
    208208     *
    209209     */
    210     function wcpt_get_wordcamp_title ( $wordcamp_id = 0 ) {
     210    function wcpt_get_wordcamp_title( $wordcamp_id = 0 ) {
    211211        return apply_filters( 'wcpt_get_wordcamp_title', get_the_title( $wordcamp_id ) );
    212212    }
     
    224224 * @uses wcpt_get_wordcamp_link()
    225225 */
    226 function wcpt_wordcamp_link ( $wordcamp_id = 0 ) {
     226function wcpt_wordcamp_link( $wordcamp_id = 0 ) {
    227227    echo wcpt_get_wordcamp_link( $wordcamp_id );
    228228}
     
    242242     *
    243243     */
    244     function wcpt_get_wordcamp_link ( $wordcamp_id = 0 ) {
     244    function wcpt_get_wordcamp_link( $wordcamp_id = 0 ) {
    245245
    246246        $title = get_the_title( $wordcamp_id );
     
    269269 * @param int $wordcamp_id optional
    270270 */
    271 function wcpt_wordcamp_start_date ( $wordcamp_id = 0, $format = 'F j, Y' ) {
     271function wcpt_wordcamp_start_date( $wordcamp_id = 0, $format = 'F j, Y' ) {
    272272    echo wcpt_get_wordcamp_start_date( $wordcamp_id, $format );
    273273}
     
    284284     * @param int $wordcamp_id optional
    285285     */
    286     function wcpt_get_wordcamp_start_date ( $wordcamp_id = 0, $format = 'F j, Y' ) {
     286    function wcpt_get_wordcamp_start_date( $wordcamp_id = 0, $format = 'F j, Y' ) {
    287287        if ( empty( $wordcamp_id ) )
    288288            $wordcamp_id = wcpt_get_wordcamp_id();
     
    306306 * @param int $wordcamp_id optional
    307307 */
    308 function wcpt_wordcamp_end_date ( $wordcamp_id = 0, $format = 'F j, Y' ) {
     308function wcpt_wordcamp_end_date( $wordcamp_id = 0, $format = 'F j, Y' ) {
    309309    echo wcpt_get_wordcamp_end_date( $wordcamp_id, $format );
    310310}
     
    321321     * @param int $wordcamp_id optional
    322322     */
    323     function wcpt_get_wordcamp_end_date ( $wordcamp_id = 0, $format = 'F j, Y' ) {
     323    function wcpt_get_wordcamp_end_date( $wordcamp_id = 0, $format = 'F j, Y' ) {
    324324        if ( empty( $wordcamp_id ) )
    325325            $wordcamp_id = wcpt_get_wordcamp_id();
     
    343343 * @param int $wordcamp_id optional
    344344 */
    345 function wcpt_wordcamp_location ( $wordcamp_id = 0 ) {
     345function wcpt_wordcamp_location( $wordcamp_id = 0 ) {
    346346    echo wcpt_get_wordcamp_location( $wordcamp_id );
    347347}
     
    358358     * @param int $wordcamp_id optional
    359359     */
    360     function wcpt_get_wordcamp_location ( $wordcamp_id = 0 ) {
     360    function wcpt_get_wordcamp_location( $wordcamp_id = 0 ) {
    361361        if ( empty( $wordcamp_id ) )
    362362            $wordcamp_id = wcpt_get_wordcamp_id();
     
    377377 * @param int $wordcamp_id optional
    378378 */
    379 function wcpt_wordcamp_organizer_name ( $wordcamp_id = 0 ) {
     379function wcpt_wordcamp_organizer_name( $wordcamp_id = 0 ) {
    380380    echo wcpt_get_wordcamp_organizer_name( $wordcamp_id );
    381381}
     
    392392     * @param int $wordcamp_id optional
    393393     */
    394     function wcpt_get_wordcamp_organizer_name ( $wordcamp_id = 0 ) {
     394    function wcpt_get_wordcamp_organizer_name( $wordcamp_id = 0 ) {
    395395        if ( empty( $wordcamp_id ) )
    396396            $wordcamp_id = wcpt_get_wordcamp_id();
     
    411411 * @param int $wordcamp_id optional
    412412 */
    413 function wcpt_wordcamp_venue_name ( $wordcamp_id = 0 ) {
     413function wcpt_wordcamp_venue_name( $wordcamp_id = 0 ) {
    414414    echo wcpt_get_wordcamp_venue_name( $wordcamp_id );
    415415}
     
    426426     * @param int $wordcamp_id optional
    427427     */
    428     function wcpt_get_wordcamp_venue_name ( $wordcamp_id = 0 ) {
     428    function wcpt_get_wordcamp_venue_name( $wordcamp_id = 0 ) {
    429429        if ( empty( $wordcamp_id ) )
    430430            $wordcamp_id = wcpt_get_wordcamp_id();
     
    445445 * @param int $wordcamp_id optional
    446446 */
    447 function wcpt_wordcamp_url ( $wordcamp_id = 0 ) {
     447function wcpt_wordcamp_url( $wordcamp_id = 0 ) {
    448448    echo wcpt_get_wordcamp_url( $wordcamp_id );
    449449}
     
    460460     * @param int $wordcamp_id optional
    461461     */
    462     function wcpt_get_wordcamp_url ( $wordcamp_id = 0 ) {
     462    function wcpt_get_wordcamp_url( $wordcamp_id = 0 ) {
    463463        if ( empty( $wordcamp_id ) )
    464464            $wordcamp_id = wcpt_get_wordcamp_id();
     
    478478 * @global WP_Query $wcpt_template
    479479 */
    480 function wcpt_wordcamp_pagination_count () {
     480function wcpt_wordcamp_pagination_count() {
    481481    echo wcpt_get_wordcamp_pagination_count();
    482482}
     
    493493     * @return string
    494494     */
    495     function wcpt_get_wordcamp_pagination_count () {
     495    function wcpt_get_wordcamp_pagination_count() {
    496496        global $wcpt_template;
    497497
     
    521521 * @since WordCamp Post Type (0.1)
    522522 */
    523 function wcpt_wordcamp_pagination_links () {
     523function wcpt_wordcamp_pagination_links() {
    524524    echo wcpt_get_wordcamp_pagination_links();
    525525}
     
    536536     * @return string
    537537     */
    538     function wcpt_get_wordcamp_pagination_links () {
     538    function wcpt_get_wordcamp_pagination_links() {
    539539        global $wcpt_template;
    540540
     
    547547 */
    548548if ( ! function_exists( 'wcpt_wordcamp_physical_address' ) ) :
    549 function wcpt_wordcamp_physical_address( $wordcamp_id = 0 ) {
    550     echo wp_filter_kses( nl2br( wcpt_get_wordcamp_physical_address( $wordcamp_id ) ) );
    551 }
     549    function wcpt_wordcamp_physical_address( $wordcamp_id = 0 ) {
     550        echo wp_filter_kses( nl2br( wcpt_get_wordcamp_physical_address( $wordcamp_id ) ) );
     551    }
    552552endif;
    553553
    554     if ( ! function_exists( 'wcpt_get_wordcamp_physical_address' ) ) :
     554if ( ! function_exists( 'wcpt_get_wordcamp_physical_address' ) ) :
    555555    function wcpt_get_wordcamp_physical_address( $wordcamp_id = 0 ) {
    556556        if ( empty( $wordcamp_id ) )
     
    560560        return apply_filters( 'wcpt_get_wordcamp_physical_address', $address );
    561561    }
    562     endif;
     562endif;
    563563
    564564if ( ! function_exists( 'wcpt_wordcamp_venue_url' ) ) :
    565 function wcpt_wordcamp_venue_url( $wordcamp_id = 0 ) {
    566     echo esc_url( wcpt_get_wordcamp_venue_url( $wordcamp_id ) );
    567 }
     565    function wcpt_wordcamp_venue_url( $wordcamp_id = 0 ) {
     566        echo esc_url( wcpt_get_wordcamp_venue_url( $wordcamp_id ) );
     567    }
    568568endif;
    569569
    570     if ( ! function_exists( 'wcpt_get_wordcamp_venue_url' ) ) :
     570if ( ! function_exists( 'wcpt_get_wordcamp_venue_url' ) ) :
    571571    function wcpt_get_wordcamp_venue_url( $wordcamp_id = 0 ) {
    572572        if ( empty( $wordcamp_id ) )
     
    576576        return apply_filters( 'wcpt_get_wordcamp_venue_url', $venue_url );
    577577    }
    578     endif;
     578endif;
    579579
    580580if ( ! function_exists( 'wcpt_get_wordcamp_twitter_screen_name' ) ) :
    581 function wcpt_get_wordcamp_twitter_screen_name( $wordcamp_id = 0 ) {
    582     if ( empty( $wordcamp_id ) )
    583         $wordcamp_id = wcpt_get_wordcamp_id();
    584        
    585     $screen_name = get_post_meta( $wordcamp_id, 'Twitter', true );
    586     return apply_filters( 'wcpt_get_wordcamp_twitter_screen_name', $screen_name );
    587 }
     581    function wcpt_get_wordcamp_twitter_screen_name( $wordcamp_id = 0 ) {
     582        if ( empty( $wordcamp_id ) )
     583            $wordcamp_id = wcpt_get_wordcamp_id();
     584
     585        $screen_name = get_post_meta( $wordcamp_id, 'Twitter', true );
     586        return apply_filters( 'wcpt_get_wordcamp_twitter_screen_name', $screen_name );
     587    }
    588588endif;
    589589
Note: See TracChangeset for help on using the changeset viewer.