settings->get_page_locator( 'general_store_detail' ) ); ?>
()
';// phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?>
$b_val ) { ?>
Loading
$s_val ) { $s_description = get_post_meta( $s_val->ID, 'nimap_store_description', true ) ?: ''; $s_address = get_post_meta( $s_val->ID, 'nimap_store_address', true ) ?: ''; $s_information = get_post_meta( $s_val->ID, 'nimap_store_information', true ) ?: ''; $s_opening = get_post_meta( $s_val->ID, 'nimap_store_opening', true ) ?: ''; $s_image = get_post_meta( $s_val->ID, 'nimap_store_image', true ) ?: ''; $s_category = get_the_terms( $s_val->ID, 'nimap_store_category' ); $s_address = maybe_unserialize( $s_address ); $s_information = maybe_unserialize( $s_information ); $s_opening = maybe_unserialize( $s_opening ); if ( ! empty( $s_image ) ) { $image_src = wp_get_attachment_image_src( $s_image, 'woocommerce_single' ); $image_src = is_array( $image_src ) && isset( $image_src[0] ) ? $image_src[0] : ''; $image_alt = get_post_meta( $s_image, '_wp_attachment_image_alt', true ); } else { $image_src = ''; $image_alt = esc_html__( 'Awaiting product image', '9map-map-multi-locations' ); } if ( empty( $s_information ) ) { $s_information = [ 'website' => '', 'email' => '', 'phone' => '', 'fax' => '', 'custom' => '', ]; } $format_address = NIMAP_MULTI_LOCATOR_Function::formatStoreAddress( $s_address ); $format_opening = NIMAP_MULTI_LOCATOR_Function::formatStoreOpening( $s_opening ); ?>
';// phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage echo wp_kses_post( $s_image ); ?>
name ) ?>
post_title ) ?>
name ) ?>
$b_val ) { switch ( $b_val[1] ) { case 'website': $btn_link = isset( $s_information['website'] ) ? $s_information['website'] : ''; break; case 'route': $btn_link = 'https://www.google.com/maps/dir/Current+Location/' . $s_address['latitude'] . ',' . $s_address['longitude']; break; default: $btn_link = $detail_link . '?&nimap-store=' . $s_val->ID . '&nimap_nonce=' . $_nonce; } ?>
intval( $all_configs['store_paging_number'] ) ) { $total_page = $count_posts % $all_configs['store_paging_number'] == 0 ? intdiv( $count_posts, $all_configs['store_paging_number'] ) : intdiv( $count_posts, $all_configs['store_paging_number'] ) + 1; $current_page = 1; ?>
$current_page - 2 ) { ?>
...
$current_page + 2 ) { continue; } if ( $p < $current_page + 2 ) { ?>
...