Skip to content

Commit a4f5af8

Browse files
committed
initial commit
1 parent e09f5aa commit a4f5af8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+28255
-0
lines changed

404.php

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?php
2+
/**
3+
* The template for displaying 404 pages (not found)
4+
*
5+
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
6+
*
7+
* @package WP_Bootstrap_4
8+
*/
9+
10+
get_header(); ?>
11+
12+
<?php
13+
$default_sidebar_position = get_theme_mod( 'default_sidebar_position', 'right' );
14+
?>
15+
16+
<div class="container">
17+
<div class="row">
18+
19+
<?php if ( $default_sidebar_position === 'no' ) : ?>
20+
<div class="col-md-12 wp-bp-content-width">
21+
<?php else : ?>
22+
<div class="col-md-8 wp-bp-content-width">
23+
<?php endif; ?>
24+
25+
<div id="primary" class="content-area wp-bp-404">
26+
<main id="main" class="site-main">
27+
28+
<div class="card mt-3r">
29+
<div class="card-body">
30+
<section class="error-404 not-found">
31+
<header class="page-header">
32+
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'wp-bootstrap-4' ); ?></h1>
33+
</header><!-- .page-header -->
34+
35+
<div class="page-content">
36+
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'wp-bootstrap-4' ); ?></p>
37+
38+
<?php
39+
get_search_form();
40+
41+
the_widget( 'WP_Widget_Recent_Posts', array(), array(
42+
'before_title' => '<h5 class="widget-title mt-4">',
43+
'after_title' => '</h5>',
44+
) );
45+
?>
46+
47+
<div class="widget widget_categories">
48+
<h5 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'wp-bootstrap-4' ); ?></h5>
49+
<ul>
50+
<?php
51+
wp_list_categories( array(
52+
'orderby' => 'count',
53+
'order' => 'DESC',
54+
'show_count' => 1,
55+
'title_li' => '',
56+
'number' => 10,
57+
) );
58+
?>
59+
</ul>
60+
</div><!-- .widget -->
61+
62+
<?php
63+
64+
the_widget( 'WP_Widget_Archives', 'dropdown=1', array(
65+
'before_title' => '<h5 class="widget-title">',
66+
'after_title' => '</h5>',
67+
) );
68+
69+
the_widget( 'WP_Widget_Tag_Cloud', array(), array(
70+
'before_title' => '<h5 class="widget-title">',
71+
'after_title' => '</h5>',
72+
) );
73+
?>
74+
75+
</div><!-- .page-content -->
76+
</section><!-- .error-404 -->
77+
</div>
78+
<!-- /.card-body -->
79+
</div>
80+
<!-- /.card -->
81+
82+
</main><!-- #main -->
83+
</div><!-- #primary -->
84+
</div>
85+
<!-- /.col-md-8 -->
86+
87+
<?php if ( $default_sidebar_position != 'no' ) : ?>
88+
<?php if ( $default_sidebar_position === 'right' ) : ?>
89+
<div class="col-md-4 wp-bp-sidebar-width">
90+
<?php elseif ( $default_sidebar_position === 'left' ) : ?>
91+
<div class="col-md-4 order-md-first wp-bp-sidebar-width">
92+
<?php endif; ?>
93+
<?php get_sidebar(); ?>
94+
</div>
95+
<!-- /.col-md-4 -->
96+
<?php endif; ?>
97+
</div>
98+
<!-- /.row -->
99+
</div>
100+
<!-- /.container -->
101+
<?php
102+
get_footer();

archive.php

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<?php
2+
/**
3+
* The template for displaying archive pages
4+
*
5+
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
6+
*
7+
* @package WP_Bootstrap_4
8+
*/
9+
10+
get_header(); ?>
11+
12+
<?php
13+
$default_sidebar_position = get_theme_mod( 'default_sidebar_position', 'right' );
14+
?>
15+
16+
<div class="container">
17+
<div class="row">
18+
19+
<?php if ( $default_sidebar_position === 'no' ) : ?>
20+
<div class="col-md-12 wp-bp-content-width">
21+
<?php else : ?>
22+
<div class="col-md-8 wp-bp-content-width">
23+
<?php endif; ?>
24+
25+
<div id="primary" class="content-area">
26+
<main id="main" class="site-main">
27+
28+
<?php
29+
if ( have_posts() ) : ?>
30+
31+
<header class="page-header mt-3r">
32+
<?php
33+
the_archive_title( '<h1 class="page-title">', '</h1>' );
34+
the_archive_description( '<div class="archive-description text-muted">', '</div>' );
35+
?>
36+
</header><!-- .page-header -->
37+
38+
<?php
39+
/* Start the Loop */
40+
while ( have_posts() ) : the_post();
41+
42+
/*
43+
* Include the Post-Format-specific template for the content.
44+
* If you want to override this in a child theme, then include a file
45+
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
46+
*/
47+
get_template_part( 'template-parts/content', get_post_format() );
48+
49+
endwhile;
50+
51+
the_posts_navigation( array(
52+
'next_text' => esc_html__( 'Newer Posts', 'wp-bootstrap-4' ),
53+
'prev_text' => esc_html__( 'Older Posts', 'wp-bootstrap-4' ),
54+
) );
55+
56+
else :
57+
58+
get_template_part( 'template-parts/content', 'none' );
59+
60+
endif; ?>
61+
62+
</main><!-- #main -->
63+
</div><!-- #primary -->
64+
</div>
65+
<!-- /.col-md-8 -->
66+
67+
<?php if ( $default_sidebar_position != 'no' ) : ?>
68+
<?php if ( $default_sidebar_position === 'right' ) : ?>
69+
<div class="col-md-4 wp-bp-sidebar-width">
70+
<?php elseif ( $default_sidebar_position === 'left' ) : ?>
71+
<div class="col-md-4 order-md-first wp-bp-sidebar-width">
72+
<?php endif; ?>
73+
<?php get_sidebar(); ?>
74+
</div>
75+
<!-- /.col-md-4 -->
76+
<?php endif; ?>
77+
</div>
78+
<!-- /.row -->
79+
</div>
80+
<!-- /.container -->
81+
82+
<?php
83+
get_footer();

0 commit comments

Comments
 (0)