From: Laury GvR Date: Thu, 11 Oct 2018 16:05:51 +0000 (-0400) Subject: New default header image, and block IDs align with Devsite X-Git-Tag: v1.0.0^2~26 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=c2df94480a1b1a13b8421a77589433452f2c1af8;p=WP-Themes%2Flakesideclub.git New default header image, and block IDs align with Devsite --- diff --git a/assets/default-header.jpg b/assets/default-header.jpg new file mode 100644 index 0000000..64ab24e Binary files /dev/null and b/assets/default-header.jpg differ diff --git a/assets/default-header.png b/assets/default-header.png deleted file mode 100644 index 2c97a5e..0000000 Binary files a/assets/default-header.png and /dev/null differ diff --git a/functions.php b/functions.php index 8baa803..8a1ca73 100644 --- a/functions.php +++ b/functions.php @@ -2,9 +2,9 @@ require_once 'lib/menu-walker.php'; require_once 'lib/navigation.php'; -define('OWNERS_FRONTPAGE_ID', 18); // A: 469, L: 18, dev: 22 -define('OWNERS_FRONTPAGE_BLOCKS_ID', 35); // A: , L: 35, dev: 29 -define('MAIN_FRONTPAGE_BLOCKS_ID', 34); // A: , L: 34, dev: 28 +define('OWNERS_FRONTPAGE_ID', 22); // A: 469, L: 18, dev: 22 +define('OWNERS_FRONTPAGE_BLOCKS_ID', 29); // A: , L: 35, dev: 29 +define('MAIN_FRONTPAGE_BLOCKS_ID', 28); // A: , L: 34, dev: 28 $ancestorId = null; $includePages = array(); $frontPageId = get_option('page_on_front'); @@ -85,7 +85,7 @@ function glm_get_header2($memberID = false) { echo ' style="background-image: url('.$image_data.');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; } else if (!is_page('member-detail')) { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.png);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 420px; "'; + echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg?v=1.1);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 420px; "'; } echo '>'; echo ''; @@ -98,7 +98,7 @@ function glm_get_header2($memberID = false) { /* Header for posts*/ function glm_get_header($memberID = false) { global $post; - $default_image_path = get_template_directory_uri().'/assets/default-header.png?v=1.0'; + $default_image_path = get_template_directory_uri().'/assets/default-header.jpg?v=1.1'; //$default_member_image_path = $default_image_path; $featured_classes[] = "featured-image"; $default_background_styles = 'height:0;max-height: 420px;padding:0;padding-bottom:20%;'