array( 'value' => '3', 'label' => __( 'Blog Style', 'bartleby' ) ), 'two-column' => array( 'value' => '1', 'label' => __( 'Two Column', 'bartleby' ) ), 'three-column' => array( 'value' => '2', 'label' => __( 'Three Column', 'bartleby' ) ) ); return apply_filters( 'bartleby_settings_column_posts', $bartleby_settings_column_posts ); } function bartleby_get_theme_options() { $saved = (array) get_option( 'bartleby_theme_options' ); $defaults = array( 'home_headline' => '', 'bartleby_logo' => '', 'social_bar' => 'off', 'facebook_link' => '', 'twitter_link' => '', 'gplus_link' => '', 'linkedin_link' => '', 'github_link' => '', 'pinterest_link' => '', 'feed_link' => '', 'footer_link' => 'off', 'column_posts' => '2', 'infinite_scroll_disable' => 'off', 'elength' => '20', 'post_default_image' => '' ); $defaults = apply_filters( 'bartleby_default_theme_options', $defaults ); $bartleby_options = wp_parse_args( $saved, $defaults ); $bartleby_options = array_intersect_key( $bartleby_options, $defaults ); return $bartleby_options; } function bartleby_settings_field_post_default_image() { $bartleby_options = bartleby_get_theme_options(); ?>

array( 'value' => 'on', 'label' => __( 'On', 'bartleby' ) ), 'off' => array( 'value' => 'off', 'label' => __( 'Off', 'bartleby' ) ) ); return apply_filters( 'bartleby_settings_social_bar', $bartleby_settings_field_social_bar ); } function bartleby_settings_infinite_scroll_disable() { $bartleby_settings_infinite_scroll_disable = array( 'on' => array( 'value' => 'on', 'label' => __( 'On', 'bartleby' ) ), 'off' => array( 'value' => 'off', 'label' => __( 'Off', 'bartleby' ) ) ); return apply_filters( 'bartleby_settings_infinite_scroll_disable', $bartleby_settings_infinite_scroll_disable ); } function bartleby_settings_footer_link() { $bartleby_settings_footer_link = array( 'on' => array( 'value' => 'on', 'label' => __( 'On', 'bartleby' ) ), 'off' => array( 'value' => 'off', 'label' => __( 'Off', 'bartleby' ) ) ); return apply_filters( 'bartleby_settings_footer_link', $bartleby_settings_footer_link ); } function bartleby_settings_field_bartleby_logo() { $bartleby_options = bartleby_get_theme_options(); ?>