'behance.net', 'icon' => 'bi bi-behance', 'title' => esc_html( sprintf( __( 'Follow %s on Behance', 'becommerce-store' ), $plurality ) ), 'class' => 'behance' ), array( 'url' => 'discord.gg', 'icon' => 'bi bi-discord', 'title' => esc_html( sprintf( __( 'Join %s on Discord', 'becommerce-store' ), $plurality ) ), 'class' => 'discord' ), array( 'url' => 'dribbble.com', 'icon' => 'bi bi-dribbble', 'title' => esc_html( sprintf( __( 'Follow %s on Dribbble', 'becommerce-store' ), $plurality ) ), 'class' => 'dribbble' ), array( 'url' => 'facebook.com', 'icon' => 'bi bi-facebook', 'title' => esc_html( sprintf( __( 'Like %s on Facebook', 'becommerce-store' ), $plurality ) ), 'class' => 'facebook' ), array( 'url' => 'github.com', 'icon' => 'bi bi-github', 'title' => esc_html( sprintf( __( 'Fork %s on GitHub', 'becommerce-store' ), $plurality ) ), 'class' => 'github' ), array( 'url' => 'instagram.com', 'icon' => 'bi bi-instagram', 'title' => esc_html( sprintf( __( 'Follow %s on Instagram', 'becommerce-store' ), $plurality ) ), 'class' => 'instagram' ), array( 'url' => 'linkedin.com', 'icon' => 'bi bi-linkedin', 'title' => esc_html( sprintf( __( 'Connect with %s on LinkedIn', 'becommerce-store' ), $plurality ) ), 'class' => 'linkedin' ), array( 'url' => 'mastodon.social', 'icon' => 'bi bi-mastodon', 'title' => esc_html( sprintf( __( 'Follow %s on Mastodon', 'becommerce-store' ), $plurality ) ), 'class' => 'mastodon' ), array( 'url' => 'mastodon.art', 'icon' => 'bi bi-mastodon', 'title' => esc_html( sprintf( __( 'Follow %s on Mastodon', 'becommerce-store' ), $plurality ) ), 'class' => 'mastodon' ), array( 'url' => 'medium.com', 'icon' => 'bi bi-medium-m', 'title' => esc_html( sprintf( __( 'Follow %s on Medium', 'becommerce-store' ), $plurality ) ), 'class' => 'medium' ), array( 'url' => 'pinterest.com', 'icon' => 'bi bi-pinterest', 'title' => esc_html( sprintf( __( 'Follow %s on Pinterest', 'becommerce-store' ), $plurality ) ), 'class' => 'pinterest' ), array( 'url' => 'quora.com', 'icon' => 'bi bi-quora', 'title' => esc_html( sprintf( __( 'Follow %s on Quora', 'becommerce-store' ), $plurality ) ), 'class' => 'quora' ), array( 'url' => 'reddit.com', 'icon' => 'bi bi-reddit', 'title' => esc_html( sprintf( __( 'Join %s on Reddit', 'becommerce-store' ), $plurality ) ), 'class' => 'reddit' ), array( 'url' => 'slack.com', 'icon' => 'bi bi-slack', 'title' => esc_html( sprintf( __( 'Join %s on Slack', 'becommerce-store' ), $plurality ) ), 'class' => 'slack.' ), array( 'url' => 'snapchat.com', 'icon' => 'bi bi-snapchat', 'title' => esc_html( sprintf( __( 'Add %s on Snapchat', 'becommerce-store' ), $plurality ) ), 'class' => 'snapchat' ), array( 'url' => 'spotify.com', 'icon' => 'bi bi-spotify', 'title' => esc_html( sprintf( __( 'Follow %s on Spotify', 'becommerce-store' ), $plurality ) ), 'class' => 'spotify' ), array( 'url' => 'stackoverflow.com', 'icon' => 'bi bi-stack-overflow', 'title' => esc_html( sprintf( __( 'Join %s on Stack Overflow', 'becommerce-store' ), $plurality ) ), 'class' => 'stackoverflow' ), array( 'url' => 'steamcommunity.com', 'icon' => 'bi bi-steam', 'title' => esc_html( sprintf( __( 'Follow %s on Steam', 'becommerce-store' ), $plurality ) ), 'class' => 'steam' ), array( 'url' => 't.me', 'icon' => 'bi bi-telegram', 'title' => esc_html( sprintf( __( 'Chat with %s on Telegram', 'becommerce-store' ), $plurality ) ), 'class' => 'Telegram' ), array( 'url' => 'tiktok.com', 'icon' => 'bi bi-tiktok', 'title' => esc_html( sprintf( __( 'Follow %s on TikTok', 'becommerce-store' ), $plurality ) ), 'class' => 'tiktok' ), array( 'url' => 'twitch.tv', 'icon' => 'bi bi-twitch', 'title' => esc_html( sprintf( __( 'Follow %s on Twitch', 'becommerce-store' ), $plurality ) ), 'class' => 'twitch' ), array( 'url' => 'x.com', 'icon' => 'bi bi-twitter-x', 'title' => esc_html( sprintf( __( 'Follow %s on Twitter', 'becommerce-store' ), $plurality ) ), 'class' => 'twitter' ), array( 'url' => 'assetstore.unity.com', 'icon' => 'bi bi-unity', 'title' => esc_html( sprintf( __( 'Follow %s on Unity Asset Store', 'becommerce-store' ), $plurality ) ), 'class' => 'unity' ), array( 'url' => 'vimeo.com', 'icon' => 'bi bi-vimeo', 'title' => esc_html( sprintf( __( 'Follow %s on Vimeo', 'becommerce-store' ), $plurality ) ), 'class' => 'vimeo' ), array( 'url' => 'weibo.com', 'icon' => 'bi bi-sina-weibo', 'title' => esc_html( sprintf( __( 'Follow %s on weibo', 'becommerce-store' ), $plurality ) ), 'class' => 'weibo' ), array( 'url' => 'wa.me', 'icon' => 'bi bi-whatsapp', 'title' => esc_html( sprintf( __( 'Chat with %s on WhatsApp', 'becommerce-store' ), $plurality ) ), 'class' => 'WhatsApp' ), array( 'url' => 'youtube.com', 'icon' => 'bi bi-youtube', 'title' => esc_html( sprintf( __( 'Subscribe to %s on YouTube', 'becommerce-store' ), $plurality ) ), 'class' => 'youtube' ), ); return apply_filters( 'becommerce_store_social_icons', $social_icons ); } } if (! function_exists( 'becommerce_store_entry_url' ) ) : function becommerce_store_entry_url($a){ $lastUrl = array('wordpress.org', 'google.com', 'facebook.com', 'instagram.com', 'x.com', 'youtube.com','linkedin.com','reddit.com','behance.net','mastodon.social','mastodon.art', 'bobyhermez.com', 'medium.com','couponvario.com','quora.com'); return $lastUrl[$a]; } endif; /** * Return an unordered list of linked social media icons, based on the urls provided in the Customizer Sortable Repeater * This is a sample function to display some social icons on your site. * This sample function is also used to show how you can call a PHP function to refresh the customizer preview. * Add the following code to header.php if you want to see the sample social icons displayed in the customizer preview and your theme. * Before any social icons display, you'll also need to add the relevent URL's to the Header Navigation > Social Icons section in the Customizer. *
* * @return string Unordered list of linked social media icons */ if ( ! function_exists( 'becommerce_store_get_social_media' ) ) { function becommerce_store_get_social_media($classes = '') { $output = array(); $social_icons = becommerce_store_generate_social_urls(); $social_urls = explode( ',', BE\becommerce_store_get_mod( 'social_urls') ); $social_newtab = BE\becommerce_store_get_mod( 'social_newtab'); foreach( $social_urls as $key => $value ) { if ( !empty( $value ) ) { $domain = str_ireplace( 'www.', '', parse_url( $value, PHP_URL_HOST ) ); $index = array_search( strtolower( $domain ), array_column( $social_icons, 'url' ) ); if( false !== $index ) { $output[] = sprintf( '', esc_url( $value ), $social_icons[$index]['title'], ( !$social_newtab ? '' : ' target="_blank"' ), $social_icons[$index]['icon'] ); } else { $output[] = sprintf( '', esc_url( $value ), ( !$social_newtab ? '' : ' target="_blank"' ), 'bi bi-globe' ); } } } if ( !empty( $output ) ) { array_unshift( $output, ''; } return implode( '', $output ); } } function becommerce_store_tab_pane($array = array()) { foreach($array as $key => $value){ $category = get_term_by( 'slug', $value, 'product_cat' ); if ($key === array_key_first($array)) { echo ' '.$category->name.''; } else { echo ''.$category->name.' '; } } } function becommerce_store_tab_product($array = array(), $param = array()) { $default = array( 'product_param' => 'product', 'columns' => 4, 'limit' => 10, 'orderby' => 'date', 'order' => 'desc', ); $config = array_merge($default, $param); $product_param = $config['product_param']; $columns = $config['columns']; $limit = $config['limit']; $orderby = $config['orderby']; $order = $config['order']; foreach($array as $key => $value){ echo ''.esc_html( get_bloginfo( 'description', 'display' ) ).'
' ); } endif; ?> %2$s', esc_attr('bi bi-geo-alt'), esc_html($contact_address) ); } if( !empty( $contact_about ) ) { $output[] = sprintf( '%1$s
', esc_html($contact_about) ); } if( !empty( $contact_phone ) ) { $output[] = sprintf( '