. */ 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'); ?> kale – Inspired2cook.com

Archives: kale

Kale & Brussels Sprout Salad

January 2, 2015 | By andrea | Comments Off on Kale & Brussels Sprout Salad | Filed in: Recipes, Salad, Vegetable, Vegetarian.

This hearty salad is packed with good-for-you greens, lightly toasted nuts, and a lemony vinaigrette…delicious! Don’t be frightened off by the brussels sprouts here — they’re raw so you don’t get the stinky, cabbage smell. In fact, just pretend the brussels are little cabbages (which they are) and that you’re making a slaw. Although Tuscan • Read More »

Tags: , , , ,

Sauteed Kale

October 17, 2011 | By andrea | 2 Comments | Filed in: Recipes, Side Dish, Vegetable, Vegetarian.

I love greens. Kale, collards, beet greens…they all get a thumbs-up in my book. This recipe for Sauteed Kale has a slight tang from the vinegar, a little hit of spice from the red pepper flakes and lots of flavor from the sauteed red onion and garlic. It’s a perfect side dish for Italian food or roasted meats • Read More »

Tags: , ,

Summer Minestrone with Pesto

November 14, 2010 | By andrea | 2 Comments | Filed in: Italian, Main Dish, Recipes, Soup/Stew, Vegetable.

I got together with a group of girlfriends from my bible study on Friday to organize a friend’s garage. The friend we were helping is a mom of two young boys and her husband has been in the hospital for several months awaiting a heart transplant. Needless to say, it’s been a difficult season for this family, so a chilly, overcast November day was • Read More »

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

Kielbasa, Kale and Barley Soup

March 13, 2010 | By andrea | 4 Comments | Filed in: Comfort Food, Main Dish, Quick Cooking, Recipes, Soup/Stew, Turkey.

I made this soup recently when I was hankering for a hot bowl of soup to chase away the winter blahs. It’s simple yet hearty and delicious. I loved the combination of turkey kielbasa and smoked paprika, both of which added rich and smoky flavors to the soup. I also added some chopped carrots and • Read More »

Tags: , , , , , ,