esc_html__( 'Primary', 'amike-lite' ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_theme_support( 'custom-background', apply_filters( 'amike_lite_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); add_image_size( 'amike_lite-single-page-image', 1280,720, true ); add_image_size( 'amike_lite-team-250x250', 250,250, true ); add_image_size( 'amike_lite-80x80', 80,80, true ); add_image_size( 'amike_lite-100x100', 100,100, true ); add_image_size( 'amike_lite-team-1280x600', 1280,600, true ); } endif; add_action( 'after_setup_theme', 'amike_lite_setup' ); // content width function amike_lite_content_width() { $GLOBALS['content_width'] = apply_filters( 'amike_lite_content_width', 640 ); } add_action( 'after_setup_theme', 'amike_lite_content_width', 0 ); // Register widget area function amike_lite_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'amike-lite' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'amike-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'amike_lite_widgets_init' ); // Enqueue scripts and styles. function amike_lite_scripts() { wp_enqueue_style( 'amike_lite-fonts', "//fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap", wp_get_theme()->get( 'Version' ), 'screen' ); wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.min.css'); wp_enqueue_style( 'font-awesome', get_stylesheet_directory_uri() . '/css/font-awesome.min.css'); wp_enqueue_style( 'magnific-popup', get_stylesheet_directory_uri() . '/css/magnific-popup.css'); wp_enqueue_style( 'slick', get_stylesheet_directory_uri() . '/css/slick.css'); wp_enqueue_style( 'animate', get_stylesheet_directory_uri() . '/css/animate.min.css'); wp_enqueue_style( 'amike_lite-style', get_stylesheet_uri() ); wp_enqueue_script( 'bootstrap', get_theme_file_uri('/js/bootstrap.min.js') , array('jquery'), '20151215', true ); wp_enqueue_script( 'magnific-popup', get_theme_file_uri('/js/jquery.magnific-popup.min.js') , array('jquery'), '20151215', true ); wp_enqueue_script( 'isotope', get_theme_file_uri('/js/isotope.pkgd.min.js') , array('jquery'), '20151215', true ); wp_enqueue_script( 'slick', get_theme_file_uri('/js/slick.min.js') , array('jquery'), '20151215', true ); wp_enqueue_script( 'amike_lite-skip-link-focus-fix', get_theme_file_uri('/js/skip-link-focus-fix.js') , array('jquery'), '20151215', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'amike_lite-main', get_theme_file_uri() . '/js/main.js', array('jquery'), '1.0.0', true ); //'amike_lite-style' is main style of the theme wp_add_inline_style( 'amike_lite-style', amike_lite_inline_style()); } add_action( 'wp_enqueue_scripts', 'amike_lite_scripts' ); // Denqueue scripts and styles. function amike_lite_dequeue_script() { wp_dequeue_style( 'elementor-animations' ); wp_deregister_style( 'elementor-animations' ); } add_action( 'wp_enqueue_scripts', 'amike_lite_dequeue_script', 20 ); //Exclude pages from WordPress Search if (!is_admin()) { function amike_lite_search_filter($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','amike_lite_search_filter'); } // Comment List function amike_lite_comment_list($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); if ( 'article' == $args['style'] ) { $tag = 'article'; $add_below = 'comment'; } else { $tag = 'li'; $add_below = 'comment'; } ?> < id="comment-" itemscope itemtype="http://schema.org/Comment">
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
comment_approved == '0') : ?>

Your comment is awaiting moderation.

Edit this comment

','',''); ?>
$main_menu->term_id, ) ); // Assign front page and posts page (blog page). $front_page_id = get_page_by_title( 'Home' ); $blog_page_id = get_page_by_title( 'Blog' ); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); update_option( 'page_for_posts', $blog_page_id->ID ); } add_action( 'pt-ocdi/after_import', 'amike_lite_after_import_setup' ); // Entry footer function amike_lite_entry_footer() { if ('post' === get_post_type()) { $categories_list = get_the_category_list(esc_html__(', ', 'amike-lite')); if ($categories_list) { printf('' . esc_html__('Posted in %1$s', 'amike-lite') . '', $categories_list); } $tags_list = get_the_tag_list('', esc_html_x(', ', 'list item separator', 'amike-lite')); if ($tags_list) { printf('' . esc_html__('Tagged %1$s', 'amike-lite') . '', $tags_list); } } if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) { echo ''; comments_popup_link(sprintf(wp_kses(__('Leave a Comment on %s', 'amike-lite') , array( 'span' => array( 'class' => array() , ) , )) , get_the_title())); echo ''; } edit_post_link(sprintf(wp_kses(__('Edit %s', 'amike-lite') , array( 'span' => array( 'class' => array() , ) , )) , get_the_title()) , '', ''); } // Category count on rightside function amike_lite_category_count_on_rightside($links) { $links = str_replace(' (', '(', $links); $links = str_replace(')', ')', $links); return $links; } add_filter('wp_list_categories', 'amike_lite_category_count_on_rightside'); // Add span to archive post count function amike_lite_style_the_archive_count($links) { $links = str_replace(' (', '(', $links); $links = str_replace(')', ')', $links); return $links; } add_filter('get_archives_link', 'amike_lite_style_the_archive_count'); // amike_lite pagination if ( ! function_exists ( 'amike_lite_pagination' ) ) { function amike_lite_pagination( $args = array(), $class = 'pagination' ) { if ($GLOBALS['wp_query']->max_num_pages <= 1) return; $args = wp_parse_args( $args, array( 'mid_size' => 2, 'prev_next' => true, 'prev_text' => esc_html__( '«', 'amike-lite' ), 'next_text' => esc_html__( '»', 'amike-lite' ), 'screen_reader_text' => esc_html__( 'Posts navigation', 'amike-lite' ), 'type' => 'array', 'current' => max( 1, get_query_var('paged') ), ) ); $links = paginate_links($args); ?>