<?php
global $options;
foreach ($options as $value) {
if ( isset( $value['id'] ) ) {
if (get_option( $value['id'] ) === FALSE) {
$$value['id'] = $value['std'];
} else {
$$value['id'] = get_option( $value['id'] );
}
}
}
?>
<?php get_header(); ?>
<?php if (get_option('gpress_slider_blog_loc') == 'Slippry') { ?>
<?php include (TEMPLATEPATH . '/includes/slider.php'); ?>
<?php } ?>
<?php if (get_option('gpress_slider_blog_loc') == 'Flexy') { ?>
<?php include (TEMPLATEPATH . '/includes/slider2.php'); ?>
<?php } ?>
<div class="inner">
<?php if (get_option('gpress_sb_right') == 'Включить') { ?>
<div class="main">
<?php } else { ?>
<div class="main-full">
<?php } ?>
<?php if (get_option('gpress_sb_left') == 'Включить') { ?>
<div class="center-col">
<?php } else { ?>
<div class="center-full">
<?php } ?>
<?php if (get_option('gpress_feat_excl') == 'Исключить') { ?>
<?php
$featured_cat = get_option('gpress_feat_cat');
$category_id = get_cat_ID($featured_cat);
$q = - $category_id
?>
<?php
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts( array( 'cat' => $q, 'paged' => get_query_var('paged') ) );
?>
<?php } ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="index-title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry-info">
<?php if (get_option('gpress_sx') == 'М') { ?>
<em class="fa fa-male"></em>
<?php } else { ?>
<em class="fa fa-female"></em>
<?php } ?>
<?php the_author(); ?>
<em class="fa fa-clock-o"></em><?php the_time('j F Y'); ?>
<em class="fa fa-eye"></em> Просмотров:
<?php
if(function_exists('get_post_views')) {
echo get_post_total_views();
}
?> <em class="fa fa-comments-o"></em> <?php comments_popup_link('Нет комментариев', '1 комментарий ', ' % коммент.'); ?></div>
<?php if (get_option('gpress_post_look') == 'Обычный пост') { ?>
<?php the_content('Далее...'); ?>
<?php } else { ?>
<?php if(has_post_thumbnail()): ?>
<a href="<?php echo get_permalink(); ?>">
<?php $params = array( 'width' => 215, 'height' => 215,'crop' => true);
$base = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium');
echo "<img alt='' class='index-thumb' src='" . bfi_thumb( $base[0], $params ) . "'/>"; ?>
</a>
/* ВОТ */
<div class="label"> <?php the_category(', ') ?> </div>
/* ВОТ */
<?php endif; ?>
<p><?php truncate_post($gpress_word_count); ?></p>
<?php } ?>
<div class="clear"></div>
<div class="entry-info-bottom"><em class="fa fa-folder-open-o"></em>Рубрика: <?php the_category(', ') ?> </div>
</div><!-- end // post -->
<?php endwhile; ?>
<?php endif; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div><!-- end // center -->
<?php if (get_option('gpress_sb_left') == 'Включить') { ?>
<?php get_sidebar('left'); ?>
<?php } ?>
</div><!-- end // main -->
<?php if (get_option('gpress_sb_right') == 'Включить') { ?>
<?php get_sidebar('right'); ?>
<?php } ?>
</div><!-- end // inner -->
<div class="clear"></div>
<?php get_footer(); ?>
/* 4pda */
.label {
background: #aa4eb8;
background: rgba(170,78,184,0.85);
}
a:hover, a:focus {
text-decoration: underline;
}
.label {
background: #aa4eb8;
background: rgba(170,78,184,0.85);
}
.label {
font-family: Tahoma, Arial, sans-serif;
font-size: 13px;
line-height: 26px;
color: #fff;
position: absolute;
z-index: 5;
top: 9px;
left: -9px;
padding: 0 24px 0 24px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}
a {
color: #0072bc;
outline: none;
text-decoration: none;
cursor: pointer;
}
* {
outline: none;
}
user agent stylesheeta:-webkit-any-link {
color: -webkit-link;
text-decoration: underline;
cursor: auto;
}
Inherited from
body {
margin: 0;
color: #000;
font-family: "Segoe UI", "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif;
font-size: 13px;
line-height: 18px;
background: #e6e7e9;
}
/* 4 */