Plugin Directory

Changeset 1900982


Ignore:
Timestamp:
06/29/2018 07:59:12 AM (8 years ago)
Author:
mythemes
Message:

Move the gourmand-dishes.php from Gourmand WordPress Theme to Gourmand Light Plugin

Location:
gourmand-light/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • gourmand-light/trunk/gourmand-light.php

    r1900066 r1900982  
    44    Plugin URI: http://mythem.es/item/gourmand/
    55    Description: This is a GPL 2 WordPress plugin. This plugin extend Gourmand free WordPress theme Core Features with many extra features and also Front Page Custom Sections.
    6     Version: 0.0.8
     6    Version: 0.0.9
    77    Author: myThem.es
    88    Author URI: http://mythem.es/
  • gourmand-light/trunk/hooks/main.php

    r1892718 r1900982  
    4949     */
    5050
    51     //add_action( 'admin_enqueue_scripts', array( 'gourmand_light_scripts', 'backend' ) );
     51    add_action( 'admin_enqueue_scripts', array( 'gourmand_light_scripts', 'backend' ) );
    5252    add_action( 'wp_enqueue_scripts', array( 'gourmand_light_scripts', 'frontend' ), 0 );
    5353?>
  • gourmand-light/trunk/includes/gourmand-light-scripts.php

    r1892718 r1900982  
    2424            public static function backend( $hook )
    2525            {
    26                 if( $hook == 'appearance_page_gourmand-faq' || $hook == 'post-new.php' || $hook == 'post.php' ){
    27                     wp_register_script( 'gourmand-light-admin-dishes', gourmand_light::plugin_uri() . '/assets/theme/js/dishes.js', array( 'gourmand-admin-dishes' ), '0.0.1', true );
     26                global $post;
     27
     28                $post_type = isset( $_GET[ 'post_type' ] ) ? $_GET[ 'post_type' ] : null;
     29                $post_type = isset( $post -> post_type ) ? $post -> post_type : $post_type;
     30
     31                if( $post_type == 'gourmand-food-menu' ){
     32                    wp_register_script( 'gourmand-light-admin-dishes',              gourmand_light::plugin_uri() . '/assets/theme/js/dishes.js', array( 'gourmand-admin-uploader' ), '0.0.1', true );
     33                    wp_localize_script( 'gourmand-light-admin-dishes', 'gourmand_dishes', gourmand_light_dishes::labels() );
    2834                    wp_enqueue_script( 'gourmand-light-admin-dishes' );
     35
     36                    wp_register_style( 'gourmand-light-admin-dishes',               gourmand_light::plugin_uri() . '/assets/theme/css/dishes.min.css', null , '0.0.1' );
     37                    wp_enqueue_style( 'gourmand-light-admin-dishes' );
    2938                }
    3039            }
  • gourmand-light/trunk/languages/gourmand-light.pot

    r1900066 r1900982  
    44"Project-Id-Version: Gourmand Light\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2018-06-21 11:22+0000\n"
     6"POT-Creation-Date: 2018-06-29 07:55+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    2424msgstr ""
    2525
     26#: includes/gourmand-light-dishes.php:59
     27#, php-format
     28msgid "%1$s Add New Dish"
     29msgstr ""
     30
     31#: includes/gourmand-light-dishes.php:49
     32#, php-format
     33msgid "%1$s Add New Section"
     34msgstr ""
     35
     36#: includes/gourmand-light-dishes.php:53
     37msgid "08:00"
     38msgstr ""
     39
    2640#: includes/customize/partials/gourmand-light-customize-testimonials-partial.php:119
    2741msgid "1 Star"
     42msgstr ""
     43
     44#: includes/gourmand-light-dishes.php:55
     45msgid "11:00"
    2846msgstr ""
    2947
     
    199217#: includes/customize/partials/gourmand-light-customize-partial.php:452
    200218msgid "Background Video"
     219msgstr ""
     220
     221#: includes/gourmand-light-dishes.php:47
     222msgid "Before delete this Dish please confirm the Action!"
     223msgstr ""
     224
     225#: includes/gourmand-light-dishes.php:46
     226msgid "Before delete this Section please confirm the Action!"
    201227msgstr ""
    202228
     
    385411msgstr ""
    386412
    387 #: settings/customize/content.php:36
    388 msgid "Content (Front Page)"
    389 msgstr ""
    390 
    391413#: configs/customize/content/testimonials.php:186
    392414msgid "Cras pulvinar, elit at facilisis dapibus, magna felis"
     
    405427msgstr ""
    406428
    407 #: settings/customize/content.php:60
    408 msgid "Custom Content Sections"
    409 msgstr ""
    410 
    411429#: configs/custom-meta-boxes.php:15
    412430msgid "Custom Header"
     
    415433#: settings/custom-meta-boxes.php:180 settings/custom-meta-boxes.php:183
    416434msgid "Custom Header Image"
     435msgstr ""
     436
     437#: settings/customize/content.php:60
     438msgid "Custom Sections"
     439msgstr ""
     440
     441#: includes/gourmand-light-dishes.php:66
     442msgid "Daily Dish"
    417443msgstr ""
    418444
     
    439465#: includes/customize/partials/gourmand-light-customize-partial.php:305
    440466msgid "Default"
     467msgstr ""
     468
     469#: includes/gourmand-light-dishes.php:58
     470msgid "Delete"
    441471msgstr ""
    442472
     
    484514msgstr ""
    485515
     516#: includes/gourmand-light-dishes.php:65
     517msgid "Dish Description .."
     518msgstr ""
     519
     520#: includes/gourmand-light-dishes.php:62
     521msgid "Dish Title"
     522msgstr ""
     523
    486524#: configs/custom-meta-boxes.php:26
    487525msgid "Dishes Manager"
     
    868906msgstr ""
    869907
     908#: includes/gourmand-light-dishes.php:54
     909msgid "End Time"
     910msgstr ""
     911
    870912#: settings/customize/comments.php:47
    871913msgid "Facebook Application ID"
     
    941983#: includes/customize/partials/gourmand-light-customize-header-partial.php:112
    942984msgid "Front Page"
     985msgstr ""
     986
     987#: settings/customize/content.php:36
     988msgid "Front Page Sections"
    943989msgstr ""
    944990
     
    11801226msgstr ""
    11811227
     1228#: includes/gourmand-light-dishes.php:57
     1229msgid "List / Edit"
     1230msgstr ""
     1231
    11821232#: includes/customize/partials/gourmand-light-customize-header-partial.php:502
    11831233msgid "Logo"
     
    13521402#: includes/customize/partials/gourmand-light-customize-partial.php:221
    13531403msgid "Open Url in new Window"
     1404msgstr ""
     1405
     1406#: includes/gourmand-light-dishes.php:56
     1407msgid "Or display the content from the field below"
    13541408msgstr ""
    13551409
     
    14501504msgstr ""
    14511505
     1506#: includes/gourmand-light-dishes.php:64
     1507msgid "Price"
     1508msgstr ""
     1509
    14521510#: includes/customize/partials/gourmand-light-customize-testimonials-partial.php:116
    14531511msgid "Rank"
     
    15221580#: includes/customize/partials/gourmand-light-customize-partial.php:575
    15231581msgid "Section space between Header and Content"
     1582msgstr ""
     1583
     1584#: includes/gourmand-light-dishes.php:51
     1585msgid "Section Title"
    15241586msgstr ""
    15251587
     
    16831745#: includes/customize/partials/gourmand-light-customize-partial.php:765
    16841746msgid "Squared"
     1747msgstr ""
     1748
     1749#: includes/gourmand-light-dishes.php:52
     1750msgid "Start Time"
    16851751msgstr ""
    16861752
  • gourmand-light/trunk/readme.txt

    r1900066 r1900982  
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4LFP5SLC6PV98
    44Tags: gourmand WordPress theme, food business, food menus, front page custom sections, social sharing links, custom header, image header, video header, google map header, extra features, business tools, custom comments, facebook comments, disqus comments, about us section, call action section, chef menu section, contact section, features section, latest news section, reservation section, services section, testimonials section
    5 Requires PHP: 5.3.6
     5Requires PHP: 5.3
    66Requires at least: 4.6
    77Tested up to: 4.9
    8 Stable tag: 0.0.8
     8Stable tag: 0.0.9
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3737
    3838== Changelog ==
     39
     40= 0.0.9 =
     41* Moved the Food Menu Feature from Gourmand Theme to plugin
    3942
    4043= 0.0.8 =
  • gourmand-light/trunk/settings/custom-meta-boxes.php

    r1892718 r1900982  
    471471                }
    472472
    473                 gourmand_meta::add( $post_id, 'gourmand-dishes', json_encode( $data ) );
     473                gourmand_meta::set( $post_id, 'gourmand-dishes', json_encode( $data ) );
    474474            }
    475475
     
    487487            $dishes = array();
    488488
    489         new gourmand_dishes( $dishes );
     489        new gourmand_light_dishes( $dishes );
    490490    }
    491491?>
  • gourmand-light/trunk/templates/content/sections/chef-menu.php

    r1892718 r1900982  
    3434                        if( is_array( $food_menu ) && !empty( $food_menu ) ){
    3535
    36                             $count = gourmand_dishes::count_sections( $food_menu );
     36                            $count = gourmand_light_dishes::count_sections( $food_menu );
    3737
    3838                            $cols = 'cols-3';
Note: See TracChangeset for help on using the changeset viewer.