Changeset 1900982
- Timestamp:
- 06/29/2018 07:59:12 AM (8 years ago)
- Location:
- gourmand-light/trunk
- Files:
-
- 7 edited
-
gourmand-light.php (modified) (1 diff)
-
hooks/main.php (modified) (1 diff)
-
includes/gourmand-light-scripts.php (modified) (1 diff)
-
languages/gourmand-light.pot (modified) (15 diffs)
-
readme.txt (modified) (2 diffs)
-
settings/custom-meta-boxes.php (modified) (2 diffs)
-
templates/content/sections/chef-menu.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gourmand-light/trunk/gourmand-light.php
r1900066 r1900982 4 4 Plugin URI: http://mythem.es/item/gourmand/ 5 5 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. 86 Version: 0.0.9 7 7 Author: myThem.es 8 8 Author URI: http://mythem.es/ -
gourmand-light/trunk/hooks/main.php
r1892718 r1900982 49 49 */ 50 50 51 //add_action( 'admin_enqueue_scripts', array( 'gourmand_light_scripts', 'backend' ) );51 add_action( 'admin_enqueue_scripts', array( 'gourmand_light_scripts', 'backend' ) ); 52 52 add_action( 'wp_enqueue_scripts', array( 'gourmand_light_scripts', 'frontend' ), 0 ); 53 53 ?> -
gourmand-light/trunk/includes/gourmand-light-scripts.php
r1892718 r1900982 24 24 public static function backend( $hook ) 25 25 { 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() ); 28 34 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' ); 29 38 } 30 39 } -
gourmand-light/trunk/languages/gourmand-light.pot
r1900066 r1900982 4 4 "Project-Id-Version: Gourmand Light\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2018-06-2 1 11:22+0000\n"6 "POT-Creation-Date: 2018-06-29 07:55+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 24 24 msgstr "" 25 25 26 #: includes/gourmand-light-dishes.php:59 27 #, php-format 28 msgid "%1$s Add New Dish" 29 msgstr "" 30 31 #: includes/gourmand-light-dishes.php:49 32 #, php-format 33 msgid "%1$s Add New Section" 34 msgstr "" 35 36 #: includes/gourmand-light-dishes.php:53 37 msgid "08:00" 38 msgstr "" 39 26 40 #: includes/customize/partials/gourmand-light-customize-testimonials-partial.php:119 27 41 msgid "1 Star" 42 msgstr "" 43 44 #: includes/gourmand-light-dishes.php:55 45 msgid "11:00" 28 46 msgstr "" 29 47 … … 199 217 #: includes/customize/partials/gourmand-light-customize-partial.php:452 200 218 msgid "Background Video" 219 msgstr "" 220 221 #: includes/gourmand-light-dishes.php:47 222 msgid "Before delete this Dish please confirm the Action!" 223 msgstr "" 224 225 #: includes/gourmand-light-dishes.php:46 226 msgid "Before delete this Section please confirm the Action!" 201 227 msgstr "" 202 228 … … 385 411 msgstr "" 386 412 387 #: settings/customize/content.php:36388 msgid "Content (Front Page)"389 msgstr ""390 391 413 #: configs/customize/content/testimonials.php:186 392 414 msgid "Cras pulvinar, elit at facilisis dapibus, magna felis" … … 405 427 msgstr "" 406 428 407 #: settings/customize/content.php:60408 msgid "Custom Content Sections"409 msgstr ""410 411 429 #: configs/custom-meta-boxes.php:15 412 430 msgid "Custom Header" … … 415 433 #: settings/custom-meta-boxes.php:180 settings/custom-meta-boxes.php:183 416 434 msgid "Custom Header Image" 435 msgstr "" 436 437 #: settings/customize/content.php:60 438 msgid "Custom Sections" 439 msgstr "" 440 441 #: includes/gourmand-light-dishes.php:66 442 msgid "Daily Dish" 417 443 msgstr "" 418 444 … … 439 465 #: includes/customize/partials/gourmand-light-customize-partial.php:305 440 466 msgid "Default" 467 msgstr "" 468 469 #: includes/gourmand-light-dishes.php:58 470 msgid "Delete" 441 471 msgstr "" 442 472 … … 484 514 msgstr "" 485 515 516 #: includes/gourmand-light-dishes.php:65 517 msgid "Dish Description .." 518 msgstr "" 519 520 #: includes/gourmand-light-dishes.php:62 521 msgid "Dish Title" 522 msgstr "" 523 486 524 #: configs/custom-meta-boxes.php:26 487 525 msgid "Dishes Manager" … … 868 906 msgstr "" 869 907 908 #: includes/gourmand-light-dishes.php:54 909 msgid "End Time" 910 msgstr "" 911 870 912 #: settings/customize/comments.php:47 871 913 msgid "Facebook Application ID" … … 941 983 #: includes/customize/partials/gourmand-light-customize-header-partial.php:112 942 984 msgid "Front Page" 985 msgstr "" 986 987 #: settings/customize/content.php:36 988 msgid "Front Page Sections" 943 989 msgstr "" 944 990 … … 1180 1226 msgstr "" 1181 1227 1228 #: includes/gourmand-light-dishes.php:57 1229 msgid "List / Edit" 1230 msgstr "" 1231 1182 1232 #: includes/customize/partials/gourmand-light-customize-header-partial.php:502 1183 1233 msgid "Logo" … … 1352 1402 #: includes/customize/partials/gourmand-light-customize-partial.php:221 1353 1403 msgid "Open Url in new Window" 1404 msgstr "" 1405 1406 #: includes/gourmand-light-dishes.php:56 1407 msgid "Or display the content from the field below" 1354 1408 msgstr "" 1355 1409 … … 1450 1504 msgstr "" 1451 1505 1506 #: includes/gourmand-light-dishes.php:64 1507 msgid "Price" 1508 msgstr "" 1509 1452 1510 #: includes/customize/partials/gourmand-light-customize-testimonials-partial.php:116 1453 1511 msgid "Rank" … … 1522 1580 #: includes/customize/partials/gourmand-light-customize-partial.php:575 1523 1581 msgid "Section space between Header and Content" 1582 msgstr "" 1583 1584 #: includes/gourmand-light-dishes.php:51 1585 msgid "Section Title" 1524 1586 msgstr "" 1525 1587 … … 1683 1745 #: includes/customize/partials/gourmand-light-customize-partial.php:765 1684 1746 msgid "Squared" 1747 msgstr "" 1748 1749 #: includes/gourmand-light-dishes.php:52 1750 msgid "Start Time" 1685 1751 msgstr "" 1686 1752 -
gourmand-light/trunk/readme.txt
r1900066 r1900982 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4LFP5SLC6PV98 4 4 Tags: 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 .65 Requires PHP: 5.3 6 6 Requires at least: 4.6 7 7 Tested up to: 4.9 8 Stable tag: 0.0. 88 Stable tag: 0.0.9 9 9 License: GPLv2 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 38 38 == Changelog == 39 40 = 0.0.9 = 41 * Moved the Food Menu Feature from Gourmand Theme to plugin 39 42 40 43 = 0.0.8 = -
gourmand-light/trunk/settings/custom-meta-boxes.php
r1892718 r1900982 471 471 } 472 472 473 gourmand_meta:: add( $post_id, 'gourmand-dishes', json_encode( $data ) );473 gourmand_meta::set( $post_id, 'gourmand-dishes', json_encode( $data ) ); 474 474 } 475 475 … … 487 487 $dishes = array(); 488 488 489 new gourmand_ dishes( $dishes );489 new gourmand_light_dishes( $dishes ); 490 490 } 491 491 ?> -
gourmand-light/trunk/templates/content/sections/chef-menu.php
r1892718 r1900982 34 34 if( is_array( $food_menu ) && !empty( $food_menu ) ){ 35 35 36 $count = gourmand_ dishes::count_sections( $food_menu );36 $count = gourmand_light_dishes::count_sections( $food_menu ); 37 37 38 38 $cols = 'cols-3';
Note: See TracChangeset
for help on using the changeset viewer.