- BCB7B01F1CD40807E89B56F51C67AF3033F96861A3AD803172F770CFB3F6162FC9380E0A76AB401D97EA593238D09ABCC1184890256AD64107A1D0F21158ADD4
+ 30DBDD3CC179ADAFC8D8E25A4A06C577D6D29D8EA1FA536FA57FCACED37C6DF3F9BC34C2A4723C884989750CE8CF1C1A03BA0D52B7CA1A1BB5F4D3567C5020AA
mp-wp/wp-includes/theme.php
(210 . 7)(210 . 7)
57092
57093 $name = $theme = wp_kses( trim( $theme_name[1] ), $themes_allowed_tags );
57094 $theme_uri = clean_url( trim( $theme_uri[1] ) );
57095 $description = wptexturize( wp_kses( trim( $description[1] ), $themes_allowed_tags ) );
57096 $description = wp_kses( trim( $description[1] ), $themes_allowed_tags );
57097
57098 if ( preg_match( '|Author:(.*)$|mi', $theme_data, $author_name ) ) {
57099 if ( empty( $author_uri ) ) {
(314 . 7)(314 . 7)
57101
57102 $name = $theme_data['Name'];
57103 $title = $theme_data['Title'];
57104 $description = wptexturize($theme_data['Description']);
57105 $description = $theme_data['Description'];
57106 $version = $theme_data['Version'];
57107 $author = $theme_data['Author'];
57108 $template = $theme_data['Template'];
(749 . 27)(749 . 6)
57110 }
57111
57112 /**
57113 * Retrieve path of comment popup template in current or parent template.
57114 *
57115 * Checks for comment popup template in current template, if it exists or in the
57116 * parent template. If it doesn't exist, then it retrieves the comment-popup.php
57117 * file from the default theme. The default theme must then exist for it to
57118 * work.
57119 *
57120 * @since 1.5.0
57121 * @uses apply_filters() Calls 'comments_popup_template' filter on path.
57122 *
57123 * @return string
57124 */
57125 function get_comments_popup_template() {
57126 $template = locate_template(array("comments-popup.php"));
57127 if ('' == $template)
57128 $template = get_theme_root() . '/default/comments-popup.php';
57129
57130 return apply_filters('comments_popup_template', $template);
57131 }
57132
57133 /**
57134 * Retrieve the name of the highest priority template file that exists.
57135 *
57136 * Searches in the STYLESHEETPATH before TEMPLATEPATH so that themes which
(1043 . 71)(1022 . 4)
57138 delete_option("mods_$theme");
57139 }
57140
57141 /**
57142 * Retrieve text color for custom header.
57143 *
57144 * @since 2.1.0
57145 * @uses HEADER_TEXTCOLOR
57146 *
57147 * @return string
57148 */
57149 function get_header_textcolor() {
57150 return get_theme_mod('header_textcolor', HEADER_TEXTCOLOR);
57151 }
57152
57153 /**
57154 * Display text color for custom header.
57155 *
57156 * @since 2.1.0
57157 */
57158 function header_textcolor() {
57159 echo get_header_textcolor();
57160 }
57161
57162 /**
57163 * Retrieve header image for custom header.
57164 *
57165 * @since 2.1.0
57166 * @uses HEADER_IMAGE
57167 *
57168 * @return string
57169 */
57170 function get_header_image() {
57171 return get_theme_mod('header_image', HEADER_IMAGE);
57172 }
57173
57174 /**
57175 * Display header image path.
57176 *
57177 * @since 2.1.0
57178 */
57179 function header_image() {
57180 echo get_header_image();
57181 }
57182
57183 /**
57184 * Add callbacks for image header display.
57185 *
57186 * The parameter $header_callback callback will be required to display the
57187 * content for the 'wp_head' action. The parameter $admin_header_callback
57188 * callback will be added to Custom_Image_Header class and that will be added
57189 * to the 'admin_menu' action.
57190 *
57191 * @since 2.1.0
57192 * @uses Custom_Image_Header Sets up for $admin_header_callback for administration panel display.
57193 *
57194 * @param callback $header_callback Call on 'wp_head' action.
57195 * @param callback $admin_header_callback Call on administration panels.
57196 */
57197 function add_custom_image_header($header_callback, $admin_header_callback) {
57198 if ( ! empty($header_callback) )
57199 add_action('wp_head', $header_callback);
57200
57201 if ( ! is_admin() )
57202 return;
57203 require_once(ABSPATH . 'wp-admin/custom-header.php');
57204 $GLOBALS['custom_image_header'] = new Custom_Image_Header($admin_header_callback);
57205 add_action('admin_menu', array(&$GLOBALS['custom_image_header'], 'init'));
57206 }
57207
57208 ?>