span class="shooping-cart-counter menu-counter-bubble-outer">'. $counter_bubble .'
'. esc_html__( 'View your shopping cart', TIELABS_TEXTDOMAIN ) .'
'. $the_cart;
}
}
/**
* buddyPress Notifications
*/
if( ! function_exists( 'tie_component_button_bp_notifications' ) ) {
function tie_component_button_bp_notifications(){
if( ! TIELABS_BUDDYPRESS_IS_ACTIVE || ! is_user_logged_in() ){
return;
}
$notification = apply_filters( 'TieLabs/BuddyPress/notifications', '' );
$counter_bubble = false;
if( ! empty( $notification['count'] ) ) {
$bubble_class = ( $notification['count'] > 9 ) ? 'is-two-digits' : 'is-one-digit';
$counter_bubble = '';
}
return '
'. $counter_bubble .'
'. esc_html__( 'Notifications', TIELABS_TEXTDOMAIN ) .'
';
}
}
/**
* Social Networks
*/
if( ! function_exists( 'tie_social_networks' ) ) {
function tie_social_networks(){
$social_array = array(
'rss' => array(
'title' => esc_html__( 'RSS', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-feed',
'class' => 'rss',
),
'facebook' => array(
'title' => esc_html__( 'Facebook', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-facebook',
'class' => 'facebook',
),
'twitter' => array(
'title' => esc_html__( 'Twitter', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-twitter',
'class' => 'twitter',
),
'Pinterest' => array(
'title' => esc_html__( 'Pinterest', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-pinterest',
'class' => 'pinterest',
),
'dribbble' => array(
'title' => esc_html__( 'Dribbble', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-dribbble',
'class' => 'dribbble',
),
'linkedin' => array(
'title' => esc_html__( 'LinkedIn', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-linkedin',
'class' => 'linkedin',
),
'flickr' => array(
'title' => esc_html__( 'Flickr', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-flickr',
'class' => 'flickr',
),
'youtube' => array(
'title' => esc_html__( 'YouTube', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-youtube',
'class' => 'youtube',
),
'reddit' => array(
'title' => esc_html__( 'Reddit', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-reddit',
'class' => 'reddit',
),
'tumblr' => array(
'title' => esc_html__( 'Tumblr', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-tumblr',
'class' => 'tumblr',
),
'vimeo' => array(
'title' => esc_html__( 'Vimeo', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-vimeo',
'class' => 'vimeo',
),
'wordpress' => array(
'title' => esc_html__( 'WordPress', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-wordpress',
'class' => 'wordpress',
),
'yelp' => array(
'title' => esc_html__( 'Yelp', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-yelp',
'class' => 'yelp',
),
'lastfm' => array(
'title' => esc_html__( 'Last.FM', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-lastfm',
'class' => 'lastfm',
),
'xing' => array(
'title' => esc_html__( 'Xing', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-xing',
'class' => 'xing',
),
'deviantart' => array(
'title' => esc_html__( 'DeviantArt', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-deviantart',
'class' => 'deviantart',
),
'apple' => array(
'title' => esc_html__( 'Apple', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-apple',
'class' => 'apple',
),
'foursquare' => array(
'title' => esc_html__( 'Foursquare', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-foursquare',
'class' => 'foursquare',
),
'github' => array(
'title' => esc_html__( 'GitHub', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-github',
'class' => 'github',
),
'soundcloud' => array(
'title' => esc_html__( 'SoundCloud', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-soundcloud',
'class' => 'soundcloud',
),
'behance' => array(
'title' => esc_html__( 'Behance', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-behance',
'class' => 'behance',
),
'instagram' => array(
'title' => esc_html__( 'Instagram', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-instagram',
'class' => 'instagram',
),
'paypal' => array(
'title' => esc_html__( 'Paypal', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-paypal',
'class' => 'paypal',
),
'spotify' => array(
'title' => esc_html__( 'Spotify', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-spotify',
'class' => 'spotify',
),
'google_play'=> array(
'title' => esc_html__( 'Google Play', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-play',
'class' => 'google_play',
),
'px500' => array(
'title' => esc_html__( '500px', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-500px',
'class' => 'px500',
),
'vk' => array(
'title' => esc_html__( 'vk.com', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-vk',
'class' => 'vk',
),
'odnoklassniki' => array(
'title' => esc_html__( 'Odnoklassniki', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-odnoklassniki',
'class' => 'odnoklassniki',
),
'bitbucket' => array(
'title' => esc_html__( 'Bitbucket', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-bitbucket',
'class' => 'bitbucket',
),
'mixcloud' => array(
'title' => esc_html__( 'Mixcloud', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-mixcloud',
'class' => 'mixcloud',
),
'medium' => array(
'title' => esc_html__( 'Medium', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-medium',
'class' => 'medium',
),
'twitch' => array(
'title' => esc_html__( 'Twitch', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-twitch',
'class' => 'twitch',
),
'viadeo' => array(
'title' => esc_html__( 'Viadeo', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-viadeo',
'class' => 'viadeo',
),
'snapchat' => array(
'title' => esc_html__( 'Snapchat', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-snapchat',
'class' => 'snapchat',
),
'telegram' => array(
'title' => esc_html__( 'Telegram', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-paper-plane',
'class' => 'telegram',
),
'tripadvisor' => array(
'title' => esc_html__( 'TripAdvisor', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-tripadvisor',
'class' => 'tripadvisor',
),
'steam' => array(
'title' => esc_html__( 'Steam', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-steam',
'class' => 'steam',
),
'tiktok' => array(
'title' => esc_html__( 'TikTok', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-tiktok',
'class' => 'tiktok',
),
'whatsapp' => array(
'title' => esc_html__( 'WhatsApp', TIELABS_TEXTDOMAIN ),
'icon' => 'tie-icon-whatsapp',
'class' => 'whatsapp',
),
);
// Add the RSS hint in the backend only.
if( is_admin() ){
$social_array['rss']['hint'] = esc_html__( 'Optional Custom Feed URL, Leave it empty to use the default WordPress feed URL.', TIELABS_TEXTDOMAIN );
}
return apply_filters( 'TieLabs/social_networks', $social_array );
}
}
/**
* Author social networks
*/
if( ! function_exists( 'tie_author_social_array' ) ) {
function tie_author_social_array(){
$author_social = array(
'facebook' => array( 'text' => esc_html__( 'Facebook', TIELABS_TEXTDOMAIN ) ),
'twitter' => array( 'text' => esc_html__( 'Twitter', TIELABS_TEXTDOMAIN ) ),
'linkedin' => array( 'text' => esc_html__( 'LinkedIn', TIELABS_TEXTDOMAIN ) ),
'flickr' => array( 'text' => esc_html__( 'Flickr', TIELABS_TEXTDOMAIN ) ),
'youtube' => array( 'text' => esc_html__( 'YouTube', TIELABS_TEXTDOMAIN ) ),
'pinterest' => array( 'text' => esc_html__( 'Pinterest', TIELABS_TEXTDOMAIN ) ),
'behance' => array( 'text' => esc_html__( 'Behance', TIELABS_TEXTDOMAIN ) ),
'instagram' => array( 'text' => esc_html__( 'Instagram', TIELABS_TEXTDOMAIN ) ),
'instagram' => array( 'text' => esc_html__( 'Instagram', TIELABS_TEXTDOMAIN ) ),
'github' => array( 'text' => esc_html__( 'GitHub', TIELABS_TEXTDOMAIN ) ),
'soundcloud' => array( 'text' => esc_html__( 'SoundCloud', TIELABS_TEXTDOMAIN ) ),
'medium' => array( 'text' => esc_html__( 'Medium', TIELABS_TEXTDOMAIN ) ),
'twitch' => array( 'text' => esc_html__( 'Twitch', TIELABS_TEXTDOMAIN ) ),
'snapchat' => array( 'text' => esc_html__( 'Snapchat', TIELABS_TEXTDOMAIN ) ),
'steam' => array( 'text' => esc_html__( 'Steam', TIELABS_TEXTDOMAIN ) ),
'tiktok' => array( 'text' => esc_html__( 'TikTok', TIELABS_TEXTDOMAIN ) ),
);
return apply_filters( 'TieLabs/author_social_array', $author_social );
}
}
/**
* Translations texts
*/
if( ! function_exists( 'tie_default_translation_texts' ) ) {
add_filter( 'TieLabs/translation_texts', 'tie_default_translation_texts' );
function tie_default_translation_texts( $texts ){
$default_texts = array(
'general' => array(
'title' => esc_html__( 'General', TIELABS_TEXTDOMAIN ),
'texts' => array(
'Home' => esc_html__( 'Home', TIELABS_TEXTDOMAIN ),
'Menu' => esc_html__( 'Menu', TIELABS_TEXTDOMAIN ),
'%s ago' => esc_html__( '%s ago', TIELABS_TEXTDOMAIN ),
'and' => esc_html__( 'and', TIELABS_TEXTDOMAIN ),
'Random Article' => esc_html__( 'Random Article', TIELABS_TEXTDOMAIN ),
'No new notifications' => esc_html__( 'No new notifications', TIELABS_TEXTDOMAIN ),
'Notifications' => esc_html__( 'Notifications', TIELABS_TEXTDOMAIN ),
)
),
'search' => array(
'title' => esc_html__( 'Search', TIELABS_TEXTDOMAIN ),
'texts' => array(
'Search for' => esc_html__( 'Search for', TIELABS_TEXTDOMAIN ),
'Nothing Found' => esc_html__( 'Nothing Found', TIELABS_TEXTDOMAIN ),
'View all results' => esc_html__( 'View all results', TIELABS_TEXTDOMAIN ),
'Type and hit Enter' => esc_html__( 'Type and hit Enter', TIELABS_TEXTDOMAIN ),
'Search Results for: %s' => esc_html__( 'Search Results for: %s',TIELABS_TEXTDOMAIN ),
'Type your search words then press enter' => esc_html__( 'Type your search words then press enter', TIELABS_TEXTDOMAIN ),
'Sorry, but nothing matched your search terms. Please try again with some different keywords.' => esc_html__( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', TIELABS_TEXTDOMAIN ),
)
),
'single_post' => array(
'title' => esc_html__( 'Single Post Page', TIELABS_TEXTDOMAIN ),
'texts' => array(
'Last Updated:' => esc_html__( 'Last Updated:', TIELABS_TEXTDOMAIN ),
'Share' => esc_html__( 'Share', TIELABS_TEXTDOMAIN ),
'Trending' => esc_html__( 'Trending', TIELABS_TEXTDOMAIN ),
'Via' => esc_html__( 'Via', TIELABS_TEXTDOMAIN ),
'Source' => esc_html__( 'Source', TIELABS_TEXTDOMAIN ),
'Views' => esc_html__( 'Views', TIELABS_TEXTDOMAIN ),
'One Comment' => esc_html__( 'One Comment', TIELABS_TEXTDOMAIN ),
'%s Comments' => esc_html__( '%s Comments', TIELABS_TEXTDOMAIN ),
'Check Also' => esc_html__( 'Check Also', TIELABS_TEXTDOMAIN ),
'Story Highlights' => esc_html__( 'Story Highlights', TIELABS_TEXTDOMAIN ),
'Less than a minute' => esc_html__( 'Less than a minute', TIELABS_TEXTDOMAIN ),
'%s hours read' => esc_html__( '%s hours read', TIELABS_TEXTDOMAIN ),
'1 minute read' => esc_html__( '1 minute read', TIELABS_TEXTDOMAIN ),
'%s minutes read' => esc_html__( '%s minutes read', TIELABS_TEXTDOMAIN ),
'Share via Email' => esc_html__( 'Share via Email', TIELABS_TEXTDOMAIN ),
'Print' => esc_html__( 'Print', TIELABS_TEXTDOMAIN ),
'Related Articles' => esc_html__( 'Related Articles', TIELABS_TEXTDOMAIN ),
'About %s' => esc_html__( 'About %s', TIELABS_TEXTDOMAIN ),
'By %s' => esc_html__( 'By %s', TIELABS_TEXTDOMAIN ),
'Read Next' => esc_html__( 'Read Next', TIELABS_TEXTDOMAIN ),
)
),
'blocks_archives' => array(
'title' => esc_html__( 'Blocks and Archives', TIELABS_TEXTDOMAIN ),
'texts' => array(
'All' => esc_html__( 'All', TIELABS_TEXTDOMAIN ),
'Previous page' => esc_html__( 'Previous page', TIELABS_TEXTDOMAIN ),
'Next page' => esc_html__( 'Next page', TIELABS_TEXTDOMAIN ),
'First' => esc_html__( 'First', TIELABS_TEXTDOMAIN ),
'Last' => esc_html__( 'Last', TIELABS_TEXTDOMAIN ),
'Show More' => esc_html__( 'Show More', TIELABS_TEXTDOMAIN ),
'Load More' => esc_html__( 'Load More', TIELABS_TEXTDOMAIN ),
'No More Posts' => esc_html__( 'No More Posts', TIELABS_TEXTDOMAIN ),
'page' => esc_html__( 'page', TIELABS_TEXTDOMAIN ),
'More' => esc_html__( 'More', TIELABS_TEXTDOMAIN ),
'Pages' => esc_html__( 'Pages', TIELABS_TEXTDOMAIN ),
'Categories' => esc_html__( 'Categories', TIELABS_TEXTDOMAIN ),
'Tags' => esc_html__( 'Tags', TIELABS_TEXTDOMAIN ),
'Authors' => esc_html__( 'Authors', TIELABS_TEXTDOMAIN ),
'Archives' => esc_html__( 'Archives', TIELABS_TEXTDOMAIN ),
'Read More »' => esc_html__( 'Read More »', TIELABS_TEXTDOMAIN ),
'Videos' => esc_html__( 'Videos', TIELABS_TEXTDOMAIN ),
)
),
'page_404' => array(
'title' => esc_html__( '404 Page', TIELABS_TEXTDOMAIN ),
'texts' => array(
'404 :(' => esc_html__( '404 :(', TIELABS_TEXTDOMAIN ),
'Oops! That page can’t be found.' => esc_html__( 'Oops! That page can’t be found.', TIELABS_TEXTDOMAIN ),
'It seems we can’t find what you’re looking for. Perhaps searching can help.' => esc_html__( "It seems we can't find what you're looking for. Perhaps searching can help.", TIELABS_TEXTDOMAIN ),
)
),
'weather' => array(
'title' => esc_html__( 'Weather', TIELABS_TEXTDOMAIN ),
'texts' => array(
'km/h' => esc_html__( 'km/h', TIELABS_TEXTDOMAIN ),
'mph' => esc_html__( 'mph', TIELABS_TEXTDOMAIN ),
'Thunderstorm' => esc_html__( 'Thunderstorm', TIELABS_TEXTDOMAIN ),
'Drizzle' => esc_html__( 'Drizzle', TIELABS_TEXTDOMAIN ),
'Light Rain' => esc_html__( 'Light Rain', TIELABS_TEXTDOMAIN ),
'Heavy Rain' => esc_html__( 'Heavy Rain', TIELABS_TEXTDOMAIN ),
'Rain' => esc_html__( 'Rain', TIELABS_TEXTDOMAIN ),
'Snow' => esc_html__( 'Snow', TIELABS_TEXTDOMAIN ),
'Mist' => esc_html__( 'Mist', TIELABS_TEXTDOMAIN ),
'Clear Sky' => esc_html__( 'Clear Sky', TIELABS_TEXTDOMAIN ),
'Scattered Clouds' => esc_html__( 'Scattered Clouds', TIELABS_TEXTDOMAIN ),
)
),
'login' => array(
'title' => esc_html__( 'Login Section', TIELABS_TEXTDOMAIN ),
'texts' => array(
'Log In' => esc_html__( 'Log In', TIELABS_TEXTDOMAIN ),
'Log Out' => esc_html__( 'Log Out', TIELABS_TEXTDOMAIN ),
'Welcome' => esc_html__( 'Welcome', TIELABS_TEXTDOMAIN ),
'Dashboard' => esc_html__( 'Dashboard', TIELABS_TEXTDOMAIN ),
'Your Profile' => esc_html__( 'Your Profile', TIELABS_TEXTDOMAIN ),
'Username' => esc_html__( 'Username', TIELABS_TEXTDOMAIN ),
'Password' => esc_html__( 'Password', TIELABS_TEXTDOMAIN ),
'Forget?' => esc_html__( 'Forget?', TIELABS_TEXTDOMAIN ),
'Remember me' => esc_html__( 'Remember me', TIELABS_TEXTDOMAIN ),
"Don't have an account?" => esc_html__( "Don't have an account?", TIELABS_TEXTDOMAIN ),
)
),
'widgets' => array(
'title' => esc_html__( 'Widgets', TIELABS_TEXTDOMAIN ),
'texts' => array(
'Enter your Email address' => esc_html__( 'Enter your Email address', TIELABS_TEXTDOMAIN ),
'Subscribe' => esc_html__( 'Subscribe', TIELABS_TEXTDOMAIN ),
'Follow us on Flickr' => esc_html__( 'Follow us on Flickr', TIELABS_TEXTDOMAIN ),
'Follow Us' => esc_html__( 'Follow Us', TIELABS_TEXTDOMAIN ),
'Follow us on Twitter' => esc_html__( 'Follow us on Twitter', TIELABS_TEXTDOMAIN ),
'Follow' => esc_html__( 'Follow', TIELABS_TEXTDOMAIN ),
'Popular' => esc_html__( 'Popular', TIELABS_TEXTDOMAIN ),
'Recent' => esc_html__( 'Recent', TIELABS_TEXTDOMAIN ),
'Comments' => esc_html__( 'Comments', TIELABS_TEXTDOMAIN ),
)
),
'woocommerce' => array(
'title' => esc_html__( 'WooCommerce', TIELABS_TEXTDOMAIN ),
'texts' => array(
'Subtotal:' => esc_html__( 'Cart Subtotal:', TIELABS_TEXTDOMAIN ),
'View Cart' => esc_html__( 'View Cart', TIELABS_TEXTDOMAIN ),
'Checkout' => esc_html__( 'Checkout', TIELABS_TEXTDOMAIN ),
'Go to the shop' => esc_html__( 'Go to the shop', TIELABS_TEXTDOMAIN ),
'No products found' => esc_html__( 'No products found', TIELABS_TEXTDOMAIN ),
'View your shopping cart' => esc_html__( 'View your shopping cart', TIELABS_TEXTDOMAIN ),
'Your cart is currently empty.' => esc_html__( 'Your cart is currently empty.', TIELABS_TEXTDOMAIN ),
)
),
);
if( ! empty( $texts ) && is_array( $texts ) ){
$default_texts = array_merge( $texts, $default_texts );
}
return apply_filters( 'TieLabs/default_translation_texts', $default_texts );
}
}