File: /home/workshopbrain/public_html/statusplan.com/wp-content/themes/DDCM/single.php
<?php
get_header();
$show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true );
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
?>
<div id="main-content">
<div class="container">
<div id="content-area" class="clearfix">
<div id="left-area">
<?php while ( have_posts() ) : the_post(); ?>
<?php if (et_get_option('divi_integration_single_top') <> '' && et_get_option('divi_integrate_singletop_enable') == 'on') echo(et_get_option('divi_integration_single_top')); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>>
<?php if ( ( 'off' !== $show_default_title && $is_page_builder_used ) || ! $is_page_builder_used ) { ?>
<div class="et_post_meta_wrapper">
<h1><?php the_title(); ?></h1>
<!-- work.shop additions -->
<div class="right" style="float:right;">
<!-- Jeremy Additions -->
<?php if( get_field('brief_description') ): ?>
<a href="http://tld.workshop-mg.com/wade-park/leasing-space/" class="back-button">← Back</a>
<?php endif; ?>
<!-- Jeremy Additions -->
<!-- Jeremy Additions -->
<?php if( get_field('tenant_name') ): ?>
<a href="http://tld.workshop-mg.com/wade-park/tenant-space/" class="back-button">← Back</a>
<?php endif; ?>
<!-- Jeremy Additions -->
</div>
<!-- work.shop additions -->
<?php
if ( ! post_password_required() ) :
et_divi_post_meta();
$thumb = '';
$width = (int) apply_filters( 'et_pb_index_blog_image_width', 1080 );
$height = (int) apply_filters( 'et_pb_index_blog_image_height', 675 );
$classtext = 'et_featured_image';
$titletext = get_the_title();
$thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, false, 'Blogimage' );
$thumb = $thumbnail["thumb"];
$post_format = et_pb_post_format();
if ( 'video' === $post_format && false !== ( $first_video = et_get_first_video() ) ) {
printf(
'<div class="et_main_video_container">
%1$s
</div>',
$first_video
);
} else if ( ! in_array( $post_format, array( 'gallery', 'link', 'quote' ) ) && 'on' === et_get_option( 'divi_thumbnails', 'on' ) && '' !== $thumb ) {
print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height );
} else if ( 'gallery' === $post_format ) {
et_gallery_images();
}
?>
<?php
$text_color_class = et_divi_get_post_text_color();
$inline_style = et_divi_get_post_bg_inline_style();
switch ( $post_format ) {
case 'audio' :
printf(
'<div class="et_audio_content%1$s"%2$s>
%3$s
</div>',
esc_attr( $text_color_class ),
$inline_style,
et_pb_get_audio_player()
);
break;
case 'quote' :
printf(
'<div class="et_quote_content%2$s"%3$s>
%1$s
</div> <!-- .et_quote_content -->',
et_get_blockquote_in_content(),
esc_attr( $text_color_class ),
$inline_style
);
break;
case 'link' :
printf(
'<div class="et_link_content%3$s"%4$s>
<a href="%1$s" class="et_link_main_url">%2$s</a>
</div> <!-- .et_link_content -->',
esc_url( et_get_link_url() ),
esc_html( et_get_link_url() ),
esc_attr( $text_color_class ),
$inline_style
);
break;
}
endif;
?>
</div> <!-- .et_post_meta_wrapper -->
<?php } ?>
<div class="entry-content">
<!-- work.shop additions -->
<?php if( get_field('brief_description') ): ?>
<table width="100%" border="0">
<tr>
<td>
<p><img src="<?php the_field('suite_thumbnail'); ?>" style="float:left;padding:10px" width="300px" /></p>
<p><b>Brief Description:</b><br><?php the_field('brief_description'); ?></p>
<p><b>Square Footage:</b> <?php the_field('square_footage'); ?></p>
<?php
if ( in_category( 'Upper Level' )) {
print '<p><b>This is available on the Upper Level</b></p>';
?>
<p><a href="#" onclick="window.open('http://tld.workshop-mg.com/wade-park/wp-content/uploads/sites/2/2015/10/tld-wade-park-lease-plan-101.jpg', '_popup', 'width=475,height=664,left=100,screenX=100,top=100,screenY=100,location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1'); return false;">View Lease Plan to see where <?php the_title(); ?> is located.</a></p>
<?php
} else {
print '<p><b>This is available on the Lower Level</b></p>';
?>
<p><a href="#" onclick="window.open('http://tld.workshop-mg.com/wade-park/wp-content/uploads/sites/2/2015/10/tld-wade-park-lease-plan-101.jpg', '_popup', 'width=475,height=664,left=100,screenX=100,top=100,screenY=100,location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1'); return false;">View Lease Plan to see where <?php the_title(); ?> is located.</a></p>
<?php
}
?>
<p>Contact: Michael Greeby - <a href="mailto:michael@workshop-mg.com">michael@workshop-mg.com</a>
For More Details.</p>
</td>
</tr>
</table>
<h3>Please swipe left or right on panorama images below to see additional views</h3>
<?php endif; ?>
<!-- Jeremy Additions -->
<?php if( get_field('tenant_name') ): ?>
<?php
$originalDate = get_field('lease_end_date');
$newDate = date("m-d-Y", strtotime($originalDate));
?>
<table width="100%" border="0">
<tr>
<td>
<p class="bigger-tabs"><b>Info:</b></p>
<hr>
<a href="<?php the_field('suite_thumbnail'); ?>" rel="lightbox">
<img src="<?php the_field('suite_thumbnail'); ?>" style="float:left;width:300px;margin-right:20px;margin-bottom:20px;" alt="" />
</a>
<p class="tenantP"><b>Status:</b> <?php echo 'Currently '; the_field('property_status'); ?></p>
<p class="tenantP"><b>End Of Agreement:</b> <?php echo $newDate; ?></p>
<p class="tenantP"><b>Tenant Name:</b> <?php the_field('tenant_name'); ?></p>
<p class="tenantP"><b>Suite Number / Address:</b> <?php the_field('suite_number_address'); ?></p>
<p class="tenantP"><b>Gross SF:</b> <?php the_field('gross_sf'); ?></p>
<p class="tenantP"><b>Net SF:</b> <?php the_field('net_sf'); ?></p>
<div style="clear:both;"></div>
<p class="bigger-tabs">ARCHITECTURE:</b></p>
<hr>
<p class="tenantP"><b>Demising Wall:</b> <?php the_field('demising_wall'); ?></p>
<p class="tenantP"><b>Floor:</b> <?php the_field('floor'); ?></p>
<p class="tenantP"><b>Storefront:</b> <?php the_field('storefront'); ?></p>
<p class="tenantP"><b>Finished Ceiling:</b> <?php the_field('finished_ceiling'); ?></p>
<p class="tenantP"><b>Rear Service Door:</b> <?php the_field('rear_service_door'); ?></p>
<p class="bigger-tabs"><b>HVAC:</b></p>
<hr>
<p class="tenantP"><b>System Type:</b> <?php the_field('system_type'); ?></p>
<p class="tenantP"><b>Quantity:</b> <?php the_field('quantity'); ?></p>
<p class="tenantP"><b>RTU Tonnage:</b> <?php the_field('rtu_tonnage'); ?></p>
<p class="tenantP"><b>Unit Brand:</b> <?php the_field('unit_brand'); ?></p>
<p class="tenantP"><b>Unit Voltage:</b> <?php the_field('unit_voltage'); ?></p>
<p class="tenantP"><b>VAV Size:</b> <?php the_field('vav_size'); ?></p>
<p class="tenantP"><b>Pipe System:</b> <?php the_field('pipe_system'); ?></p>
<p class="bigger-tabs"><b>Electrical:</b></p>
<hr>
<p class="tenantP"><b>Voltage:</b> <?php the_field('voltage'); ?></p>
<p class="tenantP"><b>Main Amperage:</b> <?php the_field('amperage'); ?></p>
<p class="tenantP"><b>Transformer:</b> <?php the_field('transformer'); ?></p>
<p class="tenantP"><b>Sub-panel Amperage:</b> <?php the_field('sub-panel_amperage'); ?></p>
<p class="tenantP"><b>Conduit Quantity:</b> <?php the_field('conduit_quantity'); ?></p>
<p class="tenantP"><b>Conduit Size:</b> <?php the_field('electric_conduit_size'); ?></p>
<p class="tenantP"><b>Electric Meter Number:</b> <?php the_field('electric_meter_number'); ?></p>
<p class="bigger-tabs"><b>Telephone:</b></p>
<hr>
<p class="tenantP"><b>Conduit Size:</b> <?php the_field('telephone_conduit_size'); ?></p>
<p class="bigger-tabs"><b>Plumbing:</b></p>
<hr>
<p class="tenantP"><b>Sanitary Size:</b> <?php the_field('sanitary_size'); ?></p>
<p class="tenantP"><b>Sanitary Type:</b> <?php the_field('sanitary_type'); ?></p>
<p class="tenantP"><b>Vent Size:</b> <?php the_field('vent_size'); ?></p>
<p class="tenantP"><b>Water Size:</b> <?php the_field('water_size'); ?></p>
<p class="tenantP"><b>Water Meter Number:</b> <?php the_field('water_meter_number'); ?></p>
<p class="tenantP"><b>Sub-meter Number:</b> <?php the_field('sub-meter_number'); ?></p>
<p class="tenantP"><b>Gas:</b> <?php the_field('gas'); ?></p>
<p class="tenantP"><b>Grease:</b> <?php the_field('grease'); ?></p>
<p class="bigger-tabs"><b>Fire Protection:</b></p>
<hr>
<p class="tenantP"><b>Sprinkler:</b> <?php the_field('sprinkler'); ?></p>
</td>
</tr>
</table>
<!--<h3>Please swipe left or right on panorama images below to see additional views</h3>-->
<?php endif; ?>
<!-- Jeremy Additions -->
<!-- work.shop additions -->
<?php
the_content();
wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'Divi' ), 'after' => '</div>' ) );
?>
</div> <!-- .entry-content -->
<div class="et_post_meta_wrapper">
<?php
if ( et_get_option('divi_468_enable') == 'on' ){
echo '<div class="et-single-post-ad">';
if ( et_get_option('divi_468_adsense') <> '' ) echo( et_get_option('divi_468_adsense') );
else { ?>
<a href="<?php echo esc_url(et_get_option('divi_468_url')); ?>"><img src="<?php echo esc_attr(et_get_option('divi_468_image')); ?>" alt="468" class="foursixeight" /></a>
<?php }
echo '</div> <!-- .et-single-post-ad -->';
}
?>
<?php
if ( ( comments_open() || get_comments_number() ) && 'on' == et_get_option( 'divi_show_postcomments', 'on' ) )
comments_template( '', true );
?>
</div> <!-- .et_post_meta_wrapper -->
</article> <!-- .et_pb_post -->
<?php if (et_get_option('divi_integration_single_bottom') <> '' && et_get_option('divi_integrate_singlebottom_enable') == 'on') echo(et_get_option('divi_integration_single_bottom')); ?>
<?php endwhile; ?>
</div> <!-- #left-area -->
<?php get_sidebar(); ?>
</div> <!-- #content-area -->
</div> <!-- .container -->
</div> <!-- #main-content -->
<?php get_footer(); ?>