forked from agims/chisholm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chisholm.php
50 lines (39 loc) · 1.44 KB
/
chisholm.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
<?php
/*
Plugin Name: Chisholm
Plugin URI: https://github.com/agims/chisholm
Description: This is a WordPress Plugin to allow for adding a call to action (CTA) into your site either by injecting it into <code>the_content()</code> or having the user use a shortcode. - <strong>Version 1.0.2 - Mockingbird</strong>
Version: 1.0.2
Author: Chris G. Clapp
Author URI: http://www.chrisclapp.com
Text Domain: chisholm
GitHub Plugin URI: https://github.com/agims/chisholm
GitHub Branch: master
*/
defined('ABSPATH') or die("Dude seriously?");
if (!defined('CHISHOLM_VERSION_KEY'))
define('CHISHOLM_VERSION_KEY', 'chisholm_version');
if (!defined('CHISHOLM_VERSION_NUM'))
define('CHISHOLM_VERSION_NUM', '1.0.2');
// Set up required files
$files_to_require = array(
'checks.php',
'options-page.php',
'chisholm_cta.php',
// 'meta_box_class.php',
// 'add_meta_box.php',
'qad-metabox.php',
'content_filter.php',
'shortcode.php',
'do-shortcode-widget.php',
);
foreach($files_to_require as $file_to_require) {
$filename = 'inc/' . $file_to_require;
require_once($filename);
}
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'chisholm_action_links' );
function chisholm_action_links( $links ) {
$links[] = '<a href="'. get_admin_url(null, 'options-general.php?page=chisholm-options') .'">Settings</a>';
$links[] = '<a href="http://www.agims.com" target="_blank">AGI Marketing</a>';
return $links;
}