Version Description
- Load textdomain
- Add plugin header i18n
Download this release
Release Info
Developer | nathanrice |
Plugin | Genesis Simple Hooks |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- package.json +16 -16
- plugin.php +18 -7
- readme.txt +5 -1
package.json
CHANGED
@@ -7,21 +7,21 @@
|
|
7 |
},
|
8 |
"dependencies": {},
|
9 |
"devDependencies": {
|
10 |
-
"grunt": "
|
11 |
-
"grunt-autoprefixer": "
|
12 |
-
"grunt-checktextdomain": "
|
13 |
-
"grunt-contrib-cssmin": "
|
14 |
-
"grunt-contrib-imagemin": "
|
15 |
-
"grunt-contrib-jshint": "
|
16 |
-
"grunt-contrib-uglify": "
|
17 |
-
"grunt-contrib-watch": "
|
18 |
-
"grunt-csscomb": "
|
19 |
-
"grunt-jsbeautifier": "
|
20 |
-
"grunt-jsvalidate": "
|
21 |
-
"grunt-phplint": "
|
22 |
-
"grunt-styledocco": "
|
23 |
-
"grunt-wp-i18n": "
|
24 |
-
"load-grunt-tasks": "
|
25 |
},
|
26 |
"plugin": {
|
27 |
"name": "Genesis Simple Hooks",
|
@@ -29,7 +29,7 @@
|
|
29 |
"description": "Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.",
|
30 |
"author": "StudioPress",
|
31 |
"authoruri": "http://www.studiopress.com/",
|
32 |
-
"version": "2.1.
|
33 |
"license": "GPL-2.0+",
|
34 |
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
"textdomain": "genesis-simple-hooks"
|
7 |
},
|
8 |
"dependencies": {},
|
9 |
"devDependencies": {
|
10 |
+
"grunt": "*",
|
11 |
+
"grunt-autoprefixer": "*",
|
12 |
+
"grunt-checktextdomain": "*",
|
13 |
+
"grunt-contrib-cssmin": "*",
|
14 |
+
"grunt-contrib-imagemin": "*",
|
15 |
+
"grunt-contrib-jshint": "*",
|
16 |
+
"grunt-contrib-uglify": "*",
|
17 |
+
"grunt-contrib-watch": "*",
|
18 |
+
"grunt-csscomb": "*",
|
19 |
+
"grunt-jsbeautifier": "*",
|
20 |
+
"grunt-jsvalidate": "*",
|
21 |
+
"grunt-phplint": "*",
|
22 |
+
"grunt-styledocco": "*",
|
23 |
+
"grunt-wp-i18n": "*",
|
24 |
+
"load-grunt-tasks": "*"
|
25 |
},
|
26 |
"plugin": {
|
27 |
"name": "Genesis Simple Hooks",
|
29 |
"description": "Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.",
|
30 |
"author": "StudioPress",
|
31 |
"authoruri": "http://www.studiopress.com/",
|
32 |
+
"version": "2.1.2",
|
33 |
"license": "GPL-2.0+",
|
34 |
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
"textdomain": "genesis-simple-hooks"
|
plugin.php
CHANGED
@@ -2,13 +2,16 @@
|
|
2 |
/*
|
3 |
Plugin Name: Genesis Simple Hooks
|
4 |
Plugin URI: http://www.studiopress.com/plugins/simple-hooks
|
5 |
-
|
6 |
Description: Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.
|
7 |
-
|
8 |
Author: Nathan Rice
|
9 |
Author URI: http://www.nathanrice.net/
|
10 |
|
11 |
-
Version: 2.1.
|
|
|
|
|
|
|
12 |
|
13 |
License: GNU General Public License v2.0 (or later)
|
14 |
License URI: http://www.opensource.org/licenses/gpl-license.php
|
@@ -40,10 +43,18 @@ function simplehooks_activation() {
|
|
40 |
* @since 1.8.0.2
|
41 |
*/
|
42 |
function simplehooks_deactivate( $genesis_version = '2.1.0', $wp_version = '3.9.2' ) {
|
43 |
-
|
44 |
deactivate_plugins( plugin_basename( __FILE__ ) );
|
45 |
wp_die( sprintf( __( 'Sorry, you cannot run Simple Hooks without WordPress %s and <a href="%s">Genesis %s</a>, or greater.', 'genesis-simple-hooks' ), $wp_version, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa', $genesis_version ) );
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
add_action( 'genesis_init', 'simplehooks_init', 20 );
|
@@ -57,10 +68,10 @@ function simplehooks_init() {
|
|
57 |
//* Admin Menu
|
58 |
if ( is_admin() )
|
59 |
require_once( SIMPLEHOOKS_PLUGIN_DIR . '/admin.php' );
|
60 |
-
|
61 |
//* Helper functions
|
62 |
require_once( SIMPLEHOOKS_PLUGIN_DIR . '/functions.php' );
|
63 |
-
|
64 |
}
|
65 |
|
66 |
add_action( 'genesis_init', 'simplehooks_execute_hooks', 20 );
|
2 |
/*
|
3 |
Plugin Name: Genesis Simple Hooks
|
4 |
Plugin URI: http://www.studiopress.com/plugins/simple-hooks
|
5 |
+
|
6 |
Description: Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.
|
7 |
+
|
8 |
Author: Nathan Rice
|
9 |
Author URI: http://www.nathanrice.net/
|
10 |
|
11 |
+
Version: 2.1.2
|
12 |
+
|
13 |
+
Text Domain: genesis-simple-hooks
|
14 |
+
Domain Path: /languages
|
15 |
|
16 |
License: GNU General Public License v2.0 (or later)
|
17 |
License URI: http://www.opensource.org/licenses/gpl-license.php
|
43 |
* @since 1.8.0.2
|
44 |
*/
|
45 |
function simplehooks_deactivate( $genesis_version = '2.1.0', $wp_version = '3.9.2' ) {
|
46 |
+
|
47 |
deactivate_plugins( plugin_basename( __FILE__ ) );
|
48 |
wp_die( sprintf( __( 'Sorry, you cannot run Simple Hooks without WordPress %s and <a href="%s">Genesis %s</a>, or greater.', 'genesis-simple-hooks' ), $wp_version, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa', $genesis_version ) );
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
add_action( 'plugins_loaded', 'simplehooks_load_textdomain' );
|
53 |
+
/**
|
54 |
+
* Load the plugin textdomain
|
55 |
+
*/
|
56 |
+
function simplehooks_load_textdomain() {
|
57 |
+
load_plugin_textdomain( 'genesis-simple-hooks', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
|
58 |
}
|
59 |
|
60 |
add_action( 'genesis_init', 'simplehooks_init', 20 );
|
68 |
//* Admin Menu
|
69 |
if ( is_admin() )
|
70 |
require_once( SIMPLEHOOKS_PLUGIN_DIR . '/admin.php' );
|
71 |
+
|
72 |
//* Helper functions
|
73 |
require_once( SIMPLEHOOKS_PLUGIN_DIR . '/functions.php' );
|
74 |
+
|
75 |
}
|
76 |
|
77 |
add_action( 'genesis_init', 'simplehooks_execute_hooks', 20 );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: hooks, genesis, genesiswp, studiopress
|
5 |
Requires at least: 3.9.2
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 2.1.
|
8 |
|
9 |
This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hooks throughout the Genesis Theme Framework, from StudioPress.
|
10 |
|
@@ -72,6 +72,10 @@ The most common request from Genesis users is how to properly modify their foote
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
|
|
75 |
= 2.1.1 =
|
76 |
* Generate POT file.
|
77 |
|
4 |
Tags: hooks, genesis, genesiswp, studiopress
|
5 |
Requires at least: 3.9.2
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 2.1.2
|
8 |
|
9 |
This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hooks throughout the Genesis Theme Framework, from StudioPress.
|
10 |
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 2.1.2 =
|
76 |
+
* Load textdomain
|
77 |
+
* Add plugin header i18n
|
78 |
+
|
79 |
= 2.1.1 =
|
80 |
* Generate POT file.
|
81 |
|