-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcatablogordering.php
More file actions
43 lines (31 loc) · 1.44 KB
/
catablogordering.php
File metadata and controls
43 lines (31 loc) · 1.44 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: Catablog Ordering
Plugin URI: https://github.com/genus/catablogordering
Description: Add Catablog Plugin Support for Making Purchase Orders
Version: 0.2
Author: diego2k
Author URI: http://www.estudiogenus.com/
Copyright 2012-2014 Diego Coppari (email: diego2k@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
// Make sure we don't expose any info if called directly
if ( !function_exists( 'add_action' ) )
{
echo "Hi there! I'm just a plugin, not much I can do when called directly.";
exit;
}
require('CataBlogOrdering.class.php');
require('ArrayToTextTable.class.php');
load_plugin_textdomain('catablogcart', false, dirname( plugin_basename( __FILE__ ) ) . '/lang');
add_action('admin_menu', array('CataBlogCart', 'admin_settings_menu') );
add_shortcode('catablogcart', array('CataBlogCart', 'showCart'));
wp_enqueue_style('catablog-cart-css', plugins_url( 'css/catablog-cart.css', __FILE__ ), false, '1','all');
add_action('init', array('CataBlogCart', 'processEvent'), 10);