Fixed trestle_post_info_meta bug causing posts to change post type in the admin. Added styles for Types & Views and logo.

This commit is contained in:
MickeyKay
2014-06-23 09:56:06 -07:00
parent 00a156379b
commit 82babdee13
2 changed files with 31 additions and 5 deletions
+5 -5
View File
@@ -328,7 +328,7 @@ function trestle_update_revisions_number( $num ) {
* @global object $post The current $post object.
*/
function trestle_post_info_meta() {
if( in_the_loop() && genesis_get_option( 'trestle_manual_post_info_meta' ) ) {
if ( ! is_admin() && in_the_loop() && genesis_get_option( 'trestle_manual_post_info_meta' ) ) {
global $post;
@@ -353,11 +353,11 @@ function trestle_post_info_meta() {
$single_meta_option = 'trestle_post_meta_' . $post_type . '_single';
// Post Info
if( genesis_get_option( $single_info_option ) )
if ( genesis_get_option( $single_info_option ) )
add_action( 'genesis_entry_header', 'genesis_post_info', 12 );
// Post Meta
if( genesis_get_option( $single_meta_option ) )
if ( genesis_get_option( $single_meta_option ) )
add_action( 'genesis_entry_footer', 'genesis_post_meta' );
}
@@ -367,11 +367,11 @@ function trestle_post_info_meta() {
$archive_meta_option = 'trestle_post_meta_' . $post_type . '_archive';
// Post Info
if( genesis_get_option( $archive_info_option ) )
if ( genesis_get_option( $archive_info_option ) )
add_action( 'genesis_entry_header', 'genesis_post_info', 12 );
// Post Meta
if( genesis_get_option( $archive_meta_option ) )
if ( genesis_get_option( $archive_meta_option ) )
add_action( 'genesis_entry_footer', 'genesis_post_meta' );
}
+26
View File
@@ -44,8 +44,10 @@
- Simple Section Navigation
- Events Manager
- Simple Newsletter Signup
- WP Types & Views
- Site Header
- Title Area
- Logo
- Widget Area
- Site Navigation
- General Navigation
@@ -1234,6 +1236,30 @@ img#wpstats {
text-decoration: none;
}
/* WP Types & Views
--------------------------------------------- */
.wpv-sorting-indicator {
display: none !important;
}
th a.wpv-header-no-sort:after,
th a.wpv-header-asc:after,
th a.wpv-header-desc:after {
content: "\f0dd"; /* \f0a9 = circle arrow, \f061 = arrow, \f178 = long arrow, \f105 = angle, \f101 = double angle, \f0da = caret */
position: relative;
top: -0.4em;
display: inline-block;
margin-left: 0.5em;
font-family: FontAwesome;
font-size: 0.7em;
}
th a.wpv-header-desc:after {
content: "\f0de";
top: auto;
}
/*
Site Header