Quantcast
Channel: Site5 Free Premium WordPress Themes » All Posts
Viewing all articles
Browse latest Browse all 8865

Reply To: Weirdly displaced footer

$
0
0

Well, I reviewed it before, but when I got to index.php, there was just one line, <?php include ('archive.php') ?> so I opened archive.php and coounted <div> and </div> tags which were fine (5 openers, 5 closing ones)
I’m attaching archive.php content:

<?php get_header(); ?>
			
			<div id="content" class="container clearfix">
				
				<!-- page header -->
				<div class="container clearfix ">
					<?php
					// display the blog page image header or fallback to the default one.
					$blogPageID = of_get_option('sc_singledesc');
					$thumbId = get_image_id_by_link ( get_post_meta($blogPageID, 'snbpd_phitemlink', true) );
					$thumb = wp_get_attachment_image_src($thumbId, 'page-header', false);
					?>
					<?php if(of_get_option('sc_showpageheader') == '1'  && get_post_meta($blogPageID, 'snbpd_ph_disabled', true) != 'on' ) : ?>
						<?php if(get_post_meta($blogPageID, 'snbpd_phitemlink', true)!= ''  ) : ?>
						<img class="intro-img" src="<?php echo $thumb[0] ?>" alt="<?php the_title(); ?>"  />
						<?php elseif (of_get_option('sc_pageheaderurl') !='' ): ?>

							<?php
							$thumbId = get_image_id_by_link ( of_get_option('sc_pageheaderurl') );
							$thumb = wp_get_attachment_image_src($thumbId, 'page-header', false);
							?>
							<img class="intro-img" alt=" " src="<?php echo $thumb[0] ?>" alt="<?php the_title(); ?>"  />

						<?php else: ?>

							<img class="intro-img" alt=" " src="<?php echo get_template_directory_uri(); ?>/library/images/inner-page-bg.jpg" />

						<?php endif ?>
					<?php endif ?>
					
				</div>

				<div class="three-fourth">
					<h1>
					<?php if (is_category()) { ?>
								<?php _e("Kategorizovaný príspevok", "site5framework"); ?> / <span><?php single_cat_title(); ?></span> 
						<?php } elseif (is_tag()) { ?> 
								<?php _e("Tagovaný príspevok", "site5framework"); ?> / <span><?php single_cat_title(); ?></span>
						<?php } elseif (is_author()) { ?>
								<?php _e("Uverejnil", "site5framework"); ?> / <span><?php the_author_meta('display_name', $post->post_author) ?> </span> 
						<?php } elseif (is_day()) { ?>
								<?php _e("Denný archív", "site5framework"); ?> / <span><?php the_time('l, F j, Y'); ?></span>
						<?php } elseif (is_month()) { ?>
						    	<?php _e("Mesačný archív", "site5framework"); ?> / <span><?php the_time('F Y'); ?></span>
						<?php } elseif (is_year()) { ?>
						    	<?php _e("Ročný archív", "site5framework"); ?> / <span><?php the_time('Y'); ?></span> 
						<?php } elseif (is_Search()) { ?>
						    	<?php _e("Výsledky vyhľadávania", "site5framework"); ?> / <span><?php echo esc_attr(get_search_query()); ?></span> 
						<?php } ?>
					 </h1>

				
					<div id="main" role="main">

						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

							<?php get_template_part( 'content', 'single' ); ?>
						
						<?php endwhile; ?>	
						
						<!-- begin #pagination -->
								<?php if (function_exists("wpthemess_paginate")) { wpthemess_paginate(); } ?>
						<!-- end #pagination -->
						
						<?php else : ?>
						
						<article id="post-not-found">
						    <header>
						    	<h1><?php _e("Žiaden príspevok", "site5framework"); ?></h1>
						    </header>
						    <section class="post_content">
						    	<p><?php _e("Prepáčte, vyhľadávaný výraz sa nenašiel.", "site5framework"); ?></p>
						    </section>
						    <footer>
						    </footer>
						</article>
						
						<?php endif; ?>
				
					</div> <!-- end #main -->
				</div><!-- three-fourth -->

				<div class="one-fourth last">
					<?php get_template_part( 'blog', 'sidebar' ); ?>
				</div>
    
			</div> <!-- end #content -->

<?php get_footer(); ?> 

Viewing all articles
Browse latest Browse all 8865

Trending Articles