'', 'height'=>'55', 'width'=>'150', '_frontpage' => '', 'blog_count'=>'3', 'custom_css'=>'', 'slide_image_1' => $ImageUrl, 'slide_title_1' => __('Slide Title', 'bhumi' ), 'slide_desc_1' => __('Lorem Ipsum is simply dummy text of the printing', 'bhumi' ), 'slide_btn_text_1' => __('Read More', 'bhumi' ), 'slide_btn_link_1' => '#', 'slide_image_2' => $ImageUrl2, 'slide_title_2' => __('Phasellus ultrices nulla quis nibh', 'bhumi' ), 'slide_desc_2' => __('Lorem Ipsum is simply dummy text of the printing and typesetting industry', 'bhumi' ), 'slide_btn_text_2' => __('Read More', 'bhumi' ), 'slide_btn_link_2' => '#', 'slide_image_3' => $ImageUrl3, 'slide_title_3' => __('Contrary to popular ', 'bhumi' ), 'slide_desc_3' => __('Aldus PageMaker including versions of Lorem Ipsum, rutrum turpi', 'bhumi' ), 'slide_btn_text_3' => __('Read More', 'bhumi' ), 'slide_btn_link_3' => '#', // Footer Call-Out 'fc_home'=>'1', 'fc_title' => __('Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', 'bhumi' ), 'fc_btn_txt' => __('More Features', 'bhumi' ), 'fc_btn_link' =>"#", 'fc_radio'=>'bottom', //Social media links 'header_social_media_in_enabled'=>'1', 'footer_section_social_media_enbled'=>'1', 'twitter_link' =>"", 'fb_link' =>"", 'linkedin_link' =>"", 'youtube_link' =>"", 'instagram' =>"", 'gplus' =>"", 'email_id' => '', 'phone_no' => '', 'footer_customizations' => __(' © 2015 Code Themes', 'bhumi' ), 'developed_by_text' => __('Theme Developed By', 'bhumi' ), 'developed_by_bhumi_text' => __('Code Themes', 'bhumi' ), 'developed_by_link' => 'https://codethemes.co/', 'home_service_heading' => __('Our Services', 'bhumi' ), 'service_1_title'=>__("Gears",'bhumi' ), 'service_1_icons'=>"fa fa-gears", 'service_1_text'=>__("Lorem Ipsum is simply dummy text. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.", 'bhumi' ), 'service_1_link'=>"#", 'service_2_title'=>__('Star', 'bhumi' ), 'service_2_icons'=>"fa fa-star", 'service_2_text'=>__("Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC", 'bhumi' ), 'service_2_link'=>"#", 'service_3_title'=>__("WordPress", 'bhumi' ), 'service_3_icons'=>"fa fa-wordpress", 'service_3_text'=>__("Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. ", 'bhumi' ), 'service_3_link'=>"#", 'service_4_title'=>__("Base", 'bhumi'), 'service_4_icons'=>("fa fa-database"), 'service_4_text'=>__("Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.", 'bhumi'), 'service_4_link'=>"#", //Portfolio Settings: 'portfolio_home'=>'1', 'port_heading' => __('Recent Works', 'bhumi' ), 'port_1_img'=> $ImageUrl4, 'port_1_title'=>__('Charity', 'bhumi' ), 'port_1_link'=>'#', 'port_2_img'=> $ImageUrl5, 'port_2_title'=>__('Explore', 'bhumi' ), 'port_2_link'=>'#', 'port_3_img'=> $ImageUrl6, 'port_3_title'=>__('Dream', 'bhumi' ), 'port_3_link'=>'#', 'port_4_img'=> $ImageUrl7, 'port_4_title'=>__('Magazine', 'bhumi' ), 'port_4_link'=>'#', //BLOG Settings 'show_blog' => '1', 'blog_title'=>__('Latest Blog', 'bhumi' ) ); return apply_filters( 'bhumi_options', $cpm_theme_options ); } /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' ) ); add_post_type_support( 'bhumi', 'post-formats', array('aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat') ); function bhumi_get_options() { // Options API return wp_parse_args( get_option( 'bhumi_options', array() ), bhumi_default_settings() ); } // require( CPM_TEMPLATE_DIR_CORE . '/theme-options/option-panel.php' ); // for Options Panel /*After Theme Setup*/ add_action( 'after_setup_theme', 'bhumi_head_setup' ); function bhumi_head_setup() { global $content_width; //content width if ( ! isset( $content_width ) ) $content_width = 550; //px //Blog Thumb Image Sizes add_image_size('home_post_thumb',340,210,true); //Blogs thumbs add_image_size('cpm_page_thumb',730,350,true); add_image_size('blog_2c_thumb',570,350,true); add_theme_support( 'title-tag' ); // Load text domain for translation-ready load_theme_textdomain( 'bhumi' ); add_theme_support( 'post-thumbnails' ); //supports featured image // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'bhumi' ) ); // theme support $args = array('default-color' => '000000',); add_theme_support( 'custom-background', $args); add_theme_support( 'automatic-feed-links'); } // Read more tag to formatting in blog page function bhumi_content_more($more) { return '
'.__('Read More', 'bhumi' ).'
'; } add_filter( 'the_content_more_link', 'bhumi_content_more' ); // Replaces the excerpt "more" text by a link function bhumi_excerpt_more($more) { return '...'; } add_filter('excerpt_more', 'bhumi_excerpt_more'); /* * bhumi widget area */ add_action( 'widgets_init', 'bhumi_widgets_init'); function bhumi_widgets_init() { /*sidebar*/ register_sidebar( array( 'name' => __( 'Sidebar', 'bhumi' ), 'id' => 'sidebar-primary', 'description' => __( 'The primary widget area', 'bhumi' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Footer Widget Area', 'bhumi' ), 'id' => 'footer-widget-area', 'description' => __( 'Footer widget area', 'bhumi' ), 'before_widget' => '', 'before_title' => '', ) ); } /* Breadcrumbs */ function bhumi_breadcrumbs() { $delimiter = ''; $home = __('Home', 'bhumi' ); // text for the 'Home' link $before = '
  • '; // tag before the current crumb $after = '
  • '; // tag after the current crumb echo ''; } //PAGINATION function bhumi_pagination($pages = '', $range = 2) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == '') { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo "
    "; if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "«"; if($paged > 1 && $showitems < $pages) echo ""; for ($i=1; $i <= $pages; $i++) { if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )) { echo ($paged == $i)? "".$i."":"".$i.""; } } if ($paged < $pages && $showitems < $pages) echo ""; if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "»"; echo "
    "; } } /*=================================================================================== * Add Author Links * =================================================================================*/ function bhumi_author_profile( $contactmethods ) { $contactmethods['youtube_profile'] = __('Youtube Profile URL','bhumi'); $contactmethods['twitter_profile'] = __('Twitter Profile URL','bhumi'); $contactmethods['facebook_profile'] = __('Facebook Profile URL','bhumi'); $contactmethods['linkedin_profile'] = __('Linkedin Profile URL','bhumi'); return $contactmethods; } add_filter( 'user_contactmethods', 'bhumi_author_profile', 10, 1); /*=================================================================================== * Add Class Gravtar * =================================================================================*/ add_filter('get_avatar','bhumi_gravatar_class'); function bhumi_gravatar_class($class) { $class = str_replace("class='avatar", "class='author_detail_img", $class); return $class; } /****--- Navigation for Author, Category , Tag , Archive ---***/ function bhumi_navigation() { ?>