Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor-pro/addons/calendar/calendar.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Tutor Calendar
4
+
*
5
+
* @package TutorPro\Addons
6
+
* @subpackage Calendar
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
+
* Defined the tutor main file
17
+
*/
18
+
define( 'TUTOR_C_VERSION', '1.0.0' );
19
+
define( 'TUTOR_C_FILE', __FILE__ );
20
+
21
+
add_filter( 'tutor_addons_lists_config', 'tutor_pro_calendar_config' );
22
+
/**
23
+
* Showing config for addons central lists
24
+
*
25
+
* @param array $config config.
26
+
*
27
+
* @return array
28
+
*/
29
+
function tutor_pro_calendar_config( $config ) {
30
+
$new_config = array(
31
+
'name' => __( 'Calendar', 'tutor-pro' ),
32
+
'description' => __( 'Enable to let students view all your course events in one place.', 'tutor-pro' ),
33
+
);
34
+
35
+
$basic_config = (array) tutor_pro_calendar();
36
+
$new_config = array_merge( $new_config, $basic_config );
37
+
38
+
$config[ plugin_basename( TUTOR_C_FILE ) ] = $new_config;
39
+
return $config;
40
+
}
41
+
42
+
if ( ! function_exists( 'tutor_pro_calendar' ) ) {
43
+
/**
44
+
* Calendar addon helper
45
+
*
46
+
* @return object
47
+
*/
48
+
function tutor_pro_calendar() {
49
+
$info = array(
50
+
'path' => plugin_dir_path( TUTOR_C_FILE ),
51
+
'url' => plugin_dir_url( TUTOR_C_FILE ),
52
+
'assets' => plugin_dir_url( TUTOR_C_FILE . 'assets/' ),
53
+
'basename' => plugin_basename( TUTOR_C_FILE ),
54
+
'version' => TUTOR_C_VERSION,
55
+
'nonce_action' => 'tutor_nonce_action',
56
+
'nonce' => '_wpnonce',
57
+
);
58
+
return (object) $info;
59
+
}
60
+
}
61
+
62
+
require 'classes/Init.php';
63
+
new TUTOR_PRO_C\Init();
64
+