ID) ? $post->ID : ''; $post_view_count = 0; $supported_posts = array('post','page'); // suppoterd post type if( !empty($post_id) && !empty($supported_posts) && is_singular($supported_posts) && !is_preview() && !is_front_page() && !is_home() && !is_feed() && !is_robots() ) { $post_view_count = $post_id; } /* * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ){ wp_enqueue_script( 'comment-reply' ); } // Masonry Script $blog_layout = amyra_lite_get_theme_mod( 'blog_layout' ); $cat_layout = amyra_lite_get_theme_mod( 'cat_layout' ); if( !empty($blog_layout) || !empty($cat_layout) ) { wp_enqueue_script('masonry'); } // Navigation Js wp_register_script( 'amyra-lite-navigation-js', AMYRA_LITE_URL . '/assets/js/navigation.js', array('jquery'), AMYRA_LITE_VERSION, true); wp_enqueue_script( 'amyra-lite-navigation-js' ); // Skip Link Focus Fix Js wp_register_script( 'amyra-lite-skip-link-js', AMYRA_LITE_URL . '/assets/js/skip-link-focus-fix.js', array('jquery'), AMYRA_LITE_VERSION, true); wp_enqueue_script( 'amyra-lite-skip-link-js' ); // Skip Link Focus Fix Js wp_register_script( 'amyra-lite-sticky-sidebar-js', AMYRA_LITE_URL . '/assets/js/theia-sticky-sidebar.js', array('jquery'), AMYRA_LITE_VERSION, true); wp_enqueue_script( 'amyra-lite-sticky-sidebar-js' ); // Public Js wp_register_script( 'amyra-lite-public-js', AMYRA_LITE_URL . '/assets/js/public.js', array('jquery'), AMYRA_LITE_VERSION, true); wp_enqueue_script( 'amyra-lite-public-js' ); } } $amyra_lite_script = new Amyra_Script();