diff --git a/wp-content/themes/barthelme/footer.php b/wp-content/themes/barthelme/footer.php index 37c411e1d3e30c4bc98a887ebcfb90a3d4476c58..08ee89b6b0c23c39cf1ceb397f44bc89d6f3e335 100644 --- a/wp-content/themes/barthelme/footer.php +++ b/wp-content/themes/barthelme/footer.php @@ -4,7 +4,7 @@ <span class="meta-sep">|</span> <span id="generator-link"><?php _e('Thanks, <a href="http://wordpress.org/" title="WordPress" rel="generator">WordPress</a>', 'barthelme') ?></span> <span class="meta-sep">|</span> - <span id="theme-link"><a href="http://www.plaintxt.org/themes/barthelme/" title="<?php _e('Barthelme theme for WordPress', 'barthelme') ?>" rel="follow designer">Barthelme</a> <?php _e('theme by', 'barthelme') ?> <span class="vcard"><a class="url fn n" href="http://scottwallick.com/" title="scottwallick.com" rel="follow designer"><span class="given-name">Scott</span><span class="additional-name"> Allan</span><span class="family-name"> Wallick</span></a></span></span><!-- Theme design credit, that's all --> + <span id="theme-link">Powered by <a href="https://www.autistici.org">R*</a></span><!-- Theme design credit, that's all --> <span class="meta-sep">|</span> <span id="web-standards"> <?php _e('Standards Compliant', 'barthelme') ?> <a href="http://validator.w3.org/check/referer" title="Valid XHTML">XHTML</a> & <a href="http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=<?php bloginfo('stylesheet_url'); ?>" title="<?php _e('Valid CSS', 'barthelme') ?>">CSS</a></span> <span class="meta-sep">|</span> @@ -16,4 +16,4 @@ </div><!-- #wrapper --> </body><!-- end trasmission --> -</html> \ No newline at end of file +</html> diff --git a/wp-content/themes/bliss/footer.php b/wp-content/themes/bliss/footer.php index 4d6c2e961fedd1166c1960b64d6529d053b52cab..7f3e217a7e3a7fe3e16fc1c983e52b6498707794 100644 --- a/wp-content/themes/bliss/footer.php +++ b/wp-content/themes/bliss/footer.php @@ -52,8 +52,8 @@ <p class="credit spacer small"> <?php printf( - __( 'Copyright © %d by %s. Powered by <a rel="nofollow" href="%s">Bliss</a> for <a rel="nofollow" href="%s">WordPress</a>', 'bliss' ), - date('Y'), esc_attr(get_bloginfo('name')), 'http://www.mardesco.com/themes/bliss/', 'http://www.wordpress.org' ); + __( 'Copyright © %d by %s. Powered by Powered by <a href="https://www.autistici.org">R*</a>', 'bliss' ), + date('Y'), esc_attr(get_bloginfo('name')), ' ', ' ' ); ?> </p> </div> @@ -64,4 +64,4 @@ </div> <!--! end of #container --> </body> -</html> \ No newline at end of file +</html> diff --git a/wp-content/themes/desk-mess/footer.php b/wp-content/themes/desk-mess/footer.php index 8fc653c5acc24847c43a7ae5d8bb47a1ca0f583f..d8e1eb7b57af4a72e62a13805f9fde29a646c56c 100644 --- a/wp-content/themes/desk-mess/footer.php +++ b/wp-content/themes/desk-mess/footer.php @@ -1,9 +1,9 @@ <div id="bottom"> -<p style="padding-top:110px; clear:both;">Copyright © <?php echo date("Y"); ?> <strong><?php bloginfo('name'); ?></strong>. Design by <a style="text-decoration:none; color: #635537;" href="http://www.geekwithlaptop.com" title="Geek with Laptop">Laptop Geek</a> for <?php wp_footer(); ?>.</p> +<p style="padding-top:110px; clear:both;">Copyright © <?php echo date("Y"); ?> <strong> Powered by <a href="https://www.autistici.org">R*</a></strong>.</p> </div> </div> </body> -</html> \ No newline at end of file +</html> diff --git a/wp-content/themes/hybrid/library/admin/settings-page.php b/wp-content/themes/hybrid/library/admin/settings-page.php index ce1ddffe8473cd9370fbd87c9c50dcf556293abd..4673ed6d4fb487282a227da8a269877804a47dbe 100644 --- a/wp-content/themes/hybrid/library/admin/settings-page.php +++ b/wp-content/themes/hybrid/library/admin/settings-page.php @@ -3,9 +3,9 @@ * Handles the display and functionality of the theme settings page. This provides the needed hooks and * meta box calls for developers to create any number of theme settings needed. * - * Provides the ability for developers to add custom meta boxes to the theme settings page by using the - * add_meta_box() function. Developers should hook their meta box registration function to 'admin_menu' - * and register the meta box for 'appearance_page-theme-settings'. If data needs to be saved, devs can + * Provides the ability for developers to add custom meta boxes to the theme settings page by using the + * add_meta_box() function. Developers should hook their meta box registration function to 'admin_menu' + * and register the meta box for 'appearance_page-theme-settings'. If data needs to be saved, devs can * use the '$prefix_update_settings_page' action hook to save their data. * * @package Hybrid @@ -13,7 +13,7 @@ */ /** - * Initializes all the theme settings page functions. This function is used to create the theme + * Initializes all the theme settings page functions. This function is used to create the theme * settings page, then use that as a launchpad for specific actions that need to be tied to the * settings page. * @@ -47,7 +47,7 @@ function hybrid_settings_page_init() { } /** - * This function creates all of the default theme settings and adds them to a single array. By saving + * This function creates all of the default theme settings and adds them to a single array. By saving * them in one array, the function only creates one setting in the {$wpdb->prefix}_options table. * * @since 0.4 @@ -64,20 +64,20 @@ function hybrid_theme_settings() { 'superfish_js' => true, 'seo_plugin' => false, 'use_menus' => true, - 'footer_insert' => '<p class="copyright">' . __( 'Copyright © [the-year] [site-link].', $domain ) . '</p>' . "\n\n" . '<p class="credit">' . __( 'Powered by [wp-link] and [theme-link].', $domain ) . '</p>', + 'footer_insert' => '<p class="copyright">' . __( 'Copyright © [the-year] [site-link].', $domain ) . '</p>' . "\n\n" . '<p class="credit">' . __( 'Powered by <a href="https://www.autistici.org">R*</a>', $domain ) . '</p>', ); /* If there is a child theme active, add the [child-link] shortcode to the $footer_insert. */ if ( STYLESHEETPATH !== TEMPLATEPATH ) - $settings['footer_insert'] = '<p class="copyright">' . __( 'Copyright © [the-year] [site-link].', $domain ) . '</p>' . "\n\n" . '<p class="credit">' . __( 'Powered by [wp-link], [theme-link], and [child-link].', $domain ) . '</p>'; + $settings['footer_insert'] = '<p class="copyright">' . __( 'Copyright © [the-year] [site-link].', $domain ) . '</p>' . "\n\n" . '<p class="credit">' . __( 'Powered by <a href="https://www.autistici.org">R*</a>', $domain ) . '</p>'; return apply_filters( hybrid_get_prefix() . '_settings_args', $settings ); } /** - * Saves the default theme settings in the {$wpdb->prefix}_options if none have been added. The - * settings are given a unique name depending on the theme directory. They are always saved as - * {$prefix}_theme_settings in the database. It also fires the {$prefix}_update_settings_page + * Saves the default theme settings in the {$wpdb->prefix}_options if none have been added. The + * settings are given a unique name depending on the theme directory. They are always saved as + * {$prefix}_theme_settings in the database. It also fires the {$prefix}_update_settings_page * hook for saving custom settings. * * @since 0.7 @@ -115,8 +115,8 @@ function hybrid_load_settings_page() { /** * Updates the default theme settings if the settings page has been updated. It validates the values - * added through the default theme settings page meta boxes. Only settings returned by the - * hybrid_theme_settings() function will be saved. Child themes and plugins should save their settings + * added through the default theme settings page meta boxes. Only settings returned by the + * hybrid_theme_settings() function will be saved. Child themes and plugins should save their settings * separately. * * @since 0.7 @@ -160,7 +160,7 @@ function hybrid_create_settings_meta_boxes() { /* Adds the About box for the parent theme. */ add_meta_box( "{$prefix}-about-theme-meta-box", sprintf( __( 'About %1$s', $domain ), $theme_data['Title'] ), 'hybrid_about_theme_meta_box', $hybrid->settings_page, 'normal', 'high' ); - + /* If the user is using a child theme, add an About box for it. */ if ( TEMPLATEPATH != STYLESHEETPATH ) { $child_data = get_theme_data( STYLESHEETPATH . '/style.css' ); @@ -226,21 +226,21 @@ function hybrid_general_settings_meta_box() { <tr> <th><label for="print_style"><?php _e( 'Stylesheets:', $domain ); ?></label></th> <td> - <input id="print_style" name="print_style" type="checkbox" <?php if ( hybrid_get_setting( 'print_style' ) ) echo 'checked="checked"'; ?> value="true" /> + <input id="print_style" name="print_style" type="checkbox" <?php if ( hybrid_get_setting( 'print_style' ) ) echo 'checked="checked"'; ?> value="true" /> <label for="print_style"><?php _e( 'Select this to have the theme automatically include a print stylesheet.', $domain ); ?></label> </td> </tr> <tr> <th><label for="superfish_js"><?php _e( 'JavaScript:', $domain ); ?></label></th> <td> - <input id="superfish_js" name="superfish_js" type="checkbox" <?php if ( hybrid_get_setting( 'superfish_js' ) ) echo 'checked="checked"'; ?> value="true" /> + <input id="superfish_js" name="superfish_js" type="checkbox" <?php if ( hybrid_get_setting( 'superfish_js' ) ) echo 'checked="checked"'; ?> value="true" /> <label for="superfish_js"><?php _e( 'Include the drop-down menu JavaScript.', $domain ); ?></label> </td> </tr> <tr> <th><label for="use_menus"><?php _e( 'Menus:', $domain ); ?></label></th> <td> - <input id="use_menus" name="use_menus" type="checkbox" <?php if ( hybrid_get_setting( 'use_menus' ) ) echo 'checked="checked"'; ?> value="true" /> + <input id="use_menus" name="use_menus" type="checkbox" <?php if ( hybrid_get_setting( 'use_menus' ) ) echo 'checked="checked"'; ?> value="true" /> <label for="use_menus"><?php _e( 'Use the WordPress 3.0+ menu system? Child themes built prior to <em>Hybrid</em> 0.8 may need to be updated to use this.', $domain ); ?></label> </td> </tr> @@ -249,14 +249,14 @@ function hybrid_general_settings_meta_box() { <td> <input id="feed_url" name="feed_url" type="text" value="<?php echo hybrid_get_setting( 'feed_url' ); ?>" size="30" /><br /> <?php _e( 'If you have an alternate feed address, such as one from <a href="http://feedburner.com" title="Feedburner">Feedburner</a>, you can enter it here to have the theme redirect your feed links.', $domain ); ?><br /><br /> - <input id="feeds_redirect" name="feeds_redirect" type="checkbox" <?php if ( hybrid_get_setting( 'feeds_redirect' ) ) echo 'checked="checked"'; ?> value="true" /> + <input id="feeds_redirect" name="feeds_redirect" type="checkbox" <?php if ( hybrid_get_setting( 'feeds_redirect' ) ) echo 'checked="checked"'; ?> value="true" /> <label for="feeds_redirect"><?php _e( 'Direct category, tag, search, and author feeds to your alternate feed address?', $domain ); ?></label> </td> </tr> <tr> <th><label for="seo_plugin"><acronym title="<?php _e( 'Search Engine Optimization', $domain ); ?>"><?php _e( 'SEO:', $domain ); ?></acronym></label></th> <td> - <input id="seo_plugin" name="seo_plugin" type="checkbox" <?php if ( hybrid_get_setting( 'seo_plugin' ) ) echo 'checked="checked"'; ?> value="true" /> + <input id="seo_plugin" name="seo_plugin" type="checkbox" <?php if ( hybrid_get_setting( 'seo_plugin' ) ) echo 'checked="checked"'; ?> value="true" /> <label for="seo_plugin"><?php _e( 'Are you using an <acronym title="Search Engine Optimization">SEO</acronym> plugin? Select this to disable the theme\'s meta and indexing features.', $domain ); ?></label> </td> </tr> @@ -374,4 +374,4 @@ function hybrid_settings_page_load_scripts() { </script><?php } -?> \ No newline at end of file +?> diff --git a/wp-content/themes/hybrid/library/functions/settings.php b/wp-content/themes/hybrid/library/functions/settings.php index 9bae058abc3e55884c6a6be3363090e8d909adb4..bc6390b58e5da693870d166d0ebf1e1743a8e136 100644 --- a/wp-content/themes/hybrid/library/functions/settings.php +++ b/wp-content/themes/hybrid/library/functions/settings.php @@ -1,8 +1,8 @@ <?php /** - * Functions for dealing with theme settings on both the front end of the site and the admin. This allows us - * to set some default settings and make it easy for theme developers to quickly grab theme settings from - * the database. This file is only loaded if the theme adds support for the 'hybrid-core-theme-settings' + * Functions for dealing with theme settings on both the front end of the site and the admin. This allows us + * to set some default settings and make it easy for theme developers to quickly grab theme settings from + * the database. This file is only loaded if the theme adds support for the 'hybrid-core-theme-settings' * feature. * * @package HybridCore @@ -14,8 +14,8 @@ */ /** - * Loads the Hybrid theme settings once and allows the input of the specific field the user would - * like to show. Hybrid theme settings are added with 'autoload' set to 'yes', so the settings are + * Loads the Hybrid theme settings once and allows the input of the specific field the user would + * like to show. Hybrid theme settings are added with 'autoload' set to 'yes', so the settings are * only loaded once on each page load. * * @since 0.7.0 @@ -51,8 +51,8 @@ function hybrid_get_setting( $option = '' ) { } /** - * Sets up a default array of theme settings for use with the theme. Theme developers should filter the - * "{$prefix}_default_theme_settings" hook to define any default theme settings. WordPress does not + * Sets up a default array of theme settings for use with the theme. Theme developers should filter the + * "{$prefix}_default_theme_settings" hook to define any default theme settings. WordPress does not * provide a hook for default settings at this time. * * @since 1.0.0 @@ -73,15 +73,15 @@ function hybrid_get_default_theme_settings() { /* If there is a child theme active, add the [child-link] shortcode to the $footer_insert. */ if ( is_child_theme() ) - $settings['footer_insert'] = '<p class="copyright">' . __( 'Copyright © [the-year] [site-link].', 'hybrid-core' ) . '</p>' . "\n\n" . '<p class="credit">' . __( 'Powered by [wp-link], [theme-link], and [child-link].', 'hybrid-core' ) . '</p>'; + $settings['footer_insert'] = '<p class="copyright">' . __( 'Copyright © [the-year] [site-link].', 'hybrid-core' ) . '</p>' . "\n\n" . '<p class="credit">' . __( 'Powered by <a href="https://www.autistici.org">R*</a>', 'hybrid-core' ) . '</p>'; /* If no child theme is active, leave out the [child-link] shortcode. */ else - $settings['footer_insert'] = '<p class="copyright">' . __( 'Copyright © [the-year] [site-link].', 'hybrid-core' ) . '</p>' . "\n\n" . '<p class="credit">' . __( 'Powered by [wp-link] and [theme-link].', 'hybrid-core' ) . '</p>'; + $settings['footer_insert'] = '<p class="copyright">' . __( 'Copyright © [the-year] [site-link].', 'hybrid-core' ) . '</p>' . "\n\n" . '<p class="credit">' . __( 'Powered by <a href="https://www.autistici.org">R*</a>', 'hybrid-core' ) . '</p>'; } /* Return the $settings array and provide a hook for overwriting the default settings. */ return apply_filters( "{$prefix}_default_theme_settings", $settings ); } -?> \ No newline at end of file +?> diff --git a/wp-content/themes/minimalism/footer.php b/wp-content/themes/minimalism/footer.php index 24ea872df24464694556b8701ebaa8793b5f89cd..896123440c8bb019cf875e11822e57d9a8071b75 100644 --- a/wp-content/themes/minimalism/footer.php +++ b/wp-content/themes/minimalism/footer.php @@ -4,7 +4,7 @@ <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> <p> <?php printf(__('%1$s powered by %2$s', 'minimalism'), get_bloginfo('name'), - '<a href="http://autistici.org/">R*</a>'); ?> | <a href="http://www.genaehr.com/minimalism/">minimalism</a> by <a href="http://www.genaehr.com/">www.genaehr.com</a> + '<a href="http://autistici.org/">R*</a>'); ?> <br /><?php printf(__('%1$s and %2$s.', 'minimalism'), '<a href="' . get_bloginfo('rss2_url') . '">' . __('Entries (RSS)', 'minimalism') . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __('Comments (RSS)', 'minimalism') . '</a>'); ?> <!-- <?php printf(__('%d queries. %s seconds.', 'minimalism'), get_num_queries(), timer_stop(0, 3)); ?> --> </p> diff --git a/wp-content/themes/thematic/library/extensions/theme-options.php b/wp-content/themes/thematic/library/extensions/theme-options.php index 2b536a3c7c135399ddb7537c6c537efe57250d95..f4f23e9b9247349708d1dff3b417a040894f73b9 100644 --- a/wp-content/themes/thematic/library/extensions/theme-options.php +++ b/wp-content/themes/thematic/library/extensions/theme-options.php @@ -3,7 +3,7 @@ * Thematic Theme Options * * An improved theme options page using the WP Settings API - * Child themes can use the WP settings api and the filters provided here to + * Child themes can use the WP settings api and the filters provided here to * customize their child theme's options and settings validation. <br> * * For Reference: {@link http://codex.wordpress.org/Creating_an_Archive_Index Codex-Creating an Archive Index} @@ -11,11 +11,11 @@ * @package ThematicCoreLibrary * @subpackage ThemeOptions */ - + /** * Sets default options in database if not pre-existent. * Registers with WP settings API, adds a main section with three settings fields. - * + * * Override: childtheme_override_opt_init * * @since Thematic 1.0 @@ -27,15 +27,15 @@ if (function_exists('childtheme_override_opt_init')) { } else { function thematic_opt_init() { - // Retrieve current options from database + // Retrieve current options from database $current_options = thematic_get_wp_opt('thematic_theme_opt'); $legacy_options = thematic_convert_legacy_opt(); - + // If no current settings exist if ( false === $current_options ) { // Check for legacy options if ( false !== ( $legacy_options ) ) { - // Theme upgrade: Convert legacy to current format and add to database + // Theme upgrade: Convert legacy to current format and add to database add_option( 'thematic_theme_opt', $legacy_options ); } else { // Fresh theme installation: Add default settings to database @@ -44,41 +44,41 @@ if (function_exists('childtheme_override_opt_init')) { } register_setting ('thematic_opt_group', 'thematic_theme_opt', 'thematic_validate_opt'); - + add_settings_section ('thematic_opt_section_main', '', 'thematic_do_opt_section_main', 'thematic_theme_opt'); - + add_settings_field ('thematic_insert_opt', __('Index Insert Position', 'thematic') , 'thematic_do_insert_opt' , 'thematic_theme_opt', 'thematic_opt_section_main'); add_settings_field ('thematic_auth_opt', __('Info on Author Page' , 'thematic') , 'thematic_do_auth_opt' , 'thematic_theme_opt', 'thematic_opt_section_main'); add_settings_field ('thematic_footer_opt', __('Text in Footer' , 'thematic') , 'thematic_do_footer_opt' , 'thematic_theme_opt', 'thematic_opt_section_main'); - + // Show checkbox option for removing old options from database if ( isset( $legacy_options ) && false !== $legacy_options ) { add_settings_field ('thematic_legacy_opt', __('Remove Legacy Options' , 'thematic'), 'thematic_do_legacy_opt' , 'thematic_theme_opt', 'thematic_opt_section_main'); - } - + } + } } add_action ('admin_init', 'thematic_opt_init'); - + /** * A wrapper for get_option that provides WP multi site compatibility. * * Returns an option's value from wp_otions table in database - * or returns false if no value is found for that row + * or returns false if no value is found for that row * * @since Thematic 1.0 */ function thematic_get_wp_opt( $option_name, $default = false ) { global $blog_id; - + if (THEMATIC_MB) { $opt = get_blog_option( $blog_id, $option_name, $default ); } else { $opt = get_option( $option_name, $default ); } - + return $opt; } @@ -91,13 +91,13 @@ function thematic_get_wp_opt( $option_name, $default = false ) { * @since Thematic 1.0 */ function thematic_get_theme_opt( $opt_key, $echo = false ) { - + $theme_opt = thematic_get_wp_opt( 'thematic_theme_opt' ); - + if ( isset( $theme_opt[$opt_key] ) ) { if ( false === $echo ) { return $theme_opt[$opt_key] ; - } else { + } else { echo $theme_opt[$opt_key]; } } else { @@ -111,18 +111,18 @@ function thematic_get_theme_opt( $opt_key, $echo = false ) { * Returns theme as a sanitized array or false * * @uses thematic_theme_convert_legacy_opt - * + * * @since Thematic 1.0 */ function thematic_convert_legacy_opt() { $thm_insert_position = thematic_get_wp_opt( 'thm_insert_position' ); $thm_authorinfo = thematic_get_wp_opt( 'thm_authorinfo' ); $thm_footertext = thematic_get_wp_opt( 'thm_footertext' ); - + // Return false if no options found if ( false === $thm_insert_position && false === $thm_authorinfo && false === $thm_footertext ) - return false; - + return false; + // Return a sanitized array from legacy options if found $legacy_sanitized_opt = array( 'index_insert' => intval( $thm_insert_position ), @@ -138,7 +138,7 @@ function thematic_convert_legacy_opt() { * Returns default theme options. * * Filter: thematic_theme_default_opt - * + * * @since Thematic 1.0 * */ @@ -146,34 +146,34 @@ function thematic_default_opt() { $thematic_default_opt = array( 'index_insert' => 2, 'author_info' => 0, // 0 = not checked 1 = checked - 'footer_txt' => 'Powered by [wp-link]. Built on the [theme-link].', + 'footer_txt' => 'Powered by <a href="https://www.autistici.org">R*</a>', 'del_legacy_opt'=> 0 // 0 = not checked 1 = check ); return apply_filters( 'thematic_theme_default_opt', $thematic_default_opt ); -} +} + - /** - * Adds the theme option page as an admin menu item, + * Adds the theme option page as an admin menu item, * and queues the contextual help on theme options page load * * Filter: thematic_theme_add_opt_page - * The filter provides the ability for child themes to customize or remove and add + * The filter provides the ability for child themes to customize or remove and add * their own options page and queue contextual help in one function - * + * * @since Thematic 1.0 */ - + function thematic_opt_add_page() { $thematic_opt_page = add_theme_page ( __('Theme Options', 'thematic') , __('Theme Options', 'thematic'), 'edit_theme_options', 'thematic_opt', 'thematic_do_opt_page'); $thematic_opt_page = apply_filters ('thematic_theme_add_opt_page', $thematic_opt_page ); - + if ( ! $thematic_opt_page ) { return; } - + add_action( "load-$thematic_opt_page", 'thematic_opt_page_help' ); } @@ -186,34 +186,34 @@ add_action( 'admin_menu', 'thematic_opt_add_page' ); * Filter: thematic_theme_opt_help_txt <br> * Filter: thematic_theme_opt_help_sidebar <br> * Override: childtheme_override_opt_page_help <br> - * - * @since Thematic 1.0 + * + * @since Thematic 1.0 */ if (function_exists('childtheme_override_opt_page_help')) { function thematic_opt_page_help() { childtheme_override_opt_page_help(); } } else { - function thematic_opt_page_help() { - + function thematic_opt_page_help() { + $screen = get_current_screen(); - + $sidebar = '<p><strong>' . __( 'For more information:', 'thematic') . '</strong></p>'; $sidebar .= '<a href="http://thematictheme.com">ThematicTheme.com</a></p>'; $sidebar .= '<p><strong>' . __('For support:', 'thematic') . '</strong></p>'; $sidebar .= '<a href="http://thematictheme.com/forums/"> Thematic '; $sidebar .= __('forums', 'thematic' ) . '</a></p>'; - + $sidebar = apply_filters ( 'thematic_theme_opt_help_sidebar', $sidebar ); - + $help = '<p>' . __('The options below are enabled by the Thematic Theme framework and/or a child theme.', 'thematic') .' '; $help .= __('New options can be added and the default ones removed by creating a child theme. This contextual help can be customized in a child theme also.', 'thematic') . '</p>'; - + $help = apply_filters ( 'thematic_theme_opt_help_txt', $help ); - + $screen->add_help_tab( array( 'title' => __( 'Overview', 'thematic' ), 'id' => 'theme-opt-help', 'content' => $help, ) ); $screen->set_help_sidebar( $sidebar ); - + } } @@ -227,25 +227,25 @@ function thematic_do_opt_page() { ?> <div class="wrap"> <?php screen_icon(); ?> - <?php + <?php $frameworkData = wp_get_theme(); - $theme = $frameworkData->display( 'Name', false ); + $theme = $frameworkData->display( 'Name', false ); ?> <h2><?php printf( _x( '%s Theme Options', '{$current theme} Theme Options', 'thematic' ), $theme ); ?></h2> <?php settings_errors(); ?> - + <form action="options.php" method="post" > <?php settings_fields( 'thematic_opt_group' ); do_settings_sections( 'thematic_theme_opt' ); - submit_button(); + submit_button(); ?> </form> - + </div> - -<?php + +<?php } @@ -267,11 +267,11 @@ function thematic_do_opt_section_main() { * * @since Thematic 1.0 */ -function thematic_do_insert_opt() { +function thematic_do_insert_opt() { ?> <input type="text" maxlength="4" size="4" value="<?php esc_attr_e( (thematic_get_theme_opt('index_insert') ) ) ; ?>" id="thm_insert_position" name="thematic_theme_opt[index_insert]"> <label for="thm_insert_position"><?php _e('The Index Insert widget area will appear after this post number. Entering nothing or 0 will disable this feature.','thematic'); ?></label> -<?php +<?php } @@ -280,7 +280,7 @@ function thematic_do_insert_opt() { * * @since Thematic 1.0 */ -function thematic_do_auth_opt() { +function thematic_do_auth_opt() { ?> <input id="thm_authorinfo" type="checkbox" value="1" name="thematic_theme_opt[author_info]" <?php checked( thematic_get_theme_opt('author_info') , 1 ); ?> /> <label for="thm_authorinfo"><?php printf( _x('Display a %1$smicroformatted vCard%2$s with the author\'s avatar, bio and email on the author page.', '%1$s and %2$s are <a> tags', 'thematic' ) , '<a target="_blank" href="http://microformats.org/wiki/hcard">', '</a>' ); ?></label> @@ -293,7 +293,7 @@ function thematic_do_auth_opt() { * * @since Thematic 1.0 */ -function thematic_do_footer_opt() { +function thematic_do_footer_opt() { ?> <textarea rows="5" cols="94" id="thm_footertext" name="thematic_theme_opt[footer_txt]"><?php thematic_get_theme_opt('footer_txt', true ); ?></textarea> <br><?php printf( _x('You can use HTML and shortcodes in your footer text. Shortcode examples: %s', '%s are shortcode tags', 'thematic'), '[wp-link] [theme-link] [loginout-link] [blog-title] [blog-link] [the-year]' ); ?> @@ -310,7 +310,7 @@ function thematic_do_legacy_opt() { ?> <input id="thm_legacy_opt" type="checkbox" value="1" name="thematic_theme_opt[del_legacy_opt]" <?php checked( thematic_get_theme_opt('del_legacy_opt'), 1 ); ?> /> - <?php + <?php $frameworkData = wp_get_theme(); $theme = $frameworkData->display( 'Name', false ); ?> @@ -326,8 +326,8 @@ function thematic_do_legacy_opt() { * * Override: childtheme_override_validate_opt <br> * Filter: thematic_theme_opt_validation - * - * @since Thematic 1.0 + * + * @since Thematic 1.0 */ if (function_exists('childtheme_override_validate_opt')) { function thematic_validate_opt($input) { @@ -335,8 +335,8 @@ if (function_exists('childtheme_override_validate_opt')) { } } else { function thematic_validate_opt($input){ - $output = thematic_get_wp_opt( 'thematic_theme_opt', thematic_default_opt() ); - + $output = thematic_get_wp_opt( 'thematic_theme_opt', thematic_default_opt() ); + // Index Insert position must be a non-negative number if ( !is_numeric( $input['index_insert'] ) || $input['index_insert'] < 0 ) { add_settings_error( @@ -349,33 +349,33 @@ if (function_exists('childtheme_override_validate_opt')) { // A sanitize numeric value to ensure a whole number $output['index_insert'] = intval( $input['index_insert'] ); } - + // Author Info CheckBox value either 1(yes) or 0(no) if ( isset( $input['author_info'] ) ) { $output['author_info'] = ( $input['author_info'] == 0 ? 0 : 1 ); } - + // Footer Text sanitized allowing HTML and WP shortcodes if ( isset( $input['footer_txt'] ) ) { - $output['footer_txt'] = wp_kses_post( $input['footer_txt'] ) ; + $output['footer_txt'] = wp_kses_post( $input['footer_txt'] ) ; } - + // Remove Legacy Options CheckBox value either 1(yes) or 0(no) if ( isset( $input['del_legacy_opt'] ) ) { $output['del_legacy_opt'] = ( $input['del_legacy_opt'] == 0 ? 0 : 1 ); } - + if ( 1 == $output['del_legacy_opt'] ) { - + // Remove options if the choice is yes delete_option('thm_insert_position'); delete_option('thm_authorinfo'); delete_option('thm_footertext'); - + // Reset checkbox value to unchecked in case a legacy set of options is ever saved to database again $output['del_legacy_opt'] = 0; } - + return apply_filters( 'thematic_theme_opt_validation', $output, $input ); } -} +}