'0.0.25',
true
);
-
+
wp_enqueue_script('leaflet', get_template_directory_uri() . '/js/leaflet.js', array('jquery'), null, false);
wp_enqueue_style('leaflet-style', get_template_directory_uri() . '/css/leaflet.css');
wp_enqueue_script('leaflet-gesture', get_template_directory_uri() . '/js/leaflet-gesture-handling.min.js', array('jquery'), null, false);
function has_children() {
global $post;
-
+
$pages = get_pages('child_of=' . $post->ID);
-
+
if (count($pages) > 0):
return true;
else:
endif;
$out .= '<div class="land-page-block-image" style="background: url('.$thumbnail.') no-repeat center center;"> <h5 class="glm-block-title">'.$block->post_title.'</h5></div>';
// $out .= '<div class="glm-block-frame"><div class="land-page-block-image" style="background: url('.$thumbnail.') no-repeat center center;"> <h5 class="glm-block-title">'.$block->post_title.'</h5></div></div>';
-
+
if($block->url):
$out .= '</a>';
endif;
return get_template_part("parts/events-search-widget");
}, 10, 0);
-add_filter(
- 'glm-member-db-front-members-detail-mapTop',
- function( $content, $member_id ){
- global $wp, $config;
- if ( isset( $_SESSION['travel-list'][$member_id] ) && $_SESSION['travel-list'][$member_id] ) {
- $class = 'list-view-link';
- $span1 = 'view_trip1';
- $label = $config['settings']['view_label'];
- $alt_label = $config['settings']['add_label'];
- $is_view = '1';
- } else {
- $class = 'list-add-link';
- $span1 = 'add_trip1';
- $label = $config['settings']['add_label'];
- $alt_label = $config['settings']['view_label'];
- $is_view = '';
- }
- $load_page = get_the_permalink( $config['settings']['itinerary_page'] );
- $current_slug = add_query_arg( array(), $wp->request );
- return $content . sprintf(
- '<div class="memberSR">
- <a class="glm-planner-button %s" data-id="%d" data-alt="%s" data-baseurl="%s" data-refpage="%s" data-view="%s" data-loadpage="%s">
- <span class="%s trip-alt-text">%s</span>
- <span class="trip2">Trip Planner</span>
- </a>
- </div>',
- $class,
- $member_id,
- htmlspecialchars( $alt_label, ENT_QUOTES, 'UTF-8' ),
- get_bloginfo( 'url' ),
- $current_slug,
- $is_view,
- $load_page,
- $span1,
- $label
- );
- },
- 10,
- 2
-);
+// add_filter(
+// 'glm-member-db-front-members-detail-mapTop',
+// function( $content, $member_id ){
+// global $wp, $config;
+// if ( isset( $_SESSION['travel-list'][$member_id] ) && $_SESSION['travel-list'][$member_id] ) {
+// $class = 'list-view-link';
+// $span1 = 'view_trip1';
+// $label = $config['settings']['view_label'];
+// $alt_label = $config['settings']['add_label'];
+// $is_view = '1';
+// } else {
+// $class = 'list-add-link';
+// $span1 = 'add_trip1';
+// $label = $config['settings']['add_label'];
+// $alt_label = $config['settings']['view_label'];
+// $is_view = '';
+// }
+// $load_page = get_the_permalink( $config['settings']['itinerary_page'] );
+// $current_slug = add_query_arg( array(), $wp->request );
+// return $content . sprintf(
+// '<div class="memberSR">
+// <a class="glm-planner-button %s" data-id="%d" data-alt="%s" data-baseurl="%s" data-refpage="%s" data-view="%s" data-loadpage="%s">
+// <span class="%s trip-alt-text">%s</span>
+// <span class="trip2">Trip Planner</span>
+// </a>
+// </div>',
+// $class,
+// $member_id,
+// htmlspecialchars( $alt_label, ENT_QUOTES, 'UTF-8' ),
+// get_bloginfo( 'url' ),
+// $current_slug,
+// $is_view,
+// $load_page,
+// $span1,
+// $label
+// );
+// },
+// 10,
+// 2
+// );
function get_county_page_id() {
global $post;
// I'm a child of a county page
$countyPageId = wp_get_post_parent_id( $post );
}
- }
+ }
return $countyPageId;
}
function get_county_page_children($countyPageId = false) {
if ( $countyPageId ) {
- $countyChildren = get_children(
+ $countyChildren = get_children(
array( 'post_parent' => $countyPageId,
'post_status' => 'publish',
'numberposts' => -1,
), ARRAY_A );
}
return $countyChildren;
-}
\ No newline at end of file
+}