-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpootlepress-apple-menu.php
34 lines (29 loc) · 1.32 KB
/
pootlepress-apple-menu.php
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
<?php
/*
Plugin Name: Canvas Extension - Papple Menu
Plugin URI: http://pootlepress.com/
Description: An extension for WooThemes Canvas that contains a menu design inspired by apple.com. This helps you customise the look and feel of your navigation menu in the Canvas theme by WooThemes.
Version: 1.1.2
Author: PootlePress
Author URI: http://pootlepress.com/
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
require_once( 'pootlepress-apple-menu-functions.php' );
require_once( 'classes/class-pootlepress-apple-menu.php' );
require_once( 'classes/class-pootlepress-updater.php');
$GLOBALS['pootlepress_apple_menu'] = new Pootlepress_Apple_Menu( __FILE__ );
$GLOBALS['pootlepress_apple_menu']->version = '1.1.2';
add_action('init', 'pp_ma_updater');
function pp_ma_updater()
{
if (!function_exists('get_plugin_data')) {
include(ABSPATH . 'wp-admin/includes/plugin.php');
}
$data = get_plugin_data(__FILE__);
$wptuts_plugin_current_version = $data['Version'];
$wptuts_plugin_remote_path = 'http://www.pootlepress.com/?updater=1';
$wptuts_plugin_slug = plugin_basename(__FILE__);
new Pootlepress_Updater ($wptuts_plugin_current_version, $wptuts_plugin_remote_path, $wptuts_plugin_slug);
}
?>