@@ -95,7 +95,7 @@ |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | } else { |
| 98 | - // @todo eventually if a date range picker is needed, this can be extended |
|
| 98 | + // @todo eventually if a date range picker is needed, this can be extended |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | ?> |
@@ -335,7 +335,7 @@ |
||
| 335 | 335 | */ |
| 336 | 336 | private function meridiem() { |
| 337 | 337 | |
| 338 | - ?> |
|
| 338 | + ?> |
|
| 339 | 339 | <div> |
| 340 | 340 | <label for="<?php echo $this->id; ?>-meridiem"> |
| 341 | 341 | <?php _e( 'Meridiem', 'google-calendar-events' ); ?> |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | value="<?php echo $this->value; ?>" |
| 58 | 58 | class="<?php echo $this->class; ?>"<?php |
| 59 | 59 | echo $this->style ? 'style="' . $this->style . '" ' : ' '; |
| 60 | - echo $this->placeholder ? 'placeholder="' . $this->placeholder . '"' : ' '; |
|
| 60 | + echo $this->placeholder ? 'placeholder="' . $this->placeholder . '"' : ' '; |
|
| 61 | 61 | echo $this->attributes; ?>/> |
| 62 | 62 | <?php |
| 63 | 63 | |
@@ -146,11 +146,11 @@ |
||
| 146 | 146 | $links = array(); |
| 147 | 147 | $links['github'] = '<a href="' . simcal_get_url( 'github' ) . '" target="_blank" >GitHub</a>'; |
| 148 | 148 | $links['documentation'] = '<a href="' . simcal_ga_campaign_url( simcal_get_url( 'docs' ), 'core-plugin', 'plugin-listing' ) . '" target="_blank" >' . |
| 149 | - __( 'Documentation', 'google-calendar-events' ) . '</a>'; |
|
| 149 | + __( 'Documentation', 'google-calendar-events' ) . '</a>'; |
|
| 150 | 150 | $links['support'] = '<a href="' . simcal_get_url( 'support' ) . '" target="_blank" >' . |
| 151 | - __( 'Support', 'google-calendar-events' ) . '</a>'; |
|
| 151 | + __( 'Support', 'google-calendar-events' ) . '</a>'; |
|
| 152 | 152 | $links['add-ons'] = '<a href="' . simcal_ga_campaign_url( simcal_get_url( 'add-ons' ), 'core-plugin', 'plugin-listing' ) . '" target="_blank" >' . |
| 153 | - __( 'Add-ons', 'google-calendar-events' ) . '</a>'; |
|
| 153 | + __( 'Add-ons', 'google-calendar-events' ) . '</a>'; |
|
| 154 | 154 | |
| 155 | 155 | return apply_filters( 'simcal_plugin_action_links', array_merge( $meta_links, $links ) ); |
| 156 | 156 | } |
@@ -75,8 +75,8 @@ |
||
| 75 | 75 | 'keys' => array( |
| 76 | 76 | 'title' => __( 'Premium Add-on License Keys', 'google-calendar-events' ), |
| 77 | 77 | 'description' => __( 'Enter your add-on license keys below, making sure to activate each one to ensure they are valid.', 'google-calendar-events' ) . |
| 78 | - '<br/><br/>' . |
|
| 79 | - '<em>' . __( 'Your license keys are used for access to automatic upgrades and premium support.', 'google-calendar-events' ) . '</em>', |
|
| 78 | + '<br/><br/>' . |
|
| 79 | + '<em>' . __( 'Your license keys are used for access to automatic upgrades and premium support.', 'google-calendar-events' ) . '</em>', |
|
| 80 | 80 | ), |
| 81 | 81 | ); |
| 82 | 82 | return apply_filters( 'simcal_add_' . $this->option_group . '_' . $this->id .'_sections', $sections ); |
@@ -272,9 +272,9 @@ |
||
| 272 | 272 | |
| 273 | 273 | if ( $post_type == 'calendar' && isset( $post->ID ) ) { |
| 274 | 274 | echo '<a id="simcal-clear-cache" class="button" data-id="' . $post->ID . ' ">' . |
| 275 | - '<i class="simcal-icon-spinner simcal-icon-spin" style="display: none;"></i> ' . |
|
| 276 | - __( 'Clear cache', 'google-calendar-events' ) . |
|
| 277 | - '</a>'; |
|
| 275 | + '<i class="simcal-icon-spinner simcal-icon-spin" style="display: none;"></i> ' . |
|
| 276 | + __( 'Clear cache', 'google-calendar-events' ) . |
|
| 277 | + '</a>'; |
|
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | 280 | |
@@ -341,8 +341,11 @@ |
||
| 341 | 341 | </label> |
| 342 | 342 | </p> |
| 343 | 343 | <p><input type="button" value="<?php _e( 'Insert Calendar', 'google-calendar-events' ); ?>" id="simcal-insert-shortcode" class="button button-primary button-large" name="" /></p> |
| 344 | - <?php else : ?> |
|
| 345 | - <p><em><?php _e( 'Could not find any calendars to add to this post.', 'google-calendar-events' ); ?></em></p> |
|
| 344 | + <?php else { |
|
| 345 | + : ?> |
|
| 346 | + <p><em><?php _e( 'Could not find any calendars to add to this post.', 'google-calendar-events' ); |
|
| 347 | +} |
|
| 348 | +?></em></p> |
|
| 346 | 349 | <strong><a href="post-new.php?post_type=calendar"><?php _e( 'Please add and configure new calendar first.', 'google-calendar-events' ); ?></a></strong> |
| 347 | 350 | <?php endif; ?> |
| 348 | 351 | </div> |
@@ -453,10 +453,12 @@ |
||
| 453 | 453 | $list_events .= '<button class="simcal-events-toggle"><i class="simcal-icon-down simcal-icon-animate"></i></button>'; |
| 454 | 454 | endif; |
| 455 | 455 | |
| 456 | - else : |
|
| 456 | + else { |
|
| 457 | + : |
|
| 457 | 458 | |
| 458 | 459 | // Empty cell for day with no events. |
| 459 | 460 | $list_events = '<span class="simcal-no-events"></span>'; |
| 461 | + } |
|
| 460 | 462 | |
| 461 | 463 | endif; |
| 462 | 464 | |
@@ -576,9 +576,11 @@ |
||
| 576 | 576 | |
| 577 | 577 | endforeach; |
| 578 | 578 | |
| 579 | - else : |
|
| 579 | + else { |
|
| 580 | + : |
|
| 580 | 581 | |
| 581 | 582 | echo "\t" . '<p>'; |
| 583 | + } |
|
| 582 | 584 | |
| 583 | 585 | $message = get_post_meta( $calendar->id, '_no_events_message', true ); |
| 584 | 586 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Admin functions |
|
| 4 | - * |
|
| 5 | - * Functions for the admin back end components only. |
|
| 6 | - * |
|
| 7 | - * @package SimpleCalendar/Admin/Functions |
|
| 8 | - */ |
|
| 3 | + * Admin functions |
|
| 4 | + * |
|
| 5 | + * Functions for the admin back end components only. |
|
| 6 | + * |
|
| 7 | + * @package SimpleCalendar/Admin/Functions |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | 11 | exit; |