'', 'default-image' => '', 'default-repeat' => '', 'default-position-x' => '', 'default-attachment' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' )); add_editor_style(); require get_template_directory() . '/inc/customizer.php'; // Indicate widget sidebars can use selective refresh in the Customizer.(WP4.7) add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'custom-logo', array( 'height' => 50, 'width' => 220, 'flex-height' => true, 'flex-width' => true, )); add_theme_support('custom-header',array( //default image (empty to use none). 'default-image' => '', 'uploads' => true, // Set height and width, with a maximum value for the width. 'height' => 48, 'width' => 1980, )); } add_action( 'after_setup_theme', 'simple_days_setup' ); function simple_days_required_stylesheets(){ wp_enqueue_style('simple_days', get_stylesheet_uri()); wp_enqueue_script( 'font-awesome', 'https://use.fontawesome.com/releases/v5.0.10/js/all.js', array(), null ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action('wp_enqueue_scripts','simple_days_required_stylesheets'); function simple_days_excerpt_more( $more ) { if ( !is_admin() ){ return ''; } } add_filter( 'excerpt_more', 'simple_days_excerpt_more' ); function simple_days_the_excerpt( $post_excerpt, $post ) { if ( !is_admin() ){ $more = sprintf( '...
>>', esc_url(get_permalink( $post->ID )), esc_attr__( 'Read More', 'simple-days' ) ); return $post_excerpt . $more; } } add_filter( 'get_the_excerpt', 'simple_days_the_excerpt', 10, 2 ); function simple_days_widgets_init() { register_sidebar(array( 'name' => esc_attr__( 'Sidebar', 'simple-days' ), 'id' => 'sidebar1', 'description' => esc_attr__( 'Add widgets here to appear in your sidebar.', 'simple-days' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => esc_attr__( 'Content Bottom Left', 'simple-days' ), 'id' => 'footer1', 'description' => esc_attr__( 'Add widgets here to appear in bottom footer(left side)..', 'simple-days' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => esc_attr__( 'Content Bottom Center', 'simple-days' ), 'id' => 'footer2', 'description' => esc_attr__( 'Add widgets here to appear in bottom footer(center).', 'simple-days' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => esc_attr__( 'Content Bottom Right', 'simple-days' ), 'id' => 'footer3', 'description' => esc_attr__( 'Add widgets here to appear in bottom footer(right side)', 'simple-days' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => esc_attr__( 'Under the post', 'simple-days' ), 'id' => 'under_post', 'description' => esc_attr__( 'Add widgets here to appear in under the post', 'simple-days' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => esc_attr__( 'On the pagination', 'simple-days' ), 'id' => 'on_pagination', 'description' => esc_attr__( 'Add widgets here to appear on the pagination', 'simple-days' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); } add_action( 'widgets_init', 'simple_days_widgets_init' ); register_nav_menu( 'primary' , esc_attr__( 'Primary Menu', 'simple-days' )); function simple_days_document_title_separator( $separator ) { $separator = ' | '; return $separator; } add_filter( 'document_title_separator', 'simple_days_document_title_separator' ); ?>