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 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
/** | |
* 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 travel_log_front_page_slider_content() { | |
$defaults = travel_log_default_values(); | |
$enabled = travel_log_get_theme_option( 'home_slider_enable' ); | |
if ( false === $enabled ) { | |
return; | |
} |
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 biography_pro_child_update_option_vals( $value, $old_value ) { | |
update_option( 'theme_mods_' . get_template(), $value ); | |
return $old_value; // prevent update to child theme mods | |
} | |
function biography_pro_child_customizer_default_vals_update( $default ) { | |
return get_option( 'theme_mods_' . get_template(), $default ); | |
} | |
function biography_pro_child_customizer_parent_options_import() { |
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
/** | |
* Main header | |
* | |
* @since Biography 1.0.0 | |
* | |
* @param null | |
* @return null | |
* | |
*/ |
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_price_display( $s, $c, $d ) { | |
global $wp_travel_itinerary; | |
if ( $wp_travel_itinerary->is_sale_enabled() ) { | |
return $s; | |
} | |
return sprintf( esc_html__('N%1s %2s', 'wp-travel' ), $c, $d ); | |
} | |
add_filter( 'wp_travel_itinerary_price', 'wp_travel_customize_price_display', 99, 3 ); | |
function wp_travel_customize_sale_price_display( $s, $c, $d ) { | |
return sprintf( esc_html__('N%1s %2s', 'wp-travel' ), $c, $d ); |
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
button, a.button, input[type="button"], input[type="reset"], input[type="submit"] { | |
background: #ffd700 none repeat scroll 0 0; | |
} | |
button:hover, a.button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover { | |
background-color: #ffd700; | |
} | |
a { | |
color: #ffd700; | |
text-decoration: inherit; | |
} |
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
remove_action( 'wp_travel_single_itinerary_after_trip_meta_list', 'wp_travel_single_location', 1 ); | |
function wp_travel_single_location_customize( $post_id ) { | |
if ( ! $post_id ) { | |
return; | |
} | |
$terms = get_the_terms( $post_id, 'travel_locations' ); | |
$start_date = get_post_meta( $post_id, 'wp_travel_start_date', true ); | |
$end_date = get_post_meta( $post_id, 'wp_travel_end_date', true ); |
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_info_customize(){ | |
?> | |
<li> | |
<div class="travel-info"> | |
<strong class="title">Field Title</strong> | |
</div> | |
<div class="travel-info"> | |
<span class="value"> | |
Your Value | |
</span> |