Skip to content

Commit

Permalink
Version 1.1.2: Cleanup and minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Olaru committed Jun 25, 2019
1 parent b81c8ee commit 4a81610
Show file tree
Hide file tree
Showing 54 changed files with 792 additions and 6,846 deletions.
116 changes: 61 additions & 55 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,56 +1,62 @@
<?php
/**
* The template for displaying 404 pages (not found).
*
* @package Jason
*/

get_header(); ?>

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

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

<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'jason-lite' ); ?></p>

<?php get_search_form(); ?>

<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>

<?php if ( jason_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'jason-lite' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>

<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'jason-lite' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>

<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>

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

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

<?php get_footer(); ?>
/**
* The template for displaying 404 pages (not found).
*
* @package Jason
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

get_header(); ?>

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

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

<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'jason-lite' ); ?></p>

<?php
get_search_form();

the_widget( 'WP_Widget_Recent_Posts' );

if ( jason_categorized_blog() ) { // Only show the widget if site has multiple categories. ?>

<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'jason-lite' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->

<?php }

/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'jason-lite' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );

the_widget( 'WP_Widget_Tag_Cloud' ); ?>

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

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

<?php
get_footer();
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# jason-lite
Jason Lite is a blogging tool for the adventurers of the world. Share the thoughts, photos and videos of your wanderings with ease. Enjoy the beautiful typography, the flexibility to lay out your stories with ease and the clever integration of imagery with text. All to help you relax and enjoy writing.
# Jason Lite

Jason Lite is a colorful free WordPress theme designed for publishers of all kind. Whether you’re keeping a straightforward journal of your travels or publishing an photo-heavy scrapbook, Jason makes it easy to showcase your latest news, interesting finds, and long-form writing — or to create collection of photos, videos, and quotes.

## Changelog

### 1.1.2
* Cleanup and security improvements.

### 1.1.1
* Minor styling fixes in the admin area.

### 1.1.0
* Improved the overall onboarding experience with the theme and introduced a dedicated help tool.

### 1.0.2
* Updated the readme.txt file

### 1.0.0
* Initial release

## Credits

Unless otherwise specified, all the theme files, scripts and images are licensed under GNU General Public License.

* Norwester font (c) October 14, 2013, [Jamie Wilson](jamiewilson.io), licensed under [SIL Open Font License v1.1](http://scripts.sil.org/OFL)
* Libre Caslon font Copyright (c) 2012, [Pablo Impallari](www.impallari.com|[email protected]), [Rodrigo Fuenzalida](www.rfuenzalida.com|[email protected]), with Reserved Font Name Libre Caslon, licensed under [SIL Open Font License v1.1](http://scripts.sil.org/OFL)
* Font Awesome: font by Fonticons, Inc. (https://fontawesome.com/), licensed under [SIL OFL 1.1](https://fontawesome.com/license/free), CSS released under the [MIT License](http://opensource.org/licenses/mit-license.html).

* Images: images by SplitShire (https://pixabay.com/en/users/SplitShire-364019/) — [Source](https://pixabay.com/en/photographer-tourist-snapshot-407068/), ileukers (https://pixabay.com/en/users/ileukers-2987340/) — [Source](https://pixabay.com/en/oldtimer-convertible-red-1544342/).

* VelocityJS: script by Julian Shapiro (http://julian.com/research/velocity/), licensed under the [MIT License](http://opensource.org/licenses/mit-license.html).
19 changes: 1 addition & 18 deletions assets/icons/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 1 addition & 18 deletions assets/icons/arrow-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions assets/icons/close-icon-svg.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<svg width="30px" height="30px" viewBox="0 0 30 30">
<g id="close-icon" fill="currentColor">
<path d="M16.3256354,15 L29.7254275,1.60020781 C30.0915242,1.2341112 30.0915242,0.640669068 29.7254275,0.274572458 C29.3597997,-0.0915241525 28.76542,-0.0915241525 28.3997922,0.274572458 L15,13.6743646 L1.60020781,0.274572458 C1.23457996,-0.0915241525 0.640200314,-0.0915241525 0.274572458,0.274572458 C-0.0915241525,0.640669068 -0.0915241525,1.2341112 0.274572458,1.60020781 L13.6743646,15 L0.274572458,28.3997922 C-0.0915241525,28.7658888 -0.0915241525,29.3593309 0.274572458,29.7254275 C0.457386386,29.9087102 0.697388261,30.0001172 0.937390136,30.0001172 C1.17739201,30.0001172 1.41739389,29.9087102 1.60020781,29.7254275 L15,16.3256354 L28.3997922,29.7254275 C28.5826061,29.9087102 28.822608,30.0001172 29.0626099,30.0001172 C29.3026117,30.0001172 29.5426136,29.9087102 29.7254275,29.7254275 C30.0915242,29.3593309 30.0915242,28.7658888 29.7254275,28.3997922 L16.3256354,15 L16.3256354,15 Z" id="Shape"></path>
</g>
</svg>
<?php
/**
* Close icon
*
* @package Jason Lite
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

?><svg width="30" height="30"><path d="M16.3256 15L29.7254 1.6002a.9373.9373 0 0 0 0-1.3256c-.3656-.3661-.96-.3661-1.3256 0L15 13.6744 1.6002.2746c-.3656-.3661-.96-.3661-1.3256 0a.9373.9373 0 0 0 0 1.3256L13.6744 15 .2746 28.3998a.9373.9373 0 0 0 0 1.3256.933.933 0 0 0 .6628.2747c.24 0 .48-.0914.6628-.2747L15 16.3256l13.3998 13.3998a.933.933 0 0 0 .6628.2747c.24 0 .48-.0914.6628-.2747a.9373.9373 0 0 0 0-1.3256L16.3256 15z" fill="currentColor"/></svg>
11 changes: 1 addition & 10 deletions assets/icons/cube-pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 12 additions & 7 deletions assets/icons/menu-bars-svg.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<svg width="30px" height="30px" viewBox="0 0 30 30">
<g id="shape-bars" transform="translate(0, 5)" fill="currentColor">
<path d="M0.909090909,2.22222222 L29.0909091,2.22222222 C29.5927273,2.22222222 30,1.72444444 30,1.11111111 C30,0.497777778 29.5927273,0 29.0909091,0 L0.909090909,0 C0.407272727,0 0,0.497777778 0,1.11111111 C0,1.72444444 0.407272727,2.22222222 0.909090909,2.22222222 L0.909090909,2.22222222 Z" id="Shape"></path>
<path d="M0.909090909,11.1111111 L29.0909091,11.1111111 C29.5927273,11.1111111 30,10.6133333 30,10 C30,9.38666667 29.5927273,8.88888889 29.0909091,8.88888889 L0.909090909,8.88888889 C0.407272727,8.88888889 0,9.38666667 0,10 C0,10.6133333 0.407272727,11.1111111 0.909090909,11.1111111 L0.909090909,11.1111111 Z" id="Shape"></path>
<path d="M0.909090909,20 L29.0909091,20 C29.5927273,20 30,19.5022222 30,18.8888889 C30,18.2755556 29.5927273,17.7777778 29.0909091,17.7777778 L0.909090909,17.7777778 C0.407272727,17.7777778 0,18.2755556 0,18.8888889 C0,19.5022222 0.407272727,20 0.909090909,20 L0.909090909,20 Z" id="Shape"></path>
</g>
</svg>
<?php
/**
* Menu bars icon
*
* @package Jason Lite
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

?><svg width="30" height="30"><g fill="currentColor"><path d="M.909 7.2222h28.182c.5017 0 .909-.4978.909-1.111C30 5.4977 29.5927 5 29.091 5H.909C.4074 5 0 5.4978 0 6.1111s.4073 1.1111.909 1.1111zM.909 16.1111h28.182c.5017 0 .909-.4978.909-1.1111s-.4073-1.1111-.909-1.1111H.909C.4074 13.8889 0 14.3867 0 15s.4073 1.1111.909 1.1111zM.909 25h28.182c.5017 0 .909-.4978.909-1.1111s-.4073-1.1111-.909-1.1111H.909c-.5017 0-.909.4978-.909 1.111C0 24.5023.4073 25 .909 25z"/></g></svg>
17 changes: 12 additions & 5 deletions assets/icons/search-icon-svg.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<svg width="30px" height="30px" viewBox="0 0 30 30">
<g id="shape-search" stroke="none" stroke-width="1" fill="currentColor" fill-rule="evenodd">
<path d="M29.9775718,27.8460112 C29.8995935,27.4199023 29.6305499,26.9742065 29.1759845,26.5196411 L22.1413078,19.4853339 C25.6854397,14.6477233 25.1735916,7.84993793 20.9139812,3.58921883 C18.5986542,1.27463095 15.521653,-1.77635684e-15 12.2484125,-1.77635684e-15 C8.97517208,-1.77635684e-15 5.89780128,1.27463095 3.58395253,3.58921883 C-1.19452765,8.36806858 -1.19452765,16.1426152 3.5832134,20.9203562 C5.89780128,23.2356832 8.97517208,24.5099446 12.2484125,24.5099446 C15.2204572,24.5099446 18.0705453,23.440792 20.3005027,21.4942912 L27.2509185,28.4450766 C27.7897449,28.9842725 28.3344842,29.2688378 28.8237887,29.2688378 C29.141615,29.2688378 29.4295064,29.1498378 29.6545717,28.9236638 C29.9380283,28.6409463 30.0525936,28.2580766 29.9775718,27.8460112 L29.9775718,27.8460112 Z M12.3223256,22.1842698 C6.85017123,22.1842698 2.3987564,17.7328549 2.3987564,12.2610701 C2.3987564,6.78891577 6.85017123,2.33713137 12.3223256,2.33713137 C17.79448,2.33713137 22.2466339,6.78891577 22.2466339,12.2610701 C22.2466339,17.7328549 17.79448,22.1842698 12.3223256,22.1842698 L12.3223256,22.1842698 Z"></path>
</g>
</svg>
<?php
/**
* Search icon
*
* @package Jason Lite
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

?><svg width="30" height="30"><path d="M29.9776 27.846c-.078-.4261-.347-.8718-.8016-1.3264l-7.0347-7.0343c3.5441-4.8376 3.0323-11.6354-1.2273-15.896C18.5987 1.2745 15.5217 0 12.2484 0 8.9752 0 5.8978 1.2746 3.584 3.5892c-4.7785 4.7789-4.7785 12.5534-.0008 17.3312 2.3146 2.3153 5.392 3.5895 8.6652 3.5895 2.972 0 5.8221-1.0691 8.0521-3.0156l6.9504 6.9508c.5388.5392 1.0836.8237 1.5729.8237.3178 0 .6057-.119.8308-.3451.2834-.2828.398-.6656.323-1.0777zm-17.6553-5.6617c-5.4721 0-9.9235-4.4514-9.9235-9.9232 0-5.4722 4.4514-9.924 9.9235-9.924 5.4722 0 9.9243 4.4518 9.9243 9.924 0 5.4718-4.4521 9.9232-9.9243 9.9232z" fill="currentColor" fill-rule="evenodd"/></svg>
18 changes: 12 additions & 6 deletions assets/icons/sidebar-icon-svg.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<svg width="30px" height="30px" viewBox="0 0 30 30">
<g id="shape-sidebar" transform="translate(4.333333, 0)" fill="currentColor">
<path d="M10.2776667,0 L4.08266667,0 C1.87733333,0 0,1.695 0,3.90033333 L0,25.9016667 C0,28.107 1.87733333,30 4.08266667,30 L10.2916667,30 C10.6596667,30 10.9583333,29.7013333 10.9583333,29.3333333 C10.9583333,28.9653333 10.6596667,28.6666667 10.2916667,28.6666667 L4.08266667,28.6666667 C2.61266667,28.6666667 1.33333333,27.3716667 1.33333333,25.9016667 L1.33333333,3.90033333 C1.33333333,2.43033333 2.61266667,1.33333333 4.08266667,1.33333333 L10.2776667,1.33333333 C10.6456667,1.33333333 10.9443333,1.03466667 10.9443333,0.666666667 C10.9443333,0.298666667 10.646,0 10.2776667,0 L10.2776667,0 Z" id="Shape"></path>
<path d="M11.7563333,9.47833333 C11.496,9.21833333 11.074,9.21833333 10.8133333,9.47833333 L5.52866667,14.763 C5.40366667,14.888 5.33333333,15.0576667 5.33333333,15.2343333 C5.33333333,15.411 5.40366667,15.5806667 5.52866667,15.7056667 L10.8133333,20.9906667 C10.9436667,21.121 11.114,21.186 11.285,21.186 C11.4556667,21.186 11.626,21.121 11.7563333,20.9906667 C12.0166667,20.7303333 12.0166667,20.3083333 11.7563333,20.0476667 L7.70833333,16 L21,16 C21.368,16 21.6666667,15.7013333 21.6666667,15.3333333 C21.6666667,14.9653333 21.368,14.6666667 21,14.6666667 L7.51066667,14.6666667 L11.7563333,10.4213333 C12.0166667,10.1606667 12.0166667,9.73866667 11.7563333,9.47833333 L11.7563333,9.47833333 Z" id="Shape"></path>
</g>
</svg>
<?php
/**
* Sidebar icon
*
* @package Jason Lite
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

?><svg width="30" height="30"><g fill="currentColor"><path d="M14.611 0H8.416C6.2107 0 4.3333 1.695 4.3333 3.9003v22.0014C4.3333 28.107 6.2107 30 8.416 30h6.209a.667.667 0 0 0 .6667-.6667.667.667 0 0 0-.6667-.6666H8.416c-1.47 0-2.7493-1.295-2.7493-2.765V3.9003c0-1.47 1.2793-2.567 2.7493-2.567h6.195a.6667.6667 0 0 0 0-1.3333z"/><path d="M16.0897 9.4783a.6675.6675 0 0 0-.943 0L9.862 14.763a.6669.6669 0 0 0-.1953.4713c0 .1767.0703.3464.1953.4714l5.2847 5.285a.6642.6642 0 0 0 .4716.1953.667.667 0 0 0 .4713-1.1383L12.0417 16h13.2917A.667.667 0 0 0 26 15.3333a.667.667 0 0 0-.6667-.6666H11.844l4.2457-4.2454a.667.667 0 0 0 0-.943z"/></g></svg>
15 changes: 1 addition & 14 deletions assets/icons/submenu-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4a81610

Please sign in to comment.