| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | <?phpfunction hp_add_last_nav_item($items, $args) {  if( $args->theme_location == 'primary' )  return $items .= '<li class="px-4 menu-item menu-item-type-post_type menu-item-object-page nav-item"><a class="btn btn-outline-light" href="/hp/get-involved/donate" role="button">Donate</a></li>';}add_filter('wp_nav_menu_items','hp_add_last_nav_item',10,2);function hp_list_child_pages() {   global $post;   if ( is_page() && $post->post_parent )      $childpages = wp_list_pages( array(         'title_li' => '',         'sort_column' => 'menu_order',         'child_of' => $post->post_parent,         'depth' => 1,         'echo' => 0      ));   else $childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->ID . '&echo=0' );   $output = '<li class="nav-item">' . $childpages . '</ul>';   return $output;}add_shortcode('hp_childpages', 'hp_list_child_pages');function wp_list_pages_filter($output) {  $output = str_replace('page_item', 'page_item list-group-item py-2', $output);  return $output;}add_filter('wp_list_pages', 'wp_list_pages_filter');if ( ! function_exists( 'hp_posted_on' ) ) :function hp_posted_on() {	$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';	if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {        $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>';	}	$time_string = sprintf( $time_string,		esc_attr( get_the_date( 'c' ) ),		esc_html( get_the_date() )	);	$posted_on = sprintf(		esc_html_x( 'Posted on %s', 'post date', 'wp-bootstrap-starter' ),		'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'	);	$byline = sprintf(		esc_html_x( 'by %s', 'post author', 'wp-bootstrap-starter' ),		'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'	);	echo '<span class="posted-on">' . $posted_on . '</span> | <span class="byline"> ' . $byline . '</span>'; //    if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {        echo ' | <span class="comments-link"><i class="fa fa-comments" aria-hidden="true"></i> ';        comments_popup_link( sprintf( wp_kses( __( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'wp-bootstrap-starter' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) );        echo '</span>';    }}endif;if ( ! function_exists( 'hp_entry_footer' ) ) :function hp_entry_footer() {	if ( 'post' === get_post_type() ) {		$categories_list = get_the_category_list( esc_html__( ', ', 'hp' ) );		if ( $categories_list && wp_bootstrap_starter_categorized_blog() ) {			printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'wp-bootstrap-starter' ) . '</span>', $categories_list );		}		$tags_list = get_the_tag_list( '', esc_html__( ', ', 'wp-bootstrap-starter' ) );		if ( $tags_list ) {			printf( ' | <span class="tags-links">' . esc_html__( 'Tagged %1$s', 'wp-bootstrap-starter' ) . '</span>', $tags_list );		}	}	edit_post_link(		sprintf(			esc_html__( 'Edit %s', 'wp-bootstrap-starter' ),			the_title( '<span class="screen-reader-text">"', '"</span>', false )		),		' | <span class="edit-link">',		'</span>'	);}endif;
 |