| @@ -2,9 +2,12 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Single Meeting Template |
| 4 | 4 | * |
| 5 | 5 | * @package Timetics |
| 6 | - */ | |
| 6 | + */ | |
| 7 | + | |
| 8 | +defined( 'ABSPATH' ) || exit; | |
| 9 | + | |
| 7 | 10 | wp_head(); |
| 8 | 11 | $id = $post->ID; |
| 9 | 12 | ?> |
| 10 | 13 | <div class="timetics-single-page-wrapper"> |
| @@ -9,10 +12,10 @@ | ||
| 9 | 12 | ?> |
| 10 | 13 | <div class="timetics-single-page-wrapper"> |
| 11 | 14 | <div class="timetics-container"> |
| 12 | 15 | <?php |
| 13 | - if(!empty($id)){ | |
| 14 | - echo do_shortcode('[timetics-booking-form id='.$id.']'); | |
| 16 | + if ( ! empty( $id ) ) { | |
| 17 | + echo do_shortcode( '[timetics-booking-form id=' . absint( $id ) . ']' ); | |
| 15 | 18 | } |
| 16 | 19 | ?> |
| 17 | 20 | </div> |
| 18 | 21 | </div> |