@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Shared functions |
|
4 | - * |
|
5 | - * Functions shared by both back end and front end components. |
|
6 | - * |
|
7 | - * @package SimpleCalendar/Functions |
|
8 | - */ |
|
3 | + * Shared functions |
|
4 | + * |
|
5 | + * Functions shared by both back end and front end components. |
|
6 | + * |
|
7 | + * @package SimpleCalendar/Functions |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
11 | 11 | exit; |
@@ -82,12 +82,12 @@ discard block |
||
82 | 82 | return array( |
83 | 83 | 'name' => $this->feed->name, |
84 | 84 | 'description' => __( "To read events from your public Google Calendars you'll need create a Google API key and save it here.", 'google-calendar-events' ) . |
85 | - '<br/><br/>' . |
|
86 | - '<em style="font-size: 14px;">' . |
|
87 | - sprintf( __( '<strong>Note:</strong> Calendars configured to use the <strong><a href="%s" target="_blank">Google Calendar Pro add-on</a></strong> use a different method of authorization.', 'google-calendar-events' ), |
|
88 | - simcal_ga_campaign_url( simcal_get_url( 'gcal-pro' ), 'core-plugin', 'settings-link' ) |
|
89 | - ) . |
|
90 | - '</em>', |
|
85 | + '<br/><br/>' . |
|
86 | + '<em style="font-size: 14px;">' . |
|
87 | + sprintf( __( '<strong>Note:</strong> Calendars configured to use the <strong><a href="%s" target="_blank">Google Calendar Pro add-on</a></strong> use a different method of authorization.', 'google-calendar-events' ), |
|
88 | + simcal_ga_campaign_url( simcal_get_url( 'gcal-pro' ), 'core-plugin', 'settings-link' ) |
|
89 | + ) . |
|
90 | + '</em>', |
|
91 | 91 | 'fields' => array( |
92 | 92 | 'api_key' => array( |
93 | 93 | 'type' => 'standard', |
@@ -273,12 +273,12 @@ discard block |
||
273 | 273 | 'post' => $post_id, |
274 | 274 | 'dismissable' => false, |
275 | 275 | 'content' => '<p>' . |
276 | - '<i class="simcal-icon-warning"></i> ' . |
|
277 | - sprintf( |
|
278 | - __( 'Your Google Calendar events will not show up until you <a href="%s">create and save a Google API key</a>.', 'google-calendar-events' ), |
|
279 | - admin_url( 'edit.php?post_type=calendar&page=simple-calendar_settings&tab=feeds' ) |
|
280 | - ) . |
|
281 | - '</p>', |
|
276 | + '<i class="simcal-icon-warning"></i> ' . |
|
277 | + sprintf( |
|
278 | + __( 'Your Google Calendar events will not show up until you <a href="%s">create and save a Google API key</a>.', 'google-calendar-events' ), |
|
279 | + admin_url( 'edit.php?post_type=calendar&page=simple-calendar_settings&tab=feeds' ) |
|
280 | + ) . |
|
281 | + '</p>', |
|
282 | 282 | ) |
283 | 283 | ); |
284 | 284 | |
@@ -305,11 +305,11 @@ discard block |
||
305 | 305 | 'post' => $post_id, |
306 | 306 | 'dismissable' => false, |
307 | 307 | 'content' => '<p>' . |
308 | - '<i class="simcal-icon-warning"></i> ' . |
|
309 | - __( 'While trying to retrieve events, Google returned an error:', 'google-calendar-events' ) . |
|
310 | - '<br>' . $message . '<br>' . |
|
311 | - __( 'Please ensure that both your Google Calendar ID and API Key are valid and that the Google Calendar you want to display is public.', 'google-calendar-events' ) . |
|
312 | - '</p>', |
|
308 | + '<i class="simcal-icon-warning"></i> ' . |
|
309 | + __( 'While trying to retrieve events, Google returned an error:', 'google-calendar-events' ) . |
|
310 | + '<br>' . $message . '<br>' . |
|
311 | + __( 'Please ensure that both your Google Calendar ID and API Key are valid and that the Google Calendar you want to display is public.', 'google-calendar-events' ) . |
|
312 | + '</p>', |
|
313 | 313 | ) |
314 | 314 | ); |
315 | 315 |