-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwc-gallery.php
96 lines (92 loc) · 2.44 KB
/
wc-gallery.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/*
Plugin Name: Galleries by Angie Makes
Plugin URI: http://angiemakes.com/feminine-wordpress-blog-themes-women/
Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
Author: Chris Baldelomar
Author URI: http://angiemakes.com/
Version: 1.67
License: GPLv2 or later
*/
define( 'WC_GALLERY_VERSION', '1.67' );
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'WC_GALLERY_CURRENT_VERSION', get_option( WC_GALLERY_PREFIX . 'current_version' ) );
define( 'WC_GALLERY_PLUGIN_BASENAME', plugin_basename( plugin_dir_path( realpath( __FILE__ ) ) . 'wc-gallery.php' ) );
global $wc_gallery_options;
global $wc_gallery_theme_support;
$wc_gallery_theme_support = array(
'theme_reset' => true,
'icon' => array(
'size_w' => '48',
'size_h' => '48',
'crop' => true,
'enable' => true,
),
'square' => array(
'size_w' => '300',
'size_h' => '300',
'crop' => true,
'enable' => true,
),
'small' => array(
'size_w' => '250',
'size_h' => '9999',
'crop' => false,
'enable' => true,
),
'standard' => array(
'size_w' => '550',
'size_h' => '9999',
'crop' => false,
'enable' => true,
),
'big' => array(
'size_w' => '800',
'size_h' => '9999',
'crop' => false,
'enable' => true,
),
'fixedheightsmall' => array(
'size_w' => '9999',
'size_h' => '180',
'crop' => false,
'enable' => true,
),
'fixedheightmedium' => array(
'size_w' => '9999',
'size_h' => '300',
'crop' => false,
'enable' => true,
),
'fixedheight' => array(
'size_w' => '9999',
'size_h' => '500',
'crop' => false,
'enable' => true,
),
'carouselsmall' => array(
'size_w' => '210',
'size_h' => '150',
'crop' => true,
'enable' => true,
),
'carousel' => array(
'size_w' => '400',
'size_h' => '285',
'crop' => true,
'enable' => true,
),
'slider' => array(
'size_w' => '1100',
'size_h' => '500',
'crop' => true,
'enable' => true,
),
);
require_once( plugin_dir_path( __FILE__ ) . 'includes/vendors/wpc-settings-framework/init.php' );
require_once( dirname(__FILE__) . '/includes/functions.php' ); // Adds basic filters and actions
require_once( dirname(__FILE__) . '/includes/options.php' ); // define options array
require_once( dirname(__FILE__) . '/includes/scripts.php' ); // Adds plugin JS and CSS
// require_once( dirname(__FILE__) . '/includes/widgets.php' ); // include any widgets