-
Notifications
You must be signed in to change notification settings - Fork 0
/
bearr-theme-features.php
148 lines (145 loc) · 4.29 KB
/
bearr-theme-features.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
/*
Plugin Name: BeaRR: Theme Features
Plugin URI: http://themebear.co
Description: All the functionality required for BeaRR framework themes. This plugin adds all the features needed for your theme and makes it possible to preserve your content when switching it. Developed with love by ThemeBear.co
Author: Diego Pereira @ ThemeBear
Version: 1.2.3.9
Author URI: http://themebear.co
*/
/*
* Meta Fields
*/
require_once ('inc/meta-box/meta-box.php');
require ('inc/meta-box/meta-box-show-hide.php');
require ('meta-fields-post-formats.php');
function bearr_metabox_css($hook) {
wp_enqueue_style( 'bearr-metabox-css-file', plugins_url('/css/metabox.css', __FILE__) );
}
add_action( 'admin_enqueue_scripts', 'bearr_metabox_css' );
/*
* WP Less
*/
require ('inc/wp-less/bootstrap-for-theme.php');
/*
* King Composer
*/
function bearr_kingcomposer_admin_js($hook) {
wp_enqueue_script( 'bearr-kingcomposer-admin-js', plugins_url('/js/custom/bearr-admin-kingcomposer.js', __FILE__) );
wp_enqueue_style( 'bearr-kingcomposer-admin-css', plugins_url('/css/bearr-admin-kingcomposer.css', __FILE__) );
}
add_action( 'admin_enqueue_scripts', 'bearr_kingcomposer_admin_js' );
/*
* BeaRR: Slideshow
*/
$bearr_setup_slideshow = get_option( 'bearr_setup_slideshow' );
if ( $bearr_setup_slideshow == 'true') {
require ('bearr-plugins/bearr-slideshow/bearr-slideshow.php');
}
/*
* BeaRR: Clients
*/
$bearr_setup_clients = get_option( 'bearr_setup_clients' );
if ( $bearr_setup_clients == 'true') {
require ('bearr-plugins/bearr-clients/bearr-clients.php');
}
/*
* BeaRR: Team
*/
$bearr_setup_team = get_option( 'bearr_setup_team' );
if ( $bearr_setup_team == 'true') {
require ('bearr-plugins/bearr-team/bearr-team.php');
}
/*
* BeaRR: Testimonials
*/
$bearr_setup_testimonials = get_option( 'bearr_setup_testimonials' );
if ( $bearr_setup_testimonials == 'true') {
require ('bearr-plugins/bearr-testimonials/bearr-testimonials.php');
}
/*
* BeaRR: Elements
*/
$bearr_setup_elements = get_option( 'bearr_setup_elements' );
if ( $bearr_setup_elements == 'true') {
require ('bearr-plugins/bearr-elements/bearr-elements.php');
}
/*
* BeaRR: bearr-gallery
*/
$bearr_setup_gallery = get_option( 'bearr_setup_gallery' );
if ( $bearr_setup_gallery == 'true') {
require ('bearr-plugins/bearr-gallery/bearr-gallery.php');
}
/*
* BeaRR: Timeline
*/
$bearr_setup_timeline = get_option( 'bearr_setup_timeline' );
if ( $bearr_setup_timeline == 'true') {
require ('bearr-plugins/bearr-timeline/bearr-timeline.php');
}
/*
* BeaRR: Blogroll
*/
$bearr_setup_blogroll = get_option( 'bearr_setup_blogroll' );
if ( $bearr_setup_blogroll == 'true') {
require ('bearr-plugins/bearr-blogroll/bearr-blogroll.php');
}
/*
* BeaRR: GridBlog
*/
$bearr_setup_gridblog = get_option( 'bearr_setup_gridblog' );
if ( $bearr_setup_gridblog == 'true') {
require ('bearr-plugins/bearr-gridblog/bearr-gridblog.php');
}
/*
* BeaRR: CountDown
*/
$bearr_setup_countdown = get_option( 'bearr_setup_countdown' );
if ( $bearr_setup_countdown == 'true') {
require ('bearr-plugins/bearr-countdown/bearr-countdown.php');
}
/*
* BeaRR: Wedding Elements
*/
$bearr_setup_wedding_elements = get_option( 'bearr_setup_wedding_elements' );
if ( $bearr_setup_wedding_elements == 'true') {
require ('bearr-plugins/bearr-wedding-elements/bearr-wedding-elements.php');
}
/*
* BeaRR: Quover
*/
$bearr_setup_quover = get_option( 'bearr_setup_quover' );
if ( $bearr_setup_quover == 'true') {
require ('bearr-plugins/bearr-quover/bearr-quover.php');
}
/*
* BeaRR: Portfolio
*/
$bearr_setup_portfolio = get_option( 'bearr_setup_portfolio' );
if ( $bearr_setup_portfolio == 'true') {
require ('bearr-plugins/bearr-portfolio/bearr-portfolio.php');
}
/*
* BeaRR: Restaurant Elements
*/
$bearr_setup_restaurant_elements = get_option( 'bearr_setup_restaurant_elements' );
if ( $bearr_setup_restaurant_elements == 'true') {
require ('bearr-plugins/bearr-restaurant-elements/bearr-restaurant-elements.php');
}
/*
* Retro Compatibility
*/
//Law and Justice Theme
$bearr_setup_retro_law_and_justice = get_option( 'bearr_setup_retro_law_and_justice' );
if ( $bearr_setup_retro_law_and_justice == 'true') {
require ('retro-compatibility/law-and-justice-addons/law-and-justice-addons.php');
}
/*
* Plugin Customizations
*/
require ('customization.php');
/*
* Other Functions
*/
require ('functions.php');