Changeset 1304
- Timestamp:
- 02/24/2015 08:05:37 PM (11 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes
- Files:
-
- 3 edited
-
mes-sponsor.php (modified) (4 diffs)
-
mes-sponsorship-level.php (modified) (2 diffs)
-
multi-event-sponsors.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsor.php
r1302 r1304 13 13 14 14 class MES_Sponsor { 15 const POST_TYPE_SLUG = 'mes';15 const POST_TYPE_SLUG = 'mes'; 16 16 17 17 /** … … 19 19 */ 20 20 public function __construct() { 21 add_action( 'init', array( $this, 'create_post_type' ) ); 22 add_action( 'admin_init', array( $this, 'add_meta_boxes' ) ); 23 add_action( 'save_post', array( $this, 'save_post' ), 10, 2 ); 24 add_filter( 'the_content', array( $this, 'add_header_footer_text' ) ); 25 26 // todo readjust whitespace after this commit 21 add_action( 'init', array( $this, 'create_post_type' ) ); 22 add_action( 'admin_init', array( $this, 'add_meta_boxes' ) ); 23 add_action( 'save_post', array( $this, 'save_post' ), 10, 2 ); 24 add_filter( 'the_content', array( $this, 'add_header_footer_text' ) ); 27 25 } 28 26 … … 126 124 * @param array $regional_sponsorships 127 125 * @param array $regions 126 * 128 127 * @return array 129 128 */ … … 203 202 * 204 203 * @param string $content 204 * 205 205 * @return string 206 206 */ -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsorship-level.php
r1302 r1304 15 15 */ 16 16 public function __construct() { 17 add_action( 'init', array( $this, 'create_post_type' ) ); 18 add_action( 'admin_init', array( $this, 'add_meta_boxes' ) ); 19 add_action( 'save_post', array( $this, 'save_post' ), 10, 2 ); 20 add_filter( 'the_content', array( $this, 'add_header_footer_text' ) ); 21 22 // todo readjust whitepsace after this commit 17 add_action( 'init', array( $this, 'create_post_type' ) ); 18 add_action( 'admin_init', array( $this, 'add_meta_boxes' ) ); 19 add_action( 'save_post', array( $this, 'save_post' ), 10, 2 ); 20 add_filter( 'the_content', array( $this, 'add_header_footer_text' ) ); 23 21 } 24 22 … … 140 138 * 141 139 * @param string $content 140 * 142 141 * @return string 143 142 */ -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/multi-event-sponsors.php
r1302 r1304 36 36 * Render the multi_event_sponsors shortcode output 37 37 * 38 * @param $parameters 38 * @param array $parameters 39 * 39 40 * @return string 40 41 */ … … 56 57 * 57 58 * @param array $old_array 59 * 58 60 * @return array 59 61 */ … … 88 90 * @param array $sponsors 89 91 * @param array $regions 92 * 90 93 * @return array 91 94 */ … … 121 124 * @param int $region_a_id 122 125 * @param int $region_b_id 126 * 123 127 * @return int 124 128 */ … … 141 145 * @param int $level_a_id 142 146 * @param int $level_b_id 147 * 143 148 * @return int 144 149 */ … … 161 166 * 'ungrouped' will return a one-dimensional array; 162 167 * 'sponsor_level' will return an associative array with sponsors grouped by their level and indexed by level ID 168 * 163 169 * @return array 164 170 */ … … 197 203 * 198 204 * @param array $sponsors 205 * 199 206 * @return array 200 207 */ … … 217 224 * 218 225 * @param array $sponsors 226 * 219 227 * @return string 220 228 */ … … 239 247 * 240 248 * @param array $sponsors 249 * 241 250 * @return string 242 251 */
Note: See TracChangeset
for help on using the changeset viewer.