WordPress
get_results("SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > 1970"); if ($post_datetimes) { $firstpost_year = $post_datetimes[0]->firstyear; $lastpost_year = $post_datetimes[0]->lastyear; $copyright = __('Copyright © ', 'inove') . $firstpost_year; if($firstpost_year != $lastpost_year) { $copyright .= '-'. $lastpost_year; } $copyright .= ' '; } wp_cache_set('inove-copyright', $copyright, 'theme', 21600); //cache for 6 hours } echo $copyright; bloginfo('name'); ?>
NeoEase. Valid XHTML 1.1 and CSS 3.', 'inove'); ?>