0 ) ? intval($params["rplg_image_content_width"]) : 180 ); $final_width = $params["rplg_image_content_width"]; $rplg_image_height = $params["rplg_image_height"]; $category_type = $params["category_type"]; $rplg_mouse_hover_effect = $params["rplg_mouse_hover_effect"]; if( $this->rplg_getTotalPosts( $all_selected_categories, $post_search_text, 0, $is_default_category_with_hidden ) > 0 ) { $_category_res = array(); if( trim($category_type) != "0" ) { if( trim($all_selected_categories)=="0" || trim($all_selected_categories) == "" ) $_category_res = $this->getCategories("",$rplg_order_category_ids); else $_category_res = $this->getCategories($all_selected_categories,$rplg_order_category_ids); } if( !( sanitize_text_field( $params["hide_searchbox"] ) == 'yes' ) ) { ?>
0 ) { ?>
Search
"; } $_total_posts = $this->rplg_getTotalPosts( $category_id_default, $post_search_text, 1, $is_default_category_with_hidden ); if( $_total_posts <= 0 ) { ?>
getPostList( $category_id_default, $post_search_text, $_limit_end ); foreach ( $post_list as $_post ) { $image = $this->getPostImage( $_post->post_image, $final_width, $params["rplg_image_height"] ); $_author_name = esc_html($_post->display_name); $_author_image = get_avatar($_post->post_author,25); ?>
" > post_title ); ?>
post_content ) ) > intval( $params["rplg_hide_post_short_content_length"] ) ) echo substr( strip_tags( $_post->post_content ), 0, $params["rplg_hide_post_short_content_length"] ).".."; else echo trim( strip_tags( $_post->post_content ) ); ?>
post_id)); if($_total_comments["total_comments"] > 0) { echo $_total_comments["total_comments"]; ?> 1)?__( 'Comments', 'richpostslistandgrid' ):__( 'Comment', 'richpostslistandgrid' )); } ?>
sanitize_text_field( $params["number_of_post_display"] ) ) { ?>