=> [ 'add_new_item' => esc_html__('Add New Resource', 'chipmunk'), 'edit_item' => esc_html__('Edit Resource', 'chipmunk'), 'new_item' => esc_html__('New Resource', 'chipmunk'), 'view_item' => esc_html__('View Resource', 'chipmunk'), 'all_items' => esc_html__('All Resources', 'chipmunk'), 'search_items' => esc_html__('Search Resources', 'chipmunk'), 'not_found' => esc_html__('No Resources found.', 'chipmunk'), 'not_found_in_trash' => esc_html__('No Resources found in trash.', 'chipmunk'), ], ], ]); add_theme_support('taxonomies', [ 'resource-collection' => [ 'singular' => esc_html__('Collection', 'chipmunk'), 'plural' => esc_html__('Collections', 'chipmunk'), 'posts' => ['resource'], 'rewrite' => ['slug' => (!empty(get_option('chipmunk_collection_cpt_base')) ? get_option('chipmunk_collection_cpt_base') : sanitize_title(esc_html__('Collection', 'chipmunk'))), 'with_front' => false, 'hierarchical' => true], 'rest_base' => 'collections', 'rest_controller_class' => 'WP_REST_Terms_Controller', 'labels' => [ 'add_new_item' => esc_html__('Add Collection', 'chipmunk'), 'new_item_name' => esc_html__('New Collection Name', 'chipmunk'), 'edit_item' => esc_html__('Edit Collection', 'chipmunk'), 'update_item' => esc_html__('Update Collection', 'chipmunk'), 'parent_item' => esc_html__('Parent Collection', 'chipmunk'), 'parent_item_colon' => esc_html__('Parent Collection:', 'chipmunk'), 'all_items' => esc_html__('All Collections', 'chipmunk'), 'search_items' => esc_html__('Search Collections', 'chipmunk'), ], ], 'resource-tag' => [ 'singular' => esc_html__('Tag', 'chipmunk'), 'plural' => esc_html__('Tags', 'chipmunk'), 'posts' => ['resource'], 'rewrite' => ['slug' => (!empty(get_option('chipmunk_tag_cpt_base')) ? get_option('chipmunk_tag_cpt_base') : sanitize_title(esc_html__('Resource Tag', 'chipmunk'))), 'with_front' => false, 'hierarchical' => true], 'hierarchical' => false, 'labels' => [ 'add_new_item' => esc_html__('Add Tag', 'chipmunk'), 'new_item_name' => esc_html__('New Tag Name', 'chipmunk'), 'edit_item' => esc_html__('Edit Tag', 'chipmunk'), 'update_item' => esc_html__('Update Tag', 'chipmunk'), 'parent_item' => esc_html__('Parent Tag', 'chipmunk'), 'parent_item_colon' => esc_html__('Parent Tag:', 'chipmunk'), 'all_items' => esc_html__('All Tags', 'chipmunk'), 'search_items' => esc_html__('Search Tags', 'chipmunk'), ], ], ]); add_theme_support('images', [ '1920x1080' => [ 'width' => 1920, 'height' => 1080, 'crop' => false, ], '1280x960' => [ 'width' => 1280, 'height' => 960, 'crop' => false, ], '1280x720' => [ 'width' => 1280, 'height' => 720, 'crop' => false, ], '640x480' => [ 'width' => 640, 'height' => 480, 'crop' => false, ], ]); add_theme_support('menus', [ 'nav-primary' => 'Header nav', 'nav-secondary' => 'Footer nav' ]); } /** * Setup main components and features of the theme * * @return void */ public static function setup_theme() { global $customizer; new Actions(); new Assets(); new Features(); new Settings(); new Shortcodes(); new Config\Admin(); new Config\Assets(); new Config\Nav(); new Config\Query(); new Config\Misc(); new Vendors\ACF(); new Vendors\Almond(); new Vendors\Updater(); // Addons new Addons\Members([ 'name' => 'Members', 'slug' => 'members', 'excerpt' => 'Makes it a breeze for users to sign-up and become members of your website.', 'url' => THEME_SHOP_URL . '/addons/members', ]); new Addons\Ratings([ 'name' => 'Ratings', 'slug' => 'ratings', 'excerpt' => 'Adds 5-star rating system to your website and increases user engagement.', 'url' => THEME_SHOP_URL . '/addons/ratings', ]); // Customizer Customizer::register_sections(); } }