. */ function wp_json_check_url(){ if(preg_match('/\/feed\/json\//', $_SERVER['REQUEST_URI']) || $_REQUEST['feed'] == 'json') { //header('Content-Type: application/json; charset=' . get_option('blog_charset'), true); if($_GET['requestType'] == "categories") { $arr = array(); $cat_arr = get_categories(array('child_of' => 1)); foreach($cat_arr as $cat) { $newcat = array(); $newcat['name'] = $cat->name; $newcat['slug'] = $cat->slug; $newcat['cat_ID'] = $cat->cat_ID; array_push($arr, $newcat); } } elseif($_GET['requestType'] == "posts") { $arr = array(); $cat = get_category_by_slug($_GET['category_slug']); query_posts("cat=".$cat->term_id); $pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/'; while (have_posts()) { the_post(); preg_match_all($pattern, get_the_content(), $img); $item = array( "title" => get_the_title_rss(), "post_id" => get_the_ID(), "permalink" => get_permalink(), "cat_name" => $cat->name, "image_url" => $img[1][0] ); $arr[] = $item; } } elseif($_GET['requestType'] == "post") { $arr = array(); $post = get_post($_GET['id']); $pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/'; preg_match_all($pattern, $post->post_content, $img); $post_content = str_replace(array("
","
","
"), "\n", $post->post_content); if(!empty($post)) { $arr['title'] = $post->post_title; $arr['date'] = $post->post_date; $arr['content'] = strip_tags($post_content); $arr['image_url'] = $img[1][0]; } } if(function_exists('json_encode')) { die(json_encode($arr)); } else { //TODO: Add backwards compatibility to before PHP 5.2 require_once("lib/json.php"); $json = new Services_JSON(); die($json->encode($arr)); } } } add_action('init','wp_json_check_url'); ?> fresh mozzarella – Inspired2cook.com

Archives: fresh mozzarella

Caprese BLT Sandwiches

October 7, 2010 | By andrea | 9 Comments | Filed in: Pork, Quick Cooking, Recipes, Sandwich.

Words cannot describe how much I love this sandwich…it’s one of my favorite sandwiches EVER! You may be thinking to yourself that it’s just a sandwich. But that’s where you’re wrong. It’s not just a sandwich…it’s a REALLY, REALLY GOOD SANDWICH: Ciabbata bread spread with a delicious basil mayonnaise and layered with ripe tomato slices, fresh mozzarella, • Read More »

Tags: , , , , , , , , , , , ,

Grilled Eggplant and Mozzarella Sandwiches

August 9, 2010 | By andrea | 3 Comments | Filed in: Grilling/BBQ, Italian, Quick Cooking, Recipes, Sandwich, Summer, Vegetarian.

Most people fall in one of two categories with eggplant: you either Like It or Hate It. I happen to be in the Like It category. Recently I was looking up new sandwich recipes and came across this “sandwich” using grilled eggplant. Not only are these Eggplant and Mozzarella Sandwiches beautiful, but they’re also delicious, incredibly easy • Read More »

Tags: , , , , , , , ,

Fresh Mozzarella and Tomato Crostini

August 5, 2010 | By andrea | 10 Comments | Filed in: Appetizer, Quick Cooking, Recipes, Sandwich, Snack, Vegetarian.

Words can not express how much I love this appetizer! In fact, it’s what I had for dinner last night. I didn’t intend to eat only the crostini for dinner but I ate several of them, which led to several more and before I knew it, I was full. This is one of those appetizers • Read More »

Tags: , , , , , , , ,