From 82babdee1302eb9e707c783888774ee12e3277b7 Mon Sep 17 00:00:00 2001 From: MickeyKay Date: Mon, 23 Jun 2014 09:56:06 -0700 Subject: [PATCH] Fixed trestle_post_info_meta bug causing posts to change post type in the admin. Added styles for Types & Views and logo. --- lib/functions/theme-functions.php | 10 +++++----- style.css | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/lib/functions/theme-functions.php b/lib/functions/theme-functions.php index 31e3d5f..faf5b52 100644 --- a/lib/functions/theme-functions.php +++ b/lib/functions/theme-functions.php @@ -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' ); } diff --git a/style.css b/style.css index c363444..59244ca 100644 --- a/style.css +++ b/style.css @@ -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