
{literal}
<style type="text/css">
 .wp_img img{
  width: 100%;
  height: 100%;
 }
 div.box-sidebar .short {
  padding-left: 15px;
 }
 .wpb_box > li > article{
  padding-top: 0;
 }
 .wpb_box div.body {
  padding-top: 10px;
 }
 div.box-middle ul{
  margin-left: -15px;
  margin-right: -15px;
 }
 div.box-middle ul li{
  width: 50%;
  float: left;
  padding: 0 15px;
  padding-bottom: 10px;
 }
 div.box-middle ul li:last-child{
  padding: 0 15px;
 }
 div.box-middle ul li:nth-child(3n){
   clear: both;
 }
 .short{
  padding-left: 15px;
 }
</style>
{/literal}
{assign var='wpb_path' value=$smarty.const.RL_PLUGINS_URL|cat:"wordpressBridge"|cat:$smarty.const}
{if $block.Side == 'left' || $block.Side == 'right' || $block.Side == 'middle_left' || $block.Side == 'middle_right'}
  {assign var='box_class' value='box-sidebar'}
{else}
  {assign var='box_class' value='box-middle'}
{/if}
<div id="wpb_recently_added_wprapper" class="{$box_class} clearfix">
    <ul class="wpb_box news"> 
        {foreach from=$recent_posts item='post'}
           <li class="wpb_last_posts">
              <article>
                <div class="date">{$post.post_date|date_format:'%b %d'}</div>
                <a href="{$post.guid}"><h4>{$post.post_title}</h4></a>
                <div class="body two-inline left clearfix">
                {if $post.img_url}
                  <div class="wp_img" style="{if $config.wp_box_image_width}width:{$config.wp_box_image_width}px;{/if}{if $config.wp_box_image_height}height:{$config.wp_box_image_height}px;{/if}">
                     <a href="{$post.guid}"><img src="{$post.img_url}"></a>
                  </div>
                   <p class="desc short">{$post.short_desc}</p>
                {else}
                   <p class="desc">{$post.medium_desc}</p>
                {/if}
                </div>
              </article>
           </li>
        {/foreach}
    </ul>
</div>