'EBEBEB', ); add_theme_support( 'custom-background', $custom_back_args ); add_image_size('bizniz-home-image',700,467,true); add_image_size('bizniz-slide-image',1920,1080,true); add_image_size('bizniz-single-slide', 1140, 550, true); add_image_size('bizniz-home-grid2', 505, 284, true); add_image_size('bizniz-home-blog', 550, 367, true); register_nav_menu('header-menu','Header Menu'); } if ( ! isset( $content_width ) ) $content_width = 600; /* pixels */ if(is_admin()){ if(!get_option('bizniz_basic_notice')){ add_action('admin_notices', 'bizniz_basic_notice'); add_action('wp_ajax_bizniz_hide_notice', 'bizniz_hide_notice'); function bizniz_basic_notice(){ ?>

Upgrade to BizNiz Premium version to get extended functionality and advanced customization options: %1$s', 'bizniz'), sprintf('%s', 'Try The BizNiz Premium') ); ?>

close
__( 'Sidebar Primary', 'bizniz' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Col 1', 'bizniz' ), 'id' => 'footer-1', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Footer Col 2', 'bizniz' ), 'id' => 'footer-2', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Footer Col 3', 'bizniz' ), 'id' => 'footer-3', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => __( 'Featured Boxes section', 'bizniz' ), 'id' => 'featured-boxes-section', 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => __( 'Our Services section', 'bizniz' ), 'id' => 'our-services-section', 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => __( 'Testimonial section', 'bizniz' ), 'id' => 'testimonial-section', 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) ); register_widget('bizniz_featuredbox'); register_widget('bizniz_ourservices'); register_widget('bizniz_testimonial'); } add_action( 'widgets_init', 'bizniz_widgets_init' ); /**************************/ /****** featured box widget */ /************************/ add_action('admin_enqueue_scripts', 'bizniz_featuredbox_widget_scripts'); function bizniz_featuredbox_widget_scripts() { wp_enqueue_media(); wp_enqueue_script('bizniz_featuredbox_widget_script', get_template_directory_uri() . '/js/widget.js', false, '1.0', true); } class bizniz_featuredbox extends WP_Widget { public function __construct() { parent::__construct( 'bizniz-fbox-widget', __( 'BizNiz - Featured Box Widget', 'bizniz' ) ); } function widget($args, $instance) { extract($args); echo $before_widget; ?>






'; endif; ?>

" />
image image

'; echo htmlspecialchars_decode(apply_filters('widget_title', $instance['text'])); echo '

'; } ?>







'; endif; ?>

" />




'sidebar-ourfocus', 'sidebar-testimonials' => 'sidebar-testimonials', 'sidebar-ourteam' => 'sidebar-ourteam' ); $active_widgets = get_option( 'sidebars_widgets' ); /** * Default Featured Boxes widgets */ if ( empty ( $active_widgets[ 'featured-boxes-section' ] ) ): $bizniz_featured_counter = 1; /* our focus widget #1 */ $active_widgets[ 'featured-boxes-section' ][0] = 'bizniz-fbox-widget-' . $bizniz_featured_counter; if ( file_exists( get_stylesheet_directory_uri().'/img/html5.png' ) ): $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'HTML5', 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown.', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/html5.png" ); else: $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'HTML5', 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown.', 'link' => '#', 'image_uri' => get_template_directory_uri()."/img/html5.png" ); endif; update_option( 'widget_bizniz-fbox-widget', $bizniz_feat_content ); $bizniz_featured_counter++; /* our focus widget #2 */ $active_widgets[ 'featured-boxes-section' ][] = 'bizniz-fbox-widget-' . $bizniz_featured_counter; if ( file_exists( get_stylesheet_directory_uri().'/img/css3.png' ) ): $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'CSS3', 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown.', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/css3.png" ); else: $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'CSS3', 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown.', 'link' => '#', 'image_uri' => get_template_directory_uri()."/img/css3.png" ); endif; update_option( 'widget_bizniz-fbox-widget', $bizniz_feat_content ); $bizniz_featured_counter++; /* our focus widget #3 */ $active_widgets[ 'featured-boxes-section' ][] = 'bizniz-fbox-widget-' . $bizniz_featured_counter; if ( file_exists( get_stylesheet_directory_uri().'/img/js-icon.png' ) ): $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Javascript', 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown.', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/js-icon.png" ); else: $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Javascript', 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown.', 'link' => '#', 'image_uri' => get_template_directory_uri()."/img/js-icon.png" ); endif; update_option( 'widget_bizniz-fbox-widget', $bizniz_feat_content ); $bizniz_featured_counter++; /* our focus widget #4 */ $active_widgets[ 'featured-boxes-section' ][] = 'bizniz-fbox-widget-' . $bizniz_featured_counter; if ( file_exists( get_stylesheet_directory_uri().'/img/php-icon.png' ) ): $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'PHP Coding', 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown.', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/php-icon.png" ); else: $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'PHP Coding', 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown.', 'link' => '#', 'image_uri' => get_template_directory_uri()."/img/php-icon.png" ); endif; update_option( 'widget_bizniz-fbox-widget', $bizniz_feat_content ); $bizniz_featured_counter++; update_option( 'sidebars_widgets', $active_widgets ); endif; $active_widgets = get_option( 'sidebars_widgets' ); /** * Default Our Services widgets */ if ( empty ( $active_widgets[ 'our-services-section' ] ) ): $bizniz_featured_counter = 1; /* our services widget #1 */ $active_widgets[ 'our-services-section' ][0] = 'bizniz-ourservices-widget-' . $bizniz_featured_counter; if ( file_exists( get_stylesheet_directory_uri().'/img/entrepreneur-593371_1920.jpg' ) ): $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Financial Analysis', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/entrepreneur-593371_1920.jpg", 'button_text' => 'More Details' ); else: $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Financial Analysis', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/entrepreneur-593371_1920.jpg", 'button_text' => 'More Details' ); endif; update_option( 'widget_bizniz-ourservices-widget', $bizniz_feat_content ); $bizniz_featured_counter++; /* our services widget #2 */ $active_widgets[ 'our-services-section' ][] = 'bizniz-ourservices-widget-' . $bizniz_featured_counter; if ( file_exists( get_stylesheet_directory_uri().'/img/imac-605421_1920.jpg' ) ): $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Financial Analysis', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/imac-605421_1920.jpg", 'button_text' => 'More Details' ); else: $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Financial Analysis', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/imac-605421_1920.jpg", 'button_text' => 'More Details' ); endif; update_option( 'widget_bizniz-ourservices-widget', $bizniz_feat_content ); $bizniz_featured_counter++; /* our services widget #3 */ $active_widgets[ 'our-services-section' ][] = 'bizniz-ourservices-widget-' . $bizniz_featured_counter; if ( file_exists( get_stylesheet_directory_uri().'/img/man-791049_1920.jpg' ) ): $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Financial Analysis', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/man-791049_1920.jpg", 'button_text' => 'More Details' ); else: $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Financial Analysis', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...', 'link' => '#', 'image_uri' => get_stylesheet_directory_uri()."/img/man-791049_1920.jpg", 'button_text' => 'More Details' ); endif; update_option( 'widget_bizniz-ourservices-widget', $bizniz_feat_content ); $bizniz_featured_counter++; update_option( 'sidebars_widgets', $active_widgets ); endif; $active_widgets = get_option( 'sidebars_widgets' ); /** * Default Our Testimonial widgets */ if ( empty ( $active_widgets[ 'testimonial-section' ] ) ): $bizniz_featured_counter = 1; /* testimonial widget #1 */ $active_widgets[ 'testimonial-section' ][0] = 'bizniz-testimonial-widget-' . $bizniz_featured_counter; $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 'full_name' => 'John Doe', 'position' => 'Director of Arts' ); update_option( 'widget_bizniz-testimonial-widget', $bizniz_feat_content ); $bizniz_featured_counter++; /* testimonial widget #2 */ $active_widgets[ 'testimonial-section' ][] = 'bizniz-testimonial-widget-' . $bizniz_featured_counter; $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 'full_name' => 'John Doe', 'position' => 'Director of Arts' ); update_option( 'widget_bizniz-testimonial-widget', $bizniz_feat_content ); $bizniz_featured_counter++; /* testimonial widget #3 */ $active_widgets[ 'testimonial-section' ][] = 'bizniz-testimonial-widget-' . $bizniz_featured_counter; $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'text' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 'full_name' => 'John Doe', 'position' => 'Director of Arts' ); update_option( 'widget_bizniz-testimonial-widget', $bizniz_feat_content ); $bizniz_featured_counter++; update_option( 'sidebars_widgets', $active_widgets ); endif; $active_widgets = get_option( 'sidebars_widgets' ); /** * Default Footer Widget 1 */ if ( empty ( $active_widgets[ 'footer-1' ] ) ): $bizniz_featured_counter = 1; /* footer widget 1 #1 */ $active_widgets[ 'footer-1' ][0] = 'text-' . $bizniz_featured_counter; $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'text' => 'logo

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

