Changeset 113
- Timestamp:
- 11/01/2013 12:19:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-nags/wordcamp-organizer-nags.php
r112 r113 19 19 add_action( 'admin_notices', array( $this, 'print_admin_notices' ) ); 20 20 add_action( 'admin_init', array( $this, 'central_about_info' ) ); 21 add_action( 'admin_init', array( $this, 'published_attendees_ page' ) );21 add_action( 'admin_init', array( $this, 'published_attendees_schedule_pages' ) ); 22 22 } 23 23 … … 70 70 71 71 /** 72 * Checks if an Attendees page ispublished along with the Ticket Registration page72 * Checks if Attendees and Schedule pages have been published along with the Ticket Registration page 73 73 */ 74 public function published_attendees_ page() {75 $found_registration = $found_attendees = false;74 public function published_attendees_schedule_pages() { 75 $found_registration = $found_attendees = $found_schedule = false; 76 76 $published_pages = get_posts( array( 77 77 'post_type' => 'page', … … 88 88 } 89 89 90 if ( $found_registration && $found_attendees ) { 90 if ( has_shortcode( $page->post_content, 'schedule' ) ) { 91 $found_schedule = true; 92 } 93 94 if ( $found_registration && $found_attendees && $found_schedule ) { 91 95 break; 92 96 } … … 96 100 $this->notices['updated'][] = 'Tickets are on sale now! Don’t forget to <a href="http://plan.wordcamp.org/using-camptix/#attendees-list">publish an Attendees page</a>, so everyone can see what amazing people are coming to your WordCamp.'; 97 101 } 102 103 if ( $found_registration && ! $found_schedule ) { 104 $this->notices['updated'][] = 'Tickets sell a lot faster when people can see who\'s speaking at your WordCamp. How about <a href="http://plan.wordcamp.org/first-steps/web-presence/working-with-speakers-sessions-and-sponsors/#schedule">publishing a schedule</a> today?'; 105 } 98 106 } 99 107 }
Note: See TracChangeset
for help on using the changeset viewer.