Skip to content
Wednesday, May 21, 2025
Lao động Việt Nam

Lao động Việt Nam

Cập nhật thị trường lao động Việt Nam
Lao động Việt Nam
  • Trang chủ
  • An toàn lao động
  • Bạn đọc hỏi
  • Cơ quan hành chính
  • Kiến thức lao động
  • Thủ tục – Chính sách

Category: Bạn đọc hỏi

Bạn đọc hỏi

Những thói quen xấu của lao động Việt Nam

ThuHa ThuHa March 26, 2021

Lao động Việt Nam luôn được đánh giá là thông minh, nhanh nhẹn và chăm chỉ làm việc. Điều này đã tạo nên thương hiệu…

Xem tiếp Những thói quen xấu của lao động Việt Nam
Một cuộc đàm phán của chuyên viên ngành quan hệ lao động.
Bạn đọc hỏi

Ngành quan hệ lao động và những thông tin cần biết

ThuHa ThuHa March 11, 2021

Ngành Quan hệ lao động hiện nay là một trong top những ngành hot ở bậc Đại học. Có rất nhiều người vẫn chưa nắm…

Xem tiếp Ngành quan hệ lao động và những thông tin cần biết
Những câu tục ngữ về thiên nhiên, lao động sản xuất mang tính chiêm nghiệm, trao truyền kiến thức tư đời này sang đời khác
Bạn đọc hỏi

Những câu tục ngữ về thiên nhiên và lao động sản xuất

ThuyNhuan ThuyNhuan March 9, 2021

Tục ngữ về thiên nhiên và lao động sản xuất có ý nghĩa thiết thực trong cuộc sống ngày nay. Trước tác động của nền…

Xem tiếp Những câu tục ngữ về thiên nhiên và lao động sản xuất
Thông số biểu thị năng suất lao động của nước ta qua từng thời kỳ
Bạn đọc hỏi

Bức tranh toàn cảnh về năng suất lao động của Việt Nam hiện nay

ThuyNhuan ThuyNhuan March 6, 2021

Để đánh giá sự phát triển của một quốc gia, yếu tố về năng suất lao động là một trong nhưng tiêu chí hàng đầu…

Xem tiếp Bức tranh toàn cảnh về năng suất lao động của Việt Nam hiện nay
Bạn đọc hỏi

Giải pháp tạo động lực cho người lao động

ThuHa ThuHa February 26, 2021

Trong giai đoạn hiện nay, vấn đề tạo động lực cho người lao động luôn được các công ty, doanh nghiệp quan tâm hàng đầu.…

Xem tiếp Giải pháp tạo động lực cho người lao động
Bạn đọc hỏi

Lao động trẻ em là gì? Yêu cầu khi sử dụng lao động trẻ em

ThuHa ThuHa February 26, 2021

Hiện nay, tình trạng sử dụng lao động trẻ em xảy ra rất phổ biến ở nước ta. Một số doanh nghiệp còn sử dụng…

Xem tiếp Lao động trẻ em là gì? Yêu cầu khi sử dụng lao động trẻ em
Sơ đồ tổng hợp các bộ phận cấu thành tư liệu lao động
Bạn đọc hỏi

Các yếu tố hợp thành tư liệu lao động là gì?

ThuyNhuan ThuyNhuan February 23, 2021

Kinh tế chính trị Mác – Lênin đã không ít lần nhắc đến khái niệm “tư liệu lao động”. Mặc dù đây là khái niệm…

Xem tiếp Các yếu tố hợp thành tư liệu lao động là gì?
Cần phân tích chi tiết điều kiện để sức lao động trở thành một loại hàng hóa
Bạn đọc hỏi

Tại sao nói hàng hóa sức lao động là hàng hóa đặc biệt

ThuyNhuan ThuyNhuan February 6, 2021

Trên thị trường hiện nay tồn tại rất nhiều loại hàng hoá. Tuy nhiên, hàng hoá sức lao động là loại hàng hóa đặc biệt,…

Xem tiếp Tại sao nói hàng hóa sức lao động là hàng hóa đặc biệt
Bạn đọc hỏi

Quy định về độ tuổi thấp nhất của người lao động

ThuHa ThuHa February 2, 2021

Hiện nay, việc sử dụng lao động chưa đủ tuổi hoặc sử dụng lao động đã quá tuổi đang là vấn đề được mọi người…

Xem tiếp Quy định về độ tuổi thấp nhất của người lao động
hình thực kỷ luật lao động theo quy định của pháp luật
Bạn đọc hỏi

Các hình thức kỷ luật lao động theo quy định của pháp luật

ThuyNhuan ThuyNhuan January 25, 2021

Kỷ luật lao động là hình thức không thể thiếu nhằm đảm bảo quá trình sản xuất, kinh doanh diễn ra thuận lợi. Các hình…

Xem tiếp Các hình thức kỷ luật lao động theo quy định của pháp luật

Tin mới

  • How Do You Use Casino Bonus 1win?
  • Мостбет свободное Зеркало На сегодня И Прямо сейчас Актуальное Mosbet Зеркало
  • Vulkan Vegas Darmowe Spiny Bez Depozytu +150 Darmowych Spinów
  • Earn Advantages & Bonuses
  • Как Скачать Приложение Pin Up На Телефон: Android И Iphone

Về chúng tôi

VĂN PHÒNG TRUNG TÂM NGƯỜI LAO ĐỘNG VIỆT NAM

Địa chỉ: Biệt thự  Số 18, lô 4B, Trung Yên 10A, Yên Hòa, Cầu Giấy, Hà Nội

Điện thoại: 02462596091

Hotline: 091 457 6633 * 0384.12.8833

Email: giupviechoangdoan@gmail.com

Website: https://laodongvietnam.vn/

Bản đồ văn phòng

Về chúng tôi

Tạp chí lao động Việt Nam ra đời với mục tiêu đăng tải, chia sẻ những kiến thức, cẩm nang chuyên sâu về lĩnh vực lao động, việc làm. Đặc biệt khai thác trọng tâm tại thị trường Việt Nam. Tạp chí cung cấp những thông tin bổ ích và quan trọng giúp doanh nghiệp, tổ chức, cá nhân nắm bắt được thị trường việc làm, xu thế việc làm trong tương lai. #laodong #tapchilaodong #laodongvietnam

Video


Vấn đề lao động và việc làm | Chinh phục kỳ thi THPTQG môn Địa lý

(VTC14)_Chuyện về người giúp việc trong các gia đình thành thị

Gia đình trẻ loay hoay tìm người giúp việc – Tin Tức VTV24

How Do You Use Casino Bonus 1win?

Admin May 20, 2025
Người sử dụng lao động cần có nghĩa vụ với lao động

Tìm hiểu nghĩa vụ người sử dụng lao động hiện nay

ThuyNhuan ThuyNhuan December 10, 2020
Biển báo bảo hộ giúp người lao động quan sát được các vị trí nguy hiểm

Biển báo bảo hộ lao động và một số thông tin bạn nên biết

ThuyNhuan ThuyNhuan December 10, 2020

Phòng lao động thương binh xã hội quận Tân Bình

ThuHa ThuHa December 10, 2020
No comments found.
No tags created.
Copyright © 2020 | laodongvietnam.vn | All Rights Reserved. DMCA.com Protection Status










