echo $post_location; ?> </span> </span> <?php } ?> <span class="ad-detail-info"><?php _e('Views', 'agrg'); ?> <span class="ad-detail"> <?php echo wpb_get_post_views(get_the_ID()); ?> </span> </span> <?php if (function_exists('the_ratings')) { ?> <div class="ad-detail-info"><?php _e('Rating', 'agrg'); ?> <div class="ad-detail"><?php the_ratings();
<div class="my-ad-details"> <a target="_blank" class="my-ad-title" href="<?php the_permalink(); ?> "><?php $theTitle = get_the_title(); $theTitle = strlen($theTitle) > 22 ? substr($theTitle, 0, 22) . '...' : $theTitle; echo $theTitle; ?> </a> <span><i class="fa fa-check-square-o"></i> <?php echo get_post_status($post->ID); ?> </span> <span><i class="fa fa-eye "></i> <?php echo wpb_get_post_views($post->ID); ?> </span> <?php global $redux_demo; $edit_post_page_id = $redux_demo['edit_post']; $postID = $post->ID; global $wp_rewrite; if ($wp_rewrite->permalink_structure == '') { //we are using ?page_id $edit_post = $edit_post_page_id . "&post=" . $post->ID; $del_post = $pagepermalink . "&delete_id=" . $post->ID; } else { //we are using permalinks $edit_post = $edit_post_page_id . "?post=" . $post->ID; $del_post = $pagepermalink . "?delete_id=" . $post->ID;