function mrs1_book_event_form() { if ($this->_isCurl()) { $bookableItems = $this->getBookableItems(); $mrsService = new MyReservationService(); $options = get_option('mrs1_authentication_code'); $connected = $mrsService->ValidateAuthCode($options); } else { $connected = 3; } include_once SAGENDA_PLUGIN_DIR . 'templates/reservation.php'; }
function show_mrs_settings() { $tab = 'mrs-settings'; $options = get_option('mrs1_authentication_code'); if ($this->_isCurl()) { include_once SAGENDA_PLUGIN_DIR . 'classes/MyReservationService.php'; $obj = new MyReservationService(); $connected = $obj->ValidateAuthCode($options); } else { $connected = 3; } include_once SAGENDA_PLUGIN_DIR . 'admin/templates/config.php'; }