Changeset 2877 for sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-loader.php
- Timestamp:
- 04/01/2016 09:16:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-loader.php
r2870 r2877 1 1 <?php 2 define( 'WCPT_POST_TYPE_ID', 'wordcamp' ); 3 define( 'WCPT_YEAR_ID', 'wordcamp_year' ); 4 define( 'WCPT_SLUG', 'wordcamps' ); 2 3 define( 'WCPT_POST_TYPE_ID', 'wordcamp' ); 4 define( 'WCPT_YEAR_ID', 'wordcamp_year' ); 5 define( 'WCPT_SLUG', 'wordcamps' ); 5 6 define( 'WCPT_DEFAULT_STATUS', 'wcpt-needs-vetting' ); 6 7 define( 'WCPT_FINAL_STATUS', 'wcpt-closed' ); 7 // todo realign 8 9 if ( !class_exists( 'WordCamp_Loader' ) ) : 8 9 if ( ! class_exists( 'WordCamp_Loader' ) ) : 10 10 /** 11 11 * WordCamp_Loader … … 22 22 */ 23 23 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' ) ); 28 27 } 29 28 … … 36 35 */ 37 36 function includes () { 38 39 37 // Load the files 40 38 require_once ( WCPT_DIR . 'wcpt-wordcamp/wordcamp-template.php' ); … … 45 43 46 44 require_once( WCPT_DIR . 'wcpt-wordcamp/wordcamp-new-site.php' ); 45 47 46 $GLOBALS['wordcamp_new_site'] = new WordCamp_New_Site; 48 47 } … … 56 55 */ 57 56 function register_post_types() { 58 59 57 // WordCamp post type labels 60 58 $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' ), 72 70 'not_found_in_trash' => __( 'No WordCamps found in Trash', 'wcpt' ), 73 'parent_item_colon' => __( 'Parent WordCamp:', 'wcpt' )71 'parent_item_colon' => __( 'Parent WordCamp:', 'wcpt' ) 74 72 ); 75 73 … … 127 125 public static function get_post_statuses() { 128 126 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' ), 135 133 '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' ), 151 149 ); 152 150 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)