preview->is_preview_mode() || Elementor\Plugin::$instance->editor->is_edit_mode() ) ) { //phpcs:ignore return; } global $revslider_is_preview_mode; if ( class_exists( 'RevSliderAdmin' ) && $revslider_is_preview_mode ) { return; } $animation_type = ayyash_get_mod( 'preload_animation_type' ); $animation_speed = ayyash_get_mod( 'preload_animation_speed' ); $animation_cls = 'animate__animated animate__' . $animation_type . ' animate__infinite'; $preloader_img = ayyash_get_mod( 'preload_img' ); $text_size = ayyash_get_mod( 'preload_text_size' ); $img_size = ayyash_get_mod( 'preload_img_size' ); if ( $animation_speed ) { $animation_cls .= ' animate__' . $animation_speed; } ?>
'; } if ( 1 === (int) ayyash_get_mod( 'preload_text_enable' ) ) { echo '

' . esc_html( ayyash_get_mod( 'preload_text' ) ) . '

'; } ?>
"; } } add_action( 'wp_head', 'ayyash_mobile_backdrop_overlay' ); } // Comment if ( ! function_exists( 'ayyash_commentfields_rowtag' ) ) { /** * Adds the Proper opening markup for comment filed. * * @return void */ function ayyash_commentfields_rowtag() { echo '
'; } } if ( ! function_exists( 'ayyash_commentfields_rowtag_end' ) ) { /** * Adds the Proper closing markup for comment filed. * * @return void */ function ayyash_commentfields_rowtag_end() { echo '
'; } } if ( ! function_exists( 'ayyash_cancel_comment_reply_link' ) ) { /** * Ayyash Comment Reply link * * @param string $link * * @return string */ function ayyash_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 ( ayyash_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 ( ayyash_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 = ayyash_get_default( 'layout_global_content_grid' ); } $content_classes[] = 'col-md-' . absint( $content_grid ); } $term_details = get_term_by( 'slug', $category, 'category' ); $section_title = ayyash_get_mod( 'layout_blog_home_' . $category . '_title' ); $show_view_all = ayyash_get_mod( 'layout_blog_home_' . $category . '_view_btn' ); $post_columns = ayyash_get_mod( 'layout_blog_home_' . $category . '_column' ); $image_position = ayyash_get_mod( 'layout_blog_home_' . $category . '_thumbnail_position' ); $excerpt_length = ayyash_get_mod( 'layout_blog_home_' . $category . '_excerpt_length' ); $post_per_page = ayyash_get_mod( 'layout_blog_home_' . $category . '_post_per_page' ); $sidebar = ayyash_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', 'ayyash_filter_attachment_image_attributes', 9999 ); add_filter( 'wp_get_attachment_image', 'ayyash_add_no_js_attachment_image', 9999, 5 ); return $html; } } if ( ! function_exists( 'ayyash_extra_user_profile_fields' ) ) { /** * Add Social Icon link in profile.php */ function ayyash_extra_user_profile_fields( $user ) { ?>