Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor-pro/addons/tutor-zoom/tutor-zoom.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + /**
3 + * Tutor Zoom Integration
4 + *
5 + * @package TutorPro\Addons
6 + * @subpackage Zoom
7 + * @author Themeum <support@themeum.com>
8 + * @link https://themeum.com
9 + * @since 2.0.0
10 + */
11 +
12 + if ( ! defined( 'ABSPATH' ) ) {
13 + exit;
14 + }
15 +
16 + /**
17 + * Defined the tutor main file
18 + */
19 + define( 'TUTOR_ZOOM_VERSION', '1.0.0' );
20 + define( 'TUTOR_ZOOM_FILE', __FILE__ );
21 + define( 'TUTOR_ZOOM_PLUGIN_DIR', plugin_dir_url( __FILE__ ) );
22 +
23 +
24 + add_filter( 'tutor_addons_lists_config', 'tutor_zoom_config' );
25 + /**
26 + * Showing config for addons central lists
27 + *
28 + * @param array $config config.
29 + *
30 + * @return array
31 + */
32 + function tutor_zoom_config( $config ) {
33 + $new_config = array(
34 + 'name' => __( 'Zoom Integration', 'tutor-pro' ),
35 + 'description' => __( 'Connect Tutor LMS with Zoom to host live online classes.', 'tutor-pro' ),
36 + );
37 + $basic_config = (array) TUTOR_ZOOM();
38 + $new_config = array_merge( $new_config, $basic_config );
39 +
40 + $config[ plugin_basename( TUTOR_ZOOM_FILE ) ] = $new_config;
41 + return $config;
42 + }
43 +
44 + if ( ! function_exists( 'TUTOR_ZOOM' ) ) {
45 + /**
46 + * Tutor zoom helper
47 + *
48 + * @return object
49 + */
50 + //phpcs:ignore
51 + function TUTOR_ZOOM() {
52 + $info = array(
53 + 'path' => plugin_dir_path( TUTOR_ZOOM_FILE ),
54 + 'url' => plugin_dir_url( TUTOR_ZOOM_FILE ),
55 + 'basename' => plugin_basename( TUTOR_ZOOM_FILE ),
56 + 'version' => TUTOR_ZOOM_VERSION,
57 + 'nonce_action' => 'tutor_nonce_action',
58 + 'nonce' => '_wpnonce',
59 + );
60 +
61 + return (object) $info;
62 + }
63 + }
64 +
65 + require 'includes/helper.php';
66 + require 'classes/Init.php';
67 +
68 + \TUTOR_ZOOM\Init::instance();
69 +
70 +
71 + if ( ! function_exists( 'tutor_zoom_instance' ) ) {
72 + /**
73 + * Get instance
74 + *
75 + * @since 1.9.3
76 + *
77 + * @return TUTOR_ZOOM\Init instance.
78 + */
79 + function tutor_zoom_instance() {
80 + return \TUTOR_ZOOM\Init::instance();
81 + }
82 + }
83 +