PATH:
home
/
centosnipponia
/
public_html
/
nipponiacar
/
wp-content
/
themes
/
airi-child
<?php /** * Airi child functions * */ /** * Enqueues the parent stylesheet. Do not remove this function. * */ add_action( 'wp_enqueue_scripts', 'airi_child_enqueue' ); function airi_child_enqueue() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } /* wp locator custom markers start Va*/ add_filter( 'wpsl_admin_marker_dir', 'custom_admin_marker_dir' ); function custom_admin_marker_dir() { $admin_marker_dir = get_stylesheet_directory() . '/wpsl-markers/'; return $admin_marker_dir; } define( 'WPSL_MARKER_URI', dirname( get_bloginfo( 'stylesheet_url') ) . '/wpsl-markers/' ); /* wp locator custom markers end Va*/ add_filter( 'wpsl_store_meta', 'custom_store_meta', 10, 2 ); function custom_store_meta( $store_meta, $store_id ) { if ( function_exists( 'z_taxonomy_image_url' ) ) { $terms = wp_get_post_terms( $store_id, 'wpsl_store_category' ); if ( $terms ) { if ( !is_wp_error( $terms ) ) { if ( isset( $_GET['filter'] ) && $_GET['filter'] ) { $filter_ids = explode( ',', $_GET['filter'] ); foreach ( $terms as $term ) { if ( in_array( $term->term_id, $filter_ids ) ) { $cat_marker = z_taxonomy_image_url( $term->term_id ); if ( $cat_marker ) { $store_meta['http://nipponiacaribe.nipponiacaribe.com/wp-content/uploads/2021/06/'] = $cat_marker; } } } } else { $store_meta['categoryMarkerUrl'] = z_taxonomy_image_url( $terms[0]->term_id ); } } } } return $store_meta; } add_filter( 'wpsl_cpt_info_window_meta_fields', 'custom_cpt_info_window_meta_fields', 10, 2 ); function custom_cpt_info_window_meta_fields( $meta_fields, $store_id ) { $terms = wp_get_post_terms( $store_id, 'wpsl_store_category' ); if ( $terms ) { if ( !is_wp_error( $terms ) ) { if ( function_exists( 'http://nipponiacaribe.nipponiacaribe.com/wp-content/uploads/2021/06/' ) ) { $meta_fields['categoryMarkerUrl'] = z_taxonomy_image_url( $terms[0]->term_id ); } } } return $meta_fields; }
[+]
..
[+]
template-parts
[-] style.css
[edit]
[+]
wpsl-markers
[-] screenshot.png
[edit]
[-] functions.php
[edit]
[-] .htaccess.disabled
[edit]