}
}
?>

        </div>
    </aside>
    
    <!-- post content -->
    <section class="entry-right-side">
        <header class="entry-header">
            <?php 
the_title('<h3 class="entry-title" itemprop="name"><a href="' . esc_url(get_permalink()) . '" itemprop="url">', '</a></h3>');
?>

            <div class="post-meta"><span class="post-type"><i class="<?php 
echo roen_get_post_type_icon(get_post_format());
?>
"></i></span><span itemprop="genre"><?php 
$categories = get_the_category();
$seperator = '<span class="seperator">&middot;</span>';
$output = '';
if ($categories) {
    foreach ($categories as $category) {
        if ($output != '') {
            $output .= $seperator;
        }
        $output .= '<a href="' . get_category_link($category->term_id) . '" title="' . esc_attr(sprintf(__("View all posts in %s", 'ROEN'), $category->name)) . '">' . $category->cat_name . '</a>';
    }
    echo $output;
}
?>
Ejemplo n.º 2
0
<?php

/**
 * Blog Widget Recent Style 1
 *
 * @since roen 1.0
 */
global $posts_recent_post_content;
$output = '';
$output .= '<div class="sidebar-blog-recent icon-style">
				<div class="post-type"><i class="' . roen_get_post_type_icon(get_post_format()) . '"></i></div>
				<div class="post-content">
					<a href="' . esc_url(get_permalink()) . '">' . get_the_title() . '</a>
					<div class="entry-meta">
						<span class="entry-date"><a href="' . esc_url(get_permalink()) . '">' . esc_html(get_the_date()) . '</a></span>';
$output .= '		</div>
				</div>
			</div>';
$posts_recent_post_content = $output;
?>

/**
 * Blog Shortcode Content Style 5
 *
 * @since roen 1.0
 */
global $blog_shortcode_content, $blog_shortcode_thumbnail_size;
$output = '';
if (has_post_thumbnail(get_the_ID())) {
    $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
    $output .= '<div class="post-element-content">
				<div class="post-img">
					<a href="' . esc_url(get_permalink()) . '">
					' . get_the_post_thumbnail(get_the_ID(), $blog_shortcode_thumbnail_size, array('alt' => get_the_title(), 'title' => '')) . '
					<div class="post-tip">
						<div class="center-link"><i class="' . roen_get_post_type_icon(get_post_format()) . '"></i></div>
					</div>
					</a>
					<div class="date entry-date updated" itemprop="datePublished">
						<div class="day">' . esc_html(get_the_date('d')) . '</div>
						<div class="month">' . esc_html(get_the_date('M')) . '</div>
						<div class="year">' . esc_html(get_the_date('Y')) . '</div>
					</div>';
    $num_comments = get_comments_number(get_the_ID());
    $output .= '<a href="' . get_permalink(get_the_ID()) . '#comments"><div class="entry-meta comments-link"><i class="fa fa-comments-o"></i><span itemprop="interactionCount">' . $num_comments . '</span></div></a>';
    $output .= '
				</div>
			</div>';
}
$output .= '<section class="post-content">
				<header class="entry-header">
Ejemplo n.º 4
0
<?php

/**
 * Portfolio Widget Recent Style 2
 *
 * @since roen 1.0
 */
global $portfolio_recent_post_content;
$output = '';
$thumbnail_size = 'thumbnail';
$output .= '<div class="sidebar-portfolio-recent thumbs-style">';
if (has_post_thumbnail(get_the_ID())) {
    $output .= '<aside class="post-thumbs"><a href="' . esc_url(get_permalink()) . '"><div class="post-img">
				' . get_the_post_thumbnail(get_the_ID(), $thumbnail_size, array('alt' => get_the_title(), 'title' => '')) . '
				<div class="post-tip">
                    <div class="center-link"><i class="' . roen_get_post_type_icon(penguin_get_post_meta_key('portfolio-type'), 'portfolio') . '"></i></div>
                </div>
			</div></a></aside>';
}
$output .= '<div class="post-content">
					<a href="' . esc_url(get_permalink()) . '">' . get_the_title() . '</a>
					<div class="portfolio-categories">' . penguin_get_custom_post_categories_links(penguin_get_custom_post_categories(get_the_ID(), 'portfolio-cats', false), '<span class="seperator">/</span>') . '</div>
				</div>
			</div>';
$portfolio_recent_post_content = $output;
?>