-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
51 lines (47 loc) · 1.42 KB
/
plugin.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
<?php
/**
* Template for the Connections Business Directory plugin.
*
* @package Connections Business Directory Template - Members
* @category Template
* @author Steven A. Zahm
* @license GPL-2.0+
* @link https://connections-pro.com
* @copyright 2023 Steven A. Zahm
*
* @wordpress-plugin
* Plugin Name: Connections Business Directory Template - Members
* Plugin URI: https://connections-pro.com
* Description: Template for the Connections Business Directory
* Version: 1.0
* Requires at least: 5.6
* Requires PHP: 7.0
* Author: Steven A. Zahm
* Author URI: https://connections-pro.com
* License: GPL-2.0+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: cnt_members
* Domain Path: /languages
*/
add_action(
'Connections_Directory/Loaded',
static function() {
add_action(
'cn_register_template',
static function() {
$atts = array(
'name' => 'Members',
'type' => 'family',
'slug' => 'members',
'version' => '1.0',
'author' => 'Phill Pafford',
'authorURL' => 'https://llihp.blogspot.com',
'description' => 'Shows popup with a Google Map.',
'path' => plugin_dir_path( __FILE__ ) . 'template',
'url' => plugin_dir_url( __FILE__ ) . 'template',
);
cnTemplateFactory::register( $atts );
}
);
}
);