activities_controller.php
1 month ago
auth_controller.php
3 months ago
booking_form_settings_controller.php
3 months ago
bookings_controller.php
10 hours ago
calendars_controller.php
3 months ago
carts_controller.php
10 hours ago
controller.php
3 months ago
customer_cabinet_controller.php
2 months ago
customers_controller.php
10 hours ago
dashboard_controller.php
2 months ago
default_agent_controller.php
3 months ago
events_controller.php
3 months ago
form_fields_controller.php
1 week ago
integrations_controller.php
3 months ago
invoices_controller.php
10 hours ago
manage_booking_by_key_controller.php
3 months ago
manage_order_by_key_controller.php
3 months ago
notifications_controller.php
3 months ago
orders_controller.php
10 hours ago
pro_controller.php
2 weeks ago
process_jobs_controller.php
3 months ago
processes_controller.php
1 month ago
razorpay_connect_controller.php
1 week ago
search_controller.php
3 months ago
services_controller.php
3 months ago
settings_controller.php
2 months ago
steps_controller.php
2 weeks ago
stripe_connect_controller.php
1 week ago
support_topics_controller.php
3 months ago
todos_controller.php
3 months ago
transactions_controller.php
10 hours ago
wizard_controller.php
1 week ago
integrations_controller.php
47 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | |
| 6 | |
| 7 | if ( ! class_exists( 'OsIntegrationsController' ) ) : |
| 8 | |
| 9 | |
| 10 | class OsIntegrationsController extends OsController { |
| 11 | |
| 12 | |
| 13 | function __construct() { |
| 14 | parent::__construct(); |
| 15 | |
| 16 | $this->views_folder = LATEPOINT_VIEWS_ABSPATH . 'integrations/'; |
| 17 | $this->vars['page_header'] = OsMenuHelper::get_menu_items_by_id( 'integrations' ); |
| 18 | $this->vars['pre_page_header'] = OsMenuHelper::get_label_by_id( 'integrations' ); |
| 19 | $this->vars['breadcrumbs'][] = array( |
| 20 | 'label' => __( 'Integrations', 'latepoint' ), |
| 21 | 'link' => OsRouterHelper::build_link( OsRouterHelper::build_route_name( 'integrations', 'external_calendars' ) ), |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | public function external_meeting_systems() { |
| 26 | $this->vars['available_meeting_systems'] = OsMeetingSystemsHelper::get_list_of_external_meeting_systems(); |
| 27 | $this->format_render( __FUNCTION__ ); |
| 28 | } |
| 29 | |
| 30 | public function external_calendars() { |
| 31 | $this->vars['available_calendars'] = OsCalendarHelper::get_list_of_external_calendars(); |
| 32 | $this->format_render( __FUNCTION__ ); |
| 33 | } |
| 34 | |
| 35 | public function external_marketing_systems() { |
| 36 | $this->vars['available_marketing_systems'] = OsMarketingSystemsHelper::get_list_of_external_marketing_systems(); |
| 37 | $this->format_render( __FUNCTION__ ); |
| 38 | } |
| 39 | |
| 40 | public function external_short_links_systems() { |
| 41 | $this->vars['available_short_links_systems'] = OsShortLinksSystemsHelper::get_list_of_external_short_links_systems(); |
| 42 | $this->format_render( __FUNCTION__ ); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | endif; |
| 47 |