vendor->get(get_query_var('author')); $store_info = $store_user->get_shop_info(); $social_info = $store_user->get_social_profiles(); $store_tabs = dokan_get_store_tabs($store_user->get_id()); $social_fields = dokan_get_social_profile_fields(); $dokan_store_times = !empty($store_info['dokan_store_time']) ? $store_info['dokan_store_time'] : []; $current_time = dokan_current_datetime(); $today = strtolower($current_time->format('l')); $store_address = dokan_get_seller_short_address($store_user->get_id(), false); $dokan_store_time_enabled = isset($store_info['dokan_store_time_enabled']) ? $store_info['dokan_store_time_enabled'] : ''; $store_open_notice = isset($store_info['dokan_store_open_notice']) && !empty($store_info['dokan_store_open_notice']) ? $store_info['dokan_store_open_notice'] : __('Store Open', 'elessi-theme'); $store_closed_notice = isset($store_info['dokan_store_close_notice']) && !empty($store_info['dokan_store_close_notice']) ? $store_info['dokan_store_close_notice'] : __('Store Closed', 'elessi-theme'); $show_store_open_close = dokan_get_option('store_open_close', 'dokan_appearance', 'on'); $general_settings = get_option('dokan_general', array()); $banner_width = dokan_get_vendor_store_banner_width(); $banner_src = !in_array($profile_layout, array('layout3', 'ns-1')) ? $store_user->get_banner() : false; $profile_class = 'profile-info-box profile-layout-' . $profile_layout; $profile_img_class = 'profile-img-circle'; if (in_array($profile_layout, array('layout1', 'layout3'))) : $profile_img_class = 'profile-img-square'; endif; if ('layout3' === $profile_layout) : unset($store_info['banner']); $no_banner_class = ' profile-frame-no-banner'; $no_banner_class_tabs = ' dokan-store-tabs-no-banner'; else : $no_banner_class = ''; $no_banner_class_tabs = ''; endif; $style = ''; if (in_array($profile_layout, array('ns-2', 'ns-3', 'ns-4'))) : if ($banner_src) : $style = ' style="background-image:url(' . esc_url($banner_src) . '); background-position: center center; background-repeat: no-repeat; background-size:cover;"'; $profile_class .= ' has-bgimg'; endif; $banner_src = false; endif; ?>