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
/** | |
* Header end html codes | |
* | |
* @since Chrisporate Pro 1.0.0 | |
* | |
*/ | |
function chrisporate_pro_header_banner() { | |
$options = chrisporate_pro_get_theme_options(); | |
$vid_class = ( has_header_video() && chrisporate_pro_is_frontpage() ) ? 'video-enabled' : ''; |
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 wp_travel_additional_scripts_enqueue() { | |
if ( ! defined( 'WP_TRAVEL_POST_TYPE' ) ) { | |
return; | |
} | |
if ( is_singular( WP_TRAVEL_POST_TYPE ) || wp_travel_is_cart_page() || wp_travel_is_checkout_page() ) { | |
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
jQuery(document).ready(function($) { | |
if ('' !== wp_travel.lat && '' !== wp_travel.lng) { | |
// Create map. | |
var map = new GMaps({ | |
div: '#wp-travel-map', | |
lat: wp_travel.lat, | |
lng: wp_travel.lng, | |
scrollwheel: false, | |
navigationControl: false, | |
mapTypeControl: false, |
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
jQuery(document).ready(function($) { | |
if ('' !== wp_travel.lat && '' !== wp_travel.lng) { | |
// Create map. | |
var map = new GMaps({ | |
div: '#wp-travel-map', | |
lat: wp_travel.lat, | |
lng: wp_travel.lng, | |
scrollwheel: false, | |
navigationControl: false, | |
mapTypeControl: false, |
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 travel_log_child_remove_cat_titles($title) { | |
if ( is_category() ) { | |
$title = single_cat_title( '', false ); | |
} elseif ( is_tag() ) { | |
$title = single_tag_title( '', false ); |
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 wp_travel_custom_gettext_string_editor( $string ){ | |
switch ($string) { | |
case '%s Day(s) %s Night(s)': | |
return '%s Hour(s) %s Minute(s)'; | |
break; | |
case 'Day(s)' : |
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 wp_travel_customize_text_booking_form_field( $fields ) { | |
if ( is_array( $fields ) ) { | |
$new_fields = array(); | |
foreach( $fields as $f_k => $f_v ) { | |
if ( 'booking_option' === $f_k ) { |
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 personify_pro_get_content( $i, $int ) { | |
$options = personify_pro_get_theme_options(); | |
$class = ( has_post_thumbnail() ) ? '' : 'no-post-thumbnail'; | |
$class .= ( 1 === $int ) ? ' add-gap' : ''; | |
$class .= ( ( $i % 3 == 0 ) && $i !== 0 && is_home() ) ? ' clear-left' : ''; | |
$class .= ( ( $i % 2 == 0 ) && $i !== 0 && is_home() ) ? ' clear-left-responsive' : ''; | |
$img_size = ( is_sticky() && is_home() ) ? 'full' : 'large'; | |
?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class( esc_attr( $class ) ); ?>> |
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 business_field_render_featured_slider( $slider_details = array() ) { | |
if ( empty( $slider_details ) ) { | |
return; | |
} | |
$featured_slider_transition_effect = business_field_get_option( 'featured_slider_transition_effect' ); | |
$featured_slider_enable_caption = business_field_get_option( 'featured_slider_enable_caption' ); | |
$featured_slider_caption_alignment = business_field_get_option( 'featured_slider_caption_alignment' ); | |
$featured_slider_enable_arrow = business_field_get_option( 'featured_slider_enable_arrow' ); |
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
/** | |
* [travel_log_social_share_meta Diusplay the Social share Blog Meta] | |
* | |
* @since 1.0.0 | |
*/ | |
function travel_log_social_share_meta() { | |
$social_share_disable = travel_log_get_theme_option( 'travel_log_social_share_disable' ); |