Making WordPress.org


Ignore:
Timestamp:
04/05/2016 04:05:02 PM (8 years ago)
Author:
kovshenin
Message:

WordCamp.org: Reintegrate application-tracking branch into trunk.

Location:
sites/trunk/wordcamp.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org

  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php

    r2152 r2898  
    5353            'supports'            => array( 'title', 'editor', 'author', 'revisions' ),
    5454        );
    55        
     55
    5656        register_post_type( self::POST_TYPE_SLUG, $params );
    5757    }
     
    108108                    <td colspan="2"><label for="wcor_send_sponsor_wrangler">The Sponsor Wrangler</label></td>
    109109                </tr>
    110                
     110
    111111                <tr>
    112112                    <th><input id="wcor_send_budget_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_budget_wrangler" <?php checked( in_array( 'wcor_send_budget_wrangler', $send_where ) ); ?>></th>
    113113                    <td colspan="2"><label for="wcor_send_budget_wrangler">The Budget Wrangler</label></td>
    114114                </tr>
    115                
     115
    116116                <tr>
    117117                    <th><input id="wcor_send_venue_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_venue_wrangler" <?php checked( in_array( 'wcor_send_venue_wrangler', $send_where ) ); ?>></th>
    118118                    <td colspan="2"><label for="wcor_send_venue_wrangler">The Venue Wrangler</label></td>
    119119                </tr>
    120                
     120
    121121                <tr>
    122122                    <th><input id="wcor_send_speaker_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_speaker_wrangler" <?php checked( in_array( 'wcor_send_speaker_wrangler', $send_where ) ); ?>></th>
    123123                    <td colspan="2"><label for="wcor_send_speaker_wrangler">The Speaker Wrangler</label></td>
    124124                </tr>
    125                
     125
    126126                <tr>
    127127                    <th><input id="wcor_send_food_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_food_wrangler" <?php checked( in_array( 'wcor_send_food_wrangler', $send_where ) ); ?>></th>
    128128                    <td colspan="2"><label for="wcor_send_food_wrangler">The Food/Beverage Wrangler</label></td>
    129129                </tr>
    130                
     130
    131131                <tr>
    132132                    <th><input id="wcor_send_swag_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_swag_wrangler" <?php checked( in_array( 'wcor_send_swag_wrangler', $send_where ) ); ?>></th>
    133133                    <td colspan="2"><label for="wcor_send_swag_wrangler">The Swag Wrangler</label></td>
    134134                </tr>
    135                
     135
    136136                <tr>
    137137                    <th><input id="wcor_send_volunteer_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_volunteer_wrangler" <?php checked( in_array( 'wcor_send_volunteer_wrangler', $send_where ) ); ?>></th>
    138138                    <td colspan="2"><label for="wcor_send_volunteer_wrangler">The Volunteer Wrangler</label></td>
    139139                </tr>
    140                
     140
    141141                <tr>
    142142                    <th><input id="wcor_send_printing_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_printing_wrangler" <?php checked( in_array( 'wcor_send_printing_wrangler', $send_where ) ); ?>></th>
    143143                    <td colspan="2"><label for="wcor_send_printing_wrangler">The Printing Wrangler</label></td>
    144144                </tr>
    145                
     145
    146146                <tr>
    147147                    <th><input id="wcor_send_design_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_design_wrangler" <?php checked( in_array( 'wcor_send_design_wrangler', $send_where ) ); ?>></th>
    148148                    <td colspan="2"><label for="wcor_send_design_wrangler">The Design Wrangler</label></td>
    149149                </tr>
    150                
     150
    151151                <tr>
    152152                    <th><input id="wcor_send_website_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_website_wrangler" <?php checked( in_array( 'wcor_send_website_wrangler', $send_where ) ); ?>></th>
    153153                    <td colspan="2"><label for="wcor_send_website_wrangler">The Website Wrangler</label></td>
    154154                </tr>
    155                
     155
    156156                <tr>
    157157                    <th><input id="wcor_send_social_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_social_wrangler" <?php checked( in_array( 'wcor_send_social_wrangler', $send_where ) ); ?>></th>
    158158                    <td colspan="2"><label for="wcor_send_social_wrangler">The Social Media/Publicity Wrangler</label></td>
    159159                </tr>
    160                
     160
    161161                <tr>
    162162                    <th><input id="wcor_send_a_v_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_a_v_wrangler" <?php checked( in_array( 'wcor_send_a_v_wrangler', $send_where ) ); ?>></th>
    163163                    <td colspan="2"><label for="wcor_send_a_v_wrangler">The A/V Wrangler</label></td>
    164164                </tr>
    165                
     165
    166166                <tr>
    167167                    <th><input id="wcor_send_party_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_party_wrangler" <?php checked( in_array( 'wcor_send_party_wrangler', $send_where ) ); ?>></th>
    168168                    <td colspan="2"><label for="wcor_send_party_wrangler">The Party Wrangler</label></td>
    169169                </tr>
    170                
     170
    171171                <tr>
    172172                    <th><input id="wcor_send_travel_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_travel_wrangler" <?php checked( in_array( 'wcor_send_travel_wrangler', $send_where ) ); ?>></th>
    173173                    <td colspan="2"><label for="wcor_send_travel_wrangler">The Travel Wrangler</label></td>
    174174                </tr>
    175                
     175
    176176                <tr>
    177177                    <th><input id="wcor_send_safety_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_safety_wrangler" <?php checked( in_array( 'wcor_send_safety_wrangler', $send_where ) ); ?>></th>
     
    196196            </tbody>
    197197        </table>
    198        
    199        
     198
     199
    200200        <h4>When should this e-mail be sent?</h4>
    201201
     
    235235                        <select name="wcor_which_trigger">
    236236                            <option value="null" <?php selected( $which_trigger, false ); ?>></option>
    237                            
     237
    238238                            <?php foreach ( $GLOBALS['WCOR_Mailer']->triggers as $trigger_id => $trigger ) : ?>
    239239                                <option value="<?php echo esc_attr( $trigger_id ); ?>" <?php selected( $which_trigger, $trigger_id ); ?>><?php echo esc_html( $trigger['name'] ); ?></option>
     
    365365        }
    366366
     367        $statuses = WordCamp_Loader::get_post_statuses();
     368        $statuses = array_merge( array_keys( $statuses ), array( 'draft', 'pending', 'publish' ) );
     369
    367370        $wordcamps = get_posts( array(
    368371            'post_type'   => WCPT_POST_TYPE_ID,
    369             'post_status' => array( 'draft', 'pending', 'publish' ),
     372            'post_status' => $statuses,
    370373            'numberposts' => -1,
    371374        ) );
     
    438441    /**
    439442     * Checks to make sure the conditions for saving post meta are met
    440      * 
     443     *
    441444     * @param int $post_id
    442445     * @param object $post
     
    456459            return;
    457460        }
    458        
     461
    459462        $this->save_post_meta( $post, $_POST );
    460463        $this->send_manual_email( $post, $_POST );
     
    463466    /**
    464467     * Saves the meta data for the reminder post
    465      * 
     468     *
    466469     * @param WP_Post $post
    467470     * @param array $new_meta
     
    481484        if ( isset( $new_meta['wcor_send_custom_address'] ) && is_email( $new_meta['wcor_send_custom_address'] ) ) {
    482485            update_post_meta( $post->ID, 'wcor_send_custom_address', sanitize_email( $new_meta['wcor_send_custom_address'] ) );
    483         }       
    484        
     486        }
     487
    485488        if ( isset( $new_meta['wcor_send_when'] ) ) {
    486489            if ( in_array( $new_meta['wcor_send_when'], array( 'wcor_send_before', 'wcor_send_after', 'wcor_send_after_pending', 'wcor_send_trigger' ) ) ) {
Note: See TracChangeset for help on using the changeset viewer.