get_item_quantity($number); $rss_items = $rss->get_items(0, $maxitems); } if ( empty( $maxitems ) ) { $out = "
  • ". __( 'No items.', 'tie' )."
"; }else{ $out = "
    "; foreach ( $rss_items as $item ) : $out .= '
  • get_date("j F Y | g:i a").'">'. esc_html( $item->get_title() ) .'
  • '; endforeach; $out .='
'; } return $out; } /*-----------------------------------------------------------------------------------*/ # Tie Wp Footer /*-----------------------------------------------------------------------------------*/ add_action('wp_footer', 'tie_wp_footer'); function tie_wp_footer() { if ( tie_get_option('footer_code')) echo htmlspecialchars_decode( stripslashes(tie_get_option('footer_code') )); //Reading Position Indicator if ( tie_get_option( 'reading_indicator' ) && is_singular() ) echo '
'; } /*-----------------------------------------------------------------------------------*/ # News In Picture /*-----------------------------------------------------------------------------------*/ function tie_last_news_pic($order , $posts_number = 12 , $cats = 1 ){ global $post; $original_post = $post; if( $order == 'random') $args = array( 'posts_per_page' => $posts_number, 'cat' => $cats, 'orderby' => 'rand', 'no_found_rows' => true, 'ignore_sticky_posts' => true ); else $args = array( 'posts_per_page' => $posts_number, 'cat' => $cats, 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $get_posts_query = new WP_Query( $args ); if ( $get_posts_query->have_posts() ): while ( $get_posts_query->have_posts() ) : $get_posts_query->the_post()?>
>
$posts_number, 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $get_posts_query = new WP_Query( $args ); if ( $get_posts_query->have_posts() ): while ( $get_posts_query->have_posts() ) : $get_posts_query->the_post()?>
  • >

  • $posts_number, 'cat' => $cats, 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $get_posts_query = new WP_Query( $args ); if ( $get_posts_query->have_posts() ): while ( $get_posts_query->have_posts() ) : $get_posts_query->the_post()?>
  • >

  • $posts_number, 'cat' => $cats, 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $get_posts_query = new WP_Query( $args ); if ( $get_posts_query->have_posts() ): while ( $get_posts_query->have_posts() ) : $get_posts_query->the_post()?>
  • $posts_number, 'cat' => $cats, 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $get_posts_query = new WP_Query( $args ); if ( $get_posts_query->have_posts() ): while ( $get_posts_query->have_posts() ) : $get_posts_query->the_post()?>
  • $posts_number, 'orderby' => 'rand', 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $get_posts_query = new WP_Query( $args ); if ( $get_posts_query->have_posts() ): while ( $get_posts_query->have_posts() ) : $get_posts_query->the_post()?>
  • >

  • 'comment_count', 'order' => 'DESC', 'posts_per_page' => $posts_number, 'post_status' => 'publish', 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $popularposts = new WP_Query( $args ); if ( $popularposts->have_posts() ): while ( $popularposts->have_posts() ) : $popularposts->the_post()?>
  • >

  • 'meta_value_num', 'meta_key' => 'tie_views', 'posts_per_page' => $posts_number, 'post_status' => 'publish', 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $popularposts = new WP_Query( $args ); if ( $popularposts->have_posts() ): while ( $popularposts->have_posts() ) : $popularposts->the_post()?>
  • >

  • comment_author); ?>: comment_content, 80 ); ?>...
  • 'meta_value_num', 'meta_key' => 'taq_review_score', 'posts_per_page' => $posts_number, 'post_status' => 'publish', 'no_found_rows' => true, 'ignore_sticky_posts' => true ); $best_views = new WP_Query( $args ); if ( $best_views->have_posts() ): while ( $best_views->have_posts() ) : $best_views->the_post()?>
  • >

  • '; } /*-----------------------------------------------------------------------------------*/ # Soundcloud Function /*-----------------------------------------------------------------------------------*/ function tie_soundcloud($url, $autoplay = 'false', $visual = 'false' ) { global $post; $color = $tie_post_color = $cat_id = ''; $height = '166'; if( $visual != 'false' ){ $height = '350'; } if( is_singular() ){ $get_meta = get_post_custom($post->ID); if( !empty( $get_meta["post_color"][0] ) ) $tie_post_color = $get_meta["post_color"][0]; } if( empty($tie_post_color) ){ if( is_category() ){ $cat_id = get_query_var('cat'); } elseif( is_single() ){ $category = get_the_category($post->ID); if( !empty( $category[0]->cat_ID ) ) $cat_id = $category[0]->cat_ID; } $tie_cats_options = get_option( 'tie_cats_options' ); if( !empty( $tie_cats_options[ $cat_id ] ) ) $cat_option = $tie_cats_options[ $cat_id ]; if( !empty( $cat_option['cat_color'] ) ) $tie_post_color = $cat_option['cat_color']; } if( empty($tie_post_color) && tie_get_option( 'theme_skin' ) && !tie_get_option( 'global_color' ) ) $tie_post_color = tie_get_option( 'theme_skin' ); if( empty($tie_post_color) && tie_get_option( 'global_color' ) ) $tie_post_color = tie_get_option( 'global_color' ); if( !empty( $tie_post_color ) ){ $tie_post_color = str_replace ( '#' , '' , $tie_post_color ); $color = '&color='.$tie_post_color; } return ''; } /*-----------------------------------------------------------------------------------*/ # Login Form /*-----------------------------------------------------------------------------------*/ function tie_login_form( $login_only = 0 ) { global $user_ID, $user_identity, $user_level; $redirect = site_url(); if ( $user_ID ) : ?>

    .

    ID); if( !empty( $get_meta["tie_video_url"][0] ) ){ $video_url = $get_meta["tie_video_url"][0]; $video_link = @parse_url($video_url); if ( $video_link['host'] == 'www.youtube.com' || $video_link['host'] == 'youtube.com' ) { parse_str( @parse_url( $video_url, PHP_URL_QUERY ), $my_array_of_vars ); $video = $my_array_of_vars['v'] ; $post_thumb = $protocol.'://img.youtube.com/vi/'.$video.'/0.jpg'; } elseif( $video_link['host'] == 'www.vimeo.com' || $video_link['host'] == 'vimeo.com' ){ $video = (int) substr(@parse_url($video_url, PHP_URL_PATH), 1); $url = $protocol.'://vimeo.com/api/v2/video/'.$video.'.php';; $contents = @file_get_contents($url); $thumb = @unserialize(trim($contents)); $post_thumb = $thumb[0]['thumbnail_large']; } } } $og_title = strip_shortcodes(strip_tags(( get_the_title() ))) .' - '. get_bloginfo('name') ; $og_description = strip_tags(strip_shortcodes( apply_filters('tie_exclude_content', $post->post_content) ) ); $og_type = 'article'; if( is_home() || is_front_page() ){ $og_title = get_bloginfo('name'); $og_description = get_bloginfo( 'description' ); $og_type = 'website'; } ?> '."\n"; } /*-----------------------------------------------------------------------------------*/ # For Empty Widgets Titles /*-----------------------------------------------------------------------------------*/ function tie_widget_title($title){ if( empty( $title ) ) return ' '; else return $title; } add_filter('widget_title', 'tie_widget_title'); /*-----------------------------------------------------------------------------------*/ # Get the post time /*-----------------------------------------------------------------------------------*/ function tie_get_time( $return = false ){ global $post ; if( tie_get_option( 'time_format' ) == 'none' ){ return false; }elseif( tie_get_option( 'time_format' ) == 'modern' ){ $time_now = current_time('timestamp'); $post_time = get_the_time('U') ; if ( $post_time > $time_now - ( 60 * 60 * 24 * 30 ) ) { $since = sprintf( __ti( '%s ago' ), human_time_diff( $post_time, $time_now ) ); } else { $since = get_the_time(get_option('date_format')); } }else{ $since = get_the_time(get_option('date_format')); } $post_time = ''.$since.''; if( $return ){ return $post_time; }else{ echo $post_time; } } /*-----------------------------------------------------------------------------------*/ # Custom Classes for body /*-----------------------------------------------------------------------------------*/ add_filter('body_class','tie_body_custom_class'); function tie_body_custom_class($classes) { if( tie_get_option('dark_skin') ) $classes[] = 'dark-skin'; if( tie_get_option('lazy_load') ) $classes[] = 'lazy-enabled'; return $classes; } /*-----------------------------------------------------------------------------------*/ # Fix Shortcodes /*-----------------------------------------------------------------------------------*/ function tie_fix_shortcodes($content){ $array = array ( '[raw]' => '', '[/raw]' => '', '

    [raw]' => '', '[/raw]

    ' => '', '[/raw]
    ' => '', '

    [' => '[', ']

    ' => ']', ']
    ' => ']' ); $content = strtr($content, $array); return $content; } add_filter('the_content', 'tie_fix_shortcodes'); /*-----------------------------------------------------------------------------------*/ # Check if the current page is wp-login.php or wp-register.php /*-----------------------------------------------------------------------------------*/ function tie_is_login_page() { return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')); } /*-----------------------------------------------------------------------------------*/ # Posts Classes /*-----------------------------------------------------------------------------------*/ function tie_post_class( $classes = false ) { global $post; $post_format = get_post_meta($post->ID, 'tie_post_head', true); if( !empty($post_format) ){ if( !empty($classes) ) $classes .= ' '; $classes .= 'tie_'.$post_format; } if( !empty($classes) ) echo 'class="'.$classes.'"'; } function tie_get_post_class( $classes = false ) { global $post; $post_format = get_post_meta($post->ID, 'tie_post_head', true); if( !empty($post_format) ){ if( !empty($classes) ) $classes .= ' '; $classes .= 'tie_'.$post_format; } if( !empty($classes) ) return 'class="'.$classes.'"'; } /*-----------------------------------------------------------------------------------*/ # Languages Switcher /*-----------------------------------------------------------------------------------*/ function tie_language_selector_flags(){ if( function_exists( 'icl_get_languages' )){ $languages = icl_get_languages('skip_missing=0&orderby=code'); if(!empty($languages)){ echo '
    '; foreach($languages as $l){ if(!$l['active']) echo ''; echo ''.$l['language_code'].''; if(!$l['active']) echo ''; } echo '
    '; } } } /*-----------------------------------------------------------------------------------*/ # Modify excerpts /*-----------------------------------------------------------------------------------*/ function tie_modify_post_excerpt($text = '') { $raw_excerpt = $text; if ( '' == $text ) { $text = get_the_content(''); $text = apply_filters('tie_exclude_content', $text); $text = strip_shortcodes( $text ); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $excerpt_length = apply_filters('excerpt_length', 55); $excerpt_more = apply_filters('excerpt_more', ' ' . '[…]'); $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); } return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); } add_filter( 'get_the_excerpt', 'tie_modify_post_excerpt', 9 ); /*-----------------------------------------------------------------------------------*/ # Remove Shortcodes code and Keep the content /*-----------------------------------------------------------------------------------*/ function tie_remove_shortcodes($text = '') { $text = preg_replace( '/(\[(padding)\s?.*?\])/' , '' , $text); $text = str_replace( array ( '[/padding]', '[dropcap]', '[/dropcap]', '[highlight]', '[/highlight]', '[tie_slideshow]', '[/tie_slideshow]', '[tie_slide]', '[/tie_slide]'), '', $text); return $text; } add_filter( 'tie_exclude_content', 'tie_remove_shortcodes' ); add_filter( 'taqyeem_exclude_content', 'tie_remove_shortcodes' ); /*-----------------------------------------------------------------------------------*/ # WP 3.6.0 /*-----------------------------------------------------------------------------------*/ // For old theme versions Video shortcode function tie_video_fix_shortcodes($content){ $v = '/(\[(video)\s?.*?\])(.+?)(\[(\/video)\])/'; $content = preg_replace( $v , '[embed]$3[/embed]' , $content); return $content; } add_filter('the_content', 'tie_video_fix_shortcodes', 0); /*-----------------------------------------------------------------------------------*/ # Custom Comments Template /*-----------------------------------------------------------------------------------*/ function tie_custom_comments( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment ; ?>
  • >
    %s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • 'Taqyeem', 'slug' => 'taqyeem', 'source' => get_template_directory_uri() . '/framework/plugins/taqyeem.zip', 'required' => true, 'version' => '2.6.2', 'force_activation' => false, 'force_deactivation' => true, 'external_url' => '', ), array( 'name' => 'Taqyeem - Buttons Addon', 'slug' => 'taqyeem-buttons', 'source' => get_template_directory_uri() . '/framework/plugins/taqyeem-buttons.zip', 'required' => true, 'version' => '1.2.0', 'force_activation' => false, 'force_deactivation' => true, 'external_url' => '', ), array( 'name' => 'Taqyeem - Predefined Criteria Addon', 'slug' => 'taqyeem-predefined', 'source' => get_template_directory_uri() . '/framework/plugins/taqyeem-predefined.zip', 'required' => true, 'version' => '1.0.1', 'force_activation' => false, 'force_deactivation' => true, 'external_url' => '', ), /* array( 'name' => 'Animated Gif Resize', 'slug' => 'animated-gif-resize', 'required' => false, ), array( 'name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => false, ), array( 'name' => 'WooCommerce', 'slug' => 'woocommerce', 'required' => false, ), */ ); $config = array( 'id' => 'tie'.THEME_NAME, // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => '', // Default absolute path to pre-packaged plugins. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. 'strings' => array( 'page_title' => __( 'Install Required Plugins', 'tie' ), 'menu_title' => __( 'Install Plugins', 'tie' ), 'installing' => __( 'Installing Plugin: %s', 'tie' ), // %s = plugin name. 'oops' => __( 'Something went wrong with the plugin API.', 'tie' ), 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' ), // %1$s = plugin name(s). 'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' ), // %1$s = plugin name(s). 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s). 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s). 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s). 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s). 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s). 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s). 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins' ), 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins' ), 'return' => __( 'Return to Required Plugins Installer', 'tie' ), 'plugin_activated' => __( 'Plugin activated successfully.', 'tie' ), 'complete' => __( 'All plugins installed and activated successfully. %s', 'tie' ), // %s = dashboard link. ) ); tgmpa( $plugins, $config ); } /* Remove TGM notice for users without permissions to install/update plugins */ add_filter( 'get_user_metadata', 'tie_remove_tgm_notice', 10, 4); function tie_remove_tgm_notice($val, $object_id, $meta_key, $single){ if( $meta_key === 'tgmpa_dismissed_notice_tie'.THEME_NAME && !current_user_can( 'edit_theme_options' ) ){ return true; }else{ return null; } } /*-----------------------------------------------------------------------------------*/ # BANNERS /*-----------------------------------------------------------------------------------*/ function tie_banner( $banner , $before= false , $after = false){ if(tie_get_option( $banner )): echo $before; $protocol = is_ssl() ? 'https' : 'http'; if(tie_get_option( $banner.'_img' )): $target = $nofollow =""; if( tie_get_option( $banner.'_tab' )) $target='target="_blank"'; if( tie_get_option( $banner.'_nofollow' )) $nofollow='rel="nofollow"';?> > <?php echo tie_get_option( $banner.'_alt') ?> term_id; } return $categories; } /*-----------------------------------------------------------------------------------*/ # WOOCOMMERCE /*-----------------------------------------------------------------------------------*/ add_action('woocommerce_before_main_content', 'tie_woocommerce_wrapper_start', 22); function tie_woocommerce_wrapper_start() { echo '
    '; } add_action('woocommerce_after_main_content', 'tie_woocommerce_wrapper_start2', 11); function tie_woocommerce_wrapper_start2() { echo '
    '; } add_action('woocommerce_before_shop_loop', 'tie_woocommerce_wrapper_start3', 33); function tie_woocommerce_wrapper_start3() { echo '
    '; } add_action('woocommerce_before_shop_loop_item_title', 'tie_woocommerce_wrapper_product_img_start', 9); function tie_woocommerce_wrapper_product_img_start() { echo '
    '; } add_action('woocommerce_before_shop_loop_item_title', 'tie_woocommerce_wrapper_product_img_end', 11); function tie_woocommerce_wrapper_product_img_end() { echo '
    '; } add_filter('loop_shop_columns', 'tie_woocommerce_loop_shop_columns', 99, 1); function tie_woocommerce_loop_shop_columns() { return 3; } add_filter( 'woocommerce_output_related_products_args', 'tie_woocommerce_related_products_args' ); function tie_woocommerce_related_products_args( $args ){ $args['posts_per_page'] = 3; $args['columns'] = 3; return $args; } add_filter( 'woocommerce_single_product_image_thumbnail_html', 'tie_woocommerce_single_product_image_html', 20, 2 ); function tie_woocommerce_single_product_image_html( $html, $attachment_id ){ $full_size_image = wp_get_attachment_image_src( $attachment_id, 'full' ); $zoom_trigger = 'class="woocommerce-product-gallery__image">'; $html = str_replace( 'class="woocommerce-product-gallery__image">', $zoom_trigger, $html ); return $html; } /*-----------------------------------------------------------------------------------*/ # Remove Query Strings From Static Resources /*-----------------------------------------------------------------------------------*/ function tie_remove_query_strings_1( $src ){ $rqs = explode( '?ver', $src ); return $rqs[0]; } function tie_remove_query_strings_2( $src ){ $rqs = explode( '&ver', $src ); return $rqs[0]; } if ( ! is_admin() ) { add_filter( 'script_loader_src', 'tie_remove_query_strings_1', 15, 1 ); add_filter( 'style_loader_src', 'tie_remove_query_strings_1', 15, 1 ); add_filter( 'script_loader_src', 'tie_remove_query_strings_2', 15, 1 ); add_filter( 'style_loader_src', 'tie_remove_query_strings_2', 15, 1 ); } /*-----------------------------------------------------------------------------------*/ # Titles for WordPress before 4.1 /*-----------------------------------------------------------------------------------*/ if ( ! function_exists( '_wp_render_title_tag' ) ) : function tie_slug_render_title() { ?> <?php wp_title( '|', true, 'right' ); ?> ID ) ) $post_id = $post->ID; elseif( !empty($_GET['post']) ) $post_id = $_GET['post']; if( !empty( $post_id ) ){ $current_post_data = get_post_meta($post_id); if( !empty( $current_post_data ) && is_array($current_post_data) ) extract($current_post_data); // There is no title feature in the theme so we check if one of other fields exists to execute the code one time if( !empty( $tie_review_position[0] ) && empty( $taq_review_title[0] ) ){ $update_new_title = update_post_meta($post_id, 'taq_review_title' , __( "Review Overview" , "tie" ) ); } if( !empty( $tie_review_position[0] ) && empty( $taq_review_position[0] ) ){ if( $tie_review_position[0] == 'both' ){ $update_new_position = update_post_meta($post_id, 'taq_review_position' , 'top' ); }else{ $update_new_position = update_post_meta($post_id, 'taq_review_position' , $tie_review_position[0] ); } if( $update_new_position ) delete_post_meta($post_id, 'tie_review_position'); } if( !empty( $tie_review_style[0] ) && empty( $taq_review_style[0] ) ){ $update_new_style = update_post_meta($post_id, 'taq_review_style' , $tie_review_style[0] ); if( $update_new_style ) delete_post_meta($post_id, 'tie_review_style'); } if( !empty( $tie_review_summary[0] ) && empty( $taq_review_summary[0] ) ){ $update_new_summary = update_post_meta($post_id, 'taq_review_summary' , $tie_review_summary[0] ); if( $update_new_summary ) delete_post_meta($post_id, 'tie_review_summary'); } if( !empty( $tie_review_total[0] ) && empty( $taq_review_total[0] ) ){ $update_new_total = update_post_meta($post_id, 'taq_review_total' , $tie_review_total[0] ); if( $update_new_total ) delete_post_meta($post_id, 'tie_review_total'); } if( !empty( $tie_review_criteria[0] ) && empty( $taq_review_criteria[0] ) ){ $update_new_criteria = update_post_meta($post_id, 'taq_review_criteria' , unserialize ( $tie_review_criteria[0] ) ); if( $update_new_criteria ) delete_post_meta($post_id, 'tie_review_criteria'); } if( !empty( $tie_review_score[0] ) && empty( $taq_review_score[0] ) ){ $update_new_score = update_post_meta($post_id, 'taq_review_score' , $tie_review_score[0] ); if( $update_new_score ) delete_post_meta($post_id, 'tie_review_score'); } } } /* Old Review Shortcode */ add_shortcode('review', 'taqyeem_shortcode_review'); /*-----------------------------------------------------------------------------------*/ # get terms as plain text seprated with commas /*-----------------------------------------------------------------------------------*/ function tie_get_plain_terms( $post_id, $term ){ $post_terms = get_the_terms( $post_id, $term ); $terms = array(); if( ! empty( $post_terms ) && is_array( $post_terms ) ){ foreach ( $post_terms as $term ) { $terms[] = $term->name; } $terms = implode( ',', $terms ); } return $terms; } /*-----------------------------------------------------------------------------------*/ # Remove hentry /*-----------------------------------------------------------------------------------*/ function tie_remove_hentry_from_post_class_filter( $classes ) { $classes = str_replace('hentry', '', $classes); return $classes; } add_filter( 'post_class', 'tie_remove_hentry_from_post_class_filter' ); /*-----------------------------------------------------------------------------------*/ # Rich Snippets /*-----------------------------------------------------------------------------------*/ if( ! function_exists( 'tie_article_schemas' ) ){ add_filter( 'tie_taqyeem_rich_snippets', '__return_false' ); add_action( 'tie_end_of_post', 'tie_article_schemas' ); function tie_article_schemas(){ if( ! tie_get_option( 'structure_data' ) ){ return; } $post = get_post(); $post_id = $post->ID; $has_review = get_post_meta( $post_id, 'taq_review_position', true ); if( ! $has_review && is_page() ){ return; } # Site Logo ---------- $site_logo = tie_get_option( 'logo_retina' ) ? tie_get_option( 'logo_retina' ) : tie_get_option( 'logo' ); $site_logo = ! empty( $site_logo ) ? $site_logo : get_stylesheet_directory_uri().'/images/logo@2x.png'; # Tags and Categories ---------- $tags = tie_get_plain_terms( $post_id, 'post_tag' ); $cats = tie_get_plain_terms( $post_id, 'category' ); # Post Description ---------- $article_body = strip_tags(strip_shortcodes( apply_filters('tie_exclude_content', $post->post_content ) )); $description = wp_html_excerpt( $article_body, 200 ); $schema_type = tie_get_option( 'schema_type' ); $schema_type = ! empty( $schema_type ) ? $schema_type : 'Article'; $schema_type = ( $has_review ) ? 'review' : $schema_type; $schema = array( '@context' => 'http://schema.org', '@type' => $schema_type, // CreativeWork | NewsArticle | Article | BlogPosting 'dateCreated' => ( get_the_time( 'c' ) ) ? get_the_time( 'c' ) : get_the_modified_date( 'c' ), 'datePublished' => ( get_the_time( 'c' ) ) ? get_the_time( 'c' ) : get_the_modified_date( 'c' ), 'dateModified' => get_the_modified_date( 'c' ), 'headline' => get_the_title(), 'name' => get_the_title(), 'keywords' => $tags, 'url' => get_permalink(), 'description' => $description, 'copyrightYear' => get_the_time( 'Y' ), 'publisher' => array( '@id' => '#Publisher', '@type' => 'Organization', 'name' => get_bloginfo(), 'logo' => array( '@type' => 'ImageObject', 'url' => $site_logo, ) ), 'sourceOrganization' => array( '@id' => '#Publisher' ), 'copyrightHolder' => array( '@id' => '#Publisher' ), 'mainEntityOfPage' => array( '@type' => 'WebPage', '@id' => get_permalink(), ), 'author' => array( '@type' => 'Person', 'name' => get_the_author(), 'url' => get_author_posts_url( get_the_author_meta( 'ID' ) ), ), ); // Breadcrumbs if( tie_get_option( 'breadcrumbs' ) ){ $schema['mainEntityOfPage']['breadcrumb'] = array( '@id' => '#crumbs' ); } # Social links ---------- $social = tie_get_option('social'); if( ! empty( $social ) && is_array( $social )){ $schema['publisher']['sameAs'] = array_values( $social ); } # Review ---------- if( ! empty( $has_review ) ){ if( function_exists( 'taqyeem_review_get_rich_snippet' ) ){ $review_rich_snippet = taqyeem_review_get_rich_snippet(); if( $review_rich_snippet['@type'] == 'product' ){ $schema = $review_rich_snippet; } else{ // Add the data to the post structure data $schema['@type'] = 'review'; $schema['itemReviewed'] = $review_rich_snippet['itemReviewed']; $schema['reviewBody'] = $review_rich_snippet['reviewBody']; $schema['reviewRating'] = $review_rich_snippet['reviewRating']; } } } else{ $schema['articleSection'] = $cats; $schema['articleBody'] = $article_body; } # Post image ---------- $image_id = get_post_thumbnail_id(); $image_data = wp_get_attachment_image_src( $image_id, 'full' ); if( ! empty( $image_data ) ){ $schema['image'] = array( '@type' => 'ImageObject', 'url' => $image_data[0], 'width' => ( $image_data[1] > 696 ) ? $image_data[1] : 696, 'height' => $image_data[2], ); } echo ''; } } var ai_rotation_triggers=[],ai_block_class_def="code-block"; if("undefined"!=typeof ai_rotation_triggers){ai_process_rotation=function(b){var d="number"==typeof b.length;window.jQuery&&window.jQuery.fn&&b instanceof jQuery&&(b=d?Array.prototype.slice.call(b):b[0]);if(d){var e=!1;b.forEach((c,h)=>{if(c.classList.contains("ai-unprocessed")||c.classList.contains("ai-timer"))e=!0});if(!e)return;b.forEach((c,h)=>{c.classList.remove("ai-unprocessed");c.classList.remove("ai-timer")})}else{if(!b.classList.contains("ai-unprocessed")&&!b.classList.contains("ai-timer"))return; b.classList.remove("ai-unprocessed");b.classList.remove("ai-timer")}var a=!1;if(d?b[0].hasAttribute("data-info"):b.hasAttribute("data-info")){var f="div.ai-rotate.ai-"+(d?JSON.parse(atob(b[0].dataset.info)):JSON.parse(atob(b.dataset.info)))[0];ai_rotation_triggers.includes(f)&&(ai_rotation_triggers.splice(ai_rotation_triggers.indexOf(f),1),a=!0)}if(d)for(d=0;d{g.matches(".ai-rotate-option")&&e.push(g)});if(0!=e.length){e.forEach((g,p)=>{g.style.display="none"});if(b.hasAttribute("data-next")){k=parseInt(b.getAttribute("data-next"));var a=e[k];if(a.hasAttribute("data-code")){var f=document.createRange(),c=!0;try{var h=f.createContextualFragment(b64d(a.dataset.code))}catch(g){c=!1}c&&(a=h)}0!=a.querySelectorAll("span[data-ai-groups]").length&&0!=document.querySelectorAll(".ai-rotation-groups").length&& setTimeout(function(){A()},5)}else if(e[0].hasAttribute("data-group")){var k=-1,u=[];document.querySelectorAll("span[data-ai-groups]").forEach((g,p)=>{(g.offsetWidth||g.offsetHeight||g.getClientRects().length)&&u.push(g)});1<=u.length&&(timed_groups=[],groups=[],u.forEach(function(g,p){active_groups=JSON.parse(b64d(g.dataset.aiGroups));var q=!1;g=g.closest(".ai-rotate");null!=g&&g.classList.contains("ai-timed-rotation")&&(q=!0);active_groups.forEach(function(t,C){groups.push(t);q&&timed_groups.push(t)})}), groups.forEach(function(g,p){-1==k&&e.forEach((q,t)=>{q=b64d(q.dataset.group);if(q==g)return k=t,timed_groups.includes(q)&&b.classList.add("ai-timed-rotation"),!1})}))}else if(b.hasAttribute("data-shares"))for(f=JSON.parse(atob(b.dataset.shares)),a=Math.round(100*Math.random()),c=0;cf[c]||!(a<=f[c]));c++);else f=b.classList.contains("ai-unique"),a=new Date,f?("number"!=typeof ai_rotation_seed&&(ai_rotation_seed=(Math.floor(1E3*Math.random())+a.getMilliseconds())%e.length),f=ai_rotation_seed, f>e.length&&(f%=e.length),a=parseInt(b.dataset.counter),a<=e.length?(k=parseInt(f+a-1),k>=e.length&&(k-=e.length)):k=e.length):(k=Math.floor(Math.random()*e.length),a.getMilliseconds()%2&&(k=e.length-k-1));if(b.classList.contains("ai-rotation-scheduling"))for(k=-1,f=0;f=l[0]&&c<=l[1]){r=a;break}}else if(c==l){r=a;break}if(r){k=f;break}}if(!(0> k||k>=e.length)){a=e[k];var y="",v=b.classList.contains("ai-timed-rotation");e.forEach((g,p)=>{g.hasAttribute("data-time")&&(v=!0)});if(a.hasAttribute("data-time")){f=atob(a.dataset.time);if(0==f&&1=e.length&&(c=0);m=e[c];if(!m.hasAttribute("data-time")){k=c;a=e[k];f=0;break}m=atob(m.dataset.time)}while(0==m&&c!=k);0!=f&&(k=c,a=e[k],f=atob(a.dataset.time))}if(0=e.length&&(c=0),b.hasAttribute("data-info"))){m=JSON.parse(atob(b.dataset.info))[0];b.setAttribute("data-next", c);var w="div.ai-rotate.ai-"+m;ai_rotation_triggers.includes(w)&&(d=!1);d&&(ai_rotation_triggers.push(w),setTimeout(function(){var g=document.querySelectorAll(w);g.forEach((p,q)=>{p.classList.add("ai-timer")});ai_process_rotation(g)},1E3*f));y=" ("+f+" s)"}}else a.hasAttribute("data-group")||e.forEach((g,p)=>{p!=k&&g.remove()});a.style.display="";a.style.visibility="";a.style.position="";a.style.width="";a.style.height="";a.style.top="";a.style.left="";a.classList.remove("ai-rotate-hidden");a.classList.remove("ai-rotate-hidden-2"); b.style.position="";if(a.hasAttribute("data-code")){e.forEach((g,p)=>{g.innerText=""});d=b64d(a.dataset.code);f=document.createRange();c=!0;try{h=f.createContextualFragment(d)}catch(g){c=!1}a.append(h);B()}f=parseInt(a.dataset.index);var x=b64d(a.dataset.name);d=b.closest(".ai-debug-block");if(null!=d){h=d.querySelectorAll("kbd.ai-option-name");d=d.querySelectorAll(".ai-debug-block");if(0!=d.length){var z=[];d.forEach((g,p)=>{g.querySelectorAll("kbd.ai-option-name").forEach((q,t)=>{z.push(q)})}); h=Array.from(h);h=h.slice(0,h.length-z.length)}0!=h.length&&(separator=h[0].hasAttribute("data-separator")?h[0].dataset.separator:"",h.forEach((g,p)=>{g.innerText=separator+x+y}))}d=!1;a=b.closest(".ai-adb-show");null!=a&&a.hasAttribute("data-ai-tracking")&&(h=JSON.parse(b64d(a.getAttribute("data-ai-tracking"))),"undefined"!==typeof h&&h.constructor===Array&&(h[1]=f,h[3]=x,a.setAttribute("data-ai-tracking",b64e(JSON.stringify(h))),a.classList.add("ai-track"),v&&ai_tracking_finished&&a.classList.add("ai-no-pageview"), d=!0));d||(d=b.closest("div[data-ai]"),null!=d&&d.hasAttribute("data-ai")&&(h=JSON.parse(b64d(d.getAttribute("data-ai"))),"undefined"!==typeof h&&h.constructor===Array&&(h[1]=f,h[3]=x,d.setAttribute("data-ai",b64e(JSON.stringify(h))),d.classList.add("ai-track"),v&&ai_tracking_finished&&d.classList.add("ai-no-pageview"))))}}};ai_process_rotations=function(){document.querySelectorAll("div.ai-rotate").forEach((b,d)=>{ai_process_rotation(b)})};function A(){document.querySelectorAll("div.ai-rotate.ai-rotation-groups").forEach((b, d)=>{b.classList.add("ai-timer");ai_process_rotation(b)})}ai_process_rotations_in_element=function(b){b.querySelectorAll("div.ai-rotate").forEach((d,e)=>{ai_process_rotation(d)})};(function(b){"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?b():document.addEventListener("DOMContentLoaded",b)})(function(){setTimeout(function(){ai_process_rotations()},10)});ai_process_elements_active=!1;function B(){ai_process_elements_active||setTimeout(function(){ai_process_elements_active= !1;"function"==typeof ai_process_rotations&&ai_process_rotations();"function"==typeof ai_process_lists&&ai_process_lists();"function"==typeof ai_process_ip_addresses&&ai_process_ip_addresses();"function"==typeof ai_process_filter_hooks&&ai_process_filter_hooks();"function"==typeof ai_adb_process_blocks&&ai_adb_process_blocks();"function"==typeof ai_process_impressions&&1==ai_tracking_finished&&ai_process_impressions();"function"==typeof ai_install_click_trackers&&1==ai_tracking_finished&&ai_install_click_trackers(); "function"==typeof ai_install_close_buttons&&ai_install_close_buttons(document)},5);ai_process_elements_active=!0}}; ;!function(a,b){a(function(){"use strict";function a(a,b){return null!=a&&null!=b&&a.toLowerCase()===b.toLowerCase()}function c(a,b){var c,d,e=a.length;if(!e||!b)return!1;for(c=b.toLowerCase(),d=0;d=0&&(c=c.substring(0,j)+"([\\w._\\+]+)"+c.substring(j+5)),b[e]=new RegExp(c,"i");k.props[a]=b}d(k.oss),d(k.phones),d(k.tablets),d(k.uas),d(k.utils),k.oss0={WindowsPhoneOS:k.oss.WindowsPhoneOS,WindowsMobileOS:k.oss.WindowsMobileOS}}(),g.findMatch=function(a,b){for(var c in a)if(i.call(a,c)&&a[c].test(b))return c;return null},g.findMatches=function(a,b){var c=[];for(var d in a)i.call(a,d)&&a[d].test(b)&&c.push(d);return c},g.getVersionStr=function(a,b){var c,d,e,f,h=g.mobileDetectRules.props;if(i.call(h,a))for(c=h[a],e=c.length,d=0;d1&&(a=b[0]+".",b.shift(),a+=b.join("")),Number(a)},g.isMobileFallback=function(a){return g.detectMobileBrowsers.fullPattern.test(a)||g.detectMobileBrowsers.shortPattern.test(a.substr(0,4))},g.isTabletFallback=function(a){return g.detectMobileBrowsers.tabletPattern.test(a)},g.prepareDetectionCache=function(a,c,d){if(a.mobile===b){var e,h,i;return(h=g.findMatch(g.mobileDetectRules.tablets,c))?(a.mobile=a.tablet=h,void(a.phone=null)):(e=g.findMatch(g.mobileDetectRules.phones,c))?(a.mobile=a.phone=e,void(a.tablet=null)):void(g.isMobileFallback(c)?(i=f.isPhoneSized(d),i===b?(a.mobile=g.FALLBACK_MOBILE,a.tablet=a.phone=null):i?(a.mobile=a.phone=g.FALLBACK_PHONE,a.tablet=null):(a.mobile=a.tablet=g.FALLBACK_TABLET,a.phone=null)):g.isTabletFallback(c)?(a.mobile=a.tablet=g.FALLBACK_TABLET,a.phone=null):a.mobile=a.tablet=a.phone=null)}},g.mobileGrade=function(a){var b=null!==a.mobile();return a.os("iOS")&&a.version("iPad")>=4.3||a.os("iOS")&&a.version("iPhone")>=3.1||a.os("iOS")&&a.version("iPod")>=3.1||a.version("Android")>2.1&&a.is("Webkit")||a.version("Windows Phone OS")>=7||a.is("BlackBerry")&&a.version("BlackBerry")>=6||a.match("Playbook.*Tablet")||a.version("webOS")>=1.4&&a.match("Palm|Pre|Pixi")||a.match("hp.*TouchPad")||a.is("Firefox")&&a.version("Firefox")>=12||a.is("Chrome")&&a.is("AndroidOS")&&a.version("Android")>=4||a.is("Skyfire")&&a.version("Skyfire")>=4.1&&a.is("AndroidOS")&&a.version("Android")>=2.3||a.is("Opera")&&a.version("Opera Mobi")>11&&a.is("AndroidOS")||a.is("MeeGoOS")||a.is("Tizen")||a.is("Dolfin")&&a.version("Bada")>=2||(a.is("UC Browser")||a.is("Dolfin"))&&a.version("Android")>=2.3||a.match("Kindle Fire")||a.is("Kindle")&&a.version("Kindle")>=3||a.is("AndroidOS")&&a.is("NookTablet")||a.version("Chrome")>=11&&!b||a.version("Safari")>=5&&!b||a.version("Firefox")>=4&&!b||a.version("MSIE")>=7&&!b||a.version("Opera")>=10&&!b?"A":a.os("iOS")&&a.version("iPad")<4.3||a.os("iOS")&&a.version("iPhone")<3.1||a.os("iOS")&&a.version("iPod")<3.1||a.is("Blackberry")&&a.version("BlackBerry")>=5&&a.version("BlackBerry")<6||a.version("Opera Mini")>=5&&a.version("Opera Mini")<=6.5&&(a.version("Android")>=2.3||a.is("iOS"))||a.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||a.version("Opera Mobi")>=11&&a.is("SymbianOS")?"B":(a.version("BlackBerry")<5||a.match("MSIEMobile|Windows CE.*Mobile")||a.version("Windows Mobile")<=5.2,"C")},g.detectOS=function(a){return g.findMatch(g.mobileDetectRules.oss0,a)||g.findMatch(g.mobileDetectRules.oss,a)},g.getDeviceSmallerSide=function(){return window.screen.width{b.matches(".ai-list-data")?x.push(b):(b=b.querySelectorAll(".ai-list-data"),b.length&&b.forEach((k,l)=>{x.push(k)}))});a=x}if(a.length){a.forEach((b,d)=>{b.classList.remove("ai-list-data")});var I=ha(window.location.search);if(null!=I.referrer)var A=I.referrer; else A=document.referrer,""!=A&&(A=fa(A));var Q=window.navigator.userAgent,R=Q.toLowerCase(),Y=navigator.language,J=Y.toLowerCase();if("undefined"!==typeof MobileDetect)var Z=new MobileDetect(Q);a.forEach((b,d)=>{var k=document.cookie.split(";");k.forEach(function(f,h){k[h]=f.trim()});d=b.closest("div."+ai_block_class_def);var l=!0;if(b.hasAttribute("referer-list")){var n=b.getAttribute("referer-list");n=b64d(n).split(",");var t=b.getAttribute("referer-list-type"),E=!1;n.every((f,h)=>{f=f.trim(); if(""==f)return!0;if("*"==f.charAt(0))if("*"==f.charAt(f.length-1)){if(f=f.substr(1,f.length-2),-1!=A.indexOf(f))return E=!0,!1}else{if(f=f.substr(1),A.substr(-f.length)==f)return E=!0,!1}else if("*"==f.charAt(f.length-1)){if(f=f.substr(0,f.length-1),0==A.indexOf(f))return E=!0,!1}else if("#"==f){if(""==A)return E=!0,!1}else if(f==A)return E=!0,!1;return!0});var u=E;switch(t){case "B":u&&(l=!1);break;case "W":u||(l=!1)}}if(l&&b.hasAttribute("client-list")&&"undefined"!==typeof Z)switch(n=b.getAttribute("client-list"), n=b64d(n).split(","),t=b.getAttribute("client-list-type"),u=!1,n.every((f,h)=>{if(""==f.trim())return!0;f.split("&&").every((c,v)=>{v=!0;var w=!1;for(c=c.trim();"!!"==c.substring(0,2);)v=!v,c=c.substring(2);"language:"==c.substring(0,9)&&(w=!0,c=c.substring(9).toLowerCase());var q=!1;w?"*"==c.charAt(0)?"*"==c.charAt(c.length-1)?(c=c.substr(1,c.length-2).toLowerCase(),-1!=J.indexOf(c)&&(q=!0)):(c=c.substr(1).toLowerCase(),J.substr(-c.length)==c&&(q=!0)):"*"==c.charAt(c.length-1)?(c=c.substr(0,c.length- 1).toLowerCase(),0==J.indexOf(c)&&(q=!0)):c==J&&(q=!0):"*"==c.charAt(0)?"*"==c.charAt(c.length-1)?(c=c.substr(1,c.length-2).toLowerCase(),-1!=R.indexOf(c)&&(q=!0)):(c=c.substr(1).toLowerCase(),R.substr(-c.length)==c&&(q=!0)):"*"==c.charAt(c.length-1)?(c=c.substr(0,c.length-1).toLowerCase(),0==R.indexOf(c)&&(q=!0)):Z.is(c)&&(q=!0);return(u=q?v:!v)?!0:!1});return u?!1:!0}),t){case "B":u&&(l=!1);break;case "W":u||(l=!1)}var K=n=!1;for(t=1;2>=t;t++)if(l){switch(t){case 1:var g=b.getAttribute("cookie-list"); break;case 2:g=b.getAttribute("parameter-list")}if(null!=g){g=b64d(g);switch(t){case 1:var y=b.getAttribute("cookie-list-type");break;case 2:y=b.getAttribute("parameter-list-type")}g=g.replace("tcf-gdpr","tcf-v2[gdprApplies]=true");g=g.replace("tcf-no-gdpr","tcf-v2[gdprApplies]=false");g=g.replace("tcf-google","tcf-v2[vendor][consents][755]=true && tcf-v2[purpose][consents][1]=true");g=g.replace("tcf-no-google","!!tcf-v2[vendor][consents][755]");g=g.replace("tcf-media.net","tcf-v2[vendor][consents][142]=true && tcf-v2[purpose][consents][1]=true"); g=g.replace("tcf-no-media.net","!!tcf-v2[vendor][consents][142]");g=g.replace("tcf-amazon","tcf-v2[vendor][consents][793]=true && tcf-v2[purpose][consents][1]=true");g=g.replace("tcf-no-amazon","!!tcf-v2[vendor][consents][793]");g=g.replace("tcf-ezoic","tcf-v2[vendor][consents][347]=true && tcf-v2[purpose][consents][1]=true");g=g.replace("tcf-no-ezoic","!!tcf-v2[vendor][consents][347]");var F=g.split(","),aa=[];k.forEach(function(f){f=f.split("=");try{var h=JSON.parse(decodeURIComponent(f[1]))}catch(c){h= decodeURIComponent(f[1])}aa[f[0]]=h});u=!1;var L=b;F.every((f,h)=>{f.split("&&").every((c,v)=>{v=!0;for(c=c.trim();"!!"==c.substring(0,2);)v=!v,c=c.substring(2);var w=c,q="!@!",D=-1!=c.indexOf("["),ba=(0==c.indexOf("tcf-v2")||0==c.indexOf("euconsent-v2"))&&-1!=c.indexOf("[");-1!=c.indexOf("=")&&(q=c.split("="),w=q[0],q=q[1],D=-1!=w.indexOf("["),ba=(0==w.indexOf("tcf-v2")||0==w.indexOf("euconsent-v2"))&&-1!=w.indexOf("["));if(ba)document.querySelector("#ai-iab-tcf-status"),D=document.querySelector("#ai-iab-tcf-bar"), null!=D&&(D.style.display="block"),"object"==typeof ai_tcData?(null!=D&&D.classList.add("status-ok"),w=w.replace(/]| /gi,"").split("["),w.shift(),u=(w=e(w,ai_tcData,q))?v:!v):(L.classList.add("ai-list-data"),K=!0,"function"==typeof __tcfapi?C(!1):"undefined"==typeof ai_tcData_retrying&&(ai_tcData_retrying=!0,setTimeout(function(){"function"==typeof __tcfapi?C(!1):setTimeout(function(){"function"==typeof __tcfapi?C(!1):setTimeout(function(){C(!0)},3E3)},1E3)},600)));else if(D)u=(w=p(aa,w,q))?v:!v; else{var S=!1;"!@!"==q?k.every(function(ia){return ia.split("=")[0]==c?(S=!0,!1):!0}):S=-1!=k.indexOf(c);u=S?v:!v}return u?!0:!1});return u?!1:!0});u&&(K=!1);switch(y){case "B":u&&(l=!1);break;case "W":u||(l=!1)}}}b.classList.contains("ai-list-manual")&&(l?(L.classList.remove("ai-list-data"),L.classList.remove("ai-list-manual")):(n=!0,L.classList.add("ai-list-data")));(l||!n&&!K)&&b.hasAttribute("data-debug-info")&&(g=document.querySelector("."+b.dataset.debugInfo),null!=g&&(g=g.parentElement,null!= g&&g.classList.contains("ai-debug-info")&&g.remove()));y=V(b,".ai-debug-bar.ai-debug-lists");var ja=""==A?"#":A;0!=y.length&&y.forEach((f,h)=>{h=f.querySelector(".ai-debug-name.ai-list-info");null!=h&&(h.textContent=ja,h.title=Q+"\n"+Y);h=f.querySelector(".ai-debug-name.ai-list-status");null!=h&&(h.textContent=l?ai_front.visible:ai_front.hidden)});g=!1;if(l&&b.hasAttribute("scheduling-start")&&b.hasAttribute("scheduling-end")&&b.hasAttribute("scheduling-days")){var r=b.getAttribute("scheduling-start"); t=b.getAttribute("scheduling-end");y=b.getAttribute("scheduling-days");g=!0;r=b64d(r);F=b64d(t);var T=parseInt(b.getAttribute("scheduling-fallback")),M=parseInt(b.getAttribute("gmt"));if(r.includes("-")||F.includes("-"))N=W(r)+M,O=W(F)+M;else var N=P(r),O=P(F);var U=b64d(y).split(",");y=b.getAttribute("scheduling-type");var B=(new Date).getTime()+M;t=new Date(B);var G=t.getDay();r.includes("-")||F.includes("-")||(r=(new Date(t.getFullYear(),t.getMonth(),t.getDate())).getTime()+M,B-=r,0>B&&(B+=864E5)); 0==G?G=6:G--;r=B>=N&&B{h=f.querySelector(".ai-debug-name.ai-scheduling-info");null!=h&&(h.textContent=ka+" "+G+" current_time:"+Math.floor(B.toString()/1E3)+" start_date:"+Math.floor(N/1E3).toString()+" ="+(B>=N).toString()+" end_date:"+Math.floor(O/1E3).toString()+" =:"+(B{f.classList.remove("ai-fallback")}); if(b.hasAttribute("data-fallback-code")){n=b64d(b.dataset.fallbackCode);r=document.createRange();g=!0;try{var H=r.createContextualFragment(n)}catch(f){g=!1}g&&b.append(H);ca(b)}else b.style.display="none",null!=d&&null==d.querySelector(".ai-debug-block")&&d.hasAttribute("style")&&-1==d.getAttribute("style").indexOf("height:")&&(d.style.display="none");null!=d&&d.hasAttribute("data-ai")&&(d.getAttribute("data-ai"),b.hasAttribute("fallback-tracking")&&(H=b.getAttribute("fallback-tracking"),d.setAttribute("data-ai-"+ b.getAttribute("fallback_level"),H)))}else b.style.display="none",null!=d&&(d.removeAttribute("data-ai"),d.classList.remove("ai-track"),null!=d.querySelector(".ai-debug-block")?(d.style.visibility="",d.classList.remove("ai-close"),d.classList.contains("ai-remove-position")&&(d.style.position="")):d.hasAttribute("style")&&-1==d.getAttribute("style").indexOf("height:")&&(d.style.display="none"));b.setAttribute("data-code","");b.setAttribute("data-fallback-code","");null!=d&&d.classList.remove("ai-list-block")})}}; function da(a){a=`; ${document.cookie}`.split(`; ${a}=`);if(2===a.length)return a.pop().split(";").shift()}function la(a,e,p){da(a)&&(document.cookie=a+"="+(e?";path="+e:"")+(p?";domain="+p:"")+";expires=Thu, 01 Jan 1970 00:00:01 GMT")}function m(a){da(a)&&(la(a,"/",window.location.hostname),document.cookie=a+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}(function(a){"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?a():document.addEventListener("DOMContentLoaded", a)})(function(){setTimeout(function(){ai_process_lists();setTimeout(function(){X();if("function"==typeof ai_load_blocks){document.addEventListener("cmplzEnableScripts",e);document.addEventListener("cmplz_event_marketing",e);function e(p){"cmplzEnableScripts"!=p.type&&"all"!==p.consentLevel||ai_load_blocks()}}},50);var a=document.querySelector(".ai-debug-page-type");null!=a&&a.addEventListener("dblclick",e=>{e=document.querySelector("#ai-iab-tcf-status");null!=e&&(e.textContent="CONSENT COOKIES"); e=document.querySelector("#ai-iab-tcf-bar");null!=e&&(e.style.display="block")});a=document.querySelector("#ai-iab-tcf-bar");null!=a&&a.addEventListener("click",e=>{m("euconsent-v2");m("__lxG__consent__v2");m("__lxG__consent__v2_daisybit");m("__lxG__consent__v2_gdaisybit");m("CookieLawInfoConsent");m("cookielawinfo-checkbox-advertisement");m("cookielawinfo-checkbox-analytics");m("cookielawinfo-checkbox-necessary");m("complianz_policy_id");m("complianz_consent_status");m("cmplz_marketing");m("cmplz_consent_status"); m("cmplz_preferences");m("cmplz_statistics-anonymous");m("cmplz_choice");m("cmplz_banner-status");m("cmplz_functional");m("cmplz_policy_id");m("cmplz_statistics");m("moove_gdpr_popup");m("real_cookie_banner-blog:1-tcf");m("real_cookie_banner-blog:1");e=document.querySelector("#ai-iab-tcf-status");null!=e&&(e.textContent="CONSENT COOKIES DELETED")})},5)});function ca(a){setTimeout(function(){"function"==typeof ai_process_rotations_in_element&&ai_process_rotations_in_element(a);"function"==typeof ai_process_lists&& ai_process_lists();"function"==typeof ai_process_ip_addresses&&ai_process_ip_addresses();"function"==typeof ai_process_filter_hooks&&ai_process_filter_hooks();"function"==typeof ai_adb_process_blocks&&ai_adb_process_blocks(a);"function"==typeof ai_process_impressions&&1==ai_tracking_finished&&ai_process_impressions();"function"==typeof ai_install_click_trackers&&1==ai_tracking_finished&&ai_install_click_trackers();"function"==typeof ai_install_close_buttons&&ai_install_close_buttons(document)},5)} function ha(a){var e=a?a.split("?")[1]:window.location.search.slice(1);a={};if(e){e=e.split("#")[0];e=e.split("&");for(var p=0;p