Linux 软件免费装
Banner图

Snillrik Restaurant

开发者 Mattias Kallio
mattiaspkallio
更新时间 2025年2月24日 20:25
PHP版本: 3.0 及以上
WordPress版本: 6.7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcodes restaurant lunch menu

下载

2.1.5 2.2.0 2.2.1

详情介绍:

The idea is that you can create a bunch of different dishes, with images, price, ingredients etc... Then these are used to make up menus that are easily changed from day to day. So a particular use would be a lunch menu where you would want the same menu and shortcode but you want to change dishes every day. You could also have several menus, maybe one for each day of the week. There are also categories for the different dishes, so if you have like Meat, Fish, Veg, Ice cream etc, the menu will be in that order. So, the plugin adds th post types Dishes and Menus that can be added and edited the wordpress way. Then you can use the widget to add specific dishes and a shortcode for the menu on a page. Shortcodes [snillrik_restaurant_menu menuid="42" showcategory=1|0 hideimage=1|0 linktitle=1|0 category="" orderby="menu_order"] If you want to not show the category text chose 0 and if you want to link to the dish page chose 1 etc. menu_order is the order param set in admin on each dish. the orderby can be set to common wp orderbys too, like date or title. [snillrik_restaurant_dishes] A simple list of dishes sorted under categories. Intended to be a side menu etc. Filters They default to snillrik_lm_menu and snillrik_lm_dish witch might not be tha pretty, but it's unique... So if you want the urls to be something like /dishes/ or /food/, use these. add_filter("snillrik_lm_rewrite_menu",function($thename){ return "menue"; },10,1); add_filter("snillrik_lm_rewrite_dish",function($thename){ return "dish"; },10,1); Template / html for each dish. The default template is a bit basic, but it's easy to style and it's a good start. If you want to change the html for each dish, use this filter. `add_filter('snillrik_restaurant_dishbox_html', function ($return_html, $atts) { $post_title = $atts['title']; $tag_strings = $atts['tags']; $content_str = $atts['content']; $ingredients_str = $atts['ingredients']; $price_str = $atts['price']; $thumb = $atts['thumb']; return " $tag_strings $post_title $content_str $ingredients_str $price_str $thumb "; }, 10, 2);` Active Contributors *Mattias P Kallio

安装:

  1. Upload the plugin folder to the '/wp-content/plugins/' directory of your WordPress site,
  2. Activate the plugin through the 'Plugins' menu in WordPress,

常见问题:

Do I need to have a category for the dishes

Yes. I will fix this in a later version, but for now the menues list all the categories and the foods belonging to that category under it.

Where can I report bugs, leave my feedback and get support?

Our team answers your questions at: http://www.snillrik.se

更新日志:

2.2.0 Some changes from last version, but I have also updated the free version on wordpress.org (it's the same as the paid version, but havn't been updated in a while).