New default header image, and block IDs align with Devsite
authorLaury GvR <laury@gaslightmedia.com>
Thu, 11 Oct 2018 16:05:51 +0000 (12:05 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 11 Oct 2018 16:05:51 +0000 (12:05 -0400)
assets/default-header.jpg [new file with mode: 0644]
assets/default-header.png [deleted file]
functions.php

diff --git a/assets/default-header.jpg b/assets/default-header.jpg
new file mode 100644 (file)
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 (file)
index 2c97a5e..0000000
Binary files a/assets/default-header.png and /dev/null differ
index 8baa803..8a1ca73 100644 (file)
@@ -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 '</div>';
@@ -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%;'