Skip to content

Commit 870f361

Browse files
committed
New version
1 parent 2effef7 commit 870f361

8 files changed

+53
-106
lines changed

functions.php

+17-7
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,27 @@ function less_theme_setup(){
3737
function less_scripts() {
3838

3939
// theme styles
40+
if (!is_admin()) {
41+
wp_register_style('less-Arvo', 'https://fonts.googleapis.com/css?family=Arvo:400,700', array(), null, 'all');
42+
wp_enqueue_style('less-Arvo');
43+
}
4044
wp_enqueue_style( 'less-style', get_template_directory_uri() . '/style.css', '10000', 'all' );
41-
42-
// add fitvid
43-
wp_enqueue_script( 'less-fitvid', get_template_directory_uri() . '/js/jquery.fitvids.js', array( 'jquery' ), LESS_VERSION, true );
44-
45-
// add theme scripts
46-
wp_enqueue_script( 'less', get_template_directory_uri() . '/js/theme.min.js', array(), LESS_VERSION, true );
4745

4846
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
4947
wp_enqueue_script( 'comment-reply' );
5048
}
5149

5250
}
53-
add_action( 'wp_enqueue_scripts', 'less_scripts' );
51+
add_action( 'wp_enqueue_scripts', 'less_scripts' );
52+
53+
54+
/*-----------------------------------------------------------------------------------*/
55+
/* Add a pingback url to header
56+
/*-----------------------------------------------------------------------------------*/
57+
58+
function less_pingback_header() {
59+
if ( is_singular() && pings_open() ) {
60+
printf( '<link rel="pingback" href="%s">', esc_url( get_bloginfo( 'pingback_url' ) ) );
61+
}
62+
}
63+
add_action( 'wp_head', 'less_pingback_header' );

index.php

+13-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<meta name="viewport" content="width=device-width" />
66

77
<link rel="profile" href="http://gmpg.org/xfn/11" />
8-
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
98

109
<?php wp_head(); ?>
1110
</head>
@@ -207,6 +206,19 @@
207206

208207
<?php } // end is_page(); ?>
209208

209+
210+
<?php
211+
/*-----------------------------------------------------------------------------------*/
212+
/* Start 404 Page
213+
/*-----------------------------------------------------------------------------------*/
214+
215+
if( is_404()) {
216+
?>
217+
<article class="post error">
218+
<h1 class="404"><?php esc_html_e( 'Nothing posted yet', 'less-reloaded' ); ?></h1>
219+
</article>
220+
<?php } // end is_404(); ?>
221+
210222
</div><!-- #content .site-content -->
211223
</div><!-- #primary .content-area -->
212224

@@ -220,7 +232,6 @@
220232

221233
<footer class="site-footer" role="contentinfo">
222234
<div class="site-info container">
223-
<?php do_action( 'break_credits' ); ?>
224235
<a href="https://wordpress.org/" title="<?php esc_html_e( 'A Semantic Personal Publishing Platform', 'less-reloaded'); ?>" rel="generator"><?php esc_html_e( 'Proudly powered by WordPress', 'less-reloaded'); ?></a>
225236
<span class="sep"> <?php esc_html_e( 'and', 'less-reloaded' ); ?> </span>
226237
<?php esc_html_e( 'Less Reloaded by Morteza Geransayeh', 'less-reloaded'); ?>

js/jquery.fitvids.js

-81
This file was deleted.

js/theme.js

-7
This file was deleted.

js/theme.min.js

-2
This file was deleted.

readme.txt

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
=== Less Reloaded ===
22
Theme Name: Less Reloaded
33
Contributors: man4toman
4-
Theme URI: http://geransayeh.com
4+
Theme URI: https://github.com/man4toman/Less-Reloaded
55
Author: Morteza Geransayeh
66
Author URI: https://geransayeh.com
77
Requires PHP: 5.6
88
Requires at least: WordPress 4.0
99
Tested up to: WordPress 5.0.3
10-
Stable tag: 1.0.1
10+
Stable tag: 1.0.3
1111
Description: Less Reloaded is a super minimal theme, both front end and back end. adding no bloat whatesover. It only uses the minimum requirements that WordPress has, a stylesheet, screenshot and the index page.
1212
License: GNU General Public License v3 or later
1313
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -16,7 +16,7 @@ Text Domain: less-reloaded
1616

1717
== Description ==
1818

19-
A simple minimal WordPress theme built with only what is needed to survive
19+
A simple minimal WordPress theme built with only what is needed to survive
2020

2121
Less is a super minimal theme, both front end and back end. adding no bloat whatesover. It only uses the minimum requirements that WordPress has, a stylesheet, screenshot and the index page.
2222
Less Reloaded is modefied version that works with WordPress 5 and it's translation ready and it support rtl.
@@ -34,11 +34,28 @@ Less Reloaded Theme is distributed under the terms of the GNU GPL
3434

3535
== Changelog ==
3636

37+
= 1.0.3 =
38+
* Fix 404 error
39+
* Update screenshot
40+
* Update readme.txt
41+
42+
= 1.0.2 =
43+
* Update screenshot
44+
* Remove fitvids.js due to WordPress new embeds
45+
* Move pingback_url to function.php and add a conditional for it
46+
* Remove break_credits action in footer
47+
* Add Google font with wp_enqueue_style
48+
3749
= 1.0.1 =
3850
* Update readme.txt
3951
* Update Copyright
4052
* Update screenshot
4153
* Some fixes
4254

4355
= 1.0 =
44-
* Initial release
56+
* Initial release
57+
58+
== Resources ==
59+
* Photo used in the screenshot is distributed under the terms of the GNU GPL
60+
License: GNU General Public License v3 or later
61+
License URI: http://www.gnu.org/licenses/gpl-3.0.html

screenshot.png

415 KB
Loading

style.css

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
@import url(http://fonts.googleapis.com/css?family=Arvo:400,700);
21
/*
32
Theme Name: Less Reloaded
4-
Theme URI: http://geransayeh.com
3+
Theme URI: https://github.com/man4toman/Less-Reloaded
54
Author: Morteza Geransayeh
65
Author URI: http://geransayeh.com
76
Description: Less Reloaded is a super minimal theme, both front end and back end. adding no bloat whatesover. It only uses the minimum requirements that WordPress has, a stylesheet, screenshot and the index page.
87
Requires at least: WordPress 4.0
9-
Version: 1.0.1
8+
Version: 1.0.3
109
License: GNU General Public License v3 or later
1110
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1211
Text Domain: less-reloaded

0 commit comments

Comments
 (0)