\r\n"; $output .= easel_copyright_info(); $output .= " "; $output .= __('Powered by','easel') . " WordPress " . __('with','easel'). " Easel\r\n"; $output .= easel_hosted_on(); $output .= "\r\n"; if (!easel_themeinfo('disable_scroll_to_top')) { $output .= "\r\n"; } $output .= "
\r\n"; echo apply_filters('easel_footer_text', $output); } } if (!function_exists('easel_hosted_on')) { function easel_hosted_on() { if (is_multisite()) { $current_site = get_current_site(); if (!isset($current_site->site_name)) { $site_name = ucfirst( $current_site->domain ); } else { $site_name = $current_site->site_name; } $output = " "; $output .= __('Hosted on','easel') . ' '. $site_name. ' '; return apply_filters('easel_hosted_on', $output); } } } if (!function_exists('easel_copyright_info')) { function easel_copyright_info() { $copyright_name = easel_themeinfo('copyright_name'); if (empty($copyright_name)) $copyright_name = get_bloginfo('name'); $copyright_url = easel_themeinfo('copyright_url'); if (empty($copyright_url)) $copyright_url = home_url(); $copyright = __('©', 'easel'). easel_copyright_dates() . ' ' . apply_filters('easel_copyright_info_name', '' . $copyright_name . '') . ' '; return apply_filters('easel_copyright_info', $copyright); } } if (!function_exists('easel_copyright_dates')) { function easel_copyright_dates() { global $wpdb; $copyright_dates = $wpdb->get_results(" SELECT YEAR(min(post_date_gmt)) AS firstdate, YEAR(max(post_date_gmt)) AS lastdate FROM $wpdb->posts WHERE post_status = 'publish' "); $output = ''; if ($copyright_dates) { $copyright = $copyright_dates[0]->firstdate; if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) { $copyright .= '-' . $copyright_dates[0]->lastdate; } $output = $copyright; } return apply_filters('easel_copyright_dates', $output); } } ?>