get_the_author_meta( 'facebook' ), 'twitter' => get_the_author_meta( 'twitter' ), 'googleplus' => get_the_author_meta( 'googleplus' ), 'linkedin' => get_the_author_meta( 'linkedin' ) ); // Set the styes. $styles = sprintf( 'background: %1$s; border-top: %2$spx %3$s %4$s; border-bottom: %2$spx %3$s %4$s; color: %5$s', $settings['background_color'], $settings['border_size'], $settings['border_style'], $settings['border_color'], $settings['text_color'] ); $html = '
'; return $html; } /** * Insert the box in the content. * * @param string $content WP the content. * * @return string WP the content with Author Bio Box. */ public function display( $content ) { // Get the settings. $settings = get_option( 'authorbiobox_settings' ); if ( $this->is_display( $settings ) ) return $content . $this->html_box( $settings ); else return $content; } } require_once AUTHOR_BIO_BOX_PATH . 'author-bio-box-admin.php'; $author_bio_box = new Author_Bio_Box; $author_bio_box_admin = new Author_Bio_Box_Admin; /** * Shows the Author Bio Box. * * @return string Author Bio Box HTML. */ function get_author_bio_box() { global $author_bio_box; return $author_bio_box->html_box( get_option( 'authorbiobox_settings' ) ); } /** * Shows the Author Bio Box legacy. * * @return string Author Bio Box HTML. */ function authorbbio_add_authorbox() { echo get_author_bio_box(); }