Пример #1
0
	<?php 
    jeg_get_template_part('template/rightheader');
    ?>
</div> <!-- headermenu -->

<div class="blog-normal-wrapper">
	<div class="blog-big-wrapper">
		<div class="blog-main-content <?php 
    echo $shareclass;
    ?>
">
			<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $featured = jeg_get_featured_heading(get_the_ID(), 1200, 750);
            ?>
			<div class="blog-normal-article">
				<div class="article">
					<div class="article-header">
						<h1><?php 
            echo get_the_title();
            ?>
</h1>
						<?php 
            if (!$pageoption['hidemeta'] && !post_password_required()) {
                ?>
						<span class="meta-top">by <a href="<?php 
                echo get_author_posts_url(get_the_author_meta('ID'));
                ?>
"><?php 
Пример #2
0
<?php

$featured = jeg_get_featured_heading(get_the_ID(), 925, '');
?>

<div class="clean-blog-article">
	<div class="clean-blog-content">
		<div class="clean-blog-content-wrapper">
			<div class="article-header">
				<a href="<?php 
echo get_permalink();
?>
"><h2><?php 
echo get_the_title();
?>
</h2></a>
			</div>
			<div class="article-content">
				<p class="post-excerpt">
					<?php 
echo get_the_excerpt();
?>
				</p>
			</div>
			<?php 
if (!post_password_required() && !empty($featured)) {
    ?>
			<div class='featured'>
				<?php 
    echo $featured;
    ?>
Пример #3
0
<?php

$statement = array('post_type' => 'post', 'orderby' => "meta_value_num", 'meta_key' => "post_views_count", 'order' => "DESC", 'posts_per_page' => $numberpost);
$query = new WP_Query($statement);
echo "<div class='blog-popular-post'>";
if ($query->have_posts()) {
    while ($query->have_posts()) {
        $query->the_post();
        $catlink = array();
        foreach (get_the_category() as $category) {
            $catlink[] = $category->name;
        }
        $featured = jeg_get_featured_heading(get_the_ID(), 800, 400);
        $featuredhtml = '';
        if ($featured !== '') {
            $featuredhtml = "<div class='article-image'>" . $featured . "</div>";
        }
        $blogitemtype = vp_metabox('jkreativ_blog_format.format');
        if ($blogitemtype === 'quote') {
            $link = '';
            if (vp_metabox('jkreativ_blog_quote.quote_author_url')) {
                $link = "<a href='" . vp_metabox('jkreativ_blog_quote.quote_author_url') . "' class='author'>" . vp_metabox('jkreativ_blog_quote.quote_author') . "</a>";
            } else {
                $link = vp_metabox('jkreativ_blog_quote.quote_author');
            }
            echo "\n\t\t\t<div class='article-sidebar'>\n\t\t\t\t<div class='article-quote-wrapper'>\n\t\t\t\t\t<quote>\n\t\t\t\t\t\t" . vp_metabox('jkreativ_blog_quote.quote_content') . "\n\t\t\t\t\t</quote>\n\t\t\t\t\t<div class='clearfix article-meta'>\n\t\t\t\t\t\t" . vp_metabox('jkreativ_blog_quote.quote_prefix') . $link . " \t\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\n\t\t\t</div>\n\t\t\t";
        } else {
            if ($blogitemtype === 'ads') {
                echo "";
            } else {
                echo "\n\t\t\t<div class='article-sidebar'>\n\t\t\t\t{$featuredhtml}\n\t\t\t\t<div class='article-category'>\n\t\t\t\t\t" . implode(" ,", $catlink) . "\n\t\t\t\t</div>\n\t\t\t\t<h2><a href='" . get_permalink(get_the_ID()) . "'>" . get_the_title() . "</a></h2>\n\t\t\t\t<div class='clearfix article-meta'>\n\t\t\t\t\t" . get_the_date() . "\n\t\t\t\t</div>\n\t\t\t</div>";
Пример #4
0
<?php

$featured = jeg_get_featured_heading(get_the_ID(), 1000, 625);
?>

<!-- blog wide article -->
<div class="blog-normal-article">
	<div class="article">
		<div class="article-inner-wrapper">
			<?php 
if (!vp_metabox('jkreativ_page_share.hide_share_button', null, JEG_PAGE_ID)) {
    ?>
			<div class="article-share">
				<?php 
    jeg_get_template_part('template/blogpost/article-sharing-big');
    ?>
			</div>
			<?php 
}
?>
			<div class="article-wrapper article-quote-valign">
				<div class="article-quote-wrapper">
					<quote>
	                    <sup class='fa fa-quote-left'></sup>
	                    <span><?php 
echo vp_metabox('jkreativ_blog_quote.quote_content');
?>
</span>
	                    <sup class='fa fa-quote-right'></sup>
	                </quote>
					<div class="clearfix article-meta">
Пример #5
0
<?php

get_header();
if (!post_password_required()) {
    global $pageoption;
    $featured = jeg_get_featured_heading(get_the_ID(), 1400, 875);
    ?>
<div class="headermenu">
	<?php 
    jeg_get_template_part('template/rightheader');
    ?>
</div> <!-- headermenu -->
<div class="contentheaderspace"></div>
<div class="pagewrapper coverwidth">
	<div class="pageholder row-fluid">
		<div class="pageholdwrapper">
			<div class="mainpage blog-normal-article span8">
				<!-- content -->
				<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
				<div class="pageinnerwrapper">
					<?php 
            if ($featured !== '' && !post_password_required()) {
                echo "<div class='featured'>{$featured}</div>";
            }
            ?>

					<div class="article-header">