" title="<?php _e('This Website', 'html5press'); ?> "><?php bloginfo('name'); ?> </a> - <?php _e('Design by ', 'html5press'); ?> <a href="http://jayj.dk" title="Design by Jayj.dk">Jayj.dk</a><?php _e(' & WordPress\'d by ', 'html5press'); ?> <a href="http://www.longren.org/wordpress/html5press/">Tyler Longren</a></p> <p> <?php printf(__('Powered by %1$s and %2$s', 'html5press'), sprintf('<a href="http://wordpress.org/">%1$s</a>', __('WordPress', 'html5press')), sprintf('<a href="http://www.longren.org/wordpress/html5press/" title="%1$s">HTML5Press %2$s</a>', __('HTML5Press WordPress Theme.', 'html5press'), html5press_getinfo('version'))); ?> <?php if ($html5press_settings['show_query_stats'] == 1) { ?> - <?php echo get_num_queries(); _e(' queries in ', 'html5press'); timer_stop(1); _e(' seconds', 'html5press'); } ?> </p> </footer> <!-- end footer --> <div class="clear"></div>
function html5press_update_notice() { if (current_user_can('update_themes')) { include_once ABSPATH . WPINC . '/feed.php'; // Get the update feed $rss = fetch_feed('http://www.longren.org/html5press.xml'); if (!is_wp_error($rss)) { $maxitems = $rss->get_item_quantity(1); // We only want the latest $rss_items = $rss->get_items(0, 1); } if ($maxitems != 0) { foreach ($rss_items as $item) { // Compare feed version to theme version if (version_compare($item->get_title(), html5press_getinfo('version')) > 0) { echo '<div id="update-nag">HTML5Press ' . esc_html($item->get_title()) . ' is available! <a href="' . esc_url($item->get_permalink()) . '">Click here to download</a>. ' . esc_html($item->get_description()) . '</div>'; } } } } // current_user_can('update_themes') }