<?php
$cache_data = json_decode( $this->property->getCache_property() );
if ( !empty( $cache_data ) && !$cache_data[ 0 ]->Error ) :
$property_data = $cache_data[ 0 ]->PropertyData;
endif;
// Resident Portal
$resident_portal = $this->property->getCache_resident_portal();
//Nav tabs
// $tab_link = null;
// if( $this->details ) {
// $tab_link = $this->path( 'Properties S_C_N_D', [
// 'state' => $this->state,
// 'city' => $this->city,
// 'name' => $this->name,
// 'details' => $this->details
// ]);
// } else {
// $tab_link = $this->path( 'Properties S_C_N', [
// 'state' => $this->state,
// 'city' => $this->city,
// 'name' => $this->name
// ]);
// }
$tab_link_base = $this->path( 'Properties S_C_N', [
'state' => $this->state,
'city' => $this->city,
'name' => $this->name
]);
?>
<style type="text/css">
@media (min-width: 0em) {
#theme-root .property-tabbedcontent {
background-color: #f8f8f8;
}
#theme-root .property-tabbedcontent .tabs-content-wrapper {
background: #fff;
}
#theme-root .property-tabbedcontent .tabs-content {
border: 0;
border-top: 0;
background: transparent;
-webkit-transition: all .5s ease;
transition: all .5s ease;
}
#theme-root .property-tabbedcontent .general-info {
padding: 2rem 1rem;
}
#theme-root .property-tabbedcontent .general-info p {
color: #000;
font-family: 'BrandonTextWeb-Bold', sans-serif;
font-size: 16px;
line-height: normal;
}
#theme-root .property-tabbedcontent .general-info p.phone > a {
color: inherit;
}
#theme-root .property-tabbedcontent .general-area {
text-align: center;
margin-bottom: 1rem;
}
#theme-root .property-tabbedcontent .street-address {
margin-bottom: 0;
}
#theme-root .property-tabbedcontent .vertical.tabs {
border: none;
}
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title {
border-top: 2px solid #fff;
}
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title:last-of-type {
border-bottom: 2px solid #fff;
}
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title,
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title a {
background-color: #e0e0e0;
font-family: 'BrandonTextWeb-Bold', sans-serif;
color: #000;
font-size: 20px;
line-height: 26px;
width: 100%;
}
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title.is-active,
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title.is-active a {
background-color: #333232;
color: #fff;
border: none;
}
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title.is-active + .tabs-title:not(:last-of-type) {
border: none;
}
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title.is-active + .tabs-title:last-of-type {
border-top: none;
}
#theme-root .property-tabbedcontent .link-area a {
font-family: 'BrandonTextWeb-Bold', sans-serif;
font-size: 14px;
display: block;
min-width: 160px;
max-width: 300px;
width: 50%;
margin: 0 auto 1rem;
text-transform: uppercase;
border-radius: 6px;
background-color: #e02e33;
transition: background-color 0.5s;
}
#theme-root .property-tabbedcontent .link-area a:hover {
background-color: #33a5bf;
}
#theme-root .property-tabbedcontent .tabs-panel {
padding: 0;
}
#theme-root .property-tabbedcontent .accordion-menu {
margin: 0 auto;
background-color: #000;
width: 100%;
text-align: center;
}
#theme-root .property-tabbedcontent .accordion-menu .is-accordion-submenu-parent>a::after {
position: static;
display: inline-block;
margin-left: 0.5rem;
font-family: FontAwesome;
content: "\F107";
color: #e03133;
border: none;
transition: all 0.25s;
}
#theme-root .property-tabbedcontent .accordion-menu .is-accordion-submenu-parent[aria-expanded="true"]:>a::after {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
#theme-root .property-tabbedcontent .accordion-menu a {
color: #fff;
font-family: 'BrandonTextWeb-Bold', sans-serif;
font-size: 20px;
line-height: 26px;
padding: 1.5rem;
width: 100%;
}
#theme-root .property-tabbedcontent .accordion-menu .submenu {
margin: 0 auto;
}
#theme-root .property-tabbedcontent .accordion-menu .submenu a {
background-color: #656363;
border-top: 1px solid #000;
}
#theme-root .property-tabbedcontent .accordion-menu .submenu .tabs-title.is-active a {
background-color: #33a5bf;
}
#theme-root .property-tabbedcontent .tabbed-interior .header-area {
background-color: #e0e0e0;
padding: 2rem 1rem;
}
#theme-root .property-tabbedcontent .tabbed-interior .heading {
font-family: 'BrandonTextWeb-Bold', sans-serif;
font-size: 20px;
line-height: 25px;
color: #000;
}
#theme-root .property-tabbedcontent .tabbed-interior .heading::after {
display: block;
width: 3.25rem;
height: 4px;
background: #e03133;
content: '';
margin-top: 1rem;
}
#theme-root .property-tabbedcontent .tabbed-interior .subheading {
font-family: 'BrandonTextWeb-Bold', sans-serif;
font-size: 18px;
line-height: 20px;
color: #000;
}
}
@media (min-width: 40em) {
#theme-root .property-tabbedcontent .general-info {
padding: 3rem 2rem 1rem;
}
#theme-root .property-tabbedcontent .general-info p {
font-size: 18px;
line-height: 20px;
}
#theme-root .property-tabbedcontent .general-area {
text-align: left;
}
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title,
#theme-root .property-tabbedcontent .vertical.tabs .tabs-title a {
font-size: 22px;
line-height: 28px;
}
#theme-root .property-tabbedcontent .link-area a {
/*width: 40%;*/
width: auto;
/*float: left;*/
float: right;
margin-left: 1rem;
}
#theme-root .property-tabbedcontent .accordion-menu a {
font-size: 22px;
line-height: 28px;
}
#theme-root .property-tabbedcontent .tabbed-interior .header-area {
padding: 3rem 2rem 2rem;
}
#theme-root .property-tabbedcontent .tabbed-interior .heading {
font-size: 25px;
line-height: 30px;
}
#theme-root .property-tabbedcontent .tabbed-interior .subheading {
font-size: 19px;
line-height: 21px;
}
}
@media (min-width: 64em) {
#theme-root .property-tabbedcontent {
background-color: #e0e0e0;
}
#theme-root .property-tabbedcontent .interior {
max-width: none;
padding: 0;
margin: 0;
}
#theme-root .property-tabbedcontent .general-info {
max-width: 300px;
margin: 0 0 0 auto;
}
#theme-root .property-tabbedcontent .general-info p {
/*font-size: 20px;*/
font-size: 17px;
line-height: 23px;
}
#theme-root .property-tabbedcontent .vertical.tabs {
max-width: 300px;
margin: 0 0 0 auto;
}
#theme-root .property-tabbedcontent .link-area {
max-width: 300px;
margin: 3rem 0 0 auto;
}
#theme-root .property-tabbedcontent .link-area a {
font-size: 16px;
max-width: none;
width: 70%;
float: none;
margin: 0 auto 2rem;
}
#theme-root .property-tabbedcontent .tabbed-interior .header-area {
padding: 3rem 4rem 2rem;
background-color: #333232;
}
#theme-root .property-tabbedcontent .tabbed-interior .heading {
color: #fff;
font-size: 30px;
line-height: 35px;
}
#theme-root .property-tabbedcontent .tabbed-interior .subheading {
font-size: 20px;
line-height: 22px;
}
.Anchor-Target {
position: relative;
top: -78px;
}
}
</style>
<?php /* TABS */ ?>
<?php if ( !empty( $property_data ) ) : ?>
<div class="Anchor-Target" id="property-tabs"></div>
<div class="property-tabbedcontent">
<a class="Anchor-Target"></a>
<div class="interior grid-container">
<div class="grid-x">
<div class="cell large-4">
<?php /* GENERAL INFO ABOVE TABS */ ?>
<div class="general-info grid-x .align-middle">
<div class="general-area small-12 medium-4 large-12 cell">
<p class="street-address"><?= $property_data->address ?></p>
<p class="city-state-zip"><?= $property_data->city ?>, <?= $property_data->state ?> <?= $property_data->zipcode ?></p>
<p class="phone"><a href="tel:+1<?= preg_replace('/\D+/', '', $property_data->phone) ?>"><?= $property_data->phone ?></a></p>
</div>
<?php /* LINK AREA FOR MOBILE/TABLET */ ?>
<div class="link-area small-12 medium-8 cell hide-for-large">
<a class="button" href="//<?= $property_data->url ?>" target="_blank">Property Site</a>
<?php if ( !empty ( $resident_portal ) ) : ?>
<a class="button" href="<?= $resident_portal ?>" target="_blank">Resident Portal</a>
<?php endif; ?>
</div>
</div>
<?php /* TAB TRIGGERS DESKTOP */ ?>
<div class="vertical tabs show-for-large">
<div class="tabs-title <?php echo ( !$this->details ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '#property-tabs'; ?>" aria-selected="true">Features & Amenities</a></div>
<div class="tabs-title <?php echo ( $this->details == 'gallery' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/gallery#property-tabs'; ?>" aria-selected="true">Gallery</a></div>
<div class="tabs-title <?php echo ( $this->details == 'floorplans' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/floorplans#property-tabs'; ?>" aria-selected="true">Floorplans</a></div>
<div class="tabs-title <?php echo ( $this->details == 'neighborhood' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/neighborhood#property-tabs'; ?>" aria-selected="true">Neighborhood</a></div>
<?php /* SOCIAL TAB DISABLED? */ ?>
<?php $disable_social_tab = json_decode( $this->property->getDisable_social_tab() );?>
<?php if ( !$disable_social_tab ) : ?>
<div class="tabs-title <?php echo ( $this->details == 'social' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/social#property-tabs'; ?>" aria-selected="true">Social</a></div>
<?php endif; ?>
<div class="tabs-title <?php echo ( $this->details == 'contact' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/contact#property-tabs'; ?>" aria-selected="true">Contact Us</a></div>
</div>
<?php /* LINK AREA FOR DESKTOP */ ?>
<div class="link-area show-for-large">
<a class="button" href="http://<?= $property_data->url ?>" target="_blank">Property Site</a>
<?php if ( !empty ( $resident_portal ) ) : ?>
<a class="button" href="<?= $resident_portal ?>" target="_blank">Resident Portal</a>
<?php endif; ?>
</div>
</div>
<?php /* TAB TRIGGERS MOBILE/TABLET */ ?>
<ul class="vertical menu accordion-menu hide-for-large" data-accordion-menu data-submenu-toggle="false">
<li>
<a href="#">Community Menu</a>
<ul class="menu vertical nested">
<div class="tabs-title <?php echo ( !$this->details ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '#property-tabs'; ?>" aria-selected="true">Features & Amenities</a></div>
<div class="tabs-title <?php echo ( $this->details == 'gallery' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/gallery#property-tabs'; ?>" aria-selected="true">Gallery</a></div>
<div class="tabs-title <?php echo ( $this->details == 'floorplans' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/floorplans#property-tabs'; ?>" aria-selected="true">Floorplans</a></div>
<div class="tabs-title <?php echo ( $this->details == 'neighborhood' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/neighborhood#property-tabs'; ?>" aria-selected="true">Neighborhood</a></div>
<?php /* SOCIAL TAB DISABLED? */ ?>
<?php $disable_social_tab = json_decode( $this->property->getDisable_social_tab() );?>
<?php if ( !$disable_social_tab ) : ?>
<div class="tabs-title <?php echo ( $this->details == 'social' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/social#property-tabs'; ?>" aria-selected="true">Social</a></div>
<?php endif; ?>
<div class="tabs-title <?php echo ( $this->details == 'contact' ? 'is-active' : '' ); ?>"><a href="<?php echo $tab_link_base . '/contact#property-tabs'; ?>" aria-selected="true">Contact Us</a></div>
</ul>
</li>
</ul>
<?php /* TAB CONTENT CONTAINERS */ ?>
<div class="cell large-8 medium-12 tabs-content-wrapper">
<div class="tabs-content">
<?php if ( !$this->details ) : ?>
<div class="tabs-panel <?php echo ( !$this->details ? 'is-active' : '' ); ?>">
<?= $this->template( 'Yardi/property_amenities.html.php' ) ?>
</div>
<?php endif; ?>
<?php if ( $this->details == 'gallery' ) : ?>
<div class="tabs-panel <?php echo ( $this->details == 'gallery' ? 'is-active' : '' ); ?>">
<?= $this->template( 'Yardi/property_gallery.html.php' ) ?>
</div>
<?php endif; ?>
<?php if ( $this->details == 'floorplans' ) : ?>
<div class="tabs-panel <?php echo ( $this->details == 'floorplans' ? 'is-active' : '' ); ?>">
<?= $this->template( 'Yardi/property_floorplans.html.php' ) ?>
</div>
<?php endif; ?>
<?php if ( $this->details == 'neighborhood' ) : ?>
<div class="tabs-panel <?php echo ( $this->details == 'neighborhood' ? 'is-active' : '' ); ?>">
<?= $this->template( 'Yardi/property_neighborhood.html.php' ) ?>
</div>
<?php endif; ?>
<?php if ( $this->details == 'social' ) : ?>
<div class="tabs-panel <?php echo ( $this->details == 'social' ? 'is-active' : '' ); ?>">
<?= $this->template( 'Yardi/property_social.html.php' ) ?>
</div>
<?php endif; ?>
<?php if ( $this->details == 'contact' ) : ?>
<div class="tabs-panel <?php echo ( $this->details == 'contact' ? 'is-active' : '' ); ?>">
<?= $this->template( 'Yardi/property_contact.html.php' ) ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php /* CUSTOM LOGIC TO APPEND CLASS "HAS-SUBMENU-TOGGLE" TO .ACCORDION-MENU TO DISABLE ANNOYING FOUNDATION ARROW STYLES */ ?>
<script>
( function( $ ) {
$( function() {
$(".is-accordion-submenu-parent").addClass("has-submenu-toggle");
} );
} )( jQuery );
</script>