-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvt_testimonials_circles.php
67 lines (54 loc) · 1.22 KB
/
vt_testimonials_circles.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
<?php
/**
* Plugin's bootstrap file to launch the plugin.
*
* @package VeryTwisty Testimonials Circles
* @author Belinda Mustoe (www.verytwisty.com)
* @license GPL2+
*
* @wordpress-plugin
* Plugin Name: VeryTwisty Testimonials Circles
* Plugin URI: https://verytwisty.com
* Description: Displays some testimonials in a cicle on your website
* Version: 1
* Author: Very Twisty
*/
namespace Very_Twisty\Testimonials;
// Exit if accessed directly.
defined('ABSPATH') || exit;
/**
* Gets this plugin's absolute directory path.
*
* @since 2.1.0
* @ignore
* @access private
*
* @return string
*/
function _get_plugin_directory() {
return __DIR__;
}
/**
* Gets this plugin's URL.
*
* @since 2.1.0
* @ignore
* @access private
*
* @return string
*/
function _get_plugin_url() {
static $plugin_url;
if ( empty( $plugin_url ) ) {
$plugin_url = plugins_url( null, __FILE__ );
}
return $plugin_url;
}
// Add Custom Post type
include __DIR__ . '/lib/testimonials_cpt.php';
// Add Shortcode
include __DIR__ . '/lib/testimonials_shortcode.php';
// Add Job Title Metabox
include __DIR__ . '/lib/testimonials_metabox.php';
// Enqueue JS & CSS
include __DIR__ . '/lib/scripts_styles.php';