__( 'Main Sidebar', 'avocation' ), 'id' => 'sidebar-1', 'description' => __( 'Main sidebar that appears on the right.', 'avocation' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar(array( 'name' => __('Footer Area One', 'avocation'), 'id' => 'footer-1', 'description' => __('Footer Area One that appears on the footer.', 'avocation'), 'before_widget' => '', 'before_title' => '', )); register_sidebar(array( 'name' => __('Footer Area Two', 'avocation'), 'id' => 'footer-2', 'description' => __('Footer Area Two that appears on the footer.', 'avocation'), 'before_widget' => '', 'before_title' => '', )); register_sidebar(array( 'name' => __('Footer Area Three', 'avocation'), 'id' => 'footer-3', 'description' => __('Footer Area Three that appears on the footer.', 'avocation'), 'before_widget' => '', 'before_title' => '', )); register_sidebar(array( 'name' => __('Footer Area Four', 'avocation'), 'id' => 'footer-4', 'description' => __('Footer Area Four that appears on the footer.', 'avocation'), 'before_widget' => '', 'before_title' => '', )); } add_action( 'widgets_init', 'avocation_widgets_init' ); /* * avocation Set up post entry meta. * * Meta information for current post: categories, tags, permalink, author, and date. */ function avocation_entry_meta() { $avocation_category_list = get_the_category_list( ', ',' '); $avocation_tag_list = get_the_tag_list(' ',' , '); $avocation_date = sprintf( '', esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $avocation_author = sprintf( '%3$s', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'avocation' ), get_the_author() ) ), get_the_author() ); if($avocation_category_list) { $avocation_utility_text = '
'; } elseif($avocation_tag_list ) { $avocation_utility_text = '
'; } else{ $avocation_utility_text = '
'; } printf( $avocation_utility_text, $avocation_category_list, $avocation_tag_list, $avocation_date, $avocation_author ); } function avocation_comment_number_custom(){ $avocation_num_comments = get_comments_number(); // get_comments_number returns only a numeric value $avocation_comments=__('No Comments','avocation'); if ( comments_open() ) { if ( $avocation_num_comments == 0 ) { $avocation_comments = __('No Comments','avocation'); } elseif ( $avocation_num_comments > 1 ) { $avocation_comments = $avocation_num_comments . __(' Comments','avocation'); } else { $avocation_comments = __('1 Comment','avocation'); } } return $avocation_comments; } /* * Comments placeholder function * **/ add_filter( 'comment_form_default_fields', 'avocation_comment_placeholders' ); function avocation_comment_placeholders( $fields ) { $fields['author'] = str_replace( ' '
%title
', 'next_text' => '
%title
', ) ); }else{ the_posts_pagination(array( 'prev_text' => '', 'next_text' => '', 'before_page_number' => '', )); } } ?>