'; comments_popup_link( _x( '
', 'Behold' ), $behold_categories_list ); else: return false; endif; } endif; if ( ! function_exists( 'behold_get_post_tags' ) ) : function behold_get_post_tags() { $behold_tags_list = get_the_tag_list('', ', ', ''); if ( $behold_tags_list ): printf( __( ' %1$s
', 'Behold' ), 'Behold', $behold_tags_list ); else: return false; endif; } endif; if ( ! function_exists( 'behold_posted_at_with_author' ) ) : function behold_posted_at_with_author() { printf( __( ' %2$s ', 'Behold' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'M j, Y' ) ), esc_html( get_the_date('M j, Y') ), esc_html( get_author_posts_url(get_the_author_meta( 'ID' )) ), esc_attr( sprintf( __( 'View all posts by %s', 'Behold' ), get_the_author() ) ), esc_html( get_the_author() ) ); } endif; if ( ! function_exists( 'behold_get_edit_link' ) ) : function behold_get_edit_link() { edit_post_link( __( 'Edit', 'Behold' ), '', '' ); } endif; if ( ! function_exists( 'behold_comment' ) ) : function behold_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?>
', '' ); ?>
Provide the URL to the social networks you\'d like to display. Leave it blank if you don\'t want to display the button.
', 'Behold'); } function behold_facebook_callback() { // First, we read the social options collection $options = get_option( 'behold_theme_social_options' ); // Next, we need to make sure the element is defined in the options. If not, we'll set an empty string. $url = ''; if( !isset( $options['facebook'] ) ) { $options['facebook'] = ''; } else { $url = $options['facebook']; } // end if // Render the output echo ''; } function behold_twitter_callback() { // First, we read the social options collection $options = get_option( 'behold_theme_social_options' ); // Next, we need to make sure the element is defined in the options. If not, we'll set an empty string. $url = ''; if( !isset( $options['twitter'] ) ) { $options['twitter'] = ''; } else { $url = $options['twitter']; } // end if // Render the output echo ''; } function behold_googleplus_callback() { // First, we read the social options collection $options = get_option( 'behold_theme_social_options' ); // Next, we need to make sure the element is defined in the options. If not, we'll set an empty string. $url = ''; if( !isset( $options['googleplus'] ) ) { $options['googleplus'] = ''; } else { $url = $options['googleplus']; } // end if // Render the output echo ''; } function behold_pinterest_callback() { // First, we read the social options collection $options = get_option( 'behold_theme_social_options' ); // Next, we need to make sure the element is defined in the options. If not, we'll set an empty string. $url = ''; if( !isset( $options['pinterest'] ) ) { $options['pinterest'] = ''; } else { $url = $options['pinterest']; } // end if // Render the output echo ''; } function behold_linkedin_callback() { // First, we read the social options collection $options = get_option( 'behold_theme_social_options' ); // Next, we need to make sure the element is defined in the options. If not, we'll set an empty string. $url = ''; if( !isset( $options['linkedin'] ) ) { $options['linkedin'] = ''; } else { $url = $options['linkedin']; } // end if // Render the output echo ''; } function behold_rss_callback() { // First, we read the social options collection $options = get_option( 'behold_theme_social_options' ); // Next, we need to make sure the element is defined in the options. If not, we'll set an empty string. $url = ''; if( !isset( $options['rss'] ) ) { $options['rss'] = ''; } else { $url = $options['rss']; } // end if // Render the output echo ''; } function behold_theme_sanitize_social_options( $input ) { // Define the array for the updated options $output = array(); // Loop through each of the options sanitizing the data foreach( $input as $key => $val ) { if( isset ( $input[$key] ) ) { $output[$key] = esc_url_raw( strip_tags( stripslashes( $input[$key] ) ) ); } // end if } // end foreach // Return the new collection return apply_filters( 'behold_theme_sanitize_social_options', $output, $input ); } function behold_theme_display() { ?>" . substr( $the_excerpt, 0, $excerpt_length ) . "...
"; } }