"; } } add_action( 'wp_head', 'themeoo_mobile_backdrop_overlay' ); } // Comment if ( ! function_exists( 'themeoo_commentfields_rowtag' ) ) { /** * Adds the Proper opening markup for comment filed. * * @return void */ function themeoo_commentfields_rowtag() { echo '
'; } } if ( ! function_exists( 'themeoo_commentfields_rowtag_end' ) ) { /** * Adds the Proper closing markup for comment filed. * * @return void */ function themeoo_commentfields_rowtag_end() { echo '
'; } } /** * Themeoo Comment Reply link * * @param string $link * * @return string */ function themeoo_cancel_comment_reply_link( $link ) { $tip = '
'post', 'post_status' => 'publish', 'posts_per_page' => $post_per_page, 'post__in' => $post_in, 'ignore_sticky_posts' => true, ); $sticky_posts = new WP_Query( $args ); if ( themeoo_get_mod( 'layout_blog_home_sticky_post' ) ) : ?>
' . esc_html( $categories[0]->name ) . ''; } ?>

'post', 'posts_per_page' => $post_number, 'post_status' => 'publish', 'order' => 'DESC', 'orderby' => 'ID', 'ignore_sticky_posts' => true, 'no_found_rows' => true, ) ); $popular_post = new WP_Query( array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $post_number, 'meta_key' => 'ayyash_post_views_count', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'ignore_sticky_posts' => true, ) ); if ( themeoo_get_mod( 'layout_blog_home_post_tab' ) ) : ?> 'post', 'post_status' => 'publish', 'posts_per_page' => $post_per_page, 'order' => 'DESC', 'orderby' => 'ID', 'ignore_sticky_posts' => true, ); $important_posts = new WP_Query( $args ); ?>
>
have_posts() ) { while ( $important_posts->have_posts() ) : $important_posts->the_post(); ?>
- term_id ) ) . '">' . esc_html( $categories[0]->name ) . ''; } ?>

12 ) { $content_grid = themeoo_get_default( 'layout_global_content_grid' ); } $content_classes[] = 'col-md-' . absint( $content_grid ); } $term_details = get_term_by( 'slug', $category, 'category' ); $section_title = themeoo_get_mod( 'layout_blog_home_' . $category . '_title' ); $show_view_all = themeoo_get_mod( 'layout_blog_home_' . $category . '_view_btn' ); $post_columns = themeoo_get_mod( 'layout_blog_home_' . $category . '_column' ); $image_position = themeoo_get_mod( 'layout_blog_home_' . $category . '_thumbnail_position' ); $excerpt_length = themeoo_get_mod( 'layout_blog_home_' . $category . '_excerpt_length' ); $post_per_page = themeoo_get_mod( 'layout_blog_home_' . $category . '_post_per_page' ); $sidebar = themeoo_get_mod( 'layout_blog_home_' . $category . '_sidebar' ); $category_id = absint( $term_details->term_id ); //prepare section title if ( empty( $section_title ) && ! empty( $category_id ) ) { $section_title = $term_details->name; } //prepare section category link $category_link = '#'; if ( ! empty( $category_id ) ) { $category_link = get_category_link( $category_id ); } //prepare post query $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $post_per_page, 'category__in' => $category_id, 'ignore_sticky_posts' => true, ); $category_posts = new WP_Query( $args ); ?>
have_posts() ) { while ( $category_posts->have_posts() ) : $category_posts->the_post(); ?>
- term_id ) ) . '">' . esc_html( $categories[0]->name ) . ''; } ?>

' . wp_get_attachment_image( $attachment_id, $size, $icon, $attr ) . ''; add_filter( 'wp_get_attachment_image_attributes', 'themeoo_filter_attachment_image_attributes', 9999 ); add_filter( 'wp_get_attachment_image', 'themeoo_add_no_js_attachment_image', 9999, 5 ); return $html; } /** * Add Social Icon link in profile.php */ add_action( 'show_user_profile', 'ayyash_extra_user_profile_fields' ); add_action( 'edit_user_profile', 'ayyash_extra_user_profile_fields' ); function ayyash_extra_user_profile_fields( $user ) { ?>





'; if ( is_rtl() ) { return '' . esc_html__( ' Thank you. your order has been received.', 'ayyash' ) . '' . $icon; } else { return $icon . '' . esc_html__( ' Thank you. your order has been received.', 'ayyash' ) . ''; } } } /** * Add My Account Dashboard wishlist menu */ if ( ! function_exists( 'ayyash_add_wishlist_endpoint' ) ) { // Create an endpoint with add_rewrite_function function ayyash_add_wishlist_endpoint() { add_rewrite_endpoint( 'my-wishlist', EP_PAGES ); } } if ( ! function_exists( 'ayyash_wishlist_query_vars' ) ) { // Create query_var function ayyash_wishlist_query_vars( $vars ) { $vars[] = 'my-wishlist'; return $vars; } } if ( ! function_exists( 'ayyash_woocommerce_menu_order' ) ) { // Arrange Menu items function ayyash_woocommerce_menu_order() { return array( 'dashboard' => __( 'Dashboard', 'ayyash' ), 'orders' => __( 'Orders', 'ayyash' ), 'downloads' => __( 'Downloads', 'ayyash' ), 'edit-address' => _n( 'Addresses', 'Address', (int) wc_shipping_enabled(), 'ayyash' ), 'edit-account' => __( 'Account details', 'ayyash' ), 'my-wishlist' => __( 'Wishlists', 'ayyash' ), ); } } if ( ! function_exists( 'ayyash_show_wishlist' ) ) { // Show data in frontend function ayyash_show_wishlist() { echo do_shortcode( '[yith_wcwl_wishlist]' ); } }