" class="main-container <?php echo $classes; ?> "<?php echo $attributes; ?> > <article class="contentBlock"<?php echo $content_attributes; ?> > <?php if (!empty($node->field_content_image)) { ?> <?php $content_image_url = mediamanager_field_url($node->field_content_image, 'Content Image'); $content_image_info = _mediamanager_media_info($node->field_content_image['und'][0]['media_id']); ?> <figure class="cob-main-content_image"> <img src="<?php echo $content_image_url; ?> " alt="<?php echo $content_image_info->title; ?> " /> <?php if (!empty($content_image_info->description)) { ?> <figcaption><?php echo $content_image_info->description;
*/ include __DIR__ . '/partials/siteHeader.inc'; $pageView = views_get_page_view(); $modifier_class = ''; if (isset($node) && $node->type == 'news_release') { $modifier_class = 'mod-pressRelease'; } if (isset($node) && (!empty($node->field_cover_image) || !empty($node->field_page_header_image) || !empty($pageView) || $node->type == 'news_release')) { echo '<style type="text/css">'; if (!empty($node->field_cover_image)) { $cover = mediamanager_field_url($node->field_cover_image, 'Cover'); echo "\n .cob-pageHeader { background-image:url('{$cover}'); }\n "; } if (!empty($node->field_page_header_image)) { $a1 = mediamanager_field_url($node->field_page_header_image, 'Page Header'); $a2 = mediamanager_field_url($node->field_page_header_image, 'Page Header@2'); echo "\n .cob-pageHeader-container:before { background-image:url('{$a1}'); }\n @media screen and (min-resolution: 2dppx) {\n .cob-pageHeader-container:before { background-image:url('{$a2}'); }\n }\n "; } if (!empty($pageView) && $pageView->human_name == 'Newsroom' || !empty($node) && $node->type == 'news_release') { $variant = 'room'; $themePath = $base_path . drupal_get_path('theme', 'cob'); if (!empty($node->created)) { $old = strtotime('-30 days'); if ($node->created < $old) { $variant = 'Archive'; } } $cover = "{$themePath}/css/news{$variant}-banner.jpg"; $lowRes = "{$themePath}/css/news{$variant}-header-image@1x.png"; $hiRes = "{$themePath}/css/news{$variant}-header-image@2x.png"; echo "\n .cob-pageHeader { background-image:url('{$cover}'); }\n .cob-pageHeader-container:before { background-image:url('{$lowRes}'); }\n @media screen and (min-resolution: 2dppx) {\n .cob-pageHeader-container:before { background-image:url('{$hiRes}'); }\n }\n ";