__( 'Primary Sidebar', 'automobile' ), 'id' => 'primary-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', 'description' => __( 'This is the primary sidebar if you are using a two column site layout option.', 'automobile' ), ) ); //Header Right register_sidebar( array( 'name' => __( 'Header Right', 'automobile' ), 'id' => 'header-right', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', 'description' => __( 'This is the header right widget area. It typically appears on the right of the site title or logo. This widget area is not equipped to display any widget, and works best with a search form, social icons widget, Advertisement Widget or possibly a text widget.', 'automobile' ), ) ); $footer_sidebar_number = 4; //Number of footer sidebars for( $i=1; $i <= $footer_sidebar_number; $i++ ) { register_sidebar( array( 'name' => sprintf( __( 'Footer Area %d', 'automobile' ), $i ), 'id' => sprintf( 'footer-%d', $i ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', 'description' => sprintf( __( 'Footer %d widget area.', 'automobile' ), $i ), ) ); } } add_action( 'widgets_init', 'automobile_widgets_init' ); /** * Loads up Necessary JS Scripts for widgets * * @since Automobile 0.1 */ function automobile_widgets_scripts( $hook) { if ( 'widgets.php' == $hook ) { wp_enqueue_style( 'automobilewidgets-styles', get_template_directory_uri() . '/css/widgets.css' ); } } add_action( 'admin_enqueue_scripts', 'automobile_widgets_scripts' ); // Load Advertisement Image Widget include get_template_directory() . '/inc/widgets/advertisement-image.php'; // Load Instagram Widget include get_template_directory() . '/inc/widgets/instagram.php'; // Load Social Icon Widget include get_template_directory() . '/inc/widgets/social-icons.php';