. add_theme_support( 'automatic-feed-links' ); // Add support for custom backgrounds add_custom_background(); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'basically' ), 'secondary' => __( 'Secondary Navigation', 'basically' ) ) ); // This theme uses Featured Images (also known as post thumbnails) add_theme_support( 'post-thumbnails' ); // Add custom image sizes add_image_size( '150px' , 150, 150, true ); // 150px thumbnail // Load the theme options require_once get_template_directory() . '/options/basically-theme-options.php'; // Load the theme functions require_once get_template_directory() . '/functions/basically-theme-functions.php'; // Add custom header image define('HEADER_TEXTCOLOR', ''); // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. define('HEADER_IMAGE', ''); // The height and width of your custom header. // Add a filter to basically_header_image_width and rumputhijau_header_image_width to change these values. define('HEADER_IMAGE_WIDTH', apply_filters( 'basically_header_image_width', 950) ); define('HEADER_IMAGE_HEIGHT', apply_filters( 'basically_header_image_height', 135) ); // no text in the custom header define('NO_HEADER_TEXT', true ); // Styles the header image function Basically_admin_header_style() { ?> 'sidebar-1', 'name' => __( 'Sidebar', 'basically' ), 'description' => __( 'This sidebar appears on the right side of your site', 'basically' ), 'before_title' => '
', )); register_sidebar(array( 'id' => 'footer-1', 'name' => __( 'Footer 1', 'basically' ), 'description' => __( 'This sidebar appears on the footer of your site', 'basically' ), 'before_title' => '', )); register_sidebar(array( 'id' => 'footer-2', 'name' => __( 'Footer 2', 'basically' ), 'description' => __( 'This sidebar appears on the footer of your site', 'basically' ), 'before_title' => '', )); register_sidebar(array( 'id' => 'footer-3', 'name' => __( 'Footer 3', 'basically' ), 'description' => __( 'This sidebar appears on the footer of your site', 'basically' ), 'before_title' => '', )); register_sidebar(array( 'id' => 'footer-4', 'name' => __( 'Footer 4', 'basically' ), 'description' => __( 'This sidebar appears on the footer of your site', 'basically' ), 'before_title' => '', )); } ################################################################################ // Display entry meta when applicable ################################################################################ if ( ! function_exists( 'basically_entry_meta' ) ) : function basically_entry_meta(){ printf( __(' - %5$s - Posted in: %7$s - Permalink', 'basically'), get_author_posts_url( get_the_author_meta( 'ID' ) ), esc_attr( sprintf( __( 'View all posts by %s', 'basically' ), get_the_author() ) ), get_the_author(), esc_attr( get_the_time( 'c' ) ), esc_html( get_the_date() ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list(', '), esc_url( get_permalink() ), esc_attr( sprintf( __( 'Permalink to %s', 'basically' ), the_title_attribute( 'echo=0' ) ) ) ); } endif; ?>