get_option('ns-airport-transfers-resort'), 'time-format' => get_option('ns-airport-transfers-time-format'), 'show-contacts' => 'true' ), $atts); // adjust dropdowns depending on Time format (12 or 24 Hours) if(strtolower($params['time-format'])==='12') : for($i=1; $i<=12; $i++) : $hours[] = strval($i); endfor; $am_pm = ' '; else : for($i=0; $i<=23; $i++) : $hours[] = ($i<10) ? '0' . strval($i) : strval($i); endfor; $am_pm = FALSE; endif; // adjust minutes dropdown for($i=0; $i<=55; $i++) : if($i%5===0) : $minutes[] = ($i<10) ? '0' . strval($i) : strval($i); endif; endfor; // process the content from the shortcode $options = explode(",", $content); $options = (sizeof($options)>0) ? $options : array(); ob_start(); require_once( plugin_dir_path(__FILE__) . 'views/form.php' ); require_once( plugin_dir_path(__FILE__) . 'views/modal-error.php' ); return ob_get_clean(); } } // class ends here }