Genesis Title Toggle - Version 1.5

Version Description

  • Add HTML5 Support for Genesis 2.0
Download this release

Release Info

Developer billerickson
Plugin Icon 128x128 Genesis Title Toggle
Version 1.5
Comparing to
See all releases

Code changes from version 1.4 to 1.5

Files changed (2) hide show
  1. genesis-title-toggle.php +8 -5
  2. readme.txt +6 -3
genesis-title-toggle.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Genesis Title Toggle
4
  Plugin URI: http://www.billerickson.net/
5
  Description: Turn on/off page titles on a per page basis, and set sitewide defaults from Theme Settings. Must be using the Genesis theme.
6
- Version: 1.4
7
  Author: Bill Erickson
8
  Author URI: http://www.billerickson.net
9
  License: GPLv2
@@ -198,19 +198,22 @@ class BE_Title_Toggle {
198
  $override = get_post_meta( $post->ID, 'be_title_toggle_show', true );
199
 
200
  // If override is empty, get rid of that title
201
- if (empty( $override ) )
202
  remove_action( 'genesis_post_title', 'genesis_do_post_title' );
 
 
203
 
204
  // If titles are turned on by default, let's see if this specific one is turned off
205
  } else {
206
  $override = get_post_meta( $post->ID, 'be_title_toggle_hide', true );
207
 
208
  // If override has a value, the title's gotta go
209
- if ( !empty( $override ) )
210
  remove_action( 'genesis_post_title', 'genesis_do_post_title' );
 
 
211
  }
212
  }
213
  }
214
 
215
- new BE_Title_Toggle;
216
- ?>
3
  Plugin Name: Genesis Title Toggle
4
  Plugin URI: http://www.billerickson.net/
5
  Description: Turn on/off page titles on a per page basis, and set sitewide defaults from Theme Settings. Must be using the Genesis theme.
6
+ Version: 1.5
7
  Author: Bill Erickson
8
  Author URI: http://www.billerickson.net
9
  License: GPLv2
198
  $override = get_post_meta( $post->ID, 'be_title_toggle_show', true );
199
 
200
  // If override is empty, get rid of that title
201
+ if (empty( $override ) ) {
202
  remove_action( 'genesis_post_title', 'genesis_do_post_title' );
203
+ remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
204
+ }
205
 
206
  // If titles are turned on by default, let's see if this specific one is turned off
207
  } else {
208
  $override = get_post_meta( $post->ID, 'be_title_toggle_hide', true );
209
 
210
  // If override has a value, the title's gotta go
211
+ if ( !empty( $override ) ) {
212
  remove_action( 'genesis_post_title', 'genesis_do_post_title' );
213
+ remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
214
+ }
215
  }
216
  }
217
  }
218
 
219
+ new BE_Title_Toggle;
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: billerickson
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EDYM76U6BTE5L
4
  Tags: genesis, genesiswp, title,
5
  Requires at least: 3.0
6
- Tested up to: 3.5
7
- Stable tag: 1.4
8
 
9
  Turn on/off page titles on a per page basis, and set sitewide defaults from Theme Settings. Must be using the Genesis theme.
10
 
@@ -16,7 +16,7 @@ You can also set sitewide defaults. If you don't want page titles on any pages,
16
 
17
  Finally, if you're comfortable with code you can use the `be_title_toggle_post_types` filter to change the post types this applies to (it only applies to pages by default).
18
 
19
- [Support Forum](https://github.com/billerickson/Genesis-Title-Toggle/issues)
20
 
21
 
22
  == Installation ==
@@ -40,6 +40,9 @@ Finally, if you're comfortable with code you can use the `be_title_toggle_post_t
40
 
41
  == Changelog ==
42
 
 
 
 
43
  = 1.4 =
44
  * Updated to work with all StudioPress themes with post formats
45
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EDYM76U6BTE5L
4
  Tags: genesis, genesiswp, title,
5
  Requires at least: 3.0
6
+ Tested up to: 3.9
7
+ Stable tag: 1.5
8
 
9
  Turn on/off page titles on a per page basis, and set sitewide defaults from Theme Settings. Must be using the Genesis theme.
10
 
16
 
17
  Finally, if you're comfortable with code you can use the `be_title_toggle_post_types` filter to change the post types this applies to (it only applies to pages by default).
18
 
19
+ **No support will be provided by the developer**
20
 
21
 
22
  == Installation ==
40
 
41
  == Changelog ==
42
 
43
+ = 1.5 =
44
+ * Add HTML5 Support for Genesis 2.0
45
+
46
  = 1.4 =
47
  * Updated to work with all StudioPress themes with post formats
48