{file}.php]if(!function_exists('get_post_templates')) {function get_post_templates() { $themes = get_themes(); //an array of all themes in the /themes directory $theme = get_current_theme(); //the current, active theme $templates = $themes[$theme]['Template Files']; //a list of all the current theme's template files $page_templates = array (); foreach ((array)$templates as $template ) { //this loop returns all the "post templates" $template_data = implode( '', file( WP_CONTENT_DIR.$template )); $name = ''; if ( preg_match( '|Single Post Template:(.*)$|mi', $template_data, $name ) ) { $name = $name[1]; } if ( !empty( $name ) ) { $post_templates[trim( $name )] = basename( $template ); } } return $post_templates; //return the array of Post Templates}}//build the dropdown itemsfunction page_templates_dropdown() { global $post; $post_templates = get_post_templates(); foreach ($post_templates as $template_name => $template_file) { //loop through templates, make them options if ($template_file == get_post_meta($post->ID, '_wp_post_template', true)) { $selected = ' selected="selected"'; } else { $selected = ''; } $opt = ''; echo $opt; }}//Filter the single template value, and replace it with//the template chosen by the user, if they chose one.add_filter('single_template', 'get_post_template');if(!function_exists('get_post_template')) {function get_post_template($template) { global $post; $custom_field = get_post_meta($post->ID, '_wp_post_template', true); if(!empty($custom_field) && file_exists(TEMPLATEPATH . "/{$custom_field}")) { $template = TEMPLATEPATH . "/{$custom_field}"; } return $template;}}//Everything below this is for adding the extra box//to the post edit screen so the user can choose a template//Adds a custom section to the Post edit screenadd_action('admin_menu', 'pt_add_custom_box');function pt_add_custom_box() { if(get_post_templates() && function_exists( 'add_meta_box' )) { add_meta_box( 'pt_post_templates', __( 'Single Post Template', 'pt' ), 'pt_inner_custom_box', 'post', 'normal', 'high' ); //add the boxes under the post }} //Prints the inner fields for the custom post/page sectionfunction pt_inner_custom_box() { global $post; // Use nonce for verification echo ''; // The actual fields for data entry echo '

'; echo '
';}//When the post is saved, saves our custom dataadd_action('save_post', 'pt_save_postdata', 1, 2); // save the custom fieldsfunction pt_save_postdata($post_id, $post) { // verify this came from the our screen and with proper authorization, // because save_post can be triggered at other times if ( !wp_verify_nonce( $_POST['pt_noncename'], plugin_basename(__FILE__) )) { return $post->ID; } // Is the user allowed to edit the post or page? if ( 'page' == $_POST['post_type'] ) { if ( !current_user_can( 'edit_page', $post->ID )) return $post->ID; } else { if ( !current_user_can( 'edit_post', $post->ID )) return $post->ID; } // OK, we're authenticated: we need to find and save the data // We'll put the data into an array to make it easier to loop though and save $mydata['_wp_post_template'] = $_POST['_wp_post_template']; // Add values of $mydata as custom fields foreach ($mydata as $key => $value) { //Let's cycle through the $mydata array! if( $post->post_type == 'revision' ) return; //don't store custom data twice $value = implode(',', (array)$value); //if $value is an array, make it a CSV (unlikely) if(get_post_meta($post->ID, $key, FALSE)) { //if the custom field already has a value... update_post_meta($post->ID, $key, $value); //...then just update the data } else { //if the custom field doesn't have a value... add_post_meta($post->ID, $key, $value);//...then add the data } if(!$value) delete_post_meta($post->ID, $key); //and delete if blank }}?> Shops & Restaurants : Sea Ranch, Gualala Vacation Rentals
Sea Ranch, Gualala Vacation Rentals

Shops & Restaurants

Kennedy & Associates

Gualala: A town with character and charm, Gualala has a lot to offer by way of shopping. Not just groceries and gas, but galleries, keepsakes, fine local art, dining ware, unique clothing, a real Independent Bookstore “The Four Eyed Frog,” coffee shops and restaurnts with wi-fi. You’ll find toys, special treats, a crafter’s dream store called “The Loft,” even ice cream! Spend some time and walk Gualala!

Gualala Arts Center: Take a class, view a showing, watch a performance, take in a concert, walk the grounds, join us for a festival, just come and enjoy what Gualala Arts has to offer at one of its three locations. www.gualalaarts.org

Point Arena Lighthouse: In operation since the mid 1800’s this lighthouse is 143 steps high. Climb all the way to the top for panoramic views of some of the most wild, dramatic coastline you’re likely to see in your lifetime. www.pointarenalighthouse.com

Art of Chocolate: One pound of rich, moist cookies packaged about an hour after baking and shipped in a one pound crate—wherever you want, or pick them up when you stop in to sample all the other wonderful handmade truffles and chocolates, fudges and toffees these delightful people make!  www.mendocino-chocolate.com

Fort Bragg: Another great town built up around fishing and logging with galleries, lots of little shops and some great restaurants you’ve just got to try!  Visit www.fortbragg.com to find out more.

Fort Bragg Galleries: Variety of galleries ranging from glass to fabrics.  Pick up your copy of the Mendocino Traveler’s Guide at Coasting Home for a detailed list.

Maness Photography: Visit the Fort Bragg Depot to have old-time photos made from the days of the settlers.  Fun for all ages.  Same day photos.  707-962-0555

North Coast Brewing Company: “One of the 10 best breweries in the world”!  Home of the Red Sea Ale, Old Rasputin Imperial Stout and Scrimshaw Pilsner; stop in their Tap Room & Grill for food and fun.  www.northcoastbrewing.com

Point Cabrillo Light Station: A museum, a lighthouse, whales to view, and a small aquarium.  www.pointcabrillo.org

Ross Ranch: Private horseback riding on Manchester beach or in the mountain forest just east of Elk.  www.rossranch.biz

Village of Mendocino: An historic village, Mendocino boasts blocks of shops and restaurants to take in your day.  You’ll find books, toys, antiques, glassware, pottery, jewelry, and so much more.  Drawing visitors from far and wide, this hamlet has marvelous coastal views to tantalize you as you meander through its streets.  About an hour north of Gualala on Hwy One.

Sea Ranch, Gualala Vacation Rentals