Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plugins/hexly-commerce
Submodule hexly-commerce updated from 1e1c7a to 2f8a4d
2 changes: 1 addition & 1 deletion src/plugins/hexly-common
Submodule hexly-common updated from aff142 to 6fab1b
2 changes: 1 addition & 1 deletion src/plugins/hexly-replicated-sites
Submodule hexly-replicated-sites updated from 72e108 to 716ca7
83 changes: 83 additions & 0 deletions src/themes/storefront/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?php
/**
* The template for displaying 404 pages (not found).
*
* @package storefront
*/

get_header(); ?>

<div id="primary" class="content-area">

<main id="main" class="site-main" role="main">

<div class="error-404 not-found">

<div class="page-content">

<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'storefront' ); ?></h1>
</header><!-- .page-header -->

<p><?php esc_html_e( 'Nothing was found at this location. Try searching, or check out the links below.', 'storefront' ); ?></p>

<?php
echo '<section aria-label="' . esc_html__( 'Search', 'storefront' ) . '">';

if ( storefront_is_woocommerce_activated() ) {
the_widget( 'WC_Widget_Product_Search' );
} else {
get_search_form();
}

echo '</section>';

if ( storefront_is_woocommerce_activated() ) {

echo '<div class="fourohfour-columns-2">';

echo '<section class="col-1" aria-label="' . esc_html__( 'Promoted Products', 'storefront' ) . '">';

storefront_promoted_products();

echo '</section>';

echo '<nav class="col-2" aria-label="' . esc_html__( 'Product Categories', 'storefront' ) . '">';

echo '<h2>' . esc_html__( 'Product Categories', 'storefront' ) . '</h2>';

the_widget(
'WC_Widget_Product_Categories', array(
'count' => 1,
)
);

echo '</nav>';

echo '</div>';

echo '<section aria-label="' . esc_html__( 'Popular Products', 'storefront' ) . '">';

echo '<h2>' . esc_html__( 'Popular Products', 'storefront' ) . '</h2>';

$shortcode_content = storefront_do_shortcode(
'best_selling_products', array(
'per_page' => 4,
'columns' => 4,
)
);

echo $shortcode_content; // WPCS: XSS ok.

echo '</section>';
}
?>

</div><!-- .page-content -->
</div><!-- .error-404 -->

</main><!-- #main -->
</div><!-- #primary -->

<?php
get_footer();
711 changes: 711 additions & 0 deletions src/themes/storefront/README.txt

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions src/themes/storefront/archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php
/**
* The template for displaying archive pages.
*
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package storefront
*/

get_header(); ?>

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<?php if ( have_posts() ) : ?>

<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header><!-- .page-header -->

<?php
get_template_part( 'loop' );

else :

get_template_part( 'content', 'none' );

endif;
?>

</main><!-- #main -->
</div><!-- #primary -->

<?php
do_action( 'storefront_sidebar' );
get_footer();
1 change: 1 addition & 0 deletions src/themes/storefront/assets/css/admin/admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/themes/storefront/assets/css/admin/plugin-install.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading