'ffffff') ); add_editor_style( 'editor-style.css' ); } endif; add_action( 'after_setup_theme', 'bootBiz_wp_setup' ); function bootBiz_wp_scripts() { // CSS(header) wp_enqueue_style( 'bootstrap.min.css', get_stylesheet_directory_uri(). '/css/bootstrap.min.css', '', '3.3.5' ); wp_enqueue_style( 'bootstrap-glyphicons.css', get_stylesheet_directory_uri(). '/css/bootstrap-glyphicons.css', '', '3.0.0' ); wp_enqueue_style( 'slick.css', get_stylesheet_directory_uri(). '/css/slick.css', '', '1.5.9' ); wp_enqueue_style( 'slick-theme.css', get_stylesheet_directory_uri(). '/css/slick-theme.css', '', '1.5.9' ); wp_enqueue_style( 'bootBiz-basic-style', get_stylesheet_uri() ); // JavaScript(footer) wp_enqueue_script( 'bootstrap.min.js', get_stylesheet_directory_uri() .'/js/bootstrap.min.js', array('jquery'), '3.2.0', true ); wp_enqueue_script( 'slick.min.js', get_stylesheet_directory_uri() .'/js/slick.min.js', array('jquery'), '1.5.9', true ); wp_enqueue_script( 'jquery.matchHeight.js', get_stylesheet_directory_uri() .'/js/jquery.matchHeight.js', array('jquery'), '0.5.2', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'bootBiz_wp_scripts' ); function bootBiz_wp_widgets_setup() { register_sidebar( array( 'name' => __( 'Blog Sidebar', 'bootbiz-for-wedding' ), 'description' => __( 'Appears on blog page sidebar', 'bootbiz-for-wedding' ), 'id' => 'sidebar', 'before_widget' => '', ) ); register_sidebar( array( 'name' => __( 'Site Footer', 'bootbiz-for-wedding' ), 'description' => __( 'Appears on all page footer', 'bootbiz-for-wedding' ), 'id' => 'footer', 'before_widget' => '', ) ); } add_action( 'widgets_init', 'bootBiz_wp_widgets_setup' ); /* * Sets up theme defaults and registers support for various WordPress features. * (for using bootstrap3) */ function bootBiz_comment_form_fields( $fields ) { $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $html5 = current_theme_supports( 'html5', 'comment-form' ) ? 1 : 0; $fields = array( 'author' => '
' . ' ' . '
', 'email' => '
' . '
', 'url' => '
' . '
' ); return $fields; } add_filter( 'comment_form_default_fields', 'bootBiz_comment_form_fields' ); function bootBiz_comment_form( $args ) { $args['comment_field'] = '
'; $args['class_submit'] = 'btn btn-default'; // since WP 4.1 return $args; } add_filter( 'comment_form_defaults', 'bootBiz_comment_form' ); function bootBiz_image_class_filter($classes) { return $classes . ' img-responsive'; } add_filter('get_image_tag_class', 'bootBiz_image_class_filter'); function bootBiz_calendar( $markup ) { $markup = str_replace( 'bootBiz for Wedding"; } function bootBiz_pagination() { global $wp_query; $big = 12345678; $page_format = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'type' => 'array' ) ); if( is_array($page_format) ) { $paged = ( get_query_var('paged') == 0 ) ? 1 : get_query_var('paged'); echo '
'; } } ?>