app/Resources/views/Yardi/property_tabs.html.php line 378

Open in your IDE?
  1. <?php
  2.     $cache_data json_decode$this->property->getCache_property() );
  3.     if ( !empty( $cache_data ) && !$cache_data]->Error ) :
  4.         $property_data $cache_data]->PropertyData;
  5.     endif;
  6.     // Resident Portal
  7.     $resident_portal $this->property->getCache_resident_portal();
  8.     //Nav tabs
  9.     // $tab_link = null;
  10.     // if( $this->details ) {
  11.     //     $tab_link = $this->path( 'Properties S_C_N_D', [
  12.     //         'state' => $this->state,
  13.     //         'city' => $this->city,
  14.     //         'name' => $this->name,
  15.     //         'details' => $this->details
  16.     //     ]);
  17.     // } else {
  18.     //     $tab_link = $this->path( 'Properties S_C_N', [
  19.     //         'state' => $this->state,
  20.     //         'city' => $this->city,
  21.     //         'name' => $this->name
  22.     //     ]);
  23.     // }
  24.     $tab_link_base $this->path'Properties S_C_N', [
  25.         'state' => $this->state,
  26.         'city' => $this->city,
  27.         'name' => $this->name
  28.     ]);
  29. ?>
  30. <style type="text/css">
  31.     @media (min-width: 0em) {
  32.         #theme-root .property-tabbedcontent {
  33.             background-color: #f8f8f8;
  34.         }
  35.         #theme-root .property-tabbedcontent .tabs-content-wrapper {
  36.             background: #fff;
  37.         }
  38.         #theme-root .property-tabbedcontent .tabs-content {
  39.             border: 0;
  40.             border-top: 0;
  41.             background: transparent;
  42.             -webkit-transition: all .5s ease;
  43.             transition: all .5s ease;
  44.         }
  45.         #theme-root .property-tabbedcontent .general-info {
  46.             padding: 2rem 1rem;
  47.         }
  48.         #theme-root .property-tabbedcontent .general-info p {
  49.             color: #000;
  50.             font-family: 'BrandonTextWeb-Bold', sans-serif;
  51.             font-size: 16px;
  52.             line-height: normal;
  53.         }
  54.         #theme-root .property-tabbedcontent .general-info p.phone > a {
  55.             color: inherit;
  56.         }
  57.         #theme-root .property-tabbedcontent .general-area {
  58.             text-align: center;
  59.             margin-bottom: 1rem;
  60.         }
  61.         #theme-root .property-tabbedcontent .street-address {
  62.             margin-bottom: 0;
  63.         }
  64.         #theme-root .property-tabbedcontent .vertical.tabs {
  65.             border: none;
  66.         }
  67.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title {
  68.             border-top: 2px solid #fff;
  69.         }
  70.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title:last-of-type {
  71.             border-bottom: 2px solid #fff;
  72.         }
  73.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title,
  74.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title a {
  75.             background-color: #e0e0e0;
  76.             font-family: 'BrandonTextWeb-Bold', sans-serif;
  77.             color: #000;
  78.             font-size: 20px;
  79.             line-height: 26px;
  80.             width: 100%;
  81.         }
  82.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title.is-active,
  83.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title.is-active a {
  84.             background-color: #333232;
  85.             color: #fff;
  86.             border: none;
  87.         }
  88.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title.is-active + .tabs-title:not(:last-of-type) {
  89.             border: none;
  90.         }
  91.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title.is-active + .tabs-title:last-of-type {
  92.             border-top: none;
  93.         }
  94.         #theme-root .property-tabbedcontent .link-area a {
  95.             font-family: 'BrandonTextWeb-Bold', sans-serif;
  96.             font-size: 14px;
  97.             display: block;
  98.             min-width: 160px;
  99.             max-width: 300px;
  100.             width: 50%;
  101.             margin: 0 auto 1rem;
  102.             text-transform: uppercase;
  103.             border-radius: 6px;
  104.             background-color: #e02e33;
  105.             transition: background-color 0.5s;
  106.         }
  107.         #theme-root .property-tabbedcontent .link-area a:hover {
  108.             background-color: #33a5bf;
  109.         }
  110.         #theme-root .property-tabbedcontent .tabs-panel {
  111.             padding: 0;
  112.         }
  113.         #theme-root .property-tabbedcontent .accordion-menu {
  114.             margin: 0 auto;
  115.             background-color: #000;
  116.             width: 100%;
  117.             text-align: center;
  118.         }
  119.         #theme-root .property-tabbedcontent .accordion-menu .is-accordion-submenu-parent>a::after {
  120.             position: static;
  121.             display: inline-block;
  122.             margin-left: 0.5rem;
  123.             font-family: FontAwesome;
  124.             content: "\F107";
  125.             color: #e03133;
  126.             border: none;
  127.             transition: all 0.25s;
  128.         }
  129.         #theme-root .property-tabbedcontent .accordion-menu .is-accordion-submenu-parent[aria-expanded="true"]:>a::after {
  130.             -webkit-transform: rotate(180deg);
  131.             transform: rotate(180deg);
  132.         }
  133.         #theme-root .property-tabbedcontent .accordion-menu a {
  134.             color: #fff;
  135.             font-family: 'BrandonTextWeb-Bold', sans-serif;
  136.             font-size: 20px;
  137.             line-height: 26px;
  138.             padding: 1.5rem;
  139.             width: 100%;
  140.         }
  141.         #theme-root .property-tabbedcontent .accordion-menu .submenu {
  142.             margin: 0 auto;
  143.         }
  144.         #theme-root .property-tabbedcontent .accordion-menu .submenu a {
  145.             background-color: #656363;
  146.             border-top: 1px solid #000;
  147.         }
  148.         #theme-root .property-tabbedcontent .accordion-menu .submenu .tabs-title.is-active a {
  149.             background-color: #33a5bf;
  150.         }
  151.         #theme-root .property-tabbedcontent .tabbed-interior .header-area {
  152.             background-color: #e0e0e0;
  153.             padding: 2rem 1rem;
  154.         }
  155.         #theme-root .property-tabbedcontent .tabbed-interior .heading {
  156.             font-family: 'BrandonTextWeb-Bold', sans-serif;
  157.             font-size: 20px;
  158.             line-height: 25px;
  159.             color: #000;
  160.         }
  161.         #theme-root .property-tabbedcontent .tabbed-interior .heading::after {
  162.             display: block;
  163.             width: 3.25rem;
  164.             height: 4px;
  165.             background: #e03133;
  166.             content: '';
  167.             margin-top: 1rem;
  168.         }
  169.         #theme-root .property-tabbedcontent .tabbed-interior .subheading {
  170.             font-family: 'BrandonTextWeb-Bold', sans-serif;
  171.             font-size: 18px;
  172.             line-height: 20px;
  173.             color: #000;
  174.         }
  175.     }
  176.     @media (min-width: 40em) {
  177.         #theme-root .property-tabbedcontent .general-info {
  178.             padding: 3rem 2rem 1rem;
  179.         }
  180.         #theme-root .property-tabbedcontent .general-info p {
  181.             font-size: 18px;
  182.             line-height: 20px;
  183.         }
  184.         #theme-root .property-tabbedcontent .general-area {
  185.             text-align: left;
  186.         }
  187.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title,
  188.         #theme-root .property-tabbedcontent .vertical.tabs .tabs-title a {
  189.             font-size: 22px;
  190.             line-height: 28px;
  191.         }
  192.         #theme-root .property-tabbedcontent .link-area a {
  193.             /*width: 40%;*/
  194.             width: auto;
  195.             /*float: left;*/
  196.             float: right;
  197.             margin-left: 1rem;
  198.         }
  199.         #theme-root .property-tabbedcontent .accordion-menu a {
  200.             font-size: 22px;
  201.             line-height: 28px;
  202.         }
  203.         #theme-root .property-tabbedcontent .tabbed-interior .header-area {
  204.             padding: 3rem 2rem 2rem;
  205.         }
  206.         #theme-root .property-tabbedcontent .tabbed-interior .heading {
  207.             font-size: 25px;
  208.             line-height: 30px;
  209.         }
  210.         #theme-root .property-tabbedcontent .tabbed-interior .subheading {
  211.             font-size: 19px;
  212.             line-height: 21px;
  213.         }
  214.     }
  215.     @media (min-width: 64em) {
  216.         #theme-root .property-tabbedcontent {
  217.             background-color: #e0e0e0;
  218.         }
  219.         #theme-root .property-tabbedcontent .interior {
  220.             max-width: none;
  221.             padding: 0;
  222.             margin: 0;
  223.         }
  224.         #theme-root .property-tabbedcontent .general-info {
  225.             max-width: 300px;
  226.             margin: 0 0 0 auto;
  227.         }
  228.         #theme-root .property-tabbedcontent .general-info p {
  229.             /*font-size: 20px;*/
  230.             font-size: 17px;
  231.             line-height: 23px;
  232.         }
  233.         #theme-root .property-tabbedcontent .vertical.tabs {
  234.             max-width: 300px;
  235.             margin: 0 0 0 auto;
  236.         }
  237.         #theme-root .property-tabbedcontent .link-area {
  238.             max-width: 300px;
  239.             margin: 3rem 0 0 auto;
  240.         }
  241.         #theme-root .property-tabbedcontent .link-area a {
  242.             font-size: 16px;
  243.             max-width: none;
  244.             width: 70%;
  245.             float: none;
  246.             margin: 0 auto 2rem;
  247.         }
  248.         #theme-root .property-tabbedcontent .tabbed-interior .header-area {
  249.             padding: 3rem 4rem 2rem;
  250.             background-color: #333232;
  251.         }
  252.         #theme-root .property-tabbedcontent .tabbed-interior .heading {
  253.             color: #fff;
  254.             font-size: 30px;
  255.             line-height: 35px;
  256.         }
  257.         #theme-root .property-tabbedcontent .tabbed-interior .subheading {
  258.             font-size: 20px;
  259.             line-height: 22px;
  260.         }
  261.         .Anchor-Target {
  262.             position: relative;
  263.             top: -78px;
  264.         }
  265.     }
  266. </style>
  267. <?php /* TABS */ ?>
  268. <?php if ( !empty( $property_data ) ) : ?>
  269.     <div class="Anchor-Target" id="property-tabs"></div>
  270.     <div class="property-tabbedcontent">
  271.         <a class="Anchor-Target"></a>
  272.         <div class="interior grid-container">
  273.             <div class="grid-x">
  274.                 <div class="cell large-4">
  275.                     <?php /* GENERAL INFO ABOVE TABS */ ?>
  276.                     <div class="general-info grid-x .align-middle">
  277.                         <div class="general-area small-12 medium-4 large-12 cell">
  278.                             <p class="street-address"><?= $property_data->address ?></p>
  279.                             <p class="city-state-zip"><?= $property_data->city ?><?= $property_data->state ?> <?= $property_data->zipcode ?></p>
  280.                             <p class="phone"><a href="tel:+1<?= preg_replace('/\D+/'''$property_data->phone?>"><?= $property_data->phone ?></a></p>
  281.                         </div>
  282.                         <?php /* LINK AREA FOR MOBILE/TABLET */ ?>
  283.                         <div class="link-area small-12 medium-8 cell hide-for-large">
  284.                             <a class="button" href="//<?= $property_data->url ?>" target="_blank">Property Site</a>
  285.                             <?php if ( !empty ( $resident_portal ) ) : ?>
  286.                                 <a class="button" href="<?= $resident_portal ?>" target="_blank">Resident Portal</a>
  287.                             <?php endif; ?>
  288.                         </div>
  289.                     </div>
  290.                     <?php /* TAB TRIGGERS DESKTOP */ ?>
  291.                     <div class="vertical tabs show-for-large">
  292.                         <div class="tabs-title <?php echo ( !$this->details 'is-active' '' ); ?>"><a href="<?php echo $tab_link_base '#property-tabs'?>" aria-selected="true">Features &amp; Amenities</a></div>
  293.                         <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>
  294.                         <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>
  295.                         <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>
  296.                         <?php /* SOCIAL TAB DISABLED? */ ?>
  297.                         <?php $disable_social_tab json_decode$this->property->getDisable_social_tab() );?>
  298.                         <?php if ( !$disable_social_tab ) : ?>
  299.                             <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>
  300.                         <?php endif; ?>
  301.                         <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>
  302.                     </div>
  303.                     <?php /* LINK AREA FOR DESKTOP */ ?>
  304.                     <div class="link-area show-for-large">
  305.                         <a class="button" href="http://<?= $property_data->url ?>" target="_blank">Property Site</a>
  306.                         <?php if ( !empty ( $resident_portal ) ) : ?>
  307.                             <a class="button" href="<?= $resident_portal ?>" target="_blank">Resident Portal</a>
  308.                         <?php endif; ?>
  309.                     </div>
  310.                 </div>
  311.                 <?php /* TAB TRIGGERS MOBILE/TABLET */ ?>
  312.                 <ul class="vertical menu accordion-menu hide-for-large" data-accordion-menu data-submenu-toggle="false">
  313.                     <li>
  314.                         <a href="#">Community Menu</a>
  315.                         <ul class="menu vertical nested">
  316.                             <div class="tabs-title <?php echo ( !$this->details 'is-active' '' ); ?>"><a href="<?php echo $tab_link_base '#property-tabs'?>" aria-selected="true">Features &amp; Amenities</a></div>
  317.                             <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>
  318.                             <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>
  319.                             <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>
  320.                             <?php /* SOCIAL TAB DISABLED? */ ?>
  321.                             <?php $disable_social_tab json_decode$this->property->getDisable_social_tab() );?>
  322.                             <?php if ( !$disable_social_tab ) : ?>
  323.                                 <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>
  324.                             <?php endif; ?>
  325.                             <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>
  326.                         </ul>
  327.                     </li>
  328.                 </ul>
  329.                 <?php /* TAB CONTENT CONTAINERS */ ?>
  330.                 <div class="cell large-8 medium-12 tabs-content-wrapper">
  331.                     <div class="tabs-content">
  332.                         <?php if ( !$this->details ) : ?>
  333.                             <div class="tabs-panel <?php echo ( !$this->details 'is-active' '' ); ?>">
  334.                                 <?= $this->template'Yardi/property_amenities.html.php' ?>
  335.                             </div>
  336.                         <?php endif; ?>
  337.                         <?php if ( $this->details == 'gallery' ) : ?>
  338.                             <div class="tabs-panel <?php echo ( $this->details == 'gallery' 'is-active' '' ); ?>">
  339.                                 <?= $this->template'Yardi/property_gallery.html.php' ?>
  340.                             </div>
  341.                         <?php endif; ?>
  342.                         <?php if ( $this->details == 'floorplans' ) : ?>
  343.                             <div class="tabs-panel <?php echo ( $this->details == 'floorplans' 'is-active' '' ); ?>">
  344.                                 <?= $this->template'Yardi/property_floorplans.html.php' ?>
  345.                             </div>
  346.                         <?php endif; ?>
  347.                         <?php if ( $this->details == 'neighborhood' ) : ?>
  348.                             <div class="tabs-panel <?php echo ( $this->details == 'neighborhood' 'is-active' '' ); ?>">
  349.                                 <?= $this->template'Yardi/property_neighborhood.html.php' ?>
  350.                             </div>
  351.                         <?php endif; ?>
  352.                         <?php if ( $this->details == 'social' ) : ?>
  353.                             <div class="tabs-panel <?php echo ( $this->details == 'social' 'is-active' '' ); ?>">
  354.                                 <?= $this->template'Yardi/property_social.html.php' ?>
  355.                             </div>
  356.                         <?php endif; ?>
  357.                         <?php if ( $this->details == 'contact' ) : ?>
  358.                             <div class="tabs-panel <?php echo ( $this->details == 'contact' 'is-active' '' ); ?>">
  359.                                 <?= $this->template'Yardi/property_contact.html.php' ?>
  360.                             </div>
  361.                         <?php endif; ?>
  362.                     </div>
  363.                 </div>
  364.             </div>
  365.         </div>
  366.     </div>
  367. <?php endif; ?>
  368. <?php /* CUSTOM LOGIC TO APPEND CLASS "HAS-SUBMENU-TOGGLE" TO .ACCORDION-MENU TO DISABLE ANNOYING FOUNDATION ARROW STYLES */ ?>
  369. <script>
  370.     ( function( $ ) {
  371.         $( function() {
  372.             $(".is-accordion-submenu-parent").addClass("has-submenu-toggle");
  373.         } );
  374.     } )( jQuery );
  375. </script>