add_image_size('food_home_banner', 960, 400, true);
add_image_size('food_home_panels', 310, 210, true);
add_image_size('food_home_small_panel', 310, 149, true);
add_image_size('recipe-full', 330, 500, true);
add_image_size('recipe-thumbnail', 110, 110, true);
// Youtube Link
function youtubeID($idIn) {
if(strpos($idIn,'v=')!=false) {
$idIn = substr($idIn,strpos($idIn,'v=')+2);
}
return $idIn;
}
function youtubeLink($linkIn) {
return 'http://www.youtube.com/embed/'.youtubeID($linkIn);
}
add_action('admin_menu', 'my_remove_menu_pages_lad');
function my_remove_menu_pages_lad() {
remove_menu_page('edit.php?post_type=job');
remove_menu_page('edit.php?post_type=store');
}
// Recipes
add_action( 'init', 'register_cpt_recipe' );
function register_cpt_recipe() {
$labels = array(
'name' => _x( 'Recipes', 'recipes'),
'singular_name' => _x( 'Recipe', 'recipes' ),
'add_new' => _x( 'Add New', 'recipes' ),
'add_new_item' => _x( 'Add New Recipe', 'recipes' ),
'edit_item' => _x( 'Edit Recipe', 'recipes' ),
'new_item' => _x( 'New Recipe', 'recipes' ),
'view_item' => _x( 'View Recipe', 'recipes' ),
'search_items' => _x( 'Search Recipes', 'recipes' ),
'not_found' => _x( 'No recipe found', 'recipes' ),
'not_found_in_trash' => _x( 'No recipe found in Trash', 'recipes' ),
'parent_item_colon' => _x( 'Parent recipe:', 'recipes' ),
'menu_name' => _x( 'Recipes', 'recipes' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'supports' => array('title','thumbnail'),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 11,
'show_in_nav_menus' => false,
'publicly_queryable' => true,
'exclude_from_search' => false,
'has_archive' => true,
'query_var' => true,
'can_export' => true,
'rewrite' => true,
'capability_type' => 'post'
);
register_post_type( 'recipes', $args );
}
?>
Congratulations to our ‘Swipe and Win’ner! | Lakes and Dales
/*
*/ ?>
Skip to content
Congratulations to our ‘Swipe and Win’ner!
if($postType!='noticeboard') { ?>
} ?>
15 May 2015
Congratulations to Sandra Evans from Ainstable, who has won £250 of shopping vouchers in our Lakes & Dales co-operative ‘Swipe & Win’ competition!
Sandra, who has shopped in our Lazonby store for over 12 years, told us: “I’m delighted to have won the competition. The change to Lakes & Dales co-operative has been a fantastic one, I really enjoy shopping in the new look store and can’t wait to spend my vouchers!”.
if($postType!='noticeboard') { ?>
} ?>
Go Back
/* */ ?>