Skip to content

Commit ad45078

Browse files
committed
Leaf: 2/6/2013 update
1 parent 592d2d6 commit ad45078

File tree

11 files changed

+751
-680
lines changed

11 files changed

+751
-680
lines changed

change-log.txt

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,36 @@
22
Contributors: bradthomas127
33
Tags:
44
Requires at least: 3.3
5-
Tested up to: 3.5 RC 2
5+
Tested up to: 3.5
66

77
== Change Log ==
88
This change log was started beginning with Version 1.0
99

10+
= Changes Version 1.0.4 =
11+
* Fixed sidebar for IE8.
12+
*
13+
14+
= Changes Version 1.0.4 =
15+
* Set the "More Articles" option to select more post to display.
16+
* Hopefully fixed the category select option for the slider.
17+
* Put a class on posted by text.
18+
* Noticed/removed a link from the translations. <= Sneaky...
19+
* Re-generated leaf.pot file.
20+
21+
= Changes Version 1.0.2 =
22+
* Added an option to set more post to display in the "More Articles" section on the home page.
23+
* Added an option to select a category to display in the slider.
24+
* Fixed featured images to display if set from NextGen Gallery.
25+
* Re-generated leaf.pot file.
26+
1027
= Changes Version 1.0 =
1128
* Last Version was supposed to be 1.0 but i forgot to change in the style sheet before upload.
1229
* Fixed the Homepage Sidebar title.
1330
* Fixed the blog template from messing up if set to Front page in the reading settings.
1431
* Added styling for bold. <= bangs head...
1532
* Fixed Homepage Sidebar description in case using another page as a front page from the reading settings.
1633
* Fixed slider for RTL.
17-
* Added French language. <= thanks wp trads.
34+
* Added French language.
1835
* Re-generated leaf.pot file.
1936

2037
= Changes Version 0.7 =

home.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,18 @@
1313
<div id="primary" class="site-content <?php echo leaf_grid_width( 'content' ); ?> columns">
1414
<div id="content" role="main">
1515
<article class="post-home">
16-
17-
16+
1817
<?php /********* Slider Section. *********/ ?>
1918

2019
<div id="iview">
2120

22-
<?php $args = ( array( 'posts_per_page' => 5, 'post__not_in' => get_option( 'sticky_posts' ) ) ); ?>
21+
<?php
22+
if ( ! isset( $options['leaf_slider_cat']) || $options['leaf_slider_cat'] == -1 ) {
23+
$args = ( array( 'posts_per_page' => 5, 'post__not_in' => get_option( 'sticky_posts' ) ) );
24+
} else {
25+
$args = ( array( 'posts_per_page' => 5, 'category__in' => $options['leaf_slider_cat'], 'post__not_in' => get_option( 'sticky_posts' ) ) );
26+
}
27+
?>
2328

2429
<?php $loop = new WP_Query( $args ); ?>
2530

@@ -179,8 +184,10 @@
179184

180185

181186
<?php /********* Articles Section. *********/ ?>
187+
188+
<?php $articles = (!empty($options['leaf_more_articles_number'])) ? ($options['leaf_more_articles_number']) : 2; ?>
182189

183-
<?php $loop = new WP_Query( array( 'posts_per_page' => 2, 'post__not_in' => $no_duplicates ) ); ?>
190+
<?php $loop = new WP_Query( array( 'posts_per_page' => $articles, 'post__not_in' => $no_duplicates, 'orderby' => 'date', 'order' => 'DESC' ) ); ?>
184191

185192
<?php if ( $loop->have_posts() ) : ?>
186193

0 commit comments

Comments
 (0)