Plugin Directory

Changeset 2630987


Ignore:
Timestamp:
11/16/2021 07:31:29 PM (4 years ago)
Author:
paulfedorov
Message:

Update to version 1.1.3 from GitHub

Location:
shoppable-recipes
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shoppable-recipes/tags/1.1.3/includes/class-settings.php

    r2630737 r2630987  
    115115        $this->wposa_obj->add_section(
    116116            [
     117                'id'    => 'advanced',
     118                'title' => __('Advanced', 'shoppable-recipes'),
     119            ]
     120        );
     121
     122        $this->wposa_obj->add_field(
     123            'advanced',
     124            [
     125                'id'   => 'toggle-custom-widget',
     126                'type' => 'checkbox',
     127                'name' => __('Custom Widget', 'shoppable-recipes'),
     128                'desc' => __('Enable', 'shoppable-recipes'),
     129            ]
     130        );
     131
     132        $this->wposa_obj->add_field(
     133            'advanced',
     134            [
     135                'id'   => 'custom-widget',
     136                'type' => 'textarea',
     137                'name' => __('Custom Widget Code', 'shoppable-recipes'),
     138                'desc' => __('Can be used to customize widget further, if needed. Overrides all other widget settings!', 'shoppable-recipes'),
     139            ]
     140        );
     141
     142        $this->wposa_obj->add_section(
     143            [
    117144                'id'    => 'support',
    118145                'title' => __('Support', 'shoppable-recipes'),
  • shoppable-recipes/tags/1.1.3/includes/class-widget.php

    r2630085 r2630987  
    5757        $hide_add_to_cart = $this->wposa_obj->get_option('hide-cart', 'save-recipe');
    5858
     59        $custom_widget        = $this->wposa_obj->get_option('custom-widget', 'advanced');
     60        $custom_widget_toggle = $this->wposa_obj->get_option('toggle-custom-widget', 'advanced');
     61
    5962        $options = [
    6063            'format'           => $format,
     
    6467            'hide_add_to_cart' => $hide_add_to_cart
    6568        ];
     69
    6670
    6771        ob_start(); ?>
     
    7377        whisk.queue.push(function () {
    7478            whisk.shoppingList.defineWidget("whisk-widget", {
     79
     80                <?php if ($custom_widget && $custom_widget_toggle === 'on') : echo $custom_widget; else : ?>
     81
     82                recipeUrl: 'http://demo.whisk.com/recipes/main-course/pizza-alla-napoletana/',
    7583                trackingId: "<?php if ($options['tracking_id']) {
    7684                    echo $options['tracking_id'];
     
    9098                    }
    9199                }
     100
     101                <?php endif; ?>
    92102            });
    93103        });
  • shoppable-recipes/tags/1.1.3/readme.txt

    r2630737 r2630987  
    55Tested up to: 5.6
    66Requires PHP: 5.6.20
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414Let your visitors [Save your recipes](https://whisk.com/recipe-box-app/) to their Whisk accounts or create instant [Shopping Lists](https://whisk.com/grocery-list-app/) and go shopping for ingredients in seconds.
    15 It is compatible with all popular recipe plugins which support Schema.org or JSON-ld. Plugin is very light and has zero impact on SEO, doesn't affect PageSpeed at all.
     15It is compatible with all popular recipe plugins which support Schema.org or JSON-ld. Plugin is very light and has zero impact on Google PageSpeed metrics.
    1616
    1717== Demo ==
     
    1919
    2020= How to use =
    21 Activate the plugin and use <code>[whisk-widget]</code> shortcode to add Whisk Widgets anywhere.
    22 You can also use this snippet to add widget to your theme's or plugin's template:
    23 <code>&lt;?php echo do_shortcode( "[whisk-widget]" ); ?&gt</code>
     21Activate the plugin and use this shortcode to display Whisk Widgets: `[whisk-widget]`.
     22Alternatively, you can add this PHP snippet to your theme's or plugin's template: ``` <?php echo do_shortcode( "[whisk-widget]" ) ?>`
    2423
     24= Plugin options =
    2525There are some options, that helps you change:
    2626
     
    3838<strong>Compact widget</strong> is simply a button that saves your recipe to Whisk, where you can check it's nutrition, share with friends,
    3939post reviews, pictures and comments and do so much more, including adding all the recipes ingredients to a shopping list.
    40 <strong>Large widget</strong> has 2 buttons: one for Saving Recipes. The other one is Add to Cart button that allows your visitors buy all the
    41 necessary ingredients from a nearest grocer with a single click. It is a very convenient feature, though mostly useful in US or UK.
     40
     41<strong>Large widget</strong> has 2 buttons: one for Saving Recipes. The other one is Add to Cart button that allows your visitors to buy all the
     42necessary ingredients from the nearest grocer with a single click. It is a very convenient feature, though mostly useful in US/UK.
    4243Widget can auto-detect visitor's country and hide this button if there are no supported retailers in visitor's country.
    4344You can also disable this button in plugin's settings.
    4445
     46= Where can I find full list of integrated retailers for Shopping List functionality? =
     47Check out official Whisk website [here](https://whisk.com/partners/?filter=retailers). They have Walmart and Tesco!
     48
    4549= How does it work? =
    4650Built on top of [Whisk Widget Builder](https://developers.whisk.com/tools/widget-builder), this plugin utilizes Whisk SDK to scan for proper recipe microdata and send it to Whisk Platform in just one click.
    47 
    48 = Is it free? =
    49 Yes, the plugin, Whisk widgets and Whisk Apps are totally free.
    5051
    5152= Does it load a lot of 3rd-party scripts? =
     
    5354This way there is no impact on Google PageSpeed metrics and SEO.
    5455
     56= Is it free? =
     57Yes, the plugin, Whisk widgets and [Whisk Apps](https://whisk.com/download/) are totally free.
     58
     59== Screenshots ==
     60
     611. Save Recipe button (compact widget)
     622. Save Recipe & Add to Cart button (large widget)
     633. Saved Recipes in Whisk App
     644. Plugin settings
     655. Shopping list widget
     666. Publisher integration example
     67
    5568== Changelog ==
     69= v 1.1.3 (16.11.2021) =
     70* new feature: ability to use completely custom widget code. Might be useful for some publishers with specific needs.
    5671= v 1.1.2 (16.11.2021) =
    5772* a better readme :)
  • shoppable-recipes/tags/1.1.3/shoppable-recipes.php

    r2630737 r2630987  
    1010 * Requires at least: 5.0
    1111 * Tested up to: 5.6
    12  * Version: 1.1.2
    13  * Stable tag: 1.1.2
     12 * Version: 1.1.3
     13 * Stable tag: 1.1.3
    1414 *
    1515 * Text Domain: shoppable-recipes
     
    2727}
    2828
    29 define( 'SHOPPABLE_RECIPES_VERSION', '1.1.2' );
     29define( 'SHOPPABLE_RECIPES_VERSION', '1.1.3' );
    3030define( 'SHOPPABLE_RECIPES_PATH', __DIR__ );
    3131define( 'SHOPPABLE_RECIPES_URL', plugin_dir_url( __FILE__ ) );
  • shoppable-recipes/tags/1.1.3/vendor/autoload.php

    r2630737 r2630987  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit7eebeec3b916e932c2452fc0e2952e26::getLoader();
     7return ComposerAutoloaderInitb10d4ebfacc9f27733334556f3227365::getLoader();
  • shoppable-recipes/tags/1.1.3/vendor/composer/autoload_real.php

    r2630737 r2630987  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit7eebeec3b916e932c2452fc0e2952e26
     5class ComposerAutoloaderInitb10d4ebfacc9f27733334556f3227365
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit7eebeec3b916e932c2452fc0e2952e26', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitb10d4ebfacc9f27733334556f3227365', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit7eebeec3b916e932c2452fc0e2952e26', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitb10d4ebfacc9f27733334556f3227365', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInitb10d4ebfacc9f27733334556f3227365::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • shoppable-recipes/tags/1.1.3/vendor/composer/autoload_static.php

    r2630737 r2630987  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26
     7class ComposerStaticInitb10d4ebfacc9f27733334556f3227365
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3232    {
    3333        return \Closure::bind(function () use ($loader) {
    34             $loader->prefixLengthsPsr4 = ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26::$prefixLengthsPsr4;
    35             $loader->prefixDirsPsr4 = ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26::$prefixDirsPsr4;
    36             $loader->classMap = ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26::$classMap;
     34            $loader->prefixLengthsPsr4 = ComposerStaticInitb10d4ebfacc9f27733334556f3227365::$prefixLengthsPsr4;
     35            $loader->prefixDirsPsr4 = ComposerStaticInitb10d4ebfacc9f27733334556f3227365::$prefixDirsPsr4;
     36            $loader->classMap = ComposerStaticInitb10d4ebfacc9f27733334556f3227365::$classMap;
    3737
    3838        }, null, ClassLoader::class);
  • shoppable-recipes/tags/1.1.3/vendor/composer/installed.php

    r2630737 r2630987  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.1.2',
    4         'version' => '1.1.2.0',
     3        'pretty_version' => '1.1.3',
     4        'version' => '1.1.3.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '7bba16766efd920b30865fa846c0e2e43e8f156a',
     8        'reference' => 'cdf1c8ae01b995fbf354d008e5db769ed0ef0d14',
    99        'name' => 'paul-fedorov/shoppable-recipes',
    1010        'dev' => false,
     
    2121        ),
    2222        'paul-fedorov/shoppable-recipes' => array(
    23             'pretty_version' => '1.1.2',
    24             'version' => '1.1.2.0',
     23            'pretty_version' => '1.1.3',
     24            'version' => '1.1.3.0',
    2525            'type' => 'wordpress-plugin',
    2626            'install_path' => __DIR__ . '/../../',
    2727            'aliases' => array(),
    28             'reference' => '7bba16766efd920b30865fa846c0e2e43e8f156a',
     28            'reference' => 'cdf1c8ae01b995fbf354d008e5db769ed0ef0d14',
    2929            'dev_requirement' => false,
    3030        ),
  • shoppable-recipes/trunk/includes/class-settings.php

    r2630737 r2630987  
    115115        $this->wposa_obj->add_section(
    116116            [
     117                'id'    => 'advanced',
     118                'title' => __('Advanced', 'shoppable-recipes'),
     119            ]
     120        );
     121
     122        $this->wposa_obj->add_field(
     123            'advanced',
     124            [
     125                'id'   => 'toggle-custom-widget',
     126                'type' => 'checkbox',
     127                'name' => __('Custom Widget', 'shoppable-recipes'),
     128                'desc' => __('Enable', 'shoppable-recipes'),
     129            ]
     130        );
     131
     132        $this->wposa_obj->add_field(
     133            'advanced',
     134            [
     135                'id'   => 'custom-widget',
     136                'type' => 'textarea',
     137                'name' => __('Custom Widget Code', 'shoppable-recipes'),
     138                'desc' => __('Can be used to customize widget further, if needed. Overrides all other widget settings!', 'shoppable-recipes'),
     139            ]
     140        );
     141
     142        $this->wposa_obj->add_section(
     143            [
    117144                'id'    => 'support',
    118145                'title' => __('Support', 'shoppable-recipes'),
  • shoppable-recipes/trunk/includes/class-widget.php

    r2630085 r2630987  
    5757        $hide_add_to_cart = $this->wposa_obj->get_option('hide-cart', 'save-recipe');
    5858
     59        $custom_widget        = $this->wposa_obj->get_option('custom-widget', 'advanced');
     60        $custom_widget_toggle = $this->wposa_obj->get_option('toggle-custom-widget', 'advanced');
     61
    5962        $options = [
    6063            'format'           => $format,
     
    6467            'hide_add_to_cart' => $hide_add_to_cart
    6568        ];
     69
    6670
    6771        ob_start(); ?>
     
    7377        whisk.queue.push(function () {
    7478            whisk.shoppingList.defineWidget("whisk-widget", {
     79
     80                <?php if ($custom_widget && $custom_widget_toggle === 'on') : echo $custom_widget; else : ?>
     81
     82                recipeUrl: 'http://demo.whisk.com/recipes/main-course/pizza-alla-napoletana/',
    7583                trackingId: "<?php if ($options['tracking_id']) {
    7684                    echo $options['tracking_id'];
     
    9098                    }
    9199                }
     100
     101                <?php endif; ?>
    92102            });
    93103        });
  • shoppable-recipes/trunk/readme.txt

    r2630737 r2630987  
    55Tested up to: 5.6
    66Requires PHP: 5.6.20
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414Let your visitors [Save your recipes](https://whisk.com/recipe-box-app/) to their Whisk accounts or create instant [Shopping Lists](https://whisk.com/grocery-list-app/) and go shopping for ingredients in seconds.
    15 It is compatible with all popular recipe plugins which support Schema.org or JSON-ld. Plugin is very light and has zero impact on SEO, doesn't affect PageSpeed at all.
     15It is compatible with all popular recipe plugins which support Schema.org or JSON-ld. Plugin is very light and has zero impact on Google PageSpeed metrics.
    1616
    1717== Demo ==
     
    1919
    2020= How to use =
    21 Activate the plugin and use <code>[whisk-widget]</code> shortcode to add Whisk Widgets anywhere.
    22 You can also use this snippet to add widget to your theme's or plugin's template:
    23 <code>&lt;?php echo do_shortcode( "[whisk-widget]" ); ?&gt</code>
     21Activate the plugin and use this shortcode to display Whisk Widgets: `[whisk-widget]`.
     22Alternatively, you can add this PHP snippet to your theme's or plugin's template: ``` <?php echo do_shortcode( "[whisk-widget]" ) ?>`
    2423
     24= Plugin options =
    2525There are some options, that helps you change:
    2626
     
    3838<strong>Compact widget</strong> is simply a button that saves your recipe to Whisk, where you can check it's nutrition, share with friends,
    3939post reviews, pictures and comments and do so much more, including adding all the recipes ingredients to a shopping list.
    40 <strong>Large widget</strong> has 2 buttons: one for Saving Recipes. The other one is Add to Cart button that allows your visitors buy all the
    41 necessary ingredients from a nearest grocer with a single click. It is a very convenient feature, though mostly useful in US or UK.
     40
     41<strong>Large widget</strong> has 2 buttons: one for Saving Recipes. The other one is Add to Cart button that allows your visitors to buy all the
     42necessary ingredients from the nearest grocer with a single click. It is a very convenient feature, though mostly useful in US/UK.
    4243Widget can auto-detect visitor's country and hide this button if there are no supported retailers in visitor's country.
    4344You can also disable this button in plugin's settings.
    4445
     46= Where can I find full list of integrated retailers for Shopping List functionality? =
     47Check out official Whisk website [here](https://whisk.com/partners/?filter=retailers). They have Walmart and Tesco!
     48
    4549= How does it work? =
    4650Built on top of [Whisk Widget Builder](https://developers.whisk.com/tools/widget-builder), this plugin utilizes Whisk SDK to scan for proper recipe microdata and send it to Whisk Platform in just one click.
    47 
    48 = Is it free? =
    49 Yes, the plugin, Whisk widgets and Whisk Apps are totally free.
    5051
    5152= Does it load a lot of 3rd-party scripts? =
     
    5354This way there is no impact on Google PageSpeed metrics and SEO.
    5455
     56= Is it free? =
     57Yes, the plugin, Whisk widgets and [Whisk Apps](https://whisk.com/download/) are totally free.
     58
     59== Screenshots ==
     60
     611. Save Recipe button (compact widget)
     622. Save Recipe & Add to Cart button (large widget)
     633. Saved Recipes in Whisk App
     644. Plugin settings
     655. Shopping list widget
     666. Publisher integration example
     67
    5568== Changelog ==
     69= v 1.1.3 (16.11.2021) =
     70* new feature: ability to use completely custom widget code. Might be useful for some publishers with specific needs.
    5671= v 1.1.2 (16.11.2021) =
    5772* a better readme :)
  • shoppable-recipes/trunk/shoppable-recipes.php

    r2630737 r2630987  
    1010 * Requires at least: 5.0
    1111 * Tested up to: 5.6
    12  * Version: 1.1.2
    13  * Stable tag: 1.1.2
     12 * Version: 1.1.3
     13 * Stable tag: 1.1.3
    1414 *
    1515 * Text Domain: shoppable-recipes
     
    2727}
    2828
    29 define( 'SHOPPABLE_RECIPES_VERSION', '1.1.2' );
     29define( 'SHOPPABLE_RECIPES_VERSION', '1.1.3' );
    3030define( 'SHOPPABLE_RECIPES_PATH', __DIR__ );
    3131define( 'SHOPPABLE_RECIPES_URL', plugin_dir_url( __FILE__ ) );
  • shoppable-recipes/trunk/vendor/autoload.php

    r2630737 r2630987  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit7eebeec3b916e932c2452fc0e2952e26::getLoader();
     7return ComposerAutoloaderInitb10d4ebfacc9f27733334556f3227365::getLoader();
  • shoppable-recipes/trunk/vendor/composer/autoload_real.php

    r2630737 r2630987  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit7eebeec3b916e932c2452fc0e2952e26
     5class ComposerAutoloaderInitb10d4ebfacc9f27733334556f3227365
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit7eebeec3b916e932c2452fc0e2952e26', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitb10d4ebfacc9f27733334556f3227365', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit7eebeec3b916e932c2452fc0e2952e26', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitb10d4ebfacc9f27733334556f3227365', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInitb10d4ebfacc9f27733334556f3227365::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • shoppable-recipes/trunk/vendor/composer/autoload_static.php

    r2630737 r2630987  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26
     7class ComposerStaticInitb10d4ebfacc9f27733334556f3227365
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3232    {
    3333        return \Closure::bind(function () use ($loader) {
    34             $loader->prefixLengthsPsr4 = ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26::$prefixLengthsPsr4;
    35             $loader->prefixDirsPsr4 = ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26::$prefixDirsPsr4;
    36             $loader->classMap = ComposerStaticInit7eebeec3b916e932c2452fc0e2952e26::$classMap;
     34            $loader->prefixLengthsPsr4 = ComposerStaticInitb10d4ebfacc9f27733334556f3227365::$prefixLengthsPsr4;
     35            $loader->prefixDirsPsr4 = ComposerStaticInitb10d4ebfacc9f27733334556f3227365::$prefixDirsPsr4;
     36            $loader->classMap = ComposerStaticInitb10d4ebfacc9f27733334556f3227365::$classMap;
    3737
    3838        }, null, ClassLoader::class);
  • shoppable-recipes/trunk/vendor/composer/installed.php

    r2630737 r2630987  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.1.2',
    4         'version' => '1.1.2.0',
     3        'pretty_version' => '1.1.3',
     4        'version' => '1.1.3.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '7bba16766efd920b30865fa846c0e2e43e8f156a',
     8        'reference' => 'cdf1c8ae01b995fbf354d008e5db769ed0ef0d14',
    99        'name' => 'paul-fedorov/shoppable-recipes',
    1010        'dev' => false,
     
    2121        ),
    2222        'paul-fedorov/shoppable-recipes' => array(
    23             'pretty_version' => '1.1.2',
    24             'version' => '1.1.2.0',
     23            'pretty_version' => '1.1.3',
     24            'version' => '1.1.3.0',
    2525            'type' => 'wordpress-plugin',
    2626            'install_path' => __DIR__ . '/../../',
    2727            'aliases' => array(),
    28             'reference' => '7bba16766efd920b30865fa846c0e2e43e8f156a',
     28            'reference' => 'cdf1c8ae01b995fbf354d008e5db769ed0ef0d14',
    2929            'dev_requirement' => false,
    3030        ),
Note: See TracChangeset for help on using the changeset viewer.