@@ -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 |