<?php $options = get_option('fivehundred_theme_settings'); if (!empty($options['home'])) { $project_id = $options['home']; if (class_exists('Deck')) { $new_hdeck = new Deck($project_id); if (method_exists($new_hdeck, 'hDeck')) { $hDeck = $new_hdeck->hDeck(); } else { $hDeck = the_project_hDeck($id); } $id = getPostbyProductID($project_id); //$hDeck = the_project_hDeck($id); $permalinks = get_option('permalink_structure'); $summary = the_project_summary($id); do_action('fh_hDeck_before'); $video = the_project_video($id); } } if (isset($hDeck)) { ?> <div id="ign-hDeck-wrapper"> <div id="ign-hdeck-wrapperbg"> <div id="ign-hDeck-header"> <div id="ign-hDeck-left"> <div class="video <?php echo !empty($video) ? 'hasvideo' : ''; ?> " style="background-image: url(<?php echo $summary->image_url;
<?php // This gets us the data we need for the featured section $options = get_option('fivehundred_featured'); if ($options) { $featured_proj = $options['project_id']; $featured_post = $options['post_id']; $summary = the_project_summary($featured_post); } do_action('fh_hDeck_before'); ?> <div class="featured-wrap"> <a href="<?php echo get_permalink($featured_post); ?> "> <div class="featured-image" style="background-image: url(<?php echo $summary->image_url; ?> )"> </div> </a> <div class="featured-info"> <div class="featured-border"> <h3><?php echo $summary->name; ?> </h3> <p><?php echo $summary->short_description; ?> </p>