+ /**
+ * Filter the localized time a post was last modified, for display.
+ *
+ * @since 2.0.0
+ *
+ * @param string $get_the_modified_time The formatted time.
+ * @param string $d The time format. Accepts 'G', 'U',
+ * or php date format. Defaults to value
+ * specified in 'time_format' option.
+ */
+ echo apply_filters( 'the_modified_time', get_the_modified_time($d), $d );
+}
+
+/**
+ * Retrieve the time at which the post was last modified.
+ *
+ * @since 2.0.0
+ *
+ * @param string $d Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option.
+ * @return string
+ */
+function get_the_modified_time($d = '') {
+ if ( '' == $d )
+ $the_time = get_post_modified_time(get_option('time_format'), null, null, true);
+ else
+ $the_time = get_post_modified_time($d, null, null, true);
+
+ /**
+ * Filter the localized time a post was last modified.
+ *
+ * @since 2.0.0
+ *
+ * @param string $the_time The formatted time.
+ * @param string $d Format to use for retrieving the time the post was
+ * written. Accepts 'G', 'U', or php date format. Defaults
+ * to value specified in 'time_format' option.
+ */
+ return apply_filters( 'get_the_modified_time', $the_time, $d );
+}
+
+/**
+ * Retrieve the time at which the post was last modified.
+ *
+ * @since 2.0.0
+ *
+ * @param string $d Optional. Format to use for retrieving the time the post
+ * was modified. Either 'G', 'U', or php date format. Default 'U'.
+ * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false.
+ * @param int|WP_Post $post WP_Post object or ID. Default is global $post object.
+ * @param bool $translate Whether to translate the time string. Default false.
+ * @return false|string Formatted date string or Unix timestamp. False on failure.
+ */
+function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
+ $post = get_post($post);
+
+ if ( ! $post ) {
+ return false;
+ }
+
+ if ( $gmt )
+ $time = $post->post_modified_gmt;
+ else
+ $time = $post->post_modified;
+ $time = mysql2date($d, $time, $translate);
+
+ /**
+ * Filter the localized time a post was last modified.
+ *
+ * @since 2.8.0
+ *
+ * @param string $time The formatted time.
+ * @param string $d The date format. Accepts 'G', 'U', or php date format. Default 'U'.
+ * @param bool $gmt Whether to return the GMT time. Default false.
+ */
+ return apply_filters( 'get_post_modified_time', $time, $d, $gmt );
+}
+
+/**
+ * Display the weekday on which the post was written.
+ *
+ * @since 0.71
+ *
+ * @global WP_Locale $wp_locale
+ */
+function the_weekday() {
+ global $wp_locale;
+ $the_weekday = $wp_locale->get_weekday( mysql2date( 'w', get_post()->post_date, false ) );
+
+ /**
+ * Filter the weekday on which the post was written, for display.
+ *
+ * @since 0.71
+ *
+ * @param string $the_weekday
+ */
+ echo apply_filters( 'the_weekday', $the_weekday );
+}
+
+/**
+ * Display the weekday on which the post was written.
+ *
+ * Will only output the weekday if the current post's weekday is different from
+ * the previous one output.
+ *
+ * @since 0.71
+ *
+ * @global WP_Locale $wp_locale
+ * @global string|int|bool $currentday
+ * @global string|int|bool $previousweekday
+ *
+ * @param string $before Optional Output before the date.
+ * @param string $after Optional Output after the date.
+ */
+function the_weekday_date($before='',$after='') {
+ global $wp_locale, $currentday, $previousweekday;
+ $the_weekday_date = '';
+ if ( $currentday != $previousweekday ) {
+ $the_weekday_date .= $before;
+ $the_weekday_date .= $wp_locale->get_weekday( mysql2date( 'w', get_post()->post_date, false ) );
+ $the_weekday_date .= $after;
+ $previousweekday = $currentday;
+ }
+
+ /**
+ * Filter the localized date on which the post was written, for display.
+ *
+ * @since 0.71
+ *
+ * @param string $the_weekday_date
+ * @param string $before The HTML to output before the date.
+ * @param string $after The HTML to output after the date.
+ */
+ $the_weekday_date = apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
+ echo $the_weekday_date;
+}
+
+/**
+ * Fire the wp_head action
+ *
+ * @since 1.2.0
+ */
+function wp_head() {
+ /**
+ * Print scripts or data in the head tag on the front end.
+ *
+ * @since 1.5.0
+ */
+ do_action( 'wp_head' );
+}
+
+/**
+ * Fire the wp_footer action
+ *
+ * @since 1.5.1
+ */
+function wp_footer() {
+ /**
+ * Print scripts or data before the closing body tag on the front end.
+ *
+ * @since 1.5.1
+ */
+ do_action( 'wp_footer' );