Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $options;
- foreach ($options as $value) {
- if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
- }
- ?>
- <?php get_header(); ?>
- <? if ($xs_disable_slider== "true") { ?>
- <? } else { ?>
- <?php get_template_part( 'slider' ) ?>
- <? } ?>
- <div id="main">
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post();
- $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
- ?>
- <div class="post">
- <h2 class="posttitlehome"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <div class="postcontent">
- <?
- // Checks To See If, Thumbnails Are Disabled
- if ($xs_disable_thumbnails_homepage == "true") { ?>
- <?
- //If Not Disabled, Show Thumbnails
- } else { ?>
- <div class="postimg">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php
- if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) {
- if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) {
- echo $thumbnail[0];
- $if=1;
- } else {
- $postimage = get_post_meta($post->ID, 'post-image', true);
- if ($postimage) {
- $if=2;
- echo $postimage;
- } else {
- echo catch_that_image();
- $if=3;
- }
- } echo $thumbnail[2];
- } else {
- $postimage = get_post_meta($post->ID, 'post-image', true);
- if ($postimage) {
- echo $postimage;
- } else {
- echo catch_that_image();
- }
- }
- ?>" alt="<?php the_title(); ?>" /></a>
- </div><!-- /postimg -->
- <? } echo "<!-- ".$if." -->"; ?>
- <?php the_excerpt(''); ?>
- </div><!-- /postcontent -->
- <div class="clear"></div>
- <a class="read-more" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Читать далее</a>
- </div><!-- /post -->
- <?php endwhile; ?>
- <?php
- //Check For the Page Navi Plugin
- if (function_exists('wp_pagenavi')) {
- wp_pagenavi();
- //Show Default Navigation if Page Navi Is Not Installed
- } else { ?>
- <div class="paginate">
- <div class="paginate-left"><?php previous_posts_link('Новые записи') ?></div>
- <div class="paginate-right"><?php next_posts_link('Предыдущие записи') ?></div>
- </div><!-- /paginate -->
- <? } ?>
- <?php else : ?>
- <h1>По вашему запросу ничего не найдено</h1>
- <?php endif; ?>
- </div><!-- /main -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment