__( 'Primary Navigation', 'rehtse' ), ) ); // This theme allows users to set a custom background //add_custom_background(); // Your changeable header business starts here define( 'HEADER_TEXTCOLOR', '' ); // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. define('HEADER_IMAGE', '%s/images/default.jpg'); // The height and width of your custom header. You can hook into the theme's own filters to change these values. define('HEADER_IMAGE_WIDTH', 401); define('HEADER_IMAGE_HEIGHT', 285); // We'll be using post thumbnails for custom header images on posts and pages. // We want them to be 940 pixels wide by 198 pixels tall. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); // Don't support text inside the header image. define( 'NO_HEADER_TEXT', true ); // Add a way for the custom header to be styled in the admin panel that controls // custom headers. See twentyten_admin_header_style(), below. add_custom_image_header( '', 'hope_admin_header_style' ); } endif; if ( ! function_exists( 'hope_admin_header_style' ) ) : function hope_admin_header_style() { ?> 50 ) $items = 2; $flickr = get_option( 'flickr' ); if ( empty( $flickr ) ){ $flickr = "http://api.flickr.com/services/feeds/photos_public.gne?id=90827185@N00&lang=en-us&format=rss_200"; } $rss = fetch_rss( $flickr ); if( is_array( $rss->items ) ) { //$out = ''; $out = wp_cache_get('hopeii'); if ( false == $out ) { $items = array_slice( $rss->items, 0, $items ); while( list( $key, $photo ) = each( $items ) ) { preg_match_all("/0) $out .= ",\n"; $out .= '["' . $photo_url . '", "' . $photo['link'] . '", "_new", "'. esc_html( $photo[ 'title' ], true ). '"]'; } wp_cache_set('hopeii', $out, 'theme', 21600); //cache for 6 hours } //end cache } ?> false); $file = wp_handle_upload($_FILES['import'], $overrides); if ( isset($file['error']) ) wp_die( $file['error'] ); $url = $file['url']; $type = $file['type']; $file = $file['file']; $filename = basename($file); $object = array( 'post_title' => $filename, 'post_content' => $url, 'post_mime_type' => $type, 'guid' => $url ); $id = wp_insert_attachment($object, $file); wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); update_option('background_image', esc_url($url)); } if ( isset( $_POST[ 'action' ] ) && esc_attr( $_POST[ 'action' ] ) == 'update' ) { if ( isset($_POST['twit']) ) { $twit = strip_tags(stripslashes($_POST["twit"])); update_option( 'twit', $twit ); } if ( isset($_POST['flickr']) ) { $flickr = strip_tags(stripslashes($_POST["flickr"])); $items = strip_tags(stripslashes($_POST["rssnum"])); update_option( 'flickr', $flickr ); update_option( 'rssnum', $items ); } else { delete_option( 'flickr' ); delete_option( 'rssnum' ); } echo '

Options saved successfully.

'; } if ( isset( $_POST[ 'action' ] ) && esc_attr( $_POST[ 'action' ] ) == 'reset' ) { check_admin_referer('custom-background'); delete_option('background_image'); echo '

The background has reset successfully.

'; } ?>

Support Rehtse Evoli Theme

I am happy that you get a coffee to me, Thanks! Patrick

Get theme support at Facebook

You may look me at my twitter, penote

Note: Your RSS feed can be found on your Flickr homepage or your PicasaWeb RSS. Scroll down to the bottom of the page until you see the Feed link or RSS link and copy that into the box above.

flickr Feed Link:
http://api.flickr.com/services/feeds/photos_public.gne?tags=rose&lang=en-us&format=rss_200
Picasa RSS Link:
http://picasaweb.google.com/data/feed/base/user/wael.tabba?alt=rss&kind=album&hl=en_US&access=public


Images must be smaller than 800k. GIF, JPG, PNG.

Your current image:

".__('Tips: You may custom your blog theme header and gallery with your flickr.') ."

". sprintf(__('You must enter the flickr/PicasWeb feed url for it to work.'), "themes.php?page=theme-setting")."

"; } add_action('admin_notices', 'hope_tips'); } add_action( 'admin_menu', 'hope_admin_menu' ); add_action( 'wp_footer', 'hope_flickr' ); ?>