Plugin Directory

Changeset 1532212


Ignore:
Timestamp:
11/11/2016 10:01:56 AM (9 years ago)
Author:
tero2000
Message:

More information in the readme and two new images added

Location:
give-me-recipes
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • give-me-recipes/trunk/readme.txt

    r1532173 r1532212  
    22Contributors: tero2000
    33Donate link: startwordpressonline.net
    4 Tags: widgets, food, recipes, ruoka, resepti, search food, cooking
     4Tags: widgets, food, recipes, ruoka, resepti, search food, cooking, food recipes, cocktails, drinks
    55Requires at least: 3.3
    66Tested up to: 4.6
     
    1313== Description ==
    1414
    15 This plugin uses Recipe Puppy API to get recipes. User can choose the ingredients like tomato, garlic etc. and / or search with a type of food as well like pasta for example. You can also use the plugin to search for drinks.
     15This plugin uses Recipe Puppy API to get food recipes. User can choose the ingredients like tomato, garlic etc. and / or search with a type of food as well like pasta for example. You can also use the plugin to search for drinks like cocktails for example. So instead of just looking for food recipes you can also search for new ideas have to mix proper cocktails like mojitos for example. With the drinks the plugins works the same as well as it works with food recipes.
    1616
    17 To use the Recipe Puppy you don't need to have an API key at the moment.
     17To use the Recipe Puppy you don't need to have an API key at the moment. For more information concerning the API visit www.recipepuppy.com
    1818
    19 Results will display after the search is done and to access the full recipe user is provided with a link to it.
     19Results will be displayed after the search for food recipes is done. The result will display the link to access  the full recipe alongside image of the recipes if there is one.
     20
     21This plugin is a really good to add on food related websites like food bloggers for example as it creates additional value for the visitors.
    2022
    2123== Installation ==
    2224
    23 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
     251. Upload `plugin-name.php` to the `/wp-content/plugins/` directory or install through the Plugins menu
    24262. Activate the plugin through the 'Plugins' menu in WordPress
    25273. Place the plugin in footer or sidebar.
     
    2729== Frequently asked questions ==
    2830
    29 = A question that someone might have =
     31= What languages can I use when searchin recipes? =
     32
     33At the moment the plugins works in English. As it uses the API provided by recipepuppy, you can look if they are thinking of adding another language in the future.
     34
     35= Do I have to use both ingredients and search fields? =
     36
     37No, you don't have to use both fields to search for food recipes as you can use just one as well. Even better, leave both empty and get random results!
     38
     39= Is Get Recipes free to use? =
     40
     41Yes, this plugin is free to use. 
     42
     43== Changelog ==
     44
     45= 1.0 =
    3046
    3147== Screenshots ==
    3248
    33 1. Adding Food Recipes widget to the sidebar
     491. Adding Food Recipes widget to the sidebar in Dashboard -> Appearance -> Widgets
     50
     512. The plugin showing results after search.
    3452
    3553== Changelog ==
  • give-me-recipes/trunk/ts-give-me-recipes.js

    r1531463 r1532212  
     1/*
     2* Give me recipes JS
     3* Using ajax so there is no page refresh
     4*/
    15jQuery(document).ready(function(){
     6
     7// When the search button is pressed.
    28 jQuery( "#give-me-recipe" ).click(function( event ) {
     9
     10  // Prevent the default button action.
    311   event.preventDefault();
    412
     13  // Get information from the form we're submitting.
    514   var form = jQuery('#recipes-form');
    615        formsAction = form.attr( 'action' );
    7    jQuery(form).fadeOut(300);
     16   jQuery(form).fadeOut(300);
     17
     18   // Add the nice .gif thingy so it looks like we're loading :)
     19    // Using timeout function here so it happens smoothly
    820     setTimeout(function(){ 
    921      jQuery('#the-recipes').append('<li><img src="'+wp_urls.plugin_url+'/img/clock.gif"></li><li>Searching recipes ...</li>');
    1022      }, 400);
    1123
     24  // Get values from the form fields.
    1225    var ingredients = jQuery('#ingredients').val();
    1326    var query = jQuery('#query').val();
     27
     28    // Submit the information
    1429    jQuery.ajax({
    1530        type:"POST",
     
    2237        },
    2338        success:function(response){
    24 
     39        // Getting the response AKA the recipes.
    2540          var obj = response.results;
     41        // Set timeout funtion again here so the loading gif is displayed a bit longer.
    2642          setTimeout(function(){ 
    2743           jQuery('#the-recipes').empty();
  • give-me-recipes/trunk/ts-give-me-recipes.php

    r1531500 r1532212  
    1212
    1313if ( ! defined( 'ABSPATH' ) ) exit;
    14 // Load Styles
     14// Load Styles for the admin, not actually necessary.
    1515function foodrecipes_backend_styles() {
    1616
     
    2020add_action( 'admin_head', 'foodrecipes_backend_styles' );
    2121
    22 // Ajax function when sending the form
     22// Ajax function when sending the form this and the js file are the ones that do the magic.
    2323function recipe_ajax_request() {
    2424 $i = $_REQUEST["ingredients"];
     
    3434
    3535
     36// Loading the js file and the css file.
    3637function foodrecipes_frontend_scripts_and_styles() {
    3738
     
    6667
    6768 /**
    68   * Front-end display of widget.
     69  * Front-end display of widget. What will be put to the sidebar.
    6970  *
    7071  * @see WP_Widget::widget()
Note: See TracChangeset for help on using the changeset viewer.