-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinkmaker.php
More file actions
67 lines (58 loc) · 2.06 KB
/
Copy pathlinkmaker.php
File metadata and controls
67 lines (58 loc) · 2.06 KB
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
<?php
/*
Plugin Name: LinkMaker
Plugin URI: https://fishdan.com/linkmaker
Description: Transforms specified hyperlinks into interactive elements for Wikipedia searches.
Version: 0.1.11
Author: Dan Fishman
Author URI: https://fishdan.com
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: linkmaker
Requires PHP: 7.4
Requires at least: 5.8
*/
if (!defined('ABSPATH')) {
exit;
}
if ( ! function_exists( 'linkmaker_fs' ) ) {
// Create a helper function for easy SDK access.
function linkmaker_fs() {
global $linkmaker_fs;
if ( ! isset( $linkmaker_fs ) ) {
// Include Freemius SDK.
require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';
$linkmaker_fs = fs_dynamic_init( array(
'id' => '21111',
'slug' => 'linkmaker',
'type' => 'plugin',
'public_key' => 'pk_545b81b58f2ab6f5921fb17421fe3',
'is_premium' => false,
'has_addons' => false,
'has_paid_plans' => false,
'is_org_compliant' => true,
'menu' => array(
'slug' => 'linkmaker',
'first-path' => 'plugins.php',
'account' => false,
'support' => false,
),
) );
}
return $linkmaker_fs;
}
// Init Freemius.
linkmaker_fs();
// Signal that SDK was initiated.
do_action( 'linkmaker_fs_loaded' );
}
if (!defined('LINKMAKER_VERSION')) {
define('LINKMAKER_VERSION', '0.1.11');
}
// Enqueue the JavaScript and CSS files
function linkmaker_enqueue_scripts() {
wp_enqueue_script('linkmaker-js', plugin_dir_url(__FILE__) . 'linkmaker.js', array(), LINKMAKER_VERSION, true);
wp_enqueue_style('linkmaker-css', plugin_dir_url(__FILE__) . 'linkmaker.css', array(), LINKMAKER_VERSION);
}
add_action('wp_enqueue_scripts', 'linkmaker_enqueue_scripts');
?>