-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bilalhassan
committed
Jul 12, 2016
0 parents
commit e9b1d56
Showing
91 changed files
with
31,944 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* The template for displaying 404 pages (not found). | ||
* | ||
* @link https://codex.wordpress.org/Creating_an_Error_404_Page | ||
* | ||
* @package relia | ||
*/ | ||
get_header(); | ||
?> | ||
|
||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<div class="container"> | ||
|
||
<div class="row"> | ||
|
||
<div class="col-sm-12"> | ||
|
||
<section class="error-404 not-found"> | ||
<header class="page-header"> | ||
<h1 class="page-title"><?php esc_html_e('404 - Page not found', 'relia'); ?></h1> | ||
</header><!-- .page-header --> | ||
|
||
</section><!-- .error-404 --> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</main><!-- #main --> | ||
</div><!-- #primary --> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?php | ||
/** | ||
* The template for displaying archive pages. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package relia | ||
*/ | ||
|
||
$width = 9; // Single Sidebar | ||
if ( is_active_sidebar( 'sidebar-left' ) && is_active_sidebar( 'sidebar-right' ) ) : | ||
$width = 6; // Dual Sidebars | ||
else: | ||
if ( ( ! is_active_sidebar( 'sidebar-left' ) && !is_active_sidebar( 'sidebar-right' ) ) ) : | ||
$width = 12; // No Sidebar | ||
endif; | ||
endif; | ||
|
||
get_header(); | ||
?> | ||
|
||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main relia-blog archive" role="main"> | ||
|
||
<div class="container blog-index-content"> | ||
|
||
<div class="row"> | ||
|
||
<?php if ( is_active_sidebar('sidebar-left') ) : ?> | ||
|
||
<?php get_sidebar( 'left' ); ?> | ||
|
||
<?php endif; ?> | ||
|
||
<div class="col-sm-<?php echo $width; ?>"> | ||
|
||
<div class="row"> | ||
|
||
<div class="col-sm-12"> | ||
|
||
<h2 class="wow fadeInDown"> | ||
|
||
<?php | ||
the_archive_title(); | ||
the_archive_description( '<div class="taxonomy-description">', '</div>' ); | ||
?> | ||
|
||
</h2> | ||
|
||
</div> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
|
||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<?php | ||
if (has_post_thumbnail(get_the_ID())) : | ||
$image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'single-post-thumbnail'); | ||
else: | ||
$image = get_template_directory_uri() . '/inc/images/blog-post-default-bg.jpg'; | ||
endif; | ||
?> | ||
|
||
<div class="col-sm-<?php echo $width == 6 ? '12' : '4'; ?> blog-roll-post wow fadeIn"> | ||
|
||
<article data-link="<?php echo get_the_permalink( get_the_ID() ); ?>" id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
|
||
<div class="blog-post-image" style="background-image: url(<?php echo has_post_thumbnail(get_the_ID()) ? $image[0] : $image; ?>);"> | ||
|
||
</div> | ||
|
||
<div class="blog-post-overlay"> | ||
|
||
<h2 class="post-title"><?php the_title(); ?></h2> | ||
<p class="post-meta"><?php relia_posted_on(); ?></p> | ||
|
||
<div class="post-content"> | ||
<?php $content = get_the_content(); ?> | ||
<?php echo wp_trim_words(strip_tags($content), 30); ?> | ||
</div> | ||
|
||
<a class="blog-post-read-more" href="<?php echo esc_url( get_the_permalink( get_the_ID() ) ); ?>"><?php echo esc_html( get_theme_mod( 'relia_blog_read_more', __( 'Read More', 'relia' ) ) ); ?></a> | ||
|
||
</div> | ||
|
||
</article> | ||
|
||
</div> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part('template-parts/content', 'none'); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<?php if ( is_active_sidebar('sidebar-right') ) : ?> | ||
|
||
<?php get_sidebar( 'right' ); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</div> <!-- row --> | ||
</div> <!-- .container-fluid --> | ||
</main> <!-- #main --> | ||
</div> <!-- #primary --> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php | ||
/** | ||
* The template for displaying comments. | ||
* | ||
* This is the template that displays the area of the page that contains both the current comments | ||
* and the comment form. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package relia | ||
*/ | ||
|
||
/* | ||
* If the current post is protected by a password and | ||
* the visitor has not yet entered the password we will | ||
* return early without loading the comments. | ||
*/ | ||
if ( post_password_required() ) { | ||
return; | ||
} | ||
?> | ||
|
||
<div id="comments" class="comments-area"> | ||
|
||
<?php // You can start editing here -- including this comment! ?> | ||
|
||
<?php if ( have_comments() ) : ?> | ||
<h2 class="comments-title"> | ||
<?php | ||
printf( // WPCS: XSS OK. | ||
esc_html( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'relia' ) ), | ||
number_format_i18n( get_comments_number() ), | ||
'<span>' . get_the_title() . '</span>' | ||
); | ||
?> | ||
</h2> | ||
|
||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> | ||
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation"> | ||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'relia' ); ?></h2> | ||
<div class="nav-links"> | ||
|
||
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'relia' ) ); ?></div> | ||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'relia' ) ); ?></div> | ||
|
||
</div><!-- .nav-links --> | ||
</nav><!-- #comment-nav-above --> | ||
<?php endif; // Check for comment navigation. ?> | ||
|
||
<ol class="comment-list"> | ||
<?php | ||
wp_list_comments( array( | ||
'style' => 'ol', | ||
'short_ping' => true, | ||
) ); | ||
?> | ||
</ol><!-- .comment-list --> | ||
|
||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> | ||
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation"> | ||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'relia' ); ?></h2> | ||
<div class="nav-links"> | ||
|
||
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'relia' ) ); ?></div> | ||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'relia' ) ); ?></div> | ||
|
||
</div><!-- .nav-links --> | ||
</nav><!-- #comment-nav-below --> | ||
<?php endif; // Check for comment navigation. ?> | ||
|
||
<?php endif; // Check for have_comments(). ?> | ||
|
||
<?php | ||
// If comments are closed and there are comments, let's leave a little note, shall we? | ||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : | ||
?> | ||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'relia' ); ?></p> | ||
<?php endif; ?> | ||
|
||
<?php comment_form(); ?> | ||
|
||
</div><!-- #comments --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* The template for displaying the footer. | ||
* | ||
* Contains the closing of the #content div and all content after. | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials | ||
* | ||
* @package relia | ||
*/ | ||
|
||
?> | ||
</div><!-- #content --> | ||
|
||
<?php if ( get_theme_mod( 'relia_footer_background_type', 'image' ) == 'image' ) : ?> | ||
<footer id="colophon" class="site-footer" role="contentinfo" style="background-image: url(<?php echo esc_url( get_theme_mod( 'relia_footer_image', get_template_directory_uri() . '/inc/images/page-header-bg.jpg' ) ); ?>);"> | ||
<?php else : ?> | ||
<footer id="colophon" class="site-footer" role="contentinfo"> | ||
<?php endif; ?> | ||
|
||
<div class="container"> | ||
|
||
<div class="row"> | ||
|
||
<div class="col-md-12"> | ||
|
||
<?php do_action('relia_footer'); ?> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</footer> | ||
|
||
</div><!-- #page --> | ||
|
||
<?php wp_footer(); ?> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
/** | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package relia | ||
*/ | ||
get_header(); | ||
?> | ||
|
||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<?php $front = get_option('show_on_front'); ?> | ||
|
||
<?php if ( $front != 'posts' ) : | ||
do_action( 'relia_jumbotron' ); | ||
do_action( 'relia_homepage' ); | ||
else : | ||
do_action( 'relia_jumbotron' ); | ||
endif; ?> | ||
|
||
<div class="container-fluid front-page-content"> | ||
|
||
<div class="row"> | ||
|
||
<div class="col-sm-12"> | ||
|
||
<h2 class="wow fadeInDown feature-content-title"> | ||
|
||
<?php if ( get_theme_mod( 'relia_homepage_content_title_toggle', 'show' ) == 'show' ) : ?> | ||
|
||
<?php echo esc_attr( get_theme_mod( 'relia_homepage_content_title', __( 'Featured Content', 'relia' ) ) ); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</h2> | ||
|
||
</div> | ||
|
||
<div class="container"> | ||
|
||
<div class="row"> | ||
|
||
<div class="homepage-page-content col-sm-12"> | ||
|
||
<?php if (have_posts()) : ?> | ||
|
||
<?php if (is_home() && !is_front_page()) : ?> | ||
|
||
<header> | ||
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> | ||
</header> | ||
|
||
<?php endif; ?> | ||
|
||
|
||
<?php echo $front == 'posts' ? '<div class="relia-blog-content">' : ''; ?> | ||
|
||
<?php /* Start the Loop */ ?> | ||
<?php while (have_posts()) : the_post(); ?> | ||
|
||
<?php | ||
if ($front == 'posts') : | ||
get_template_part('template-parts/content-blog', get_post_format()); | ||
else: | ||
get_template_part('template-parts/content-page-home', get_post_format()); | ||
endif; | ||
?> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php echo $front == 'posts' ? '</div>' : ''; ?> | ||
|
||
<?php if ($front == 'posts') : ?> | ||
<div class="col-sm-4"> | ||
<div> | ||
<div class="pagination-links"> | ||
<?php echo paginate_links(); ?> | ||
</div> | ||
</div> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part('template-parts/content', 'none'); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</div> | ||
|
||
</div><!-- row --> | ||
</div><!-- container--> | ||
</div> <!-- row --> | ||
</div><!-- container-fluid --> | ||
|
||
</main><!-- #main --> | ||
</div><!-- #primary --> | ||
|
||
|
||
<?php get_footer(); ?> |
Oops, something went wrong.