File: /home/workshopbrain/public_html/statusplan.com/wp-content/themes/DDCM/tenant-space-negotiation.php
<!--
<h2 style="color:#000;padding-top:10px;padding-bottom:10px;text-align:center;width:100%;margin-bottom:5px;font-size:16pt;">Tenant Spaces:</h2>
-->
<?php
$args = array( 'post_type' => 'tenant-space', 'category_name' => 'Tenant Space', 'orderby' => 'title', 'order' => ASC, 'posts_per_page' => 300 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
//if (the_field('property_status') == 'available'){
//$prop_stat = 'Yes it is';
//} else { $prop_stat = 'No it is not'; }
$prop_stat2 = get_field('property_status');
if ( $prop_stat2 == 'available'){
$prop_stat = 'rgba(255, 0, 0, 0.1)';
} else if ( $prop_stat2 == 'negotiation'){
$prop_stat = 'rgba(0, 255, 255, 0.1)';
} else if ( $prop_stat2 == 'prospect'){
$prop_stat = 'rgba(0, 255, 255, 0.1)';
} else if ( $prop_stat2 == 'loi'){
$prop_stat = 'rgba(255, 102, 0, 0.1)';
} else if ( $prop_stat2 == 'rec'){
$prop_stat = 'rgba(235, 30, 123, 0.1)';
} else {
$prop_stat = 'rgba(0, 255, 0, 0.1)';
}
$originalDate = get_field('lease_end_date');
$newDate = date("m-d-Y", strtotime($originalDate));
if ( $prop_stat2 == 'available'){
$statusText = '<p class="availableHeader"><span class="header-icons fa fa-check"></span>Available as of ';
}
else if ( $prop_stat2 == 'prospect'){
$statusText = '<p class="prospectHeader"><span class="header-icons fa fa-check"></span>Prospect as of ';
}
else if ( $prop_stat2 == 'loi'){
$statusText = '<p class="loiHeader"><span class="header-icons fa fa-check"></span>LOI as of ';
}
else if ( $prop_stat2 == 'rec'){
$statusText = '<p class="recHeader"><span class="header-icons fa fa-check"></span>Real Estate Committee as of ';
}
else if ( $prop_stat2 == 'negotiation'){
$statusText = '<p class="negotiationHeader"><span class="header-icons fa fa-check"></span>Lease Negotiation as of ';
}
else { $statusText = '<p class="leasedHeader"><span class="header-icons fa fa-check"></span>Currently leased until '; }
//echo '<table style="background-color:';
//echo $prop_stat;
//echo ';width:100%;margin-left:auto;margin-right:auto;margin-bottom:10px;padding-bottom:10px;"><tr><td>';
if ( $prop_stat2 == 'negotiation'){
echo '<table style="width:100%;margin-left:auto;margin-right:auto;margin-bottom:10px;padding-bottom:10px;"><tr><td>';
echo '<h1 class="custom-post-title" style="margin-left:10px;margin-top:10px;">';
echo '<a href="';
the_permalink();
echo '">';
the_title();
echo '</a>';
//echo ' - See more infomation on this Tenant Space!';
echo '</h1>';
echo '<a href="';
the_permalink();
echo '">';
echo '<img src="';
the_field('suite_thumbnail');
echo '" style="width:215px;float:left;padding-left:20px;padding-right:20px;padding-bottom:20px;" />';
echo '</a>';
echo $statusText;
echo ' ';
echo $newDate;
echo '</p>';
//echo '<p style="clear:both;"></p>';
echo '<p style="float:left;margin-top:5px;padding-top:5px;">';
echo 'Tenant: ';
the_field('tenant_name');
echo '<br>';
echo 'Suite Number/Address: ';
the_field('suite_number_address');
echo '<br>';
echo 'Gross Sq Ft: ';
the_field('gross_sf');
echo '<br>';
echo 'Net Sq Ft: ';
the_field('net_sf');
echo '<br>';
echo '<a href="';
the_permalink();
echo '">';
echo 'View more details, pictures and 360 panoramas here.';
echo '</a>';
echo '</p>';
echo '<br>';
//the_category();
echo '<br>';
echo '</td></tr></table>';
//echo '<hr>';
}
endwhile;
?>