__( 'Primary Menu', 'dellow' ),
) );
add_theme_support( 'custom-background', apply_filters( 'dellow_custom_background_args', array(
'default-color' => 'eeeeee',
'default-image' => '',
) ) );
}
endif; // dellow_setup
add_action( 'after_setup_theme', 'dellow_setup' );
function dellow_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'dellow' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Footer Left', 'dellow' ),
'id' => 'sidebar-2',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Center', 'dellow' ),
'id' => 'sidebar-3',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Right', 'dellow' ),
'id' => 'sidebar-4',
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'dellow_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)."";
}
if ( (function_exists( 'of_get_option' )) && (of_get_option('slider_enabled') != 0) ) {
echo "";
}
if ( get_header_image() ) :
echo "";
endif;
}
add_action('wp_head', 'dellow_custom_head_codes');
function dellow_nav_menu_args( $args = '' )
{
$args['container'] = false;
return $args;
} // function
add_filter( 'wp_page_menu_args', 'dellow_nav_menu_args' );
function dellow_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. Import Widgets
*/
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';