@@ -5,39 +5,39 @@ discard block |
||
5 | 5 | /** @type string $reset_db_action_url */ |
6 | 6 | /** @type EE_Data_Migration_Script_Base $most_recent_migration */ |
7 | 7 | ?> |
8 | -<?php if ( $success ) { ?> |
|
9 | - <h1><?php _e( "Data Migration Report Sent", "event_espresso" ); ?></h1> |
|
10 | - <p><?php _e( "A migration crash report email was sent to Event Espresso. You should hear back from us soon.", "event_espresso" ); ?></p> |
|
8 | +<?php if ($success) { ?> |
|
9 | + <h1><?php _e("Data Migration Report Sent", "event_espresso"); ?></h1> |
|
10 | + <p><?php _e("A migration crash report email was sent to Event Espresso. You should hear back from us soon.", "event_espresso"); ?></p> |
|
11 | 11 | <?php } else {//didn't send email properly ?> |
12 | - <h1><?php _e( "Migration Report not sent", "event_espresso" ); ?></h1> |
|
13 | - <p><?php _e( "An error occurred and we were not able to automatically send a report to Event Espresso support.", "event_espresso" ); ?></p> |
|
14 | - <p><?php printf( __( "Please copy-and-paste the system information below to %s", "event_espresso" ), '<a href="mailto:' . EE_SUPPORT_EMAIL . '">' .EE_SUPPORT_EMAIL . "</a>" ); ?></p> |
|
12 | + <h1><?php _e("Migration Report not sent", "event_espresso"); ?></h1> |
|
13 | + <p><?php _e("An error occurred and we were not able to automatically send a report to Event Espresso support.", "event_espresso"); ?></p> |
|
14 | + <p><?php printf(__("Please copy-and-paste the system information below to %s", "event_espresso"), '<a href="mailto:'.EE_SUPPORT_EMAIL.'">'.EE_SUPPORT_EMAIL."</a>"); ?></p> |
|
15 | 15 | <label> |
16 | - <?php _e( "system status info", "event_espresso" ); ?> |
|
17 | - <textarea name="system_status_info" class="system_status_info"><?php print_r( EEM_System_Status::instance()->get_system_stati() ); ?></textarea> |
|
16 | + <?php _e("system status info", "event_espresso"); ?> |
|
17 | + <textarea name="system_status_info" class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati()); ?></textarea> |
|
18 | 18 | </label> |
19 | 19 | <?php } ?> |
20 | 20 | |
21 | 21 | |
22 | -<h1><?php _e( "What's next?", 'event_espresso' ); ?></h1> |
|
23 | -<p><?php _e( "Well, it depends on your situation:", 'event_espresso' ); ?></p> |
|
22 | +<h1><?php _e("What's next?", 'event_espresso'); ?></h1> |
|
23 | +<p><?php _e("Well, it depends on your situation:", 'event_espresso'); ?></p> |
|
24 | 24 | <div class='ee-table-wrap'> |
25 | 25 | <table> |
26 | 26 | <thead> |
27 | 27 | <tr> |
28 | - <th><?php _e( "Your Situation", 'event_espresso' ); ?></th> |
|
29 | - <th><?php _e( "Suggested Action", 'event_espresso' ); ?></th> |
|
28 | + <th><?php _e("Your Situation", 'event_espresso'); ?></th> |
|
29 | + <th><?php _e("Suggested Action", 'event_espresso'); ?></th> |
|
30 | 30 | </tr> |
31 | 31 | </thead> |
32 | 32 | <tbody> |
33 | 33 | <tr> |
34 | - <td><p class='big-text'><?php _e( "I want to retry migrating my data", 'event_espresso' ); ?></p></td> |
|
34 | + <td><p class='big-text'><?php _e("I want to retry migrating my data", 'event_espresso'); ?></p></td> |
|
35 | 35 | <td> |
36 | 36 | <p> |
37 | 37 | <?php |
38 | 38 | printf( |
39 | - __( 'First, %1$s check the forums %2$s to see if there is a solution before re-attempting to migrate. Often it helps to deactivate other plugins which may have conflicts; or it may help to add %3$s to your %4$s wp-config.php%5$s (which will make the migrations run slower, but may resolve any memory exhaustion errors.', 'event_espresso' ), |
|
40 | - "<a href='" . EE_SUPPORT_EMAIL . "' target='_blank'>", |
|
39 | + __('First, %1$s check the forums %2$s to see if there is a solution before re-attempting to migrate. Often it helps to deactivate other plugins which may have conflicts; or it may help to add %3$s to your %4$s wp-config.php%5$s (which will make the migrations run slower, but may resolve any memory exhaustion errors.', 'event_espresso'), |
|
40 | + "<a href='".EE_SUPPORT_EMAIL."' target='_blank'>", |
|
41 | 41 | '</a>', |
42 | 42 | '<pre lang="php">define( EE_MIGRATION_STEP_SIZE, 10 );</pre>', |
43 | 43 | '<b>', |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | <p> |
50 | 50 | <?php |
51 | 51 | printf( |
52 | - __( 'To retry migrating your data: restore to the backup you made before the migration and reactivate EE (and any addons you are using) and re-run the migration scripts. If you did not make a database migration and are migrating from EE3: delete your EE4 data (use the %1$s Reset/Delete Data tab above%2$s), and then reactivate EE4, and then re-run the migration scripts. If you did not make a database backup, are not migrating from EE3, have found a solution to the fatal error you received, and are willing to possibly have some data lost, %3$sattempt to continue migrating%2$s.', 'event_espresso' ), |
|
52 | + __('To retry migrating your data: restore to the backup you made before the migration and reactivate EE (and any addons you are using) and re-run the migration scripts. If you did not make a database migration and are migrating from EE3: delete your EE4 data (use the %1$s Reset/Delete Data tab above%2$s), and then reactivate EE4, and then re-run the migration scripts. If you did not make a database backup, are not migrating from EE3, have found a solution to the fatal error you received, and are willing to possibly have some data lost, %3$sattempt to continue migrating%2$s.', 'event_espresso'), |
|
53 | 53 | "<a href='$reset_db_page_url'>", |
54 | 54 | "</a>", |
55 | 55 | "<a class='button-primary' href='$reattempt_action_url'>" |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | </tr> |
61 | 61 | <tr> |
62 | 62 | <td> |
63 | - <p class='big-text'><?php _e( "I want to hear from Support before proceeding", 'event_espresso' ); ?></p> |
|
63 | + <p class='big-text'><?php _e("I want to hear from Support before proceeding", 'event_espresso'); ?></p> |
|
64 | 64 | </td> |
65 | 65 | <td> |
66 | 66 | <?php |
67 | 67 | printf( |
68 | - __( 'Just make sure you\'ve %1$s checked for a solution in the forums,%2$s and properly contacted Support. We will get back to you as soon as possible', 'event_espresso' ), |
|
69 | - "<a href='" . EE_SUPPORT_EMAIL . "'>", |
|
68 | + __('Just make sure you\'ve %1$s checked for a solution in the forums,%2$s and properly contacted Support. We will get back to you as soon as possible', 'event_espresso'), |
|
69 | + "<a href='".EE_SUPPORT_EMAIL."'>", |
|
70 | 70 | "</a>" |
71 | 71 | ); |
72 | 72 | ?> |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | </tr> |
75 | 75 | <tr> |
76 | 76 | <td> |
77 | - <p class='big-text'><?php printf( __( 'I don\'t need my old EE %s data', 'event_espresso' ), $most_recent_migration->slug() ); ?></p> |
|
77 | + <p class='big-text'><?php printf(__('I don\'t need my old EE %s data', 'event_espresso'), $most_recent_migration->slug()); ?></p> |
|
78 | 78 | </td> |
79 | 79 | <td> |
80 | 80 | <?php |
81 | 81 | printf( |
82 | - __( 'If you are ok with losing all the EE %1$s data, you can skip the migrations and %2$s use EE4 with only default Data%3$s', 'event_espresso' ), |
|
82 | + __('If you are ok with losing all the EE %1$s data, you can skip the migrations and %2$s use EE4 with only default Data%3$s', 'event_espresso'), |
|
83 | 83 | $most_recent_migration->slug(), |
84 | 84 | "<a id='do-not-migrate' class='do-not-migrate button-primary' href='$reset_db_action_url'>", |
85 | 85 | "</a>" |
@@ -89,20 +89,20 @@ discard block |
||
89 | 89 | </tr> |
90 | 90 | <tr> |
91 | 91 | <td> |
92 | - <p class='big-text'><?php printf( __( 'I want to go back to my old version of EE %1$s', 'event_espresso' ), $most_recent_migration->slug() ); ?> |
|
92 | + <p class='big-text'><?php printf(__('I want to go back to my old version of EE %1$s', 'event_espresso'), $most_recent_migration->slug()); ?> |
|
93 | 93 | </td> |
94 | 94 | <td> |
95 | 95 | <p> |
96 | 96 | <?php |
97 | 97 | printf( |
98 | - __( 'Then we suggest you re-activate the old version of EE %3$s and restore your database to the backup you made just before migrating . If you didn\'t backup your database and are migrating from EE3, you can also delete your EE4 data (use on the %1$s"Reset/Delete Data" tab above%2$s), and then reactivate EE3 from the plugins page. Note: some of your EE3 shortcodes may have been changed to their EE4 equivalents, so you will need to change them back.', 'event_espresso' ), |
|
98 | + __('Then we suggest you re-activate the old version of EE %3$s and restore your database to the backup you made just before migrating . If you didn\'t backup your database and are migrating from EE3, you can also delete your EE4 data (use on the %1$s"Reset/Delete Data" tab above%2$s), and then reactivate EE3 from the plugins page. Note: some of your EE3 shortcodes may have been changed to their EE4 equivalents, so you will need to change them back.', 'event_espresso'), |
|
99 | 99 | "<a href='$reset_db_page_url'>", |
100 | 100 | "</a>", |
101 | 101 | $most_recent_migration->slug() |
102 | 102 | ); |
103 | 103 | ?> |
104 | 104 | </p> |
105 | - <p><?php _e( "If you ever decide to re-attempt using EE4, you will again be given the option to migrate your EE3 data or not.", 'event_espresso' ); ?></p> |
|
105 | + <p><?php _e("If you ever decide to re-attempt using EE4, you will again be given the option to migrate your EE3 data or not.", 'event_espresso'); ?></p> |
|
106 | 106 | </td> |
107 | 107 | </tr> |
108 | 108 |
@@ -16,13 +16,13 @@ discard block |
||
16 | 16 | * @type string $reset_db_page_link |
17 | 17 | */ |
18 | 18 | |
19 | -if ( $show_backup_db_text ) { ?> |
|
20 | -<h1><span class="dashicons dashicons-migrate"></span><?php _e("Database Migration Manager", "event_espresso");?></h1> |
|
19 | +if ($show_backup_db_text) { ?> |
|
20 | +<h1><span class="dashicons dashicons-migrate"></span><?php _e("Database Migration Manager", "event_espresso"); ?></h1> |
|
21 | 21 | <?php } ?> |
22 | 22 | <div class="padding"> |
23 | 23 | <div id="migration-prep"> |
24 | 24 | |
25 | - <?php if ( $script_names ) { ?> |
|
25 | + <?php if ($script_names) { ?> |
|
26 | 26 | <h3 class="espresso-header"> |
27 | 27 | <span class="dashicons dashicons-flag ee-icon-size-22"></span> |
28 | 28 | <?php |
@@ -39,34 +39,34 @@ discard block |
||
39 | 39 | ?> |
40 | 40 | </h3> |
41 | 41 | <p> |
42 | - <?php echo apply_filters('FHEE__ee_migration_page__p_after_header',sprintf(__("Since you have already been using Event Espresso and have previous event and registration data in your database, you have the option to migrate, or copy over, this existing data into a format that is compatible with %s.", "event_espresso"),$next_db_state),$next_db_state);?> |
|
42 | + <?php echo apply_filters('FHEE__ee_migration_page__p_after_header', sprintf(__("Since you have already been using Event Espresso and have previous event and registration data in your database, you have the option to migrate, or copy over, this existing data into a format that is compatible with %s.", "event_espresso"), $next_db_state), $next_db_state); ?> |
|
43 | 43 | </p> |
44 | - <?php } elseif ( $show_most_recent_migration ) { ?> |
|
44 | + <?php } elseif ($show_most_recent_migration) { ?> |
|
45 | 45 | <h3 class="espresso-header"> |
46 | 46 | <span class="dashicons dashicons-awards ee-icon-size-22"></span> |
47 | - <?php echo apply_filters('FHEE__ee_migration_page__done_migration_header',sprintf(__('Congratulations! Your database is "up-to-date" and you are ready to begin using %s', "event_espresso"),$ultimate_db_state));?> |
|
47 | + <?php echo apply_filters('FHEE__ee_migration_page__done_migration_header', sprintf(__('Congratulations! Your database is "up-to-date" and you are ready to begin using %s', "event_espresso"), $ultimate_db_state)); ?> |
|
48 | 48 | </h3> |
49 | 49 | <p> |
50 | - <?php echo apply_filters('FHEE__ee_migration_page__p_after_done_migration_header',sprintf(__("Time to find out about all the great new features %s has to offer.", "event_espresso"),$ultimate_db_state));?> |
|
51 | - <b><a id="get-started-after-migrate" class="button-primary" href="<?php echo add_query_arg( array( 'page' => 'espresso_about' ), admin_url( 'admin.php' )); ?>"> |
|
52 | - <?php _e("Let's Get Started", "event_espresso");?> <span class="dashicons dashicons-arrow-right ee-icon-size-22" style="margin:0;"></span> |
|
50 | + <?php echo apply_filters('FHEE__ee_migration_page__p_after_done_migration_header', sprintf(__("Time to find out about all the great new features %s has to offer.", "event_espresso"), $ultimate_db_state)); ?> |
|
51 | + <b><a id="get-started-after-migrate" class="button-primary" href="<?php echo add_query_arg(array('page' => 'espresso_about'), admin_url('admin.php')); ?>"> |
|
52 | + <?php _e("Let's Get Started", "event_espresso"); ?> <span class="dashicons dashicons-arrow-right ee-icon-size-22" style="margin:0;"></span> |
|
53 | 53 | </a></b> |
54 | 54 | </p> |
55 | 55 | <?php } ?> |
56 | 56 | |
57 | 57 | |
58 | - <?php if ($show_backup_db_text){ ?> |
|
58 | + <?php if ($show_backup_db_text) { ?> |
|
59 | 59 | <div id="migration-options-dv"> |
60 | 60 | <h2> |
61 | 61 | <span class="dashicons dashicons-admin-tools"></span> |
62 | - <?php _e("Migration Options", "event_espresso");?> |
|
63 | - <span class="tiny-text lt-grey-text"> <?php _e(' to migrate or not to migrate?', "event_espresso");?></span> |
|
62 | + <?php _e("Migration Options", "event_espresso"); ?> |
|
63 | + <span class="tiny-text lt-grey-text"> <?php _e(' to migrate or not to migrate?', "event_espresso"); ?></span> |
|
64 | 64 | </h2> |
65 | 65 | <div class="ee-table-wrap"> |
66 | 66 | <table> |
67 | 67 | <tbody> |
68 | 68 | <tr> |
69 | - <td><h3><?php _e('1', 'event_espresso');?></h3></td> |
|
69 | + <td><h3><?php _e('1', 'event_espresso'); ?></h3></td> |
|
70 | 70 | <td> |
71 | 71 | <?php |
72 | 72 | echo apply_filters( |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | __('%1$sYes. I have backed up my database%2$s, %3$sunderstand the risks involved%4$s, and am ready to migrate my existing %5$s data to %6$s.', "event_espresso"), |
76 | 76 | '<strong>', |
77 | 77 | '</strong>', |
78 | - '<a id="migration-risks" class="" title="' . esc_attr__('click for more details', "event_espresso") . '">', |
|
78 | + '<a id="migration-risks" class="" title="'.esc_attr__('click for more details', "event_espresso").'">', |
|
79 | 79 | '</a>', |
80 | 80 | $current_db_state, |
81 | 81 | $next_db_state |
@@ -84,18 +84,18 @@ discard block |
||
84 | 84 | $next_db_state |
85 | 85 | ); |
86 | 86 | ?> |
87 | - <a id="display-migration-details" class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="migration-details" ><?php _e('click for more details', "event_espresso");?> +</a> |
|
88 | - <a id="hide-migration-details" class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js" rel="migration-details" style="display:none;" ><?php echo sprintf( __( 'hide%1$sdetails%1$s-', 'event_espresso' ), ' ' ); ?></a> |
|
87 | + <a id="display-migration-details" class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="migration-details" ><?php _e('click for more details', "event_espresso"); ?> +</a> |
|
88 | + <a id="hide-migration-details" class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js" rel="migration-details" style="display:none;" ><?php echo sprintf(__('hide%1$sdetails%1$s-', 'event_espresso'), ' '); ?></a> |
|
89 | 89 | </td> |
90 | 90 | <td> |
91 | - <a id="db-backed-up" class="toggle-migration-monitor button-primary"><?php echo apply_filters('FHEE__ee_migration_page__option_1_button_text',sprintf(__("Migrate My %s Data to %s", "event_espresso"),$current_db_state,$next_db_state),$current_db_state,$next_db_state);?></a> |
|
91 | + <a id="db-backed-up" class="toggle-migration-monitor button-primary"><?php echo apply_filters('FHEE__ee_migration_page__option_1_button_text', sprintf(__("Migrate My %s Data to %s", "event_espresso"), $current_db_state, $next_db_state), $current_db_state, $next_db_state); ?></a> |
|
92 | 92 | </td> |
93 | 93 | </tr> |
94 | 94 | <tr> |
95 | 95 | <td colspan="3" style="padding: 0"> |
96 | 96 | <div id="migration-details-dv" style="display: none; padding: 1em;"> |
97 | 97 | |
98 | - <span class="reminder-spn"><?php printf(__("%s Important: %s Before migrating, please back up your database and files.", "event_espresso"),"<b>","</b>");?></span> |
|
98 | + <span class="reminder-spn"><?php printf(__("%s Important: %s Before migrating, please back up your database and files.", "event_espresso"), "<b>", "</b>"); ?></span> |
|
99 | 99 | <p> |
100 | 100 | <?php |
101 | 101 | printf( |
@@ -111,27 +111,27 @@ discard block |
||
111 | 111 | ); |
112 | 112 | ?> |
113 | 113 | </p> |
114 | - <?php do_action('AHEE__ee_migration_page__option_1_extra_details');?> |
|
114 | + <?php do_action('AHEE__ee_migration_page__option_1_extra_details'); ?> |
|
115 | 115 | </div> |
116 | 116 | </td> |
117 | 117 | </tr> |
118 | 118 | <tr> |
119 | - <td><h3><?php _e('2', 'event_espresso');?></h3></td> |
|
119 | + <td><h3><?php _e('2', 'event_espresso'); ?></h3></td> |
|
120 | 120 | <td> |
121 | - <?php echo apply_filters( 'FHEE__ee_migration_page__option_2_main',sprintf(__('I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.', "event_espresso"),$current_db_state,$next_db_state,$ultimate_db_state),$current_db_state,$next_db_state,$ultimate_db_state);?><br /> |
|
122 | - <span class="reminder-spn"><?php _e( 'Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.', 'event_espresso' );?></span> |
|
123 | - <a id="display-no-migration-details" class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="no-migration-details"><?php _e('click for more details', "event_espresso");?> +</a> |
|
124 | - <a id="hide-no-migration-details" class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js" rel="no-migration-details" style="display:none;" ><?php echo sprintf( __( 'hide%1$sdetails%1$s-', 'event_espresso' ), ' ' ); ?></a> |
|
121 | + <?php echo apply_filters('FHEE__ee_migration_page__option_2_main', sprintf(__('I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.', "event_espresso"), $current_db_state, $next_db_state, $ultimate_db_state), $current_db_state, $next_db_state, $ultimate_db_state); ?><br /> |
|
122 | + <span class="reminder-spn"><?php _e('Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.', 'event_espresso'); ?></span> |
|
123 | + <a id="display-no-migration-details" class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="no-migration-details"><?php _e('click for more details', "event_espresso"); ?> +</a> |
|
124 | + <a id="hide-no-migration-details" class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js" rel="no-migration-details" style="display:none;" ><?php echo sprintf(__('hide%1$sdetails%1$s-', 'event_espresso'), ' '); ?></a> |
|
125 | 125 | </td> |
126 | 126 | <td> |
127 | - <a id="do-not-migrate" class="do-not-migrate button-primary" href="<?php echo $reset_db_page_link;?>"><?php echo apply_filters('FHEE__ee_migration_page__option_2_button_text',sprintf(__("Just Start %s and Delete Existing Data", "event_espresso"),$ultimate_db_state),$ultimate_db_state);?></a> |
|
127 | + <a id="do-not-migrate" class="do-not-migrate button-primary" href="<?php echo $reset_db_page_link; ?>"><?php echo apply_filters('FHEE__ee_migration_page__option_2_button_text', sprintf(__("Just Start %s and Delete Existing Data", "event_espresso"), $ultimate_db_state), $ultimate_db_state); ?></a> |
|
128 | 128 | </td> |
129 | 129 | </tr> |
130 | 130 | <tr> |
131 | 131 | <td colspan="3" style="padding: 0"> |
132 | 132 | <div id="no-migration-details-dv" style="display: none; padding: 1em;"> |
133 | 133 | <p> |
134 | - <?php echo apply_filters('FHEE__ee_migration_page__option_2_details',sprintf(__("If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.", "event_espresso"),$ultimate_db_state),$ultimate_db_state);?> |
|
134 | + <?php echo apply_filters('FHEE__ee_migration_page__option_2_details', sprintf(__("If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.", "event_espresso"), $ultimate_db_state), $ultimate_db_state); ?> |
|
135 | 135 | </p> |
136 | 136 | </div> |
137 | 137 | </td> |
@@ -139,20 +139,20 @@ discard block |
||
139 | 139 | </tbody> |
140 | 140 | </table> |
141 | 141 | </div> |
142 | - <?php do_action('AHEE__ee_migration_page__after_migration_options_table');?> |
|
142 | + <?php do_action('AHEE__ee_migration_page__after_migration_options_table'); ?> |
|
143 | 143 | </div> |
144 | 144 | <?php } ?> |
145 | 145 | |
146 | 146 | <?php |
147 | - if ( $show_most_recent_migration ) { |
|
148 | - if( $most_recent_migration && $most_recent_migration instanceof EE_Data_Migration_Script_Base ) { |
|
149 | - if( $most_recent_migration->can_continue() ) { |
|
147 | + if ($show_most_recent_migration) { |
|
148 | + if ($most_recent_migration && $most_recent_migration instanceof EE_Data_Migration_Script_Base) { |
|
149 | + if ($most_recent_migration->can_continue()) { |
|
150 | 150 | //tell the user they should continue their migration because it appears to be unfinished... well, assuming there were no errors ?> |
151 | 151 | <h3 class="espresso-header"> |
152 | 152 | <span class="dashicons dashicons-star-half ee-icon-size-22"></span> |
153 | - <?php printf(__("It appears that your previous Data Migration Task (%s) is incomplete, and should be resumed", "event_espresso"),$most_recent_migration->pretty_name());?> |
|
153 | + <?php printf(__("It appears that your previous Data Migration Task (%s) is incomplete, and should be resumed", "event_espresso"), $most_recent_migration->pretty_name()); ?> |
|
154 | 154 | </h3> |
155 | - <?php } elseif ( $most_recent_migration->is_broken() ) { |
|
155 | + <?php } elseif ($most_recent_migration->is_broken()) { |
|
156 | 156 | //tell the user the migration failed and they should notify EE?> |
157 | 157 | <h3 class="espresso-header"> |
158 | 158 | <span class="dashicons dashicons-no ee-icon-size-22"></span> |
@@ -161,19 +161,19 @@ discard block |
||
161 | 161 | <?php } |
162 | 162 | |
163 | 163 | //display errors or not of the most recent migration ran |
164 | - if ( $most_recent_migration->get_errors() ){ ?> |
|
164 | + if ($most_recent_migration->get_errors()) { ?> |
|
165 | 165 | <div class="ee-attention"> |
166 | - <strong><?php printf(__("Warnings occurred during your last migration (%s):",'event_espresso'),$most_recent_migration->pretty_name()) ?></strong> |
|
167 | - <a id="show-hide-migration-warnings" class="display-the-hidden"><?php _e("Show Warnings", 'event_espresso');?></a> |
|
166 | + <strong><?php printf(__("Warnings occurred during your last migration (%s):", 'event_espresso'), $most_recent_migration->pretty_name()) ?></strong> |
|
167 | + <a id="show-hide-migration-warnings" class="display-the-hidden"><?php _e("Show Warnings", 'event_espresso'); ?></a> |
|
168 | 168 | <ul class="migration-warnings" style="display:none"> |
169 | - <?php foreach($most_recent_migration->get_errors() as $error){ ?> |
|
169 | + <?php foreach ($most_recent_migration->get_errors() as $error) { ?> |
|
170 | 170 | <li><?php echo $error ?></li> |
171 | 171 | <?php }?> |
172 | 172 | </ul> |
173 | 173 | </div> |
174 | 174 | <?php } else { |
175 | 175 | //there were no errors during the last migration, just say so?> |
176 | - <h2><?php printf(__("The last data migration task (%s) ran successfully without errors.", "event_espresso"),$most_recent_migration->pretty_name())?></h2> |
|
176 | + <h2><?php printf(__("The last data migration task (%s) ran successfully without errors.", "event_espresso"), $most_recent_migration->pretty_name())?></h2> |
|
177 | 177 | <?php } |
178 | 178 | } else { |
179 | 179 | } |
@@ -184,12 +184,12 @@ discard block |
||
184 | 184 | </div> |
185 | 185 | <!--end of #migration-prep--> |
186 | 186 | |
187 | - <?php if ($show_migration_progress){?> |
|
187 | + <?php if ($show_migration_progress) {?> |
|
188 | 188 | <div id='migration-monitor' <?php echo $show_backup_db_text ? "style='display:none'" : ''?>> |
189 | - <?php if( $show_backup_db_text){?> |
|
189 | + <?php if ($show_backup_db_text) {?> |
|
190 | 190 | <p> |
191 | 191 | <a class="toggle-migration-monitor small-text" style="cursor: pointer;"> |
192 | - <span class="dashicons dashicons-arrow-left-alt2" style="top:0;"></span><?php _e("return to previous screen", "event_espresso");?> |
|
192 | + <span class="dashicons dashicons-arrow-left-alt2" style="top:0;"></span><?php _e("return to previous screen", "event_espresso"); ?> |
|
193 | 193 | </a> |
194 | 194 | <br/> |
195 | 195 | |
@@ -198,33 +198,33 @@ discard block |
||
198 | 198 | <div id='progress-area'> |
199 | 199 | <h3 class="espresso-header"> |
200 | 200 | <?php |
201 | - echo sprintf( _n( |
|
201 | + echo sprintf(_n( |
|
202 | 202 | "In order to import all of your existing Event Espresso data, the following upgrade task needs to be performed:", |
203 | 203 | "In order to import all of your existing Event Espresso data, the following %s upgrade tasks need to be performed:", |
204 | 204 | count($script_names), |
205 | 205 | "event_espresso" |
206 | - ), count( $script_names ) );?> |
|
206 | + ), count($script_names)); ?> |
|
207 | 207 | </h3> |
208 | 208 | <ul style="list-style: inside;"> |
209 | - <?php foreach($script_names as $script_name){?> |
|
209 | + <?php foreach ($script_names as $script_name) {?> |
|
210 | 210 | <li style="margin: 0 0 1em 1em; line-height: 1.1em;"><?php echo $script_name?></li> |
211 | 211 | <?php }?> |
212 | 212 | </ul> |
213 | 213 | <br/> |
214 | 214 | <?php if (count($script_names) > 1) {?> |
215 | - <p><?php _e("Please note: after each task is completed you will need to continue the data migration, or report an error to Event Espresso.", "event_espresso");?></p> |
|
215 | + <p><?php _e("Please note: after each task is completed you will need to continue the data migration, or report an error to Event Espresso.", "event_espresso"); ?></p> |
|
216 | 216 | <?php }?> |
217 | 217 | |
218 | 218 | <div class="ee-attention"> |
219 | 219 | <p> |
220 | 220 | <span class="reminder-spn"> |
221 | - <strong><?php _e("Please Note:", "event_espresso");?></strong> |
|
221 | + <strong><?php _e("Please Note:", "event_espresso"); ?></strong> |
|
222 | 222 | </span> |
223 | 223 | <br/> |
224 | - <?php _e("Depending on the number of events and the complexity of the information in your database, this could take a few minutes.", "event_espresso");?> |
|
224 | + <?php _e("Depending on the number of events and the complexity of the information in your database, this could take a few minutes.", "event_espresso"); ?> |
|
225 | 225 | </p> |
226 | 226 | <p> |
227 | - <?php printf(__("%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.", "event_espresso"),'<strong>', '</strong>' );?> |
|
227 | + <?php printf(__("%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.", "event_espresso"), '<strong>', '</strong>'); ?> |
|
228 | 228 | </p> |
229 | 229 | <p> |
230 | 230 | <?php _e("Click the button below to begin the migration process.", "event_espresso") ?> |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | <!-- #progress-responsive --> |
240 | 240 | |
241 | 241 | <button id='start-migration' class='button-primary'> |
242 | - <?php echo $show_continue_current_migration_script ? __("Continue Migration", "event_espresso") : __("Begin Migration", "event_espresso");?> |
|
242 | + <?php echo $show_continue_current_migration_script ? __("Continue Migration", "event_espresso") : __("Begin Migration", "event_espresso"); ?> |
|
243 | 243 | </button> |
244 | 244 | <br class="clear"/> |
245 | 245 | |
@@ -255,9 +255,9 @@ discard block |
||
255 | 255 | </div> |
256 | 256 | |
257 | 257 | <?php } |
258 | - if ( $show_maintenance_switch ) { |
|
258 | + if ($show_maintenance_switch) { |
|
259 | 259 | ?> |
260 | - <h2><span class="dashicons dashicons-admin-tools"></span><?php _e('Set Event Espresso Maintenance Mode', 'event_espresso');?></h2> |
|
260 | + <h2><span class="dashicons dashicons-admin-tools"></span><?php _e('Set Event Espresso Maintenance Mode', 'event_espresso'); ?></h2> |
|
261 | 261 | <form method='post' action='<?php echo $update_migration_script_page_link?>'> |
262 | 262 | <div class="ee-table-wrap"> |
263 | 263 | <table> |
@@ -266,9 +266,9 @@ discard block |
||
266 | 266 | <input type="radio" id="maintenance_mode_level_off" name="maintenance_mode_level" value="0" <?php echo EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_0_not_in_maintenance ? 'checked="checked"' : ''?>> |
267 | 267 | </td> |
268 | 268 | <th align="left"> |
269 | - <label for="maintenance_mode_level_off"><?php _e('Maintenance Mode OFF', 'event_espresso');?></label> |
|
269 | + <label for="maintenance_mode_level_off"><?php _e('Maintenance Mode OFF', 'event_espresso'); ?></label> |
|
270 | 270 | <p class='description' style="font-weight: normal;"> |
271 | - <?php _e("This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.", "event_espresso");?> |
|
271 | + <?php _e("This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.", "event_espresso"); ?> |
|
272 | 272 | </p> |
273 | 273 | </th> |
274 | 274 | </tr> |
@@ -281,14 +281,14 @@ discard block |
||
281 | 281 | <?php _e('Maintenance Mode ON', 'event_espresso')?> |
282 | 282 | </label> |
283 | 283 | <p class='description' style="font-weight: normal;"> |
284 | - <?php _e("This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.", "event_espresso");?> |
|
284 | + <?php _e("This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.", "event_espresso"); ?> |
|
285 | 285 | </p> |
286 | 286 | </th> |
287 | 287 | </tr> |
288 | 288 | </table> |
289 | 289 | </div> |
290 | 290 | <p> |
291 | - <input type='submit' class="button-primary" value='<?php _e("Update Maintenance Mode", "event_espresso");?>'> |
|
291 | + <input type='submit' class="button-primary" value='<?php _e("Update Maintenance Mode", "event_espresso"); ?>'> |
|
292 | 292 | </p> |
293 | 293 | </form> |
294 | 294 | <?php |
@@ -1,26 +1,26 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | ?> |
4 | -<h1><?php _e("Data Migration Error", "event_espresso");?></h1> |
|
5 | -<p class='error'><?php printf(__("Your last data migration had a %s FATAL ERROR, and CANNOT be continued%s.", "event_espresso"),"<b>","</b>");?></p> |
|
6 | -<a id="show-hide-migration-warnings" class="display-the-hidden"><?php _e("Show Errors", 'event_espresso');?></a> |
|
4 | +<h1><?php _e("Data Migration Error", "event_espresso"); ?></h1> |
|
5 | +<p class='error'><?php printf(__("Your last data migration had a %s FATAL ERROR, and CANNOT be continued%s.", "event_espresso"), "<b>", "</b>"); ?></p> |
|
6 | +<a id="show-hide-migration-warnings" class="display-the-hidden"><?php _e("Show Errors", 'event_espresso'); ?></a> |
|
7 | 7 | <ul class="migration-warnings" style="display:none"> |
8 | -<?php foreach($most_recent_migration->get_errors() as $error){ ?> |
|
8 | +<?php foreach ($most_recent_migration->get_errors() as $error) { ?> |
|
9 | 9 | <li><?php echo $error ?></li> |
10 | 10 | <?php }?> |
11 | 11 | </ul> |
12 | -<h2><?php _e("Fill out the below form to automatically Send Event Espresso a Crash Report", "event_espresso");?></h2> |
|
13 | -<form action='<?php echo EE_Admin_Page::add_query_args_and_nonce(array('action'=>'send_migration_crash_report'), EE_MAINTENANCE_ADMIN_URL);?>' method='post'> |
|
12 | +<h2><?php _e("Fill out the below form to automatically Send Event Espresso a Crash Report", "event_espresso"); ?></h2> |
|
13 | +<form action='<?php echo EE_Admin_Page::add_query_args_and_nonce(array('action'=>'send_migration_crash_report'), EE_MAINTENANCE_ADMIN_URL); ?>' method='post'> |
|
14 | 14 | <table class='widefat'> |
15 | - <tr><td><label for='from'><?php _e("From/Reply-To:", "event_espresso");?></label></td><td><input name='from' id='from' type='text' style="width:200px"value='<?php echo get_bloginfo('admin_email','display'); ?>'></td></tr> |
|
16 | - <tr><td><label for='from_name'><?php _e("Your Name", "event_espresso");?></label></td><td><input name='from_name' id='from_name' type='text' style="width:200px"value='<?php printf(__("Admin of %s", "event_espresso"),get_bloginfo('name','display'));?>'></td></tr> |
|
17 | - <tr><td><label for='body'><?php _e("Comments", "event_espresso");?></label></td><td><textarea name="body" id="body" class='system_status_info'><?php _e("Enter any comments about why you think the error may have occurred", "event_espresso");?></textarea> |
|
18 | - <p class='description'><?php _e("Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", "event_espresso");?></p></td></tr> |
|
19 | - <tr><td colspan="2"><input type="submit" value="<?php _e("Mail Crash Report to Event Espresso", "event_espresso");?>"/></td></tr> |
|
15 | + <tr><td><label for='from'><?php _e("From/Reply-To:", "event_espresso"); ?></label></td><td><input name='from' id='from' type='text' style="width:200px"value='<?php echo get_bloginfo('admin_email', 'display'); ?>'></td></tr> |
|
16 | + <tr><td><label for='from_name'><?php _e("Your Name", "event_espresso"); ?></label></td><td><input name='from_name' id='from_name' type='text' style="width:200px"value='<?php printf(__("Admin of %s", "event_espresso"), get_bloginfo('name', 'display')); ?>'></td></tr> |
|
17 | + <tr><td><label for='body'><?php _e("Comments", "event_espresso"); ?></label></td><td><textarea name="body" id="body" class='system_status_info'><?php _e("Enter any comments about why you think the error may have occurred", "event_espresso"); ?></textarea> |
|
18 | + <p class='description'><?php _e("Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", "event_espresso"); ?></p></td></tr> |
|
19 | + <tr><td colspan="2"><input type="submit" value="<?php _e("Mail Crash Report to Event Espresso", "event_espresso"); ?>"/></td></tr> |
|
20 | 20 | </table> |
21 | 21 | </form> |
22 | 22 | <br> |
23 | -<p><?php printf(__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),'<a href="mailto:'.EE_SUPPORT_EMAIL.'">',EE_SUPPORT_EMAIL,"</a>");?></p> |
|
24 | -<textarea class="system_status_info"><?php print_r( EEM_System_Status::instance()->get_system_stati())?></textarea> |
|
25 | -<p><?php printf( __( '%1$sNext Step%2$s', 'event_espresso' ), "<a href='$next_url'>","</a>");?></p> |
|
26 | -<p><?php printf( __( '...or %1$sDON\'T send migration crash report%2$s.', 'event_espresso' ), "<a href='$next_url'>","</a>");?></p> |
|
23 | +<p><?php printf(__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"), '<a href="mailto:'.EE_SUPPORT_EMAIL.'">', EE_SUPPORT_EMAIL, "</a>"); ?></p> |
|
24 | +<textarea class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati())?></textarea> |
|
25 | +<p><?php printf(__('%1$sNext Step%2$s', 'event_espresso'), "<a href='$next_url'>", "</a>"); ?></p> |
|
26 | +<p><?php printf(__('...or %1$sDON\'T send migration crash report%2$s.', 'event_espresso'), "<a href='$next_url'>", "</a>"); ?></p> |
@@ -30,8 +30,7 @@ discard block |
||
30 | 30 | </tbody> |
31 | 31 | </table> |
32 | 32 | <?php |
33 | - } |
|
34 | - else { |
|
33 | + } else { |
|
35 | 34 | ?> |
36 | 35 | <ul> |
37 | 36 | <?php |
@@ -41,7 +40,7 @@ discard block |
||
41 | 40 | </ul> |
42 | 41 | <?php |
43 | 42 | } |
44 | - }else { |
|
43 | + } else { |
|
45 | 44 | //simple value |
46 | 45 | echo $data; |
47 | 46 | } |
@@ -86,8 +85,7 @@ discard block |
||
86 | 85 | }?> |
87 | 86 | </tbody> |
88 | 87 | <?php |
89 | - } |
|
90 | - else { |
|
88 | + } else { |
|
91 | 89 | ?> |
92 | 90 | <tbody> |
93 | 91 | <tr> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | |
8 | 8 | function ee_resurse_into_array($data) { |
9 | 9 | if (is_object($data) || $data instanceof __PHP_Incomplete_Class) {//is_object($incomplete_class) actually returns false, hence why we check for it |
10 | - $data = (array)$data; |
|
10 | + $data = (array) $data; |
|
11 | 11 | } |
12 | 12 | if (is_array($data)) { |
13 | 13 | if (EEH_Array::is_associative_array($data)) { |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | ?> |
20 | 20 | <tr> |
21 | 21 | <td> |
22 | - <?php echo $data_key;?> |
|
22 | + <?php echo $data_key; ?> |
|
23 | 23 | </td> |
24 | 24 | <td> |
25 | - <?php ee_resurse_into_array($data_values);?> |
|
25 | + <?php ee_resurse_into_array($data_values); ?> |
|
26 | 26 | </td> |
27 | 27 | </tr> |
28 | 28 | <?php |
@@ -36,31 +36,31 @@ discard block |
||
36 | 36 | <ul> |
37 | 37 | <?php |
38 | 38 | foreach ($data as $datum) { |
39 | - echo "<li>";ee_resurse_into_array($datum);echo "</li>"; |
|
39 | + echo "<li>"; ee_resurse_into_array($datum); echo "</li>"; |
|
40 | 40 | }?> |
41 | 41 | </ul> |
42 | 42 | <?php |
43 | 43 | } |
44 | - }else { |
|
44 | + } else { |
|
45 | 45 | //simple value |
46 | 46 | echo $data; |
47 | 47 | } |
48 | 48 | } |
49 | 49 | ?> |
50 | 50 | <h1> |
51 | - <?php _e("System Information", "event_espresso");?> |
|
51 | + <?php _e("System Information", "event_espresso"); ?> |
|
52 | 52 | </h1> |
53 | 53 | <div class="padding"> |
54 | - <h2><?php _e("Raw System Data", "event_espresso");?></h2> |
|
54 | + <h2><?php _e("Raw System Data", "event_espresso"); ?></h2> |
|
55 | 55 | <textarea class="system_status_info"> |
56 | 56 | <?php print_r($system_stati)?> |
57 | 57 | </textarea> |
58 | - <h2><?php _e("System Data (formatted)", "event_espresso");?></h2> |
|
58 | + <h2><?php _e("System Data (formatted)", "event_espresso"); ?></h2> |
|
59 | 59 | <table class="widefat"> |
60 | 60 | <?php |
61 | 61 | foreach ($system_stati as $status_category_slug => $data) { |
62 | 62 | if (is_object($data)) { |
63 | - $data = (array)$data; |
|
63 | + $data = (array) $data; |
|
64 | 64 | } |
65 | 65 | ?> |
66 | 66 | <thead> |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | ?> |
4 | -<h1><?php _e("You must upgrade your Event Espresso Add-ons before Migrating", "event_espresso");?></h1> |
|
5 | -<p><?php printf(__("Please %s visit the plugins page%s and upgade all Event Espresso before migrating.", "event_espresso"), "<a href='".admin_url('/plugins.php')."'>","</a>");?></p> |
|
6 | -<p><?php _e("You can also deactivate the addons, but all of their data will be lost when your database is migrated", "event_espresso");?></p> |
|
7 | 4 | \ No newline at end of file |
5 | +<h1><?php _e("You must upgrade your Event Espresso Add-ons before Migrating", "event_espresso"); ?></h1> |
|
6 | +<p><?php printf(__("Please %s visit the plugins page%s and upgade all Event Espresso before migrating.", "event_espresso"), "<a href='".admin_url('/plugins.php')."'>", "</a>"); ?></p> |
|
7 | +<p><?php _e("You can also deactivate the addons, but all of their data will be lost when your database is migrated", "event_espresso"); ?></p> |
|
8 | 8 | \ No newline at end of file |
@@ -1,29 +1,29 @@ |
||
1 | 1 | <?php if (!defined('EVENT_ESPRESSO_VERSION') ) |
2 | 2 | exit('NO direct script access allowed'); |
3 | 3 | /** |
4 | - * Event Espresso |
|
5 | - * |
|
6 | - * Event Registration and Management Plugin for Wordpress |
|
7 | - * |
|
8 | - * @package Event Espresso |
|
9 | - * @author Seth Shoultes |
|
10 | - * @copyright (c)2009-2012 Event Espresso All Rights Reserved. |
|
11 | - * @license @link http://eventespresso.com/support/terms-conditions/ ** see Plugin Licensing * * |
|
12 | - * @link http://www.eventespresso.com |
|
13 | - * @version 4.0 |
|
14 | - * |
|
15 | - * ------------------------------------------------------------------------ |
|
16 | - * |
|
17 | - * Messages_Admin_Page_Init |
|
18 | - * |
|
19 | - * for setup of the message admin pages |
|
20 | - * |
|
21 | - * @package Event Espresso |
|
22 | - * @subpackage includes/core/message/EE_Message_Admin_Page_Init.core.php |
|
23 | - * @author Darren Ethier |
|
24 | - * |
|
25 | - * ------------------------------------------------------------------------ |
|
26 | - */ |
|
4 | + * Event Espresso |
|
5 | + * |
|
6 | + * Event Registration and Management Plugin for Wordpress |
|
7 | + * |
|
8 | + * @package Event Espresso |
|
9 | + * @author Seth Shoultes |
|
10 | + * @copyright (c)2009-2012 Event Espresso All Rights Reserved. |
|
11 | + * @license @link http://eventespresso.com/support/terms-conditions/ ** see Plugin Licensing * * |
|
12 | + * @link http://www.eventespresso.com |
|
13 | + * @version 4.0 |
|
14 | + * |
|
15 | + * ------------------------------------------------------------------------ |
|
16 | + * |
|
17 | + * Messages_Admin_Page_Init |
|
18 | + * |
|
19 | + * for setup of the message admin pages |
|
20 | + * |
|
21 | + * @package Event Espresso |
|
22 | + * @subpackage includes/core/message/EE_Message_Admin_Page_Init.core.php |
|
23 | + * @author Darren Ethier |
|
24 | + * |
|
25 | + * ------------------------------------------------------------------------ |
|
26 | + */ |
|
27 | 27 | class Messages_Admin_Page_Init extends EE_Admin_Page_Init { |
28 | 28 | /** |
29 | 29 | *constructor |
@@ -1,5 +1,6 @@ |
||
1 | -<?php if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
1 | +<?php if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
2 | 2 | exit('NO direct script access allowed'); |
3 | +} |
|
3 | 4 | /** |
4 | 5 | * Event Espresso |
5 | 6 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
2 | 2 | exit('NO direct script access allowed'); |
3 | 3 | /** |
4 | 4 | * Event Espresso |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * |
25 | 25 | * ------------------------------------------------------------------------ |
26 | 26 | */ |
27 | -class Messages_Admin_Page_Init extends EE_Admin_Page_Init { |
|
27 | +class Messages_Admin_Page_Init extends EE_Admin_Page_Init { |
|
28 | 28 | /** |
29 | 29 | *constructor |
30 | 30 | *@Constructor |
@@ -33,18 +33,18 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function __construct() { |
35 | 35 | |
36 | - do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' ); |
|
36 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
37 | 37 | |
38 | - if ( ! defined( 'EE_MSG_PG_SLUG' ) ) { |
|
38 | + if ( ! defined('EE_MSG_PG_SLUG')) { |
|
39 | 39 | |
40 | - define( 'EE_MSG_PG_SLUG', 'espresso_messages' ); |
|
41 | - define( 'EE_MSG_PG_NAME', ucwords( str_replace( '_', '', EE_MSG_PG_SLUG ) ) ); |
|
42 | - define( 'EE_MSG_ADMIN', EE_ADMIN_PAGES . 'messages' . DS ); |
|
43 | - define( 'EE_MSG_ADMIN_URL', admin_url( 'admin.php?page=' . EE_MSG_PG_SLUG ) ); |
|
44 | - define( 'EE_MSG_ASSETS_PATH', EE_MSG_ADMIN . 'assets' . DS ); |
|
45 | - define( 'EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'messages/assets/' ); |
|
46 | - define( 'EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN . 'templates' . DS ); |
|
47 | - define( 'EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'messages/templates/' ); |
|
40 | + define('EE_MSG_PG_SLUG', 'espresso_messages'); |
|
41 | + define('EE_MSG_PG_NAME', ucwords(str_replace('_', '', EE_MSG_PG_SLUG))); |
|
42 | + define('EE_MSG_ADMIN', EE_ADMIN_PAGES.'messages'.DS); |
|
43 | + define('EE_MSG_ADMIN_URL', admin_url('admin.php?page='.EE_MSG_PG_SLUG)); |
|
44 | + define('EE_MSG_ASSETS_PATH', EE_MSG_ADMIN.'assets'.DS); |
|
45 | + define('EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL.'messages/assets/'); |
|
46 | + define('EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN.'templates'.DS); |
|
47 | + define('EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'messages/templates/'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | parent::__construct(); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | |
62 | 62 | protected function _set_menu_map() { |
63 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( array( |
|
63 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu(array( |
|
64 | 64 | 'menu_group' => 'management', |
65 | 65 | 'menu_order' => 10, |
66 | 66 | 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
3 | 3 | exit('NO direct script access allowed'); |
4 | 4 | |
5 | 5 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | class espresso_events_Messages_Hooks extends EE_Admin_Hooks { |
31 | 31 | |
32 | 32 | |
33 | - public function __construct( EE_Admin_Page $admin_page ) { |
|
33 | + public function __construct(EE_Admin_Page $admin_page) { |
|
34 | 34 | parent::__construct($admin_page); |
35 | 35 | } |
36 | 36 |
@@ -6,8 +6,9 @@ |
||
6 | 6 | * @package Event Espresso |
7 | 7 | * @subpackage messages |
8 | 8 | */ |
9 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
9 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
10 | 10 | exit('NO direct script access allowed'); |
11 | +} |
|
11 | 12 | |
12 | 13 | /** |
13 | 14 | * |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <h3><?php _e('Messengers', 'event_espresso'); ?></h3> |
2 | 2 | <p> |
3 | -<?php printf( __('Messengers are the vehicles that deliver messages to individuals (recipients). By default, every install of Event Espresso has the %sEmail%s messenger active. The Email messenger is a vehicle for delivering messages. Other possible vehicles might be any social media applications, 3rd party API\'s etc.', 'event_espresso'), '<strong>', '</strong>' ); ?> |
|
3 | +<?php printf(__('Messengers are the vehicles that deliver messages to individuals (recipients). By default, every install of Event Espresso has the %sEmail%s messenger active. The Email messenger is a vehicle for delivering messages. Other possible vehicles might be any social media applications, 3rd party API\'s etc.', 'event_espresso'), '<strong>', '</strong>'); ?> |
|
4 | 4 | </p> |
5 | 5 | \ No newline at end of file |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <h3><?php _e('Activating / Deactivating Messengers', 'event_espresso'); ?></h3> |
2 | 2 | <p><?php _e('You can select Messengers via the tabs across the top of the settings page. The available messengers you see depends on what version of Event Espresso you have and what addons are installed. Every install include an "Email" messenger tab. When you click one of those tabs it will display that messenger.', 'event_espresso'); ?></p> |
3 | 3 | <p><?php _e('There are two ways to determine whether a messenger is active or not. The first way is via the messenger tab itself.', 'event_espresso'); ?></p> |
4 | -<p><?php echo _e('The green colored gear <img class="inline-text" src="' . EE_MSG_ASSETS_URL . 'images/email-tab-active.png' . '" alt="' . esc_attr__('Active Email Tab', 'event_espresso') . '" /> indicates that this messenger is currently active.', 'event_espresso'); echo _e(' The white colored gear <img class="inline-text" src="' . EE_MSG_ASSETS_URL . 'images/email-tab-inactive.png' . '" alt="' . esc_attr__('Inactive Email Tab', 'event_espresso') . '" /> indicates the messenger is inactive. This is very helpful for seeing at a glance all the messengers that are active when you first view the page.', 'event_espresso'); ?></p> |
|
4 | +<p><?php echo _e('The green colored gear <img class="inline-text" src="'.EE_MSG_ASSETS_URL.'images/email-tab-active.png'.'" alt="'.esc_attr__('Active Email Tab', 'event_espresso').'" /> indicates that this messenger is currently active.', 'event_espresso'); echo _e(' The white colored gear <img class="inline-text" src="'.EE_MSG_ASSETS_URL.'images/email-tab-inactive.png'.'" alt="'.esc_attr__('Inactive Email Tab', 'event_espresso').'" /> indicates the messenger is inactive. This is very helpful for seeing at a glance all the messengers that are active when you first view the page.', 'event_espresso'); ?></p> |
|
5 | 5 | <p><?php _e('The second way to determine whether a messenger is active or not is via the "on/off" button in the top right corner of the active messenger displayed content:', 'event_espresso'); ?></p> |
6 | -<p><?php printf( __('%1$s means of course that the messenger is active and %2$s means the messenger is inactive.', 'event_espresso'), '<div class="switch"><input id="ee-on-off-toggle-on" class="ee-on-off-toggle ee-toggle-round-flat" type="checkbox" checked="checked" disabled><label for="ee-on-off-toggle-on"></label></div>', '<div class="switch"><input id="ee-on-off-toggle-on" class="ee-on-off-toggle ee-toggle-round-flat" type="checkbox" disabled><label for="ee-on-off-toggle-on"></label></div>' ); ?></p> |
|
7 | -<p><?php _e( 'The on/off toggle is also what you use to activate or deactivate a messenger.', 'event_espresso' ); ?></p> |
|
8 | -<p><?php _e( 'What happens when you click the toggle to activate is the messenger is activated and the system determines what default message types are activated with the messenger. Then, if there are any default settings for either the messenger or message types those settings are saved. Next, the system will generate any default templates (if none have been generated before, if there are previously generated templates then they are reactivated). Finally, you will see the display change to reflect that the messenger is active. If the messenger has settings you can modify them then. Any message types that have settings will also automatically expand so you can see the default settings and make any changes as necessary to fit your needs. Usually the defaults are sufficient however.', 'event_espresso'); ?></p> |
|
9 | -<p><?php _e( 'When you deactivate a messenger, the system will first check if there are any custom event templates for that messenger. If there are you will be unable to deactivate the messenger. This is a fail safe to make sure you know that no messages will go out for those specific events so you don\'t accidentally deactivate. If this check passes, then the system will deactivate any global templates for that messenger (note the templates are not erased, they just become inactive, so if you decide to reactivate the messenger later all your customizations are preserved). Then the display will change to reflect the deactivation.', 'event_espresso'); ?></p> |
|
6 | +<p><?php printf(__('%1$s means of course that the messenger is active and %2$s means the messenger is inactive.', 'event_espresso'), '<div class="switch"><input id="ee-on-off-toggle-on" class="ee-on-off-toggle ee-toggle-round-flat" type="checkbox" checked="checked" disabled><label for="ee-on-off-toggle-on"></label></div>', '<div class="switch"><input id="ee-on-off-toggle-on" class="ee-on-off-toggle ee-toggle-round-flat" type="checkbox" disabled><label for="ee-on-off-toggle-on"></label></div>'); ?></p> |
|
7 | +<p><?php _e('The on/off toggle is also what you use to activate or deactivate a messenger.', 'event_espresso'); ?></p> |
|
8 | +<p><?php _e('What happens when you click the toggle to activate is the messenger is activated and the system determines what default message types are activated with the messenger. Then, if there are any default settings for either the messenger or message types those settings are saved. Next, the system will generate any default templates (if none have been generated before, if there are previously generated templates then they are reactivated). Finally, you will see the display change to reflect that the messenger is active. If the messenger has settings you can modify them then. Any message types that have settings will also automatically expand so you can see the default settings and make any changes as necessary to fit your needs. Usually the defaults are sufficient however.', 'event_espresso'); ?></p> |
|
9 | +<p><?php _e('When you deactivate a messenger, the system will first check if there are any custom event templates for that messenger. If there are you will be unable to deactivate the messenger. This is a fail safe to make sure you know that no messages will go out for those specific events so you don\'t accidentally deactivate. If this check passes, then the system will deactivate any global templates for that messenger (note the templates are not erased, they just become inactive, so if you decide to reactivate the messenger later all your customizations are preserved). Then the display will change to reflect the deactivation.', 'event_espresso'); ?></p> |
|
10 | 10 | <p><strong><?php _e('Important', 'event_espresso'); ?></strong><br /> |
11 | 11 | <?php _e('Although customizations made to global templates are preserved when a messenger is deactivated, any settings for that messenger (or the message types that were attached to it) are lost on deactivation. Also, once you deactivate a messenger, no more messages will be delivered using that messenger for any of your events.', 'event_espresso'); ?></p> |