“Zoner” Documentation by “ThemeStarz” v1.0.0


“Zoner HTML Template”

Created: 29/05/2014
By: ThemeStarz
Email: [email protected]

Thank you for purchasing our theme. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!


Table of Contents

  1. Block Class
  2. Editing source SCSS Files
  3. Colors
  4. Email Setting
  5. CSS Classes You Can use in HTML
  6. Dynamically Display Markers on Google Map
  7. RTL Support

Header (Navigation) Settings

You can choose between three header types:

To set your favorite header style you need to add some classes in the <body> tag:


1. For Default Navigation:

<body class="">
    // your HTML content
</body>

For default navigation you don't need to use any class.


2. For Navigation Fixed to Bottom:

<body class="navigation-fixed-bottom has-fullscreen-map">
    // your HTML content
</body>

Note: Note the has-fullscreen-map class. It must be used when you use navigation-fixed-bottom


3. For Navigation Fixed to Top:

<body class="navigation-fixed-top">
    // your HTML content
</body>

Choosing a Map Provider

Zoner is the first real estate template which supports OpenStreetMap. So you can choose between these maps:

Setting the Homepage map:

1. Google Map

  1. Add map-google class to the <body> tag
  2. Make sure you are calling <script type="text/javascript" src="assets/js/custom-map.js"></script>
  3. Set _latitude, _longitude and call function createHomepageGoogleMap(_latitude,_longitude); before </body> end tag
Whole code:
<body class="map-google">
    // your HTML content
    <script type="text/javascript" src="assets/js/custom-map.js"></script>
    <script type="text/javascript" src="assets/js/custom.js"></script> // this script needs to be called every time
    <script>
        _latitude = 48.87; // These two lines represent the center of your map
        _longitude = 2.29; // These two lines represent the center of your map
        createHomepageGoogleMap(_latitude,_longitude);
    </script>
</body>


2. OpenStreetMap

  1. Add map-osm class to the <body> tag
  2. Make sure you are calling <script type="text/javascript" src="assets/js/custom-map.js"></script>
  3. Set _latitude, _longitude and call function createHomepageOSM(_latitude,_longitude); before </body> end tag
Whole code:
<body class="map-osm">
    // your HTML content
    <script type="text/javascript" src="assets/js/custom-map.js"></script>
    <script type="text/javascript" src="assets/js/custom.js"></script> // this script needs to be called every time
    <script>
        _latitude = 48.87; // These two lines represent the center of your map
        _longitude = 2.29; // These two lines represent the center of your map
        createHomepageOSM(_latitude,_longitude);
    </script>
</body>

Enable / Disable Parallax

You can use parallax effect when scrolling on map and slider.

For the Map:

<div id="map" class="has-parallax"></div>

For the Slider:

<div id="slider" class="has-parallax">...</div>


You can enable small thumbnails in the footer to make your web more interesting for users. This is just a funny feature, but it can make your real estate site quite unique. Properties are loaded from locations.js so they are your real properties.

In case you don't want to display these thumbnails, open custom.js and delete the call for drawFooterThumbnails(); function.


Loading Properties from Locations.js

Zoner loads properties data from locations.js file as default. It contains array with properties parameters.

Example:

[
    "2479 Murphy Court", // Title
    "Minneapolis, MN 55402", // Locations
    "$36,000", // Price
    48.87, // Latitude
    2.29, // Longitude
    "property-detail.html", // Link to the property detail page
    "assets/img/properties/property-01.jpg", // Property thumbnail image
    "assets/img/property-types/apartment.png" // Property type icon
],

Block Class

You can use block class if you want to add padding-up and padding-down to the whole section. To enable this effect, simply add has-parallax class on map or slider element.

<div class="block">
    <section id="your-section">
        // your HTML content
    </section>
</div>

Editing source SCSS Files

Zoner uses an SCSS files for styling. If you want to edit source SCSS files, you need to use an SCSS Compiler. Or you can edit regular CSS files located in assets/css


Colors

To edit colors, you can open SCSS file located atassets/scss/_variables.scss. But you need mentioned SCSS compiler. Otherwise you can replace all occurrences of the same color in CSS file located at assets/css/style.css


Email Settings

An user can contact you using contact form in the footer. To set e-mail address where you want to receive e-mails and other settings open contact.php located in root directory.

contact.php settings you can change:
$to = '[email protected]'; // Here you can set address for receiving emails (usually your email)
$subject = 'Message From Your Website Contact Form'; // Message displayed in "subject" label in email

Email address for reply

Direct reply to users email
You can also change, how you want to reply to email. You can set the email "from" to be the email which user has provided in contact form, so you can directly reply him, just to click on "reply" button in your email interface. The code is this:

$headers = 'From: ' .$email . "\r\n"; // Email "from" the same as user has provided. Default state

One incoming email address or "noreply" address
Or you can use one address widely known as "[email protected]" and users email address will be displayed in body of the message. Then you need to uncomment (remove "//" dashes) of the commented code and comment the code above. The final code should look like this:

//$headers = 'From: ' .$email . "\r\n";

$headers = 'From: [email protected]' . "\r\n";

$body .= "";
$body .= "Email: ";
$body .= $email;
$body .= "\n";

Note: Your hosting provider has to support PHP in order to make the contact form work.


Dynamically Display Markers on Google Map


RTL Support

CSS part

To enable RTL support for Zoner you need to add:

<link rel="stylesheet" href="assets/css/bootstrap-rtl.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/rtl.css" type="text/css">

after the style.css in <head> tag, so it looks like:

<link rel="stylesheet" href="assets/css/style.css" type="text/css">
<link rel="stylesheet" href="assets/css/bootstrap-rtl.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/rtl.css" type="text/css">

JS part

You need also call for using or not using RTL in Owl Carousel. Default is false. There are two states:

These states are use in function initializeOwl() which is at the bottom of the page.

Enable RTL support for Owl Carousel:
$(window).load(function(){
    initializeOwl(true);
});

Icons used

Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist. If you have a more general question relating to the themes on ThemeForest, you might consider visiting the forums and asking your question in the "Item Discussion" section.

Theme Starz

Go To Table of Contents