@@ -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 | |
@@ -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 | |
@@ -298,8 +298,8 @@ |
||
| 298 | 298 | 'name' => '_default_calendar_expand_multi_day_events', |
| 299 | 299 | 'id' => '_default_calendar_expand_multi_day_events', |
| 300 | 300 | 'tooltip' => __( 'For events spanning multiple days, you can display them on each day of the event, ' . |
| 301 | - 'only on the first day of the event, or on all days of the event, but only up to the current day. ' . |
|
| 302 | - 'Third option applies to list views only.', 'google-calendar-events' ), |
|
| 301 | + 'only on the first day of the event, or on all days of the event, but only up to the current day. ' . |
|
| 302 | + 'Third option applies to list views only.', 'google-calendar-events' ), |
|
| 303 | 303 | 'value' => $multi_day_value, |
| 304 | 304 | 'options' => array( |
| 305 | 305 | 'yes' => __( 'Yes, display on all days of event', 'google-calendar-events' ), |
@@ -784,8 +784,8 @@ |
||
| 784 | 784 | if ( 'yes' == $poweredby ) { |
| 785 | 785 | $align = is_rtl() ? 'left' : 'right'; |
| 786 | 786 | echo '<small class="simcal-powered simcal-align-' . $align .'">' . |
| 787 | - sprintf( __( 'Powered by <a href="%s" target="_blank">Simple Calendar</a>', 'google-calendar-events' ), simcal_get_url( 'home' ) ) . |
|
| 788 | - '</small>'; |
|
| 787 | + sprintf( __( 'Powered by <a href="%s" target="_blank">Simple Calendar</a>', 'google-calendar-events' ), simcal_get_url( 'home' ) ) . |
|
| 788 | + '</small>'; |
|
| 789 | 789 | } |
| 790 | 790 | |
| 791 | 791 | echo '</div>'; |