PluginProbe
Genesis Simple Share / trunk
Genesis Simple Share vtrunk
1.2.6 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5
genesis-simple-share / plugin.php

plugin.php in Genesis Simple Share trunk, at plugin.php

72 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Genesis Simple Share
4 * Plugin URI: https://wordpress.org/plugins/genesis-simple-share/
5 * Description: A simple sharing plugin using the Share script.
6 * Version: 1.2.6
7 * Author: OsomPress
8 * Author URI: https://www.osompress.com
9 *
10 * Text Domain: genesis-simple-share
11 * Domain Path /languages/
12 *
13 * @package genesis-simple-share
14 */
15
16 if (!defined("ABSPATH")) {
17 die(
18 esc_html__(
19 "Sorry, you are not allowed to access this page directly.",
20 "genesis-simple-share",
21 )
22 );
23 }
24
25 define("GENESIS_SIMPLE_SHARE_VERSION", "1.2.6");
26 define("GENESIS_SIMPLE_SHARE_PATH", plugin_dir_path(__FILE__));
27 define("GENESIS_SIMPLE_SHARE_INC", plugin_dir_path(__FILE__) . "/includes/");
28 define("GENESIS_SIMPLE_SHARE_URL", plugins_url("", __FILE__));
29
30 add_action("init", "genesis_simple_share_translations_init", 1);
31 add_action("init", "genesis_simple_share_init", 99);
32 /**
33 * Loads plugin required files.
34 *
35 * @since 0.1.0
36 * changed on version 1.2.4
37 * @uses GENESIS_SIMPLE_SHARE_INC
38 */
39 function genesis_simple_share_init()
40 {
41 // Genesis Simple Share depends on Genesis framework functions.
42 if (!function_exists("genesis_get_option")) {
43 return;
44 }
45
46 if (is_admin() && class_exists("Genesis_Admin_Boxes")) {
47 require_once GENESIS_SIMPLE_SHARE_INC .
48 "class-genesis-simple-share-boxes.php";
49 require_once GENESIS_SIMPLE_SHARE_INC .
50 "class-genesis-simple-share-entry-meta.php";
51 } else {
52 require_once GENESIS_SIMPLE_SHARE_INC .
53 "class-genesis-simple-share-front-end.php";
54 }
55 }
56
57 /**
58 * Loads plugin text domain. Uses init instead of genesis_init to avoid loading too early.
59 *
60 * @since 0.1.0
61 * changed on version 1.2.4
62 * @uses GENESIS_SIMPLE_SHARE_PATH
63 */
64 function genesis_simple_share_translations_init()
65 {
66 load_plugin_textdomain(
67 "genesis-simple-share",
68 false,
69 dirname(plugin_basename(__FILE__)) . "/languages",
70 );
71 }
72