Completed
Push — master ( 86ffa1...615d80 )
by
unknown
04:34
created

google-calendar-events.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * Plugin Name: Simple Calendar
4
 * Plugin URI:  https://simplecalendar.io
5
 * Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
6
 * Version:     3.0.15
7
 * Author:      Moonstone Media
8
 * Author URI:  https://simplecalendar.io
9
 * Text Domain: google-calendar-events
10
 * Domain Path: /i18n
11
 *
12
 * @package     SimpleCalendar
13
 * @copyright   2016 Moonstone Media/Phil Derksen. All rights reserved.
14
 */
15
16
// Exit if accessed directly.
17
if ( ! defined( 'ABSPATH' ) ) {
18
	exit;
19
}
20
21
// Plugin constants.
22
$this_plugin_path      = trailingslashit( dirname( __FILE__ ) );
23
$this_plugin_dir       = plugin_dir_url( __FILE__ );
24
$this_plugin_constants = array(
25
	'SIMPLE_CALENDAR_VERSION'   => '3.0.15',
26
	'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
27
	'SIMPLE_CALENDAR_URL'       => $this_plugin_dir,
28
	'SIMPLE_CALENDAR_ASSETS'    => $this_plugin_dir . 'assets/',
29
	'SIMPLE_CALENDAR_PATH'      => $this_plugin_path,
30
	'SIMPLE_CALENDAR_INC'       => $this_plugin_path . 'includes/',
31
);
32
foreach ( $this_plugin_constants as $constant => $value ) {
33
	if ( ! defined( $constant ) ) {
34
		define( $constant, $value );
35
	}
36
}
37
38
// Plugin requirements
39
40
include_once 'includes/wp-requirements.php';
41
42
// Check plugin requirements before loading plugin.
43
$this_plugin_checks = new SimCal_WP_Requirements( 'Simple Calendar', plugin_basename( __FILE__ ), array(
44
		'PHP'        => '5.3.3',
45
		'WordPress'  => '4.1',
46
		'Extensions' => array(
47
			'curl',
48
			'iconv',
49
			'json',
50
			'mbstring',
51
		),
52
	) );
0 ignored issues
show
This line of the multi-line function call does not seem to be indented correctly. Expected 0 spaces, but found 4.
Loading history...
53
if ( $this_plugin_checks->pass() === false ) {
54
	$this_plugin_checks->halt();
55
56
	return;
57
}
58
59
include_once 'vendor/autoload.php';
60
61
// Load plugin.
62
include_once 'includes/main.php';
63