add_theme_support('post-thumbnails'); add_theme_support('menu'); //Logo function config_custom_logo() { add_theme_support( 'custom-logo' ); } add_action( 'after_setup_theme' , 'config_custom_logo' ); //Add Script function wpdocs_theme_name_scripts() { wp_enqueue_script( 'aos', get_template_directory_uri() . '/assets/js/jquery.min.js', array(), '1.0', true ); wp_enqueue_script( 'bootstrapmin', get_template_directory_uri() . '/assets/js/plugins.js', array('jquery'), '1.0', true ); wp_enqueue_script( 'poppermin', get_template_directory_uri() . '/assets/js/theme.js"', array('jquery'), '1.0', true ); } add_action( 'wp_enqueue_scripts', 'wpdocs_theme_name_scripts' ); //Add Stylesheet function namespace_theme_stylesheets() { wp_register_style( 'style', get_template_directory_uri() .'/style.css', array(), null, 'all' ); wp_register_style( 'plugins', get_template_directory_uri() .'/assets/css/plugins.css', array(), null, 'all' ); wp_register_style( 'style-main', get_template_directory_uri() .'/assets/css/style.css', array(), null, 'all' ); wp_register_style( 'navy', get_template_directory_uri() .'/assets/css/navy.css', array(), null, 'all' ); wp_register_style( 'stylesheet', get_template_directory_uri() .'/assets/css/stylesheet.css', array(), null, 'all' ); wp_register_style( 'responsive', get_template_directory_uri() .'/assets/css/responsive.css', array(), null, 'all' ); wp_enqueue_style( 'style' ); wp_enqueue_style( 'plugins' ); wp_enqueue_style( 'style-main' ); wp_enqueue_style( 'navy' ); wp_enqueue_style( 'stylesheet' ); wp_enqueue_style( 'responsive' ); } add_action( 'wp_enqueue_scripts', 'namespace_theme_stylesheets' ); //Add Menu function wpb_custom_new_menu() { register_nav_menus( array( 'main-navigation' => __( 'Main Navigation' ), 'footer-menu-1' => __( 'Footer Menu' ), ) ); } add_action( 'init', 'wpb_custom_new_menu' ); //Add options Menu in Dashboard add_action('acf/init', 'my_acf_op_init'); function my_acf_op_init() { // Check function exists. if( function_exists('acf_add_options_page') ) { // Add parent. $parent = acf_add_options_page(array( 'page_title' => __('Theme General Settings'), 'menu_title' => __('Theme Settings'), 'redirect' => false, )); } } @ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' ); // Disable Gutenberg add_filter('use_block_editor_for_post', '__return_false', 10); // //Add Class in Li function add_classes_on_li($classes, $item, $args) { $classes[] = 'nav-item'; return $classes; } add_filter('nav_menu_css_class','add_classes_on_li',1,3); //Add Class in A Tag add_filter( 'nav_menu_link_attributes', function($atts) { $atts['class'] = "nav-link"; return $atts; }, 100, 1 ); //Add service Posttype function create_posttype_services() { register_post_type( 'services', array( 'labels' => array( 'name' => __( 'Services' ), 'singular_name' => __( 'Services' ), 'all_items' => __( 'All Services' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'services'), 'show_in_rest' => true, 'supports' => array('title', 'editor', 'thumbnail',) ) ); } //Hooking up our function to theme setup add_action( 'init', 'create_posttype_services' ); //Add JOBS Posttype function create_posttype_jobs() { register_post_type( 'jobs', array( 'labels' => array( 'name' => __( 'Jobs' ), 'singular_name' => __( 'Jobs' ), 'all_items' => __( 'All Jobs' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'jobs'), 'show_in_rest' => true, 'supports' => array('title', 'excerpt', 'author', 'thumbnail', 'editor', ) ) ); } //Hooking up our function to theme setup add_action( 'init', 'create_posttype_jobs' ); //Add Projects Posttype function create_posttype_projects() { register_post_type( 'projects', array( 'labels' => array( 'name' => __( 'Projects' ), 'singular_name' => __( 'Projects' ), 'all_items' => __( 'All Projects' ), ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'projects'), 'show_in_rest' => true, 'supports' => array('title', 'editor', 'thumbnail',) ) ); } //Hooking up our function to theme setup add_action( 'init', 'create_posttype_projects' ); // Register Custom Taxonomy function custom_taxonomy_projects() { $labels = array( 'name' => _x( 'projects Categories', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'projects Category', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'projects Category', 'text_domain' ), 'all_items' => __( 'All Items', 'text_domain' ), 'parent_item' => __( 'Parent Item', 'text_domain' ), 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), 'new_item_name' => __( 'New Item Name', 'text_domain' ), 'add_new_item' => __( 'Add New Item', 'text_domain' ), 'edit_item' => __( 'Edit Item', 'text_domain' ), 'update_item' => __( 'Update Item', 'text_domain' ), 'view_item' => __( 'View Item', 'text_domain' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ), 'add_or_remove_items' => __( 'Add or remove items', 'text_domain' ), 'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ), 'popular_items' => __( 'Popular Items', 'text_domain' ), 'search_items' => __( 'Search Items', 'text_domain' ), 'not_found' => __( 'Not Found', 'text_domain' ), 'no_terms' => __( 'No items', 'text_domain' ), 'items_list' => __( 'Items list', 'text_domain' ), 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'project_category', array( 'projects' ), $args ); } add_action( 'init', 'custom_taxonomy_projects', 0 ); add_action( 'init', 'create_tag_taxonomies', 0 ); //create two taxonomies, genres and tags for the post type "tag" function create_tag_taxonomies() { // Add new taxonomy, NOT hierarchical (like tags) $labels = array( 'name' => _x( ' Project Tags', 'taxonomy general name' ), 'singular_name' => _x( 'Project Tag', 'taxonomy singular name' ), 'search_items' => __( 'Search Tags' ), 'popular_items' => __( 'Popular Tags' ), 'all_items' => __( 'All Project Tags' ), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit Project Tag' ), 'update_item' => __( 'Update Project Tag' ), 'add_new_item' => __( 'Add New Project Tag' ), 'new_item_name' => __( 'New Tag Name' ), 'separate_items_with_commas' => __( 'Separate tags with commas' ), 'add_or_remove_items' => __( 'Add or remove tags' ), 'choose_from_most_used' => __( 'Choose from the most used tags' ), 'menu_name' => __( 'Tags' ), ); register_taxonomy('project-tag','projects',array( 'hierarchical' => false, 'labels' => $labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array( 'slug' => 'project-tag' ), )); } //For Dynamic Enteris in Contact Form 7 add_filter('wpcf7_form_tag_data_option', function($n, $options, $args) { if (in_array('jobposition', $options)){ $query = new WP_Query( array( 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page' => '100', 'post_type' => 'jobs') ); while($query->have_posts()) : $query->the_post(); $title = get_the_title(); $jobposition [] = $title; endwhile; return $jobposition ; } return $n; }, 10, 3); //For Post Url in Contact form 7 add_action("wpcf7_posted_data", "wpcf7_add_referer_url"); function wpcf7_add_referer_url( $data ) { if (array_key_exists("url", $data) ) { $data['url'] = htmlspecialchars($_SERVER['HTTP_REFERER']); } return $data; }
BDR offers a range of end-to-end services including the construction of residential buildings, commercial spaces, turnkey projects, deluxe farmhouses and high-end flats.
01
The Delhi NCR region has witnessed phenomenal commercial expansion in…
Read More
02
The quest of discovering a flat that meets your and…
Read More
03
India's residential sectors have undergone a dramatic transformation in the…
Read More
04
Since the Covid-19 Outbreak, there has been substantial growth in…
Read More
05
BDR undertakes collaboration projects with clients for residential buildings as…
Read More
06
BDR leverages true craftsmanship from design and engineering to building…
Read MoreWrite to us or submit your details, and we’ll get back to you.