-
Notifications
You must be signed in to change notification settings - Fork 0
/
sixtenpress-isotope.php
62 lines (54 loc) · 1.66 KB
/
sixtenpress-isotope.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
<?php
/**
* Isotope handler for Six/Ten Press
*
* @package SixTenPressIsotope
* @author Robin Cornett <[email protected]>
* @license GPL-2.0+
* @link https://robincornett.com
* @copyright 2016-2019 Robin Cornett Creative, LLC
*
* Plugin Name: Six/Ten Press Isotope
* Plugin URI: https://robincornett.com
* Description: Six/Ten Press Isotope makes building an isotope layout archive super easy.
* Author: Robin Cornett
* Author URI: https://robincornett.com
* Text Domain: sixtenpress-isotope
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Version: 1.4.1
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! defined( 'SIXTENPRESSISOTOPE_BASENAME' ) ) {
define( 'SIXTENPRESSISOTOPE_BASENAME', plugin_basename( __FILE__ ) );
}
// Include classes
function sixtenpressisotope_require() {
$files = array(
'class-sixtenpressisotope',
'class-sixtenpressisotope-help',
'class-sixtenpressisotope-output',
);
foreach ( $files as $file ) {
require plugin_dir_path( __FILE__ ) . 'includes/' . $file . '.php';
}
}
sixtenpressisotope_require();
// Instantiate dependent classes
$sixtenpressisotope_output = new SixTenPressIsotopeOutput();
// Instantiate main class and pass in dependencies
$sixtenpressisotope = new SixTenPressIsotope(
$sixtenpressisotope_output
);
// Run the plugin
$sixtenpressisotope->run();
/**
* Helper function to retrieve the plugin setting, with defaults.
* @return mixed
*/
function sixtenpressisotope_get_settings() {
return apply_filters( 'sixtenpressisotope_get_plugin_setting', false );
}