<?php
/**
 * The template used for a post in a Gnar
 * featured post element.
 */
$icon = is_rtl() ? 'long-arrow-left' : 'long-arrow-right';
?>
<div class="featured-content">
    <div class="wrap" style="background-color: <?php echo themeblvd_get_rgb( themeblvd_get_att('color'), '.90' ); ?>">

        <?php if ( themeblvd_get_att('label') ) : ?>
            <h5 class="featured-label" style="background-color: <?php echo themeblvd_get_att('color'); ?>">
                <?php echo themeblvd_get_att('label'); ?>
            </h5>
        <?php endif; ?>

        <div class="entry-content">

            <h2 class="entry-title"><?php the_title(); ?></h2>

            <?php the_excerpt(); ?>

            <?php echo themeblvd_button(
                '<i class="fa fa-'.$icon.'"></i>',
                get_permalink(),
                'custom',
                '_self',
                'default',
                'read-more has-icon',
                get_the_title(),
                null,
                null,
                'style="background-color: transparent; border-color: #ffffff; color: #ffffff;" data-bg="transparent" data-bg-hover="#ffffff" data-text="#ffffff" data-text-hover="#161616"'
            ); ?>

        </div><!-- .entry-content (end) -->

    </div><!-- .wrap (end) -->
</div><!-- .featured-content (end) -->
