adding new default featured image for event detail page.
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 14 Jan 2019 16:40:28 +0000 (11:40 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 14 Jan 2019 16:40:28 +0000 (11:40 -0500)
assets/event-detail.png [new file with mode: 0644]
functions.php
parts/header-meta.php
style.css

diff --git a/assets/event-detail.png b/assets/event-detail.png
new file mode 100644 (file)
index 0000000..d6072b9
Binary files /dev/null and b/assets/event-detail.png differ
index f142d43..2ae77a0 100644 (file)
@@ -84,6 +84,9 @@ function glm_get_header() {
     if (has_post_thumbnail() && is_post_type('page')) {
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
             echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden; "';
+    }else if( is_page(1130) ){
+            echo ' style="background-image: url('.get_template_directory_uri().'/assets/event-detail.png);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden;"';
+            echo ' class="no-featured"';
     } else if(is_post_type('post') ){
             echo ' style="background-image: url('.get_template_directory_uri().'/assets/slideshow-exterior-night.png);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden;"';
             echo ' class="no-featured"';
index 2635354..987b7be 100644 (file)
@@ -2,7 +2,7 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.43">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.44">
     <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico">
     <link href="https://fonts.googleapis.com/css?family=Montserrat:200,200i,300,300i,400,700" rel="stylesheet">
 <!--    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>-->
index 5292822..10906be 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: GreatLakesCenterfortheArts
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for GreatLakesCenterfortheArts
-Version: 1.0.43
+Version: 1.0.44
 */