' ); update_option( 'widget_text', $bizniz_feat_content ); $bizniz_featured_counter++; update_option( 'sidebars_widgets', $active_widgets ); endif; $active_widgets = get_option( 'sidebars_widgets' ); /** * Default Footer Widget 2 */ if ( empty ( $active_widgets[ 'footer-2' ] ) ): $bizniz_featured_counter = 1; /* footer widget 2 #1 */ $active_widgets[ 'footer-2' ][0] = 'recent-posts-' . $bizniz_featured_counter; $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Recent Posts' ); update_option( 'widget_recent-posts', $bizniz_feat_content ); $bizniz_featured_counter++; update_option( 'sidebars_widgets', $active_widgets ); endif; $active_widgets = get_option( 'sidebars_widgets' ); /** * Default Footer Widget 3 */ if ( empty ( $active_widgets[ 'footer-3' ] ) ): $bizniz_featured_counter = 1; /* footer widget 3 #1 */ $active_widgets[ 'footer-3' ][0] = 'tag_cloud-' . $bizniz_featured_counter; $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Tags' ); update_option( 'widget_tag_cloud', $bizniz_feat_content ); $bizniz_featured_counter++; /* footer widget 3 #2 */ $active_widgets[ 'footer-3' ][] = 'categories-' . $bizniz_featured_counter; $bizniz_feat_content[ $bizniz_featured_counter ] = array ( 'title' => 'Categories' ); update_option( 'widget_categories', $bizniz_feat_content ); $bizniz_featured_counter++; update_option( 'sidebars_widgets', $active_widgets ); endif; } /** * Enqueue scripts and styles for the front end. * */ function bizniz_scripts() { // Add Google Fonts, used in the main stylesheet. wp_enqueue_style( 'google-fonts-ubuntu', '//fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic', array(), null ); wp_enqueue_style( 'google-fonts-driod-serif', '//fonts.googleapis.com/css?family=Roboto+Slab:400,700', array(), null ); // Add Icons Font, used in the main stylesheet. //wp_enqueue_style( 'bizniz-icons', get_template_directory_uri() . '/fonts/icons-font.css', array(), '1.6' ); wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css' ); wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css' ); //wp_enqueue_style( 'slicknav', get_template_directory_uri() . '/css/slicknav.css' ); wp_enqueue_style( 'owl-css', get_template_directory_uri() . '/css/owl.carousel.css' ); wp_enqueue_style( 'slick', get_template_directory_uri() . '/css/slick.css' ); wp_enqueue_style( 'sidr-css', get_template_directory_uri() . '/css/jquery.sidr.dark.min.css' ); wp_enqueue_style( 'animate-css', get_template_directory_uri() . '/css/animate.css' ); wp_enqueue_style( 'slick-theme', get_template_directory_uri() . '/css/slick-theme.css' ); wp_enqueue_style( 'bootstrap-theme', get_template_directory_uri() . '/css/bootstrap-theme.min.css' ); // Loads main stylesheet. wp_enqueue_style( 'bizniz-style', get_stylesheet_uri() ); wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js' ); //wp_enqueue_script( 'slicknav', get_template_directory_uri() . '/js/jquery.slicknav.js' ); wp_enqueue_script( 'slick', get_template_directory_uri() . '/js/slick.min.js' ); wp_enqueue_script( 'sidr-js', get_template_directory_uri() . '/js/jquery.sidr.min.js' ); wp_enqueue_script( 'masonry-pkgd', get_template_directory_uri() . '/js/masonry.pkgd.min.js' ); wp_enqueue_script( 'waypoint-js', get_template_directory_uri() . '/js/jquery.waypoints.min.js' ); wp_enqueue_script( 'owl-js', get_template_directory_uri() . '/js/owl.carousel.min.js' ); wp_enqueue_script( 'theia-sticky-js', get_template_directory_uri() . '/js/theia-sticky.js' ); wp_enqueue_script( 'imagesloaded-pkgd', get_template_directory_uri() . '/js/imagesloaded.pkgd.min.js' ); wp_enqueue_script( 'bizniz-scripts-js', get_template_directory_uri() . '/js/scripts.js' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } /* if ( is_singular() && wp_attachment_is_image() ) { wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); } */ } add_action( 'wp_enqueue_scripts', 'bizniz_scripts' ); function bizniz_add_editor_styles() { add_editor_style( 'css/custom-editor-style.css' ); } add_action( 'admin_init', 'bizniz_add_editor_styles' ); add_action( 'after_setup_theme', 'bizniz_setup' ); function bizniz_get_excerpt($num_chars) { $temp_str = substr(strip_shortcodes(strip_tags(get_the_content())),0,$num_chars); $temp_parts = explode(" ",$temp_str); $temp_parts[(count($temp_parts) - 1)] = ''; if(strlen(strip_tags(get_the_content())) > 125) return implode(" ",$temp_parts) . '[...]'; else return implode(" ",$temp_parts); } function bizniz_show_creds() { echo '

' . get_cz_val('sb_copyright','© ' . date('Y') . ' Copyright ') . ' · Proudly powered by Wordpress · BizNiz by Logicbase Interactive

'; } require_once('customizer.php'); ?>