?php /** * The template for displaying the header * * Displays all of the head element and everything up until the "site-content" div. * * @package WordPress * @subpackage Microtheme * @author Khalid */ $user = false; if (is_user_logged_in()) { $user = []; $user_id = get_current_user_id(); if ($user_id) { $user_meta = get_userdata($user_id); $user['first_name'] = get_user_meta($user_id, 'first_name', true); $user['last_name'] = get_user_meta($user_id, 'last_name', true); $user['logout_url'] = wp_logout_url(); } } $wp_cat = get_white_paper_categories(); $post_cats = getPostCats(); $wp_posts = get_wp_for_mega_menu($cat = 'all', $type = 'whitepapers'); $news_posts = get_posts_for_meta_menu($cat = 'news', $type = null); $insights_posts = get_posts_for_meta_menu($cat = 'insights', $type = null); $guest_blogs_posts = get_posts_for_meta_menu($cat = 'guest', $type = null); $news = get_posts_by_from_news_cat($limit = 10); $postId = get_the_ID(); $df = json_decode(get_post_meta($postId, 'fs-default-fields', true)); $fs_client_logo = ($df->fs_client_logo) ? $df->fs_client_logo : ''; $fs_only_client_logo = ($df->fs_only_client_logo) ? $df->fs_only_client_logo : 0; ?> Wi sun technology Archives | TechDemand
Latest