<div class="span4 footerWidget userPostsList">
            <div class="widgetTitle">
              <h5>
                <?php _e("My Posts","lioit"); ?>
              </h5>
              <span class="titleBorder"></span></div>
            <?php
										  $paged = isset($_GET["pgd"]) ? $_GET["pgd"] : 0;
										  $the_query = new WP_Query( array("posts_per_page"=>4,"post_type"=>"post","author"=>$current_user->ID,"paged"=>$paged) );
										  while ( $the_query->have_posts() ){
											  $the_query->the_post(); ?>
            <div class="lioLatestPost">
              <div class="liopostThumb">
                
                <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"> <?php the_post_thumbnail('thumb-small', array('title' => strip_tags(get_the_title()))); ?></a> </div>
              <!--End Post Thumb-->
              <h4> <a href="<?php the_permalink(); ?>">
                <?php 
                                                                                $badge_text = get_post_meta($post->ID, 'lioit_post_badge_text', true);
                                                                                $badge_color = get_post_meta($post->ID, 'lioit_post_badge_color', true);
                                                                            ?>
                <?php if ($badge_text) { ?>
                <div class="articleType" style="background-color:<?php echo $badge_color; ?>;"><?php echo $badge_text; ?></div>
                <?php } ?>
                <?php the_title(); ?>
                </a> </h4>
              <div class="lioPosMeta">
                <?php $this_user = wp_get_current_user();
$postid = $post->ID ;
$edit_page = get_editposts_page_link($post->ID); $edit_post = add_query_arg('post', $post->ID, $edit_page); ?>
                <div class="edit_post"><a href="<?php echo $edit_post; ?>"><i class="icon-pencil"></i>
                  <?php _e("Edit","lioit"); ?>
                  </a></div>
                <?php if( !(get_post_status() == 'trash') ) : ?>
                <div class="delete_post"><a onclick="return confirm('Are you sure you wish to delete post: <?php echo get_the_title() ?>?')" href="<?php echo get_delete_post_link( $post->ID ); ?>"><i class="icon-trash"></i>
                  <?php _e("Delete","lioit"); ?>
                  </a></div>
                <?php endif; ?>
              </div>
            </div>
            <?php } ?>
            <?php wp_reset_postdata();?>
          </div>