240, 'flex-width' => true, ) ); /** * Register menu. */ function register_my_menu() { register_nav_menu('primary',__( 'Header Menu', 'arktheme' )); } add_action( 'init', 'register_my_menu' ); /** * Register siderbar widgets. */ function sidebar_widgets_init() { register_sidebar( array( 'name' => 'Sidebar widgets', 'id' => 'sidebar_widgets', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'sidebar_widgets_init'); /** * Register footer widgets. */ function footer_widgets_init() { register_sidebar( array( 'name' => 'Footer widgets', 'id' => 'footer_widgets', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'footer_widgets_init'); /** * Register social widgets. */ function social_widget_area_init() { register_sidebar( array( 'name' => 'Social widgets', 'id' => 'social_widget_area', 'before_widget' => '', 'before_title' => '
  • ', 'after_title' => '
  • ', ) ); } add_action( 'widgets_init', 'social_widget_area_init'); require get_template_directory() . '/includes/widgets/social-links.php'; require get_template_directory() . '/includes/widgets/address.php'; if(function_exists("register_field_group")) { register_field_group(array ( 'id' => 'acf_portfolio-fields', 'title' => 'Portfolio Fields', 'fields' => array ( array ( 'key' => 'field_5975710a4ec88', 'label' => 'Width', 'name' => 'width', 'type' => 'select', 'instructions' => 'Select width of the portfolio.', 'required' => 1, 'choices' => array ( 'grid-item' => '1 width (20%)', 'grid-item--width2' => '2 width (40%)', 'grid-item--width3' => '3 width (60%)', 'grid-item--width4' => '4 width (80%)', ), 'default_value' => 'grid-item : 1 width (20%)', 'allow_null' => 0, 'multiple' => 0, ), array ( 'key' => 'field_597573428f203', 'label' => 'Height', 'name' => 'height', 'type' => 'select', 'instructions' => 'Select height of the portfolio.', 'required' => 1, 'choices' => array ( 'grid-item--height1' => '1 height (254px)', 'grid-item--height2' => '2 height (508px)', 'grid-item--height3' => '3 height (762px)', 'grid-item--height4' => '4 height (1016px)', ), 'default_value' => 'grid-item--height1 : 1 height (254px)', 'allow_null' => 0, 'multiple' => 0, ), ), 'location' => array ( array ( array ( 'param' => 'post_type', 'operator' => '==', 'value' => 'portfolio', 'order_no' => 0, 'group_no' => 0, ), ), ), 'options' => array ( 'position' => 'side', 'layout' => 'no_box', 'hide_on_screen' => array ( ), ), 'menu_order' => 0, )); }