Example #1
0
function ibap_slider_text_box($str)
{
    global $brasa_slider_id, $brasa_slider_item_id;
    $brasa_slider_item_id = intval($brasa_slider_item_id);
    if (strtolower(get_the_title($brasa_slider_id)) != 'slider home') {
        return $str;
    }
    if (wp_attachment_is_image($brasa_slider_item_id)) {
        return $str;
    }
    $str .= '<div class="col-md-3 text-box">';
    $str .= sprintf('<h3>%s</h3>', get_the_title($brasa_slider_item_id));
    $str .= sprintf('<div class="content">%s</div>', odin_get_excerpt($brasa_slider_item_id));
    $str .= '</div>';
    return $str;
}
Example #2
0
	<a href="<?php 
the_permalink();
?>
" class="col-md-12 livros-bg">
		<div class="col-md-4 livros-thumb">
			<?php 
echo odin_thumbnail(300, 460, get_the_title(), true, 'img-capas');
?>
		</div><!-- .col-md-4 livros-thumb -->
		<div class="col-md-8 pull-right">
			<div class="livros-title">
				<h3><?php 
the_title();
?>
</h3>
			</div><!-- .livros-title -->
			<div class="col-md-12 the-content">
				<?php 
echo odin_get_excerpt(get_the_ID(), 140, null, ' [..]');
?>
			</div><!-- .col-md-12 the-content -->
			<div class="col-md-12 btn-container">
				<button class="btn btn-primary"><?php 
_e('Comprar', 'ibap-theme');
?>
</button>
			</div><!-- .col-md-12 btn-container -->
		</div><!-- .col-md-12 pull-right -->
	</a>
</article><!-- .col-md-6 each-article -->