$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 ) ?>
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; ?>