This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).scroll(function() { | |
//get current sroll position | |
var scrollPosition = $(window).scrollTop(); | |
var headerInner = $('.header-bar-inner'); | |
var headerHeight = $('.header-slider').outerHeight(); | |
//get the position of the containers | |
var sliderPos = ($("#eme-slider-wrap-full-screen").offset().top+20); | |
//if the scroll position is the same as the position of the container specified, add the "active" class to the corresponding nav element | |
if ( scrollPosition >= sliderPos ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_ajax_load_promo_by_dates', 'load_promo_by_dates' ); | |
add_action( 'wp_ajax_nopriv_load_promo_by_dates', 'load_promo_by_dates' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Update templates by dynamicaly to sub pages | |
update_post_meta( $pg_id, 'eme_page_template', 'mod-ht6-excursion-inner'); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// Load automatically all tasks without using grunt.loadNpmTasks() | |
// for each module | |
require('load-grunt-tasks')(grunt); | |
/* --------------------------------------- | |
* Tasks configuration | |
* --------------------------------------- */ | |
grunt.initConfig({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
// Load plugins | |
const autoprefixer = require("autoprefixer"); | |
const browsersync = require("browser-sync").create(); | |
const cssnano = require("cssnano"); | |
const gulp = require("gulp"); | |
const postcss = require("gulp-postcss"); | |
const rename = require("gulp-rename"); | |
const sass = require("gulp-sass"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "gulps", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function makePages(){ | |
$pages_list = array( | |
'Hotels', | |
'Offers', | |
'Gallery', | |
'Social Wall', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var pointerArray = <?php echo json_encode( $locaArr ); ?>; | |
function initialize(){ | |
var directionsService = new google.maps.DirectionsService(); | |
var directionsDisplay = new google.maps.DirectionsRenderer({ | |
polylineOptions: { | |
strokeColor: "#542626" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------------- | |
Load more items html button | |
------------------------------------------------------------------------------------- | |
<?php | |
if ( $items_count < count($all_post) ): | |
?> | |
<div id="loadMore" class="loadmore clearfix" data-start="<?php echo $items_count; ?>" data-items="<?php echo $load_more_items; ?>"></div> | |
<?php | |
endif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: GDPR Compliance | |
* Template Post Type: post, page, arise_arena, arise_atlas, arise_brisbaneone, arise_harmony, arise_skytower, arise_onhopestreet, arise_ivyandeve, arise_princessregent, arise_soda, arise_spice, arise_australia108, arise_theeminence, arise_collinshouse, arise_skyone, arise_rubygoldcoast, arise_ftvalley, arise_kawanawaters, arise_adelaide | |
* | |
* @package WordPress | |
* @subpackage Arise_Hotels | |
* @since Arise_Hotels 1.0 | |
*/ |
OlderNewer