__( 'Primary Menu', 'sixteen' ),
) );
add_theme_support( 'custom-background', apply_filters( 'sixteen_custom_background_args', array(
'default-color' => 'E6E1C4',
'default-image' => '',
) ) );
add_editor_style( 'editor-style.css' );
}
endif; // sixteen_setup
add_action( 'after_setup_theme', 'sixteen_setup' );
function sixteen_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'sixteen' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '
',
) );
}
add_action( 'widgets_init', 'sixteen_widgets_init' );
if ( !function_exists( 'optionsframework_init' ) ) {
define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/' );
require_once dirname( __FILE__ ) . '/inc/options-framework.php';
}
add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts');
function optionsframework_custom_scripts() { ?>
".of_get_option('style2', true)."";
}
//Modify CSS a little if Slider is disabled.
if ( ( of_get_option('slider_enabled') == 0 ) || ( (is_home() == false) || (is_front_page() == false) ) ) {
echo "";
}
}
add_action('wp_head', 'sixteen_custom_head_codes');
function sixteen_pagination() {
global $wp_query;
$big = 12345678;
$page_format = paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'type' => 'array'
) );
if( is_array($page_format) ) {
$paged = ( get_query_var('paged') == 0 ) ? 1 : get_query_var('paged');
echo '';
}
}
/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/inc/custom-header.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/inc/jetpack.php';