frontend.php 725 B

12345678910111213141516171819202122232425
  1. <?php
  2. global $shortcode_tags;
  3. switch ( $settings->shortcode ) {
  4. case 'booked-calendar':
  5. if ( isset( $shortcode_tags[ $settings->shortcode ] ) ) {
  6. echo call_user_func( $shortcode_tags[ $settings->shortcode ], array(
  7. 'size' => $settings->size,
  8. 'calendar' => $settings->calendar,
  9. 'year' => $settings->year,
  10. 'month' => $settings->month,
  11. 'day' => $settings->day,
  12. 'switcher' => $settings->switcher,
  13. 'style' => $settings->style,
  14. 'members-only' => $settings->members_only,
  15. ) );
  16. }
  17. break;
  18. default:
  19. if ( isset( $shortcode_tags[ $settings->shortcode ] ) ) {
  20. echo call_user_func( $shortcode_tags[ $settings->shortcode ], array() );
  21. }
  22. }