Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added default sections settings as temporary workaround

  • Loading branch information...
commit ba210cbb0427a6b1e07e8618da845570535d3cd2 1 parent 538286d
@zyml authored
Showing with 44 additions and 0 deletions.
  1. +44 −0 library/options.php
View
44 library/options.php
@@ -54,6 +54,50 @@ function ar2_get_default_theme_options() {
'layout' => 'twocol-r',
'auto_thumbs' => true,
+ 'sections' => array (
+
+ 'slideshow' => array (
+ 'enabled' => true,
+ 'title' => __( 'Slideshow', 'ar2' ),
+ 'type' => 'slideshow',
+ 'terms' => array(),
+ 'post_type' => 'post',
+ 'taxonomy' => 'category',
+ 'count' => 3,
+ ),
+
+ 'featured-posts-1' => array (
+ 'enabled' => true,
+ 'title' => __( 'Featured Posts', 'ar2' ),
+ 'type' => 'node',
+ 'terms' => array(),
+ 'post_type' => 'post',
+ 'taxonomy' => 'category',
+ 'count' => 3,
+ ),
+
+ 'featured-posts-2' => array (
+ 'enabled' => true,
+ 'title' => __( "Editors' Picks", 'ar2' ),
+ 'type' => 'quick',
+ 'terms' => array(),
+ 'post_type' => 'post',
+ 'taxonomy' => 'category',
+ 'count' => 3,
+ ),
+
+ 'news-posts' => array (
+ 'enabled' => true,
+ 'title' => __( 'Latest News', 'ar2' ),
+ 'type' => 'line',
+ 'terms' => array(),
+ 'post_type' => 'post',
+ 'taxonomy' => 'category',
+ 'count' => get_option( 'posts_per_page' ),
+ ),
+
+ ),
+
);
return apply_filters( 'ar2_default_theme_options', $_default_theme_options );
Please sign in to comment.
Something went wrong with that request. Please try again.