File Editor
Directories:
.. (Back)
css
functions
html5
img
inc
js
languages
page-templates
sections
Files:
404.php
comments.php
footer.php
functions.php
header.php
index.php
page.php
readme.txt
searchform.php
sidebar.php
single.php
style.css
Create New File
Create
Edit File: index.php
<?php /** * Theme: Wlow * * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * Also it's used to display search results, category page, tag page and date page. * * @package wlow */ get_header(); ?> <main id="main" class="col-md-9" role="main"> <?php if ( is_search() ) { ?> <h1 class="bigger margin-top"><?php esc_html_e('Result for:', 'wlow'); ?> <strong><i><?php echo esc_html($s); ?></i></strong></h1> <?php } else if ( is_category() || is_tag() ) { ?> <h1 class="bigger margin-top"><?php echo single_cat_title() ?></h1> <?php } else if ( is_home() ){ ?> <h1 class="bigger"><?php single_post_title(); ?></h1> <?php } else if ( is_date() ){ ?> <h1 class="bigger margin-top"><?php single_month_title(' '); ?> </h1> <?php } else if ( is_archive() ){ ?> <h1 class="bigger margin-top"><?php post_type_archive_title(); ?> </h1> <?php } ?> <?php if (have_posts()) :?><?php while(have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="content-article"> <h2 class="large"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <p class="meta"> <i class="fa fa-clock-o"></i> <?php the_time('j M , Y') ?> <i class="fa fa-thumb-tack"></i> <strong> <?php the_category(','); ?></strong></p> <a href="<?php the_permalink(); ?>" class="link-article"> <?php the_post_thumbnail('wlow_single', array('class' => 'img-res','alt' => get_the_title())); ?> </a> <?php the_excerpt();?> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) { ?> <p><span class="tag"> <i class="fa fa-tag"></i> <?php the_tags('', ', ', ''); ?> </span></p> <?php } ?> </div> <div class="clearfix"></div> </article> <?php endwhile; ?> <?php get_template_part('inc/pagination'); ?> <?php else : ?> <h3><?php esc_html_e('Sorry, no posts matched your criteria.', 'wlow'); ?></h3> <p><?php esc_html_e('Try to make a search...', 'wlow'); ?></p> <?php get_search_form(); ?> <div class="spacer"></div> <?php endif; ?> </main> <?php get_sidebar(); ?> <?php get_footer(); ?>
Save Changes
Rename File
Rename