app/Resources/views/Yardi/property.html.php line 165

Open in your IDE?
  1. <?php
  2.     /*
  3.     if( $this->document->getTitle() ) {
  4.         // use the manually set title if available
  5.         $this->headTitle()->set( $this->document->getTitle() );
  6.     }
  7.     if( $this->document->getDescription() ) {
  8.         // use the manually set description if available
  9.         $this->headMeta()->appendName( 'description', $this->document->getDescription() );
  10.     }
  11.     */
  12.     $this->headTitle()->setSeparator' | ' );
  13.     $actual_link = ( isset( $_SERVER'HTTPS' ] ) ? "https" "http" )."://".$_SERVER'SERVER_NAME' ];
  14.     // Grab the last part of the URL for conditionally assigning SEO title/description.
  15.     $current_url_split explode"/"$_SERVER['REQUEST_URI'] );
  16.     $current_url_last $current_url_splitcount$current_url_split ) - ];
  17.     // Check which SEO title/description to assign to this templated page.
  18.     if ( $current_url_last == "gallery" || strpos$current_url_last"gallery" ) ) {
  19.         $this->headTitle()->set$this->property->getGallery_title() );
  20.         $this->headMeta()->appendName'description'$this->property->getGallery_desc() );
  21.     } elseif ( $current_url_last == "floorplans" || strpos$current_url_last"floorplans" ) ) {
  22.         $this->headTitle()->set$this->property->getFloorplans_title() );
  23.         $this->headMeta()->appendName'description'$this->property->getFloorplans_desc() );
  24.     } elseif ( $current_url_last == "neighborhood" || strpos$current_url_last"neighborhood" ) ) {
  25.         $this->headTitle()->set$this->property->getNeighborhood_title() );
  26.         $this->headMeta()->appendName'description'$this->property->getNeighborhood_desc() );
  27.     } elseif ( $current_url_last == "social" || strpos$current_url_last"social" ) ) {
  28.         $this->headTitle()->set$this->property->getSocial_title() );
  29.         $this->headMeta()->appendName'description'$this->property->getSocial_desc() );
  30.     } elseif ( $current_url_last == "contact" || strpos$current_url_last"contact" ) ) {
  31.         $this->headTitle()->set$this->property->getContact_title() );
  32.         $this->headMeta()->appendName'description'$this->property->getContact_desc() );
  33.     } else {
  34.         $this->headTitle()->set$this->property->getTitle() );
  35.         $this->headMeta()->appendName'description'$this->property->getDescription() );
  36.     }
  37.     // Property Data
  38.     // $cache_data = json_decode( $this->property->getCache_property() );
  39.     // $property_data = $cache_data[ 0 ]->PropertyData;
  40.     // // Property Domain
  41.     // $property_domain = $this->property->getDomain();
  42.     // $property_subdomain_name = explode("/", explode(".", $property_domain)[0])[count(explode("/", explode(".", $property_domain)[0]))-1];
  43. ?>
  44. <!doctype html>
  45. <html class="no-js" lang="en">
  46.     <head>
  47.         <meta charset="utf-8" />
  48.         <meta http-equiv="x-ua-compatible" content="ie=edge">
  49.         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  50.         <?php if( $this->websiteConfig'NoIndexNoFollow' ) ) : ?>
  51.             <meta name="robots" content="noindex,nofollow" />
  52.         <?php endif; ?>
  53.         <?= $this->headTitle(); ?>
  54.         <?= $this->headMeta(); ?>
  55.         <link rel="icon" href="<?php echo $actual_link?>/favicon.ico" type="image/ico" />
  56.         <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
  57.         <link rel="stylesheet" type="text/css" href="/theme/fonts/webfonts.css" />
  58.         <link rel="stylesheet" type="text/css" href="/theme/css/foundation.min.css" />
  59.         <link rel="stylesheet" type="text/css" href="/theme/css/jquery-ui.min.css" />
  60.         <link rel="stylesheet" type="text/css" href="/theme/css/slick.css" />
  61.         <link rel="stylesheet" type="text/css" href="/theme/css/slick-theme.css" />
  62.         <link rel="stylesheet" type="text/css" href="/theme/css/global.css" />
  63.         <script src="/theme/js/jquery.min.js"></script>
  64.         <script src="/theme/js/jquery-ui.min.js"></script>
  65.         <script src="/theme/js/jquery.cookie.min.js"></script>
  66.         <script src="/theme/js/isotope.pkgd.js"></script>
  67.         <script src="/theme/js/imagesloaded.pkgd.js"></script>
  68.         <?php /* INIT GOOGLE MAPS API */
  69.             /* CHECK FOR TOKEN */
  70.             if( !empty( $this->websiteConfig'google_token' ) ) ) :
  71.                 /* TOKEN */
  72.                 $google_setting $this->websiteConfig'google_token' );
  73.                 $google_token $google_setting;
  74.                 echo '<script type="text/javascript">'.
  75.                         '( function( $ ) {'.
  76.                             '$( function() {'.
  77.                                 /* CHECK FOR CALLBACK */
  78.                                 'if( typeof initMap == \'function\' ) {'.
  79.                                 /* CHECK FOR MAP */
  80.                                 //'if ( $("#map").length > 0 ) {'.
  81.                                     'var googleScript = document.createElement( "script" );'.
  82.                                     'googleScript.type = "text/javascript";'.
  83.                                     'googleScript.src = "https://maps.googleapis.com/maps/api/js?key='.$google_token.'&libraries=places&callback=initMap";'.
  84.                                     'googleScript.async = true;'.
  85.                                     'googleScript.defer = true;'.
  86.                                     'document.body.appendChild( googleScript );'.
  87.                                 '}'.
  88.                             '} );'.
  89.                         '} )( jQuery );'.
  90.                     '</script>';
  91.             endif;
  92.         ?>
  93.         <?php if( $_SERVER['SERVER_NAME'] == 'vanmetreapartments.com' ) : ?>
  94.             <!-- Global site tag (gtag.js) - Google Analytics -->
  95.             <script async src="https://www.googletagmanager.com/gtag/js?id=UA-4293413-1"></script>
  96.             <script>
  97.                 window.dataLayer = window.dataLayer || [];
  98.                 function gtag(){dataLayer.push(arguments);}
  99.                 gtag('js', new Date());
  100.                 gtag('config', 'UA-4293413-1');
  101.             </script>
  102.         <?php endif; ?>
  103.     </head>
  104.     <body>
  105.         <?php /* FADE-IN */ ?>
  106.         <script>
  107.             console.log( "Made by Grafik" );
  108.             $( 'html' ).css( { 'opacity' : 0 } );
  109.             $( window ).on( 'load', function() {
  110.                 $( 'html' ).animate( { 'opacity' : 1 } );
  111.             } );
  112.         </script>
  113.         <?php /* GLOBAL APARTMENTS Header */ ?>
  114.         <?= $this->template'Includes/apartments-header.html.php' ?>
  115.         <div id="theme-root">
  116.             <?php /* HERO */ ?>
  117.             <?= $this->template'Yardi/property_hero.html.php' ?>
  118.             <?php /* INTRO */ ?>
  119.             <?= $this->template'Yardi/property_intro.html.php' ?>
  120.             <?php /* TABS */ ?>
  121.             <?= $this->template'Yardi/property_tabs.html.php' ?>
  122.             <?php /* NEARBY */ ?>
  123.             <?= $this->template'Yardi/property_nearby.html.php' ?>
  124.             <?php /* SEARCH AND FIND */ ?>
  125.             <?= $this->template'Yardi/property_find.html.php' ?>
  126.             <?php /* GLOBAL APARTMENTS FOOTER */ ?>
  127.             <?= $this->template'Includes/apartments-footer-popup.html.php' ?>
  128.             <?= $this->template'Includes/apartments-footer.html.php' ?>
  129.         </div>
  130.         <script src="/theme/js/what-input.min.js"></script>
  131.         <script src="/theme/js/foundation.min.js"></script>
  132.         <script src="/theme/js/slick.min.js"></script>
  133.         <script>$(document).foundation();</script>
  134.     </body>
  135. </html>