/
defaults.php
65 lines (63 loc) · 2.31 KB
/
defaults.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! function_exists( 'wpsp_get_defaults' ) ) {
/**
* Set all of our defaults
* @since 0.1
*/
function wpsp_get_defaults() {
$defaults = array(
'wpsp_author' => '',
'wpsp_author_location' => 'below-post',
'wpsp_columns' => 'col-6',
'wpsp_columns_gutter' => '2em',
'wpsp_content_type' => 'excerpt',
'wpsp_date_location' => 'below-title',
'wpsp_exclude_current' => false,
'wpsp_excerpt_length' => 30,
'wpsp_post_id' => '',
'wpsp_exclude_post_id' => '',
'wpsp_ignore_sticky_posts' => false,
'wpsp_image' => true,
'wpsp_image_alignment' => 'center',
'wpsp_image_height' => '',
'wpsp_image_location' => 'below-title',
'wpsp_image_width' => '',
'wpsp_include_title' => true,
'wpsp_title_element' => 'h2',
'wpsp_include_terms' => false,
'wpsp_include_author' => false,
'wpsp_include_date' => true,
'wpsp_include_comments' => false,
'wpsp_comments_location' => 'below-post',
'wpsp_inner_wrapper' => 'article',
'wpsp_inner_wrapper_class' => '',
'wpsp_inner_wrapper_style' => '',
'wpsp_itemtype' => 'CreativeWork',
'wpsp_meta_key' => '',
'wpsp_meta_value' => '',
'wpsp_offset' => 0,
'wpsp_order' => 'DESC',
'wpsp_orderby' => 'date',
'wpsp_pagination' => false,
'wpsp_post_meta_bottom_style' => 'stack',
'wpsp_post_meta_top_style' => 'inline',
'wpsp_post_status' => 'publish',
'wpsp_post_type' => 'post',
'wpsp_posts_per_page' => 10,
'wpsp_read_more_text' => '',
'wpsp_tax_operator' => 'IN',
'wpsp_tax_term' => '',
'wpsp_taxonomy' => 'category',
'wpsp_terms_location' => 'below-post',
'wpsp_wrapper' => 'section',
'wpsp_wrapper_class' => '',
'wpsp_wrapper_id' => false,
'wpsp_wrapper_style' => '',
'wpsp_no_results' => __( 'Sorry, no posts were found.','wp-show-posts' ),
'wpsp_read_more_class' => 'wp-show-posts-read-more',
);
return apply_filters( 'wpsp_defaults', $defaults );
}
}