<?php

/**
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

if (!function_exists('urbamag_quote_format_function')) {

	function urbamag_quote_format_function() {

	?>

        <?php if ( has_post_thumbnail() ): ?>
        	<div class="post-article quote" style="background-image:url('<?php esc_url(the_post_thumbnail_url('urbamag_blog_thumbnail')); ?>');">
        <?php else: ?>
        	<div class="post-article quote">
        <?php endif; ?>

            <span class="dashicons dashicons-format-quote"></span>
	        <blockquote><p><?php echo get_the_content();?></p></blockquote>
	        <p><?php echo get_the_title();?></p>

        </div>

	<?php

	}

	add_action( 'urbamag_quote_format', 'urbamag_quote_format_function' );

}

?>