function wp_about_author_general_settings() { $wp_about_author_settings = wp_about_author_process_settings(); $wrapped_content = ""; $general_content = ""; $social_content = ""; $box_content = ""; if (function_exists('wp_nonce_field')) { $general_content .= wp_nonce_field('wp-about-author-update-options', '_wpnonce', true, false); } $general_content .= '<p><strong>' . __("Display On Front Page") . '</strong><br /> <input type="checkbox" name="wp_author_display_front" ' . checked($wp_about_author_settings['wp_author_display_front'], 'on', false) . ' /> <small>Display author box on the front page at the top of each entry.</small></p>'; $general_content .= '<p><strong>' . __("Display In Archives") . '</strong><br /> <input type="checkbox" name="wp_author_display_archives" ' . checked($wp_about_author_settings['wp_author_display_archives'], 'on', false) . ' /> <small>Display author box on the archive pages at the top of each entry.</small></p>'; $general_content .= '<p><strong>' . __("Display In Search Results") . '</strong><br /> <input type="checkbox" name="wp_author_display_search" ' . checked($wp_about_author_settings['wp_author_display_search'], 'on', false) . ' /> <small>Display author box on the search page at the top of each entry.</small></p>'; $general_content .= '<p><strong>' . __("Display On Individual Posts") . '</strong><br /> <input type="checkbox" name="wp_author_display_posts" ' . checked($wp_about_author_settings['wp_author_display_posts'], 'on', false) . ' /> <small>Display author box on individual posts at the top of the entry.</small></p>'; $general_content .= '<p><strong>' . __("Display On Individual Pages") . '</strong><br /> <input type="checkbox" name="wp_author_display_pages" ' . checked($wp_about_author_settings['wp_author_display_pages'], 'on', false) . ' /> <small>Display author box on individual pages at the top of the entry.</small></p>'; $general_content .= '<p><strong>' . __("Display In RSS Feeds") . '</strong><br /> <input type="checkbox" name="wp_author_display_feed" ' . checked($wp_about_author_settings['wp_author_display_feed'], 'on', false) . ' /> <small>Display author box in feeds at the top of each entry.</small></p>'; $wrapped_content .= wp_about_author_postbox('wp-about-author-settings-general', 'Display Settings', $general_content); $social_content .= '<p><strong>' . __("Display Social Media Icons") . '</strong><br /> <input type="checkbox" name="wp_author_social_images" ' . checked($wp_about_author_settings['wp_author_social_images'], 'on', false) . ' /> <small>Display buttons instead of text links in the author box.</small></p>'; $wrapped_content .= wp_about_author_postbox('wp-about-author-settings-general', 'Social Links Display Settings', $social_content); $box_content .= '<p><strong>' . __("Box Background Color") . '</strong><br /> <input type="text" name="wp_author_alert_bg" id="background-color" value="' . $wp_about_author_settings['wp_author_alert_bg'] . '" /> <a class="hide-if-no-js" href="#" id="pickcolor">' . __('Select a Color') . '</a> <div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> <small>By default, the background color of the box is a yellowish tone.</small></p>'; $box_content .= '<p><strong>' . __("Box Border") . '</strong><br /> <select name="wp_author_alert_border"> <option value="top" ' . selected($wp_about_author_settings['wp_author_alert_border'], 'top', false) . '>Thick Top Border</option> <option value="around" ' . selected($wp_about_author_settings['wp_author_alert_border'], 'around', false) . '>Thin Surrounding Border</option> <option value="none" ' . selected($wp_about_author_settings['wp_author_alert_border'], 'none', false) . '>No Border</option> </select><br /><small>By default, a thick black line is displayed above the author bio.</small></p>'; $wrapped_content .= wp_about_author_postbox('wp-about-author-settings-alert', 'Box Settings', $box_content); wp_about_author_admin_wrap('WP About Author Settings', $wrapped_content); }
function wp_about_author_general_settings() { // Make sure we have defaults add_defaults_wp_about_author(); $wp_about_author_settings = wp_about_author_process_settings(); $wrapped_content = ""; $general_content = ""; $social_content = ""; $box_content = ""; $avatar_content = ""; if (function_exists('wp_nonce_field')) { $general_content .= wp_nonce_field('wp-about-author-update-options', '_wpnonce', true, false); } $general_content .= '<p><strong>' . __("Display On Front Page") . '</strong><br /> <input type="checkbox" name="wp_author_display_front" ' . checked($wp_about_author_settings['wp_author_display_front'], 'on', false) . ' /> <small>Display author box on the front page at the top of each entry.</small></p>'; $general_content .= '<p><strong>' . __("Display In Archives") . '</strong><br /> <input type="checkbox" name="wp_author_display_archives" ' . checked($wp_about_author_settings['wp_author_display_archives'], 'on', false) . ' /> <small>Display author box on the archive pages at the top of each entry.</small></p>'; $general_content .= '<p><strong>' . __("Display In Search Results") . '</strong><br /> <input type="checkbox" name="wp_author_display_search" ' . checked($wp_about_author_settings['wp_author_display_search'], 'on', false) . ' /> <small>Display author box on the search page at the top of each entry.</small></p>'; $general_content .= '<p><strong>' . __("Display On Individual Posts") . '</strong><br /> <input type="checkbox" name="wp_author_display_posts" ' . checked($wp_about_author_settings['wp_author_display_posts'], 'on', false) . ' /> <small>Display author box on individual posts at the top of the entry.</small></p>'; $general_content .= '<p><strong>' . __("Display On Individual Pages") . '</strong><br /> <input type="checkbox" name="wp_author_display_pages" ' . checked($wp_about_author_settings['wp_author_display_pages'], 'on', false) . ' /> <small>Display author box on individual pages at the top of the entry.</small></p>'; $general_content .= '<p><strong>' . __("Display In RSS Feeds") . '</strong><br /> <input type="checkbox" name="wp_author_display_feed" ' . checked($wp_about_author_settings['wp_author_display_feed'], 'on', false) . ' /> <small>Display author box in feeds at the top of each entry.</small></p>'; $wrapped_content .= wp_about_author_postbox('wp-about-author-settings-general', 'Display Settings', $general_content); $avatar_content .= '<p><strong>' . __("Size") . '</strong><br /> <input type="text" name="wp_author_avatar_size" value="' . $wp_about_author_settings['wp_author_avatar_size'] . '" /><br /> <small>By default, the size of the image is 100x100.</small></p>'; $avatar_content .= '<p><strong>' . __("Display as Circle") . '</strong><br /> <input type="checkbox" name="wp_author_avatar_shape" ' . checked($wp_about_author_settings['wp_author_avatar_shape'], 'on', false) . ' /> <small>Display circular images instead of square ones.</small></p>'; $wrapped_content .= wp_about_author_postbox('wp-about-author-settings-avatar', 'Avatar Settings', $avatar_content); $social_content .= '<p><strong>' . __("Display Social Media Icons") . '</strong><br /> <input type="checkbox" name="wp_author_social_images" ' . checked($wp_about_author_settings['wp_author_social_images'], 'on', false) . ' /> <small>Display buttons instead of text links in the author box.</small></p>'; $wrapped_content .= wp_about_author_postbox('wp-about-author-settings-general', 'Social Links Display Settings', $social_content); $box_content .= '<p><strong>' . __("Box Background Color") . '</strong><br /> <input type="text" name="wp_author_alert_bg" id="background-color" value="' . $wp_about_author_settings['wp_author_alert_bg'] . '" /><br /> <small>By default, the background color of the box is a yellowish tone.</small></p>'; $box_content .= '<p><strong>' . __("Box Border") . '</strong><br /> <select name="wp_author_alert_border"> <option value="top" ' . selected($wp_about_author_settings['wp_author_alert_border'], 'top', false) . '>Thick Top Border</option> <option value="around" ' . selected($wp_about_author_settings['wp_author_alert_border'], 'around', false) . '>Thin Surrounding Border</option> <option value="none" ' . selected($wp_about_author_settings['wp_author_alert_border'], 'none', false) . '>No Border</option> </select><br /><small>By default, a thick black line is displayed above the author bio.</small></p>'; $wrapped_content .= wp_about_author_postbox('wp-about-author-settings-alert', 'Box Settings', $box_content); wp_about_author_admin_wrap('WP About Author Settings', $wrapped_content); }