forked from wp-plugins/salon-booking-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsalon.php
More file actions
executable file
·44 lines (34 loc) · 1.48 KB
/
salon.php
File metadata and controls
executable file
·44 lines (34 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
Plugin Name: Salon Booking Wordpress Plugin - Free Version
Description: Let your customers book you services through your website. Perfect for hairdressing salons, barber shops and beauty centers.
Version: 1.3.0
Plugin URI: http://salon.wpchef.it/
Author: Wordpress Chef / Plugins
Author URI: http://plugins.wpchef.it/
Text Domain: sln
*/
define('SLN_PLUGIN_BASENAME', plugin_basename(__FILE__));
define('SLN_PLUGIN_DIR', untrailingslashit(dirname(__FILE__)));
define('SLN_PLUGIN_URL', untrailingslashit(plugins_url('', __FILE__)));
define('SLN_VERSION', '1.3.0');
function sln_autoload($className) {
if (strpos($className, 'SLN_') === 0) {
include_once(SLN_PLUGIN_DIR . "/src/" . str_replace("_", "/", $className) . '.php');
}
}
function my_update_notice() {
$info = __('ATTENTION! New text strings has been added up-date your translations files.', 'sln');
echo '<span class="spam">' . strip_tags($info, '<br><a><b><i><span>') . '</span>';
}
if (is_admin())
add_action('in_plugin_update_message-' . plugin_basename(__FILE__), 'my_update_notice');
spl_autoload_register('sln_autoload');
$sln_plugin = SLN_Plugin::getInstance();
//TODO[feature-gcalendar]: move this require in the right place
require_once SLN_PLUGIN_DIR . "/src/SLN/Third/GoogleScope.php";
$sln_googlescope = new SLN_GoogleScope();
$GLOBALS['sln_googlescope'] = $sln_googlescope;
$sln_googlescope->set_settings_by_plugin(SLN_Plugin::getInstance());
$sln_googlescope->wp_init();
ob_start();