├── themes
└── restaurant
│ ├── restaurant_seven
│ ├── .npmrc
│ ├── templates
│ │ ├── README.txt
│ │ ├── page
│ │ │ ├── README.txt
│ │ │ ├── page.tpl.php
│ │ │ └── maintenance-page.tpl.php
│ │ └── form
│ │ │ ├── taxonomy-form-term.tpl.php
│ │ │ └── node-form.tpl.php
│ ├── assets
│ │ ├── images
│ │ │ ├── README.txt
│ │ │ ├── throbber.gif
│ │ │ └── icon
│ │ │ │ ├── icon-apps.png
│ │ │ │ ├── icon-panopoly.png
│ │ │ │ ├── icon-apps-active.png
│ │ │ │ ├── icon-close-popup.png
│ │ │ │ └── icon-panopoly-active.png
│ │ ├── sass
│ │ │ ├── components
│ │ │ │ ├── _nav.scss
│ │ │ │ ├── _page.scss
│ │ │ │ ├── _user.scss
│ │ │ │ ├── _breadcrumb.scss
│ │ │ │ ├── _admin_list.scss
│ │ │ │ ├── _dashboard.scss
│ │ │ │ ├── _modal.scss
│ │ │ │ ├── _table.scss
│ │ │ │ └── _layout.scss
│ │ │ ├── base
│ │ │ │ ├── _helper.scss
│ │ │ │ ├── _typography.scss
│ │ │ │ ├── _mixin.scss
│ │ │ │ └── _variable.scss
│ │ │ └── restaurant_seven.style.scss
│ │ └── js
│ │ │ └── restaurant_seven.script.js
│ ├── README.md
│ ├── includes
│ │ ├── nav.inc
│ │ ├── view.inc
│ │ ├── field.inc
│ │ ├── form.inc
│ │ ├── node.inc
│ │ ├── user.inc
│ │ ├── comment.inc
│ │ ├── term.inc
│ │ ├── panel.inc
│ │ ├── structure.inc
│ │ └── theme.inc
│ ├── logo.png
│ ├── screenshot.png
│ ├── .gitignore
│ ├── config.json
│ ├── template.php
│ ├── restaurant_seven.info
│ ├── bower.json
│ ├── package.json
│ └── CHANGELOG.txt
│ └── restaurant_radix
│ ├── .gitignore
│ ├── theme-settings.php
│ ├── logo.png
│ ├── assets
│ ├── sass
│ │ ├── partials
│ │ │ ├── _comment.scss
│ │ │ ├── _user.scss
│ │ │ ├── _event.scss
│ │ │ ├── _page.scss
│ │ │ ├── _location.scss
│ │ │ ├── _blog.scss
│ │ │ ├── _maintenance.scss
│ │ │ ├── _panel.scss
│ │ │ ├── _widget.scss
│ │ │ ├── _admin.scss
│ │ │ └── _structure.scss
│ │ ├── screen.scss
│ │ └── global
│ │ │ ├── _typography.scss
│ │ │ └── _mixin.scss
│ └── javascripts
│ │ └── restaurant_radix.script.js
│ ├── screenshot.png
│ ├── README.md
│ ├── templates
│ ├── region
│ │ └── region.tpl.php
│ ├── view
│ │ └── views-view.tpl.php
│ └── page
│ │ └── maintenance-page.tpl.php
│ ├── CHANGELOG.txt
│ ├── restaurant_radix.info
│ ├── includes
│ ├── field.inc
│ ├── slideshow.inc
│ ├── term.inc
│ ├── node.inc
│ └── view.inc
│ └── template.php
├── tests
├── .gitignore
├── features
│ ├── demo.feature
│ ├── login.feature
│ └── bootstrap
│ │ └── FeatureContext.php
└── composer.json
├── restaurant.png
├── modules
└── restaurant
│ ├── restaurant_menu
│ ├── restaurant_menu.make
│ ├── restaurant_menu_demo
│ │ ├── data
│ │ │ ├── slides.csv
│ │ │ ├── slideshows.csv
│ │ │ ├── images
│ │ │ │ ├── menus
│ │ │ │ │ ├── dinner-1.jpg
│ │ │ │ │ ├── dinner-2.jpg
│ │ │ │ │ ├── dinner-3.jpg
│ │ │ │ │ ├── drinks-1.jpg
│ │ │ │ │ ├── drinks-2.jpg
│ │ │ │ │ ├── drinks-3.jpg
│ │ │ │ │ ├── lunch-1.jpg
│ │ │ │ │ ├── lunch-2.jpg
│ │ │ │ │ ├── lunch-3.jpg
│ │ │ │ │ ├── soup-1.jpg
│ │ │ │ │ ├── soup-2.jpg
│ │ │ │ │ ├── soup-3.jpg
│ │ │ │ │ ├── grilled-1.jpg
│ │ │ │ │ ├── grilled-2.jpg
│ │ │ │ │ ├── grilled-3.jpg
│ │ │ │ │ ├── appetizers-1.jpg
│ │ │ │ │ ├── appetizers-2.jpg
│ │ │ │ │ ├── appetizers-3.jpg
│ │ │ │ │ ├── breakfast-1.jpg
│ │ │ │ │ ├── breakfast-2.jpg
│ │ │ │ │ └── breakfast-3.jpg
│ │ │ │ ├── categories
│ │ │ │ │ ├── lunch.jpg
│ │ │ │ │ ├── soup.jpg
│ │ │ │ │ ├── dinner.jpg
│ │ │ │ │ ├── drinks.jpg
│ │ │ │ │ ├── grilled.jpg
│ │ │ │ │ ├── appetizers.jpg
│ │ │ │ │ ├── breakfast.jpg
│ │ │ │ │ ├── icon-lunch.png
│ │ │ │ │ ├── icon-soup.png
│ │ │ │ │ ├── icon-dinner.png
│ │ │ │ │ ├── icon-drinks.png
│ │ │ │ │ ├── icon-grilled.png
│ │ │ │ │ ├── icon-appetizers.png
│ │ │ │ │ └── icon-breakfast.png
│ │ │ │ ├── types
│ │ │ │ │ ├── icon-vegan.png
│ │ │ │ │ ├── icon-organic.png
│ │ │ │ │ ├── icon-dairy-free.png
│ │ │ │ │ ├── icon-nuts-free.png
│ │ │ │ │ ├── icon-sugar-free.png
│ │ │ │ │ ├── icon-vegetarian.png
│ │ │ │ │ ├── icon-alcohol-free.png
│ │ │ │ │ ├── icon-gluten-free.png
│ │ │ │ │ └── icon-type-default.png
│ │ │ │ └── slides
│ │ │ │ │ └── menus-slideshow.jpg
│ │ │ └── types.csv
│ │ ├── restaurant_menu_demo.features.inc
│ │ ├── restaurant_menu_demo.info
│ │ └── restaurant_menu_demo.install
│ ├── README.md
│ ├── CHANGELOG.txt
│ ├── restaurant_menu.features.menu_custom.inc
│ ├── css
│ │ └── restaurant_menu.css
│ ├── restaurant_menu.features.taxonomy.inc
│ ├── restaurant_menu.features.content_menu_links.inc
│ ├── restaurant_menu.entityqueue_default.inc
│ ├── restaurant_menu.install
│ └── restaurant_menu.features.menu_links.inc
│ ├── restaurant_wysiwyg
│ ├── README.md
│ ├── CHANGELOG.txt
│ ├── restaurant_wysiwyg.strongarm.inc
│ ├── restaurant_wysiwyg.features.filter.inc
│ └── restaurant_wysiwyg.module
│ ├── restaurant_toolbar
│ ├── README.md
│ ├── assets
│ │ ├── sass
│ │ │ ├── partials
│ │ │ │ └── _body.scss
│ │ │ ├── restaurant_toolbar.scss
│ │ │ └── global
│ │ │ │ └── _mixin.scss
│ │ ├── images
│ │ │ ├── icon-handle-close.svg
│ │ │ ├── icon-handle-open.svg
│ │ │ ├── icon-locations.svg
│ │ │ ├── icon-shortcuts.svg
│ │ │ ├── icon-default.svg
│ │ │ ├── icon-bars.svg
│ │ │ ├── icon-appearance.svg
│ │ │ ├── icon-search.svg
│ │ │ ├── icon-search-active.svg
│ │ │ ├── icon-reservations.svg
│ │ │ ├── icon-reports.svg
│ │ │ ├── icon-people.svg
│ │ │ ├── icon-modules.svg
│ │ │ ├── icon-account.svg
│ │ │ ├── icon-configuration.svg
│ │ │ ├── icon-menus.svg
│ │ │ ├── icon-structure.svg
│ │ │ ├── icon-blog-posts.svg
│ │ │ ├── icon-events.svg
│ │ │ └── icon-content.svg
│ │ └── javascripts
│ │ │ ├── restaurant_toolbar.form.js
│ │ │ ├── restaurant_toolbar.dropdown.js
│ │ │ └── restaurant_toolbar.js
│ ├── restaurant_toolbar.install
│ ├── CHANGELOG.txt
│ ├── restaurant_toolbar.info
│ ├── package.json
│ ├── Gulpfile.js
│ └── restaurant_toolbar.features.inc
│ ├── restaurant_demo
│ ├── data
│ │ ├── slides.csv
│ │ ├── slideshows.csv
│ │ ├── images
│ │ │ └── home-page-slideshow.jpg
│ │ └── texts.csv
│ ├── restaurant_demo.module
│ ├── README.md
│ ├── CHANGELOG.txt
│ ├── restaurant_demo.features.inc
│ ├── restaurant_demo.install
│ └── restaurant_demo.features.menu_custom.inc
│ ├── restaurant_location
│ ├── restaurant_location.theme.inc
│ ├── restaurant_location_demo
│ │ ├── data
│ │ │ ├── slides.csv
│ │ │ ├── slideshows.csv
│ │ │ ├── images
│ │ │ │ ├── chicago.jpg
│ │ │ │ ├── new-york.jpg
│ │ │ │ ├── icon-chicago.png
│ │ │ │ ├── icon-new-york.png
│ │ │ │ ├── san-francisco.jpg
│ │ │ │ ├── icon-san-francisco.png
│ │ │ │ └── locations-slideshow.jpg
│ │ │ ├── texts.csv
│ │ │ └── locations.csv
│ │ ├── restaurant_location_demo.info
│ │ ├── restaurant_location_demo.install
│ │ └── restaurant_location_demo.module
│ ├── README.md
│ ├── CHANGELOG.txt
│ ├── restaurant_location.admin.inc
│ ├── restaurant_location.install
│ ├── restaurant_location.features.menu_links.inc
│ └── restaurant_location.features.content_menu_links.inc
│ ├── restaurant_blog
│ ├── restaurant_blog_demo
│ │ ├── data
│ │ │ ├── slides.csv
│ │ │ ├── slideshows.csv
│ │ │ ├── images
│ │ │ │ ├── blog-post-1.jpg
│ │ │ │ ├── blog-post-2.jpg
│ │ │ │ ├── blog-post-3.jpg
│ │ │ │ ├── blog-post-4.jpg
│ │ │ │ └── news-slideshow.jpg
│ │ │ └── texts.csv
│ │ ├── restaurant_blog_demo.module
│ │ ├── restaurant_blog_demo.features.inc
│ │ ├── restaurant_blog_demo.install
│ │ └── restaurant_blog_demo.info
│ ├── README.md
│ ├── CHANGELOG.txt
│ ├── restaurant_blog.features.taxonomy.inc
│ ├── restaurant_blog.install
│ ├── restaurant_blog.features.content_menu_links.inc
│ ├── restaurant_blog.features.menu_links.inc
│ ├── restaurant_blog.admin.inc
│ └── restaurant_blog.features.field_base.inc
│ ├── restaurant_event
│ ├── restaurant_event_demo
│ │ ├── data
│ │ │ ├── slides.csv
│ │ │ ├── slideshows.csv
│ │ │ ├── images
│ │ │ │ ├── event-1.jpg
│ │ │ │ ├── event-2.jpg
│ │ │ │ ├── event-3.jpg
│ │ │ │ ├── event-4.jpg
│ │ │ │ └── events-slideshow.jpg
│ │ │ └── texts.csv
│ │ ├── restaurant_event_demo.module
│ │ ├── restaurant_event_demo.info
│ │ └── restaurant_event_demo.install
│ ├── restaurant_event.theme.inc
│ ├── README.md
│ ├── CHANGELOG.txt
│ ├── restaurant_event.features.menu_custom.inc
│ ├── restaurant_event.features.taxonomy.inc
│ ├── restaurant_event.install
│ ├── restaurant_event.pm_existing_pages.inc
│ └── restaurant_event.admin.inc
│ ├── restaurant_reservation
│ ├── restaurant_reservation_demo
│ │ ├── data
│ │ │ ├── slides.csv
│ │ │ ├── slideshows.csv
│ │ │ ├── images
│ │ │ │ └── reservation-slideshow.jpg
│ │ │ └── texts.csv
│ │ ├── README.md
│ │ ├── restaurant_reservation_demo.module
│ │ ├── restaurant_reservation_demo.features.inc
│ │ ├── restaurant_reservation_demo.info
│ │ └── restaurant_reservation_demo.install
│ ├── README.md
│ ├── templates
│ │ ├── reservation--reservation--email.tpl.php
│ │ └── reservation--reservation--full.tpl.php
│ ├── plugins
│ │ └── content_types
│ │ │ └── reservation_form.inc
│ ├── restaurant_reservation.views.inc
│ ├── CHANGELOG.txt
│ ├── restaurant_reservation.admin.inc
│ ├── restaurant_reservation.features.content_menu_links.inc
│ ├── restaurant_reservation.theme.inc
│ ├── restaurant_reservation.features.menu_links.inc
│ ├── views
│ │ └── restaurant_reservation_handler_update_status_form.inc
│ └── restaurant_reservation.features.inc
│ ├── restaurant_theme
│ ├── restaurant_theme.theme.inc
│ ├── README.md
│ ├── CHANGELOG.txt
│ ├── views-view--content.tpl.php
│ ├── restaurant_theme.info
│ ├── plugins
│ │ └── views
│ │ │ └── restaurant_theme_view_style.inc
│ ├── restaurant_theme.views.inc
│ └── restaurant_theme.module
│ ├── restaurant_seo
│ ├── restaurant_seo.module
│ ├── README.md
│ ├── restaurant_seo.features.inc
│ ├── restaurant_seo.strongarm.inc
│ ├── restaurant_seo.info
│ └── restaurant_seo.features.defaultconfig.inc
│ ├── restaurant_pages
│ ├── README.md
│ ├── restaurant_pages.module
│ ├── CHANGELOG.txt
│ ├── restaurant_pages.features.inc
│ ├── restaurant_pages.strongarm.inc
│ ├── restaurant_pages.features.user_permission.inc
│ ├── restaurant_pages.features.menu_links.inc
│ └── restaurant_pages.features.menu_custom.inc
│ ├── restaurant_user
│ ├── restaurant_user.module
│ ├── README.md
│ ├── restaurant_user.features.user_role.inc
│ ├── restaurant_user.features.features_overrides.inc
│ └── restaurant_user.features.inc
│ ├── restaurant_slideshow
│ ├── images
│ │ └── icon
│ │ │ └── icon-slideshow.png
│ ├── README.md
│ ├── restaurant_slideshow.features.inc
│ ├── restaurant_slideshow.module
│ └── restaurant_slideshow.info
│ ├── restaurant_contact
│ ├── restaurant_contact.module
│ ├── restaurant_contact.features.inc
│ ├── restaurant_contact.strongarm.inc
│ ├── restaurant_contact.pm_existing_pages.inc
│ ├── restaurant_contact.features.menu_links.inc
│ ├── restaurant_contact.features.user_permission.inc
│ └── restaurant_contact.info
│ ├── restaurant_mail
│ ├── README.md
│ ├── restaurant_mail.info
│ ├── CHANGELOG.txt
│ ├── restaurant_mail.install
│ └── restaurant_mail.module
│ ├── restaurant_admin
│ ├── README.md
│ ├── css
│ │ └── restaurant_admin.css
│ ├── CHANGELOG.txt
│ ├── restaurant_admin_links
│ │ └── restaurant_admin_links.info
│ ├── restaurant_admin.features.inc
│ ├── restaurant_admin.install
│ ├── restaurant_admin.info
│ ├── restaurant_admin.admin.inc
│ ├── restaurant_admin.strongarm.inc
│ └── restaurant_admin.theme.inc
│ ├── restaurant_plugins
│ ├── README.md
│ ├── restaurant_plugins.info
│ ├── CHANGELOG.txt
│ └── restaurant_plugins.module
│ └── restaurant_base
│ ├── README.md
│ ├── restaurant_update
│ └── restaurant_update.info
│ ├── restaurant_base.features.inc
│ ├── CHANGELOG.txt
│ ├── restaurant_base.features.filter.inc
│ └── restaurant_base.install
├── .gitignore
├── restaurant.css
├── drupal-org-core.make
├── scripts
├── config.sh
├── reset.sh
├── update_drops.sh
└── build.sh
├── restaurant.profile
└── .travis.yml
/themes/restaurant/restaurant_seven/.npmrc:
--------------------------------------------------------------------------------
1 | unsafe-perm = true
--------------------------------------------------------------------------------
/tests/.gitignore:
--------------------------------------------------------------------------------
1 | behat.yml
2 | composer.lock
3 | composer.phar
4 | bin
5 | vendor
6 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/.gitignore:
--------------------------------------------------------------------------------
1 | .sass-cache
2 | extensions
3 | node_modules
--------------------------------------------------------------------------------
/restaurant.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/restaurant.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu.make:
--------------------------------------------------------------------------------
1 | api = 2
2 | core = 7.x
3 |
4 | ; Dependencies
5 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_wysiwyg/README.md:
--------------------------------------------------------------------------------
1 | # Restaurant WYSIWYG
2 | WYSIWYG editor for Open Restaurant
3 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/theme-settings.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/chicago.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/chicago.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/new-york.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/new-york.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/lunch.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/lunch.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/soup.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/soup.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/grilled-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/grilled-1.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/grilled-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/grilled-2.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/grilled-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/grilled-3.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-vegan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-vegan.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_plugins/README.md:
--------------------------------------------------------------------------------
1 | Restaurant Plugins
2 | ==================
3 |
4 | Provides multiple plugins for the Restaurant distribution.
5 |
6 | See project page: http://drupal.org/project/restaurant_plugins.
7 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation_demo/data/slideshows.csv:
--------------------------------------------------------------------------------
1 | uuid,slideshow_id,bundle,reusable,admin_title,category
2 | c2ca27db-55dc-4f7a-ac0f-e212a10d4f94,1,slideshow,1,Reservation page Slideshow,Slideshows
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/restaurant_event_demo/data/images/events-slideshow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_event/restaurant_event_demo/data/images/events-slideshow.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/dinner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/dinner.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/drinks.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/drinks.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/grilled.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/grilled.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/appetizers-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/appetizers-1.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/appetizers-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/appetizers-2.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/appetizers-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/appetizers-3.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/breakfast-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/breakfast-1.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/breakfast-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/breakfast-2.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/breakfast-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/breakfast-3.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-organic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-organic.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/README.md:
--------------------------------------------------------------------------------
1 | Restaurant Reservation
2 | ======================
3 |
4 | Reservation System for the Restaurant Distribution.
5 |
6 | See project page: http://drupal.org/project/restaurant_reservation
7 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_base/README.md:
--------------------------------------------------------------------------------
1 | Restaurant Base
2 | ===============
3 |
4 | Provides base configuration and structure for the Restaurant Distribution.
5 |
6 | See project on drupal.org: http://drupal.org/project/restaurant_base.
7 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/icon-chicago.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/icon-chicago.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/icon-new-york.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/icon-new-york.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/san-francisco.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/san-francisco.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/appetizers.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/appetizers.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/breakfast.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/breakfast.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-lunch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-lunch.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-soup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-soup.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-dairy-free.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-dairy-free.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-nuts-free.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-nuts-free.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-sugar-free.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-sugar-free.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-vegetarian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-vegetarian.png
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/partials/_event.scss:
--------------------------------------------------------------------------------
1 | // Event
2 | // -----------------------------------------------------------------------------
3 | .node-event {
4 | img {
5 | width: 100%;
6 | height: auto;
7 | }
8 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/README.md:
--------------------------------------------------------------------------------
1 | Restaurant Event
2 | ================
3 | Provides the structure for creating and managing events for the Restaurant distribution.
4 |
5 | See project page: http://drupal.org/project/restaurant_event
6 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-dinner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-dinner.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-drinks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-drinks.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-grilled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-grilled.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/slides/menus-slideshow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/slides/menus-slideshow.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-alcohol-free.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-alcohol-free.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-gluten-free.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-gluten-free.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-type-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-type-default.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation_demo/README.md:
--------------------------------------------------------------------------------
1 | Restaurant Demo
2 | ===============
3 |
4 | Provides demo content for the Restaurant Distribution
5 |
6 | See project page: http://drupal.org/project/restaurant_demo
7 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/icon-san-francisco.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/icon-san-francisco.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-appetizers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-appetizers.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-breakfast.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-breakfast.png
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_demo/data/texts.csv:
--------------------------------------------------------------------------------
1 | uuid,id,bundle,reusable,admin_title,category,field_basic_text_text
2 | 368f0e62-c692-4d1b-b481-ab95e6767dc5,1,text,1,Slogan,Panes,
[config:site_slogan]
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/locations-slideshow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openrestaurant/restaurant/HEAD/modules/restaurant/restaurant_location/restaurant_location_demo/data/images/locations-slideshow.jpg
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_mail/restaurant_mail.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Mail
2 | description = Handles emails for the Restaurant Distribution.
3 | core = 7.x
4 | package = Open Restaurant
5 | project = restaurant_mail
6 | features[features_api][] = api:2
7 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation_demo/restaurant_reservation_demo.module:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-handle-close.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-handle-open.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/sass/restaurant_toolbar.scss:
--------------------------------------------------------------------------------
1 | // SASS partials import
2 | // -----------------------------------------------------------------------------
3 | @import "global/variable";
4 | @import "global/mixin";
5 | @import "partials/body";
6 | @import "partials/toolbar";
7 | @import "partials/form";
8 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/CHANGELOG.txt:
--------------------------------------------------------------------------------
1 | Restaurant Location 7.x-1.0-rc2, 2015-10-22
2 | ---------------------------------
3 | - Update text for shortcut.
4 | - Add location shortcut.
5 |
6 | Restaurant Location 7.x-1.0-rc3, 2016-01-25
7 | ---------------------------------
8 | - No changes since last release.
9 |
10 |
--------------------------------------------------------------------------------
/tests/features/demo.feature:
--------------------------------------------------------------------------------
1 | Feature: Demo content
2 | In order to test out the site
3 | As a site owner
4 | I need to view demo content
5 |
6 | @javascript
7 | Scenario: Homepage
8 | Given I am an anonymous user
9 | When I visit "/"
10 | Then the ".jumbotron h1" element should contain "Drupal Restaurant"
11 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_blog/restaurant_blog_demo/data/texts.csv:
--------------------------------------------------------------------------------
1 | uuid,id,bundle,reusable,admin_title,category,field_basic_text_text
2 | 5b264544-6c07-4423-944a-a4b58c37a086,1,text,1,Back to News,Panes,
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Restaurant Seven",
3 | "description": "Administration theme for Open Restaurant.",
4 | "browserSyncProxy" : "http://openrestaurant.dev/",
5 | "bowerDir": "./bower_components",
6 | "sassIncludePaths": [
7 | "./bower_components/font-awesome/scss"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/templates/reservation--reservation--email.tpl.php:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/restaurant_toolbar.install:
--------------------------------------------------------------------------------
1 | See all Events
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/CHANGELOG.txt:
--------------------------------------------------------------------------------
1 | Restaurant Menu 7.x-1.0-rc2, 2015-10-22
2 | -----------------------------
3 | - Update default shortcut set.
4 | - Add menu to menus_page queue on insert.
5 |
6 | Restaurant Menu 7.x-1.0-rc3, 2016-01-25
7 | -----------------------------
8 | - Set the sample size to fewer if on Pantheon.
9 |
10 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/types.csv:
--------------------------------------------------------------------------------
1 | name,icon,
2 | Alcohol free,icon-alcohol-free.png
3 | Dairy free,icon-dairy-free.png
4 | Gluten free,icon-gluten-free.png
5 | Nuts free,icon-nuts-free.png
6 | Organic,icon-organic.png
7 | Sugar free,icon-sugar-free.png
8 | Vegan,icon-vegan.png
9 | Vegetarian,icon-vegetarian.png
10 |
--------------------------------------------------------------------------------
/restaurant.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Styles for maintenance page.
3 | */
4 | body.maintenance-page #branding {
5 | padding: 20px;
6 | background: black;
7 | }
8 |
9 | body.maintenance-page #branding h1.page-title {
10 | padding: 0;
11 | color: white;
12 | }
13 |
14 | body.maintenance-page #logo {
15 | background: red;
16 | display: none;
17 | }
18 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/restaurant_event.features.menu_custom.inc:
--------------------------------------------------------------------------------
1 | See all Locations
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/template.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/components/_breadcrumb.scss:
--------------------------------------------------------------------------------
1 | // Breadcrumb
2 | // -----------------------------------------------------------------------------
3 | .breadcrumb {
4 | float: left;
5 | font-size: 0.85em;
6 | white-space: nowrap;
7 | overflow: hidden;
8 | text-overflow: ellipsis;
9 | max-width: 500px;
10 | margin: 0 0 5px;
11 | }
--------------------------------------------------------------------------------
/drupal-org-core.make:
--------------------------------------------------------------------------------
1 | api = 2
2 | core = 7.x
3 |
4 | ; Drupal Core
5 | projects[drupal][type] = core
6 | projects[drupal][version] = 7.54
7 |
8 | ; Patches
9 |
10 | ; Ignore node_modules and bower_components on file_scan_directory.
11 | projects[drupal][patch][2672654] = https://www.drupal.org/files/issues/drupal-ignore-directories-file-scan-directory-2672654-1.patch
12 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_theme/restaurant_theme.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Theme
2 | description = Theming helpers for the Restaurant Distribution
3 | core = 7.x
4 | package = Open Restaurant
5 | php = 5.2.4
6 | project = restaurant_theme
7 | dependencies[] = restaurant_base
8 | features[features_api][] = api:1
9 |
10 | files[] = plugins/views/restaurant_theme_view_style.inc
11 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_admin/restaurant_admin_links/restaurant_admin_links.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Admin Links
2 | description = Provides administrative links.
3 | core = 7.x
4 | package = Open Restaurant
5 | project = restaurant_admin_links
6 | dependencies[] = contextual
7 | dependencies[] = features
8 | dependencies[] = restaurant_admin
9 | features[features_api][] = api:2
10 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-shortcuts.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/features/login.feature:
--------------------------------------------------------------------------------
1 | Feature: Anonymous user login
2 | In order to access content for authenticated users
3 | As an anonymous user
4 | I want to be able to login
5 |
6 | @javascript
7 | Scenario: Admin user is able to login using one-time-login-url
8 | Given I log in with the One Time Login Url
9 | Then I should see "You have just used your one-time login link"
10 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_seo/restaurant_seo.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_admin/restaurant_admin.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_base/restaurant_base.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_demo/restaurant_demo.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/components/_admin_list.scss:
--------------------------------------------------------------------------------
1 | // Admin list
2 | // -----------------------------------------------------------------------------
3 | ul.admin-list {
4 | li {
5 | background: none;
6 | padding: 0;
7 | margin: 0 0 25px;
8 | border: 0;
9 | .label {
10 | font-size: 16px;
11 | font-family: $font-secondary;
12 | }
13 | }
14 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_admin/restaurant_admin.install:
--------------------------------------------------------------------------------
1 | fields(array('weight' => 20))
10 | ->condition('type', 'module')
11 | ->condition('name', 'restaurant_admin')
12 | ->execute();
13 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-default.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_slideshow/restaurant_slideshow.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/restaurant_seven.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Seven
2 | description = Default Administration theme for Open Restaurant.
3 | screenshot = screenshot.png
4 | core = 7.x
5 |
6 | ; Base - Seven
7 | base theme = seven
8 |
9 | ; CSS - General
10 | stylesheets[all][] = assets/css/restaurant_seven.style.css
11 |
12 | ; Javascript
13 | scripts[] = assets/js/restaurant_seven.script.js
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_blog/restaurant_blog_demo/restaurant_blog_demo.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu_demo/restaurant_menu_demo.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation_demo/restaurant_reservation_demo.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/templates/reservation--reservation--full.tpl.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-bars.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/partials/_location.scss:
--------------------------------------------------------------------------------
1 | // Node: Location
2 | // -----------------------------------------------------------------------------
3 | .node-location {
4 | .image {
5 | border: 1px solid $brand-primary;
6 | padding: 8px;
7 | @include border-radius(2px);
8 | }
9 |
10 | .field-slideshow-controls .fa {
11 | font-size: 3.0em;
12 | width: 30px;
13 | height: 70px;
14 | margin-top: -45px;
15 | }
16 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/CHANGELOG.txt:
--------------------------------------------------------------------------------
1 | Restaurant Toolbar 7.x-1.0-rc2, 2015-10-22
2 | --------------------------------
3 | - Update padding for toolbar.
4 | - Fix style for toolbar.
5 | - Create README.md.
6 | - Fix vertical tab lock not working on firefox.
7 | - Fix box-shadow for navbar tray.
8 | - Check for user access navbar.
9 | - Lock navbar to vertical position.
10 | - Make sure navbar is always vertical.
11 | - Fix body margin.
12 | - Fix label search icon.
13 |
14 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_user/restaurant_user.features.user_role.inc:
--------------------------------------------------------------------------------
1 | 'administrator',
16 | 'weight' => 2,
17 | );
18 |
19 | return $roles;
20 | }
21 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-appearance.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/js/restaurant_seven.script.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @file
3 | * Custom scripts for theme.
4 | */
5 | (function ($) {
6 | Drupal.behaviors.adminMenuExpanded = {
7 | attach: function(context, settings) {
8 | $('#admin-menu li').mouseenter(function() {
9 | $(this).addClass('expanded');
10 | });
11 | $('#admin-menu li').mouseleave(function() {
12 | $(this).removeClass('expanded');
13 | });
14 | }
15 | }
16 | })(jQuery);
17 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/restaurant_event_demo/restaurant_event_demo.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Event Demo
2 | description = Demo content for the Restaurant Event.
3 | core = 7.x
4 | package = Open Restaurant Demo
5 | project = restaurant_event_demo
6 | dependencies[] = restaurant_event
7 | features[features_api][] = api:1
8 |
9 | ; Migration files
10 | files[] = migrations/event.inc
11 | files[] = migrations/slideshow.inc
12 | files[] = migrations/slides.inc
13 | files[] = migrations/text.inc
14 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-search.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-search-active.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_pages/restaurant_pages.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | if ($module == "strongarm" && $api == "strongarm") {
15 | return array("version" => "1");
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation_demo/restaurant_reservation_demo.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Reservation Demo
2 | description = Provides demo content for Open Restaurant Reservation
3 | core = 7.x
4 | package = Open Restaurant Demo
5 | project = restaurant_reservation_demo
6 | dependencies[] = migrate
7 | dependencies[] = restaurant_reservation
8 | features[features_api][] = api:2
9 | files[] = migrations/slideshow.inc
10 | files[] = migrations/slide.inc
11 | files[] = migrations/text.inc
12 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/restaurant_location_demo.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Location Demo
2 | description = Demo content for Restaurant Location
3 | core = 7.x
4 | package = Open Restaurant Demo
5 | project = restaurant_location_demo
6 | dependencies[] = restaurant_location
7 | features[features_api][] = api:2
8 |
9 | ; Migration files
10 | files[] = migrations/location.inc
11 | files[] = migrations/slideshow.inc
12 | files[] = migrations/slides.inc
13 | files[] = migrations/text.inc
14 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-reservations.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/partials/_blog.scss:
--------------------------------------------------------------------------------
1 | // Blog Post
2 | // -----------------------------------------------------------------------------
3 | .node-blog-post {
4 | img {
5 | width: 100%;
6 | height: auto;
7 | @include border-radius(2px);
8 | }
9 |
10 | &.view-mode-teaser {
11 | @extend .margin--sm--top;
12 | @extend .margin--sm--bottom;
13 | }
14 |
15 | &.view-mode-featured {
16 | @extend .padding--xs--left;
17 | @extend .padding--xs--right;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_demo/restaurant_demo.install:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/restaurant_radix.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Radix
2 | description = Default theme for the Restaurant distribution based on Radix
3 | screenshot = screenshot.png
4 | core = 7.x
5 |
6 | ; Base - Radix
7 | base theme = radix
8 |
9 | ; Regions
10 | regions[sidebar_first] = Sidebar
11 | regions[content] = Content
12 |
13 | ; Panels
14 | plugins[panels][layouts] = layouts
15 | plugins[panels][styles] = styles
16 |
17 | ; Javascript
18 | scripts[] = assets/javascripts/restaurant_radix.script.js
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Restaurant Seven",
3 | "description": "Administration theme for Open Restaurant.",
4 | "private": true,
5 | "ignore": [
6 | "**/.*",
7 | "bower_components",
8 | "includes",
9 | "kits",
10 | "node_modules",
11 | "templates",
12 | "*.json",
13 | "*.js",
14 | "*.png",
15 | "*.inc",
16 | "*.info",
17 | "*.md",
18 | "*.php"
19 | ],
20 | "dependencies": {
21 | "font-awesome": "fontawesome#~4.4.0"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-people.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation_demo/data/texts.csv:
--------------------------------------------------------------------------------
1 | uuid,id,bundle,reusable,admin_title,category,field_basic_text_text
2 | 44311ff4-0eb1-45c7-ad9b-e0cbcd8d4d2e,1,text,1,How to book a table,Panes,"Step 1
Fill in the reservation form with your contact information, the date of your reservation and the number of persons.
Step 2
Wait for our email that confirms that your reservation has been received.
Step 3
We will email you or call you back when your reservation has been confirmed.
"
3 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-modules.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-account.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/restaurant_seven.style.scss:
--------------------------------------------------------------------------------
1 | // SASS partials import
2 | // -----------------------------------------------------------------------------
3 |
4 | // Mixins and Variables
5 | // -----------------------------------------------------------------------------
6 | @import "base/variable";
7 | @import "base/mixin";
8 | @import "base/helper";
9 | @import "base/typography";
10 |
11 | // Theme CSS
12 | // -----------------------------------------------------------------------------
13 | @import "components/**/*";
14 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_admin/restaurant_admin.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Admin
2 | description = Provides administrative enhancements for Open Restaurant.
3 | core = 7.x
4 | package = Open Restaurant
5 | project = restaurant_admin
6 | dependencies[] = admin_views
7 | dependencies[] = ctools
8 | dependencies[] = features
9 | dependencies[] = menu
10 | dependencies[] = panopoly_admin
11 | dependencies[] = strongarm
12 | dependencies[] = views
13 | dependencies[] = views_ui
14 | features[ctools][] = strongarm:strongarm:1
15 | features[features_api][] = api:2
16 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-configuration.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_blog/restaurant_blog_demo/restaurant_blog_demo.install:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/restaurant_event_demo/restaurant_event_demo.install:
--------------------------------------------------------------------------------
1 | disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
15 | $strongarm->api_version = 1;
16 | $strongarm->name = 'clean_url';
17 | $strongarm->value = '1';
18 | $export['clean_url'] = $strongarm;
19 |
20 | return $export;
21 | }
22 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/restaurant_toolbar.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Toolbar
2 | description = Toolbar for Open Restaurant.
3 | core = 7.x
4 | package = Open Restaurant
5 | project = restaurant_toolbar
6 | dependencies[] = search_autocomplete
7 | dependencies[] = views
8 | dependencies[] = navbar
9 | features[ctools][] = strongarm:strongarm:1
10 | features[ctools][] = views:views_default:3.0
11 | features[features_api][] = api:2
12 | features[search_autocomplete_config][] = 4
13 | features[views_view][] = toolbar_autocomplete
14 | features_exclude[dependencies][ctools] = ctools
15 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_theme/plugins/views/restaurant_theme_view_style.inc:
--------------------------------------------------------------------------------
1 | disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
15 | $strongarm->api_version = 1;
16 | $strongarm->name = 'site_frontpage';
17 | $strongarm->value = 'home';
18 | $export['site_frontpage'] = $strongarm;
19 |
20 | return $export;
21 | }
22 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/plugins/content_types/reservation_form.inc:
--------------------------------------------------------------------------------
1 | t('Reservation form'),
7 | 'single' => TRUE,
8 | 'category' => array(t('Reservation')),
9 | );
10 |
11 | /**
12 | * Render Callback
13 | */
14 | function restaurant_reservation_reservation_form_content_type_render($subtype, $conf, $args) {
15 | $block = new stdClass();
16 |
17 | // Add the reservation form.
18 | $block->title = '';
19 | $block->content = eck__entity__add('reservation', 'reservation');
20 |
21 | return $block;
22 | }
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/templates/form/taxonomy-form-term.tpl.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location.admin.inc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/base/_typography.scss:
--------------------------------------------------------------------------------
1 | // Typography
2 | // -----------------------------------------------------------------------------
3 | body {
4 | font: normal 14px $font-primary;
5 | line-height: 22px;
6 | color: #4d4d4d;
7 | }
8 |
9 |
10 | // Headings
11 | // -----------------------------------------------------------------------------
12 | h1, h2, h3, h4, h5, h6 {
13 | font-family: $font-secondary;
14 | font-weight: normal;
15 | }
16 |
17 | // Links
18 | // -----------------------------------------------------------------------------
19 | a {
20 | color: $link-color;
21 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_blog/restaurant_blog.features.taxonomy.inc:
--------------------------------------------------------------------------------
1 | array(
13 | 'name' => 'Blog Categories',
14 | 'machine_name' => 'blog_categories',
15 | 'description' => 'Use this taxonomy to organize blog posts',
16 | 'hierarchy' => 0,
17 | 'module' => 'taxonomy',
18 | 'weight' => 0,
19 | ),
20 | );
21 | }
22 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/restaurant_event.features.taxonomy.inc:
--------------------------------------------------------------------------------
1 | array(
13 | 'name' => 'Event Categories',
14 | 'machine_name' => 'event_categories',
15 | 'description' => 'Use this taxonomy to organize events.',
16 | 'hierarchy' => 0,
17 | 'module' => 'taxonomy',
18 | 'weight' => 0,
19 | ),
20 | );
21 | }
22 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_base/CHANGELOG.txt:
--------------------------------------------------------------------------------
1 | Restaurant Base 7.x-1.0-rc2, 2015-10-22
2 | -----------------------------
3 | - Revert 2704b032.
4 | - Add ctools_uuid_generate to fix the Pantheon fatal error.
5 | - Update navbar in make file.
6 | - Implement hook_requirements to add max_execution_time.
7 | - Fix typo in imagecache_token version.
8 | - Add patch for navbar.
9 | - Use the dev release for navbar.
10 | - Change imagecache_token to 1.0-rc1.
11 | - Add navbar module to make file and patch it.
12 |
13 | Restaurant Base 7.x-1.0-rc3, 2016-01-25
14 | -----------------------------
15 | - No changes since last release.
16 |
17 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/base/_mixin.scss:
--------------------------------------------------------------------------------
1 | // SASS Mixins
2 | // -----------------------------------------------------------------------------
3 |
4 | // Hover.
5 | // -----------------------------------------------------------------------------
6 | @mixin hover() {
7 | &:hover, &:focus {
8 | @content;
9 | }
10 | }
11 |
12 | // Clearfix
13 | // -----------------------------------------------------------------------------
14 | @mixin clearfix() {
15 | &:before,
16 | &:after {
17 | content: " "; // 1
18 | display: table; // 2
19 | }
20 | &:after {
21 | clear: both;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation_demo/restaurant_reservation_demo.install:
--------------------------------------------------------------------------------
1 | disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
15 | $strongarm->api_version = 1;
16 | $strongarm->name = 'filter_fallback_format';
17 | $strongarm->value = 'plain_text';
18 | $export['filter_fallback_format'] = $strongarm;
19 |
20 | return $export;
21 | }
22 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_contact/restaurant_contact.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | if ($module == "pm_existing_pages" && $api == "pm_existing_pages") {
15 | return array("version" => "1");
16 | }
17 | if ($module == "strongarm" && $api == "strongarm") {
18 | return array("version" => "1");
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_contact/restaurant_contact.strongarm.inc:
--------------------------------------------------------------------------------
1 | disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
15 | $strongarm->api_version = 1;
16 | $strongarm->name = 'pm_existing_pages_disabled_contact';
17 | $strongarm->value = FALSE;
18 | $export['pm_existing_pages_disabled_contact'] = $strongarm;
19 |
20 | return $export;
21 | }
22 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_contact/restaurant_contact.pm_existing_pages.inc:
--------------------------------------------------------------------------------
1 | api_version = 1;
15 | $pm_existing_page->name = 'contact';
16 | $pm_existing_page->label = 'Contact';
17 | $pm_existing_page->context = '';
18 | $pm_existing_page->paths = 'contact';
19 | $export['contact'] = $pm_existing_page;
20 |
21 | return $export;
22 | }
23 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/templates/form/node-form.tpl.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location.install:
--------------------------------------------------------------------------------
1 | links = array(
18 | array(
19 | 'link_path' => 'node/add/location',
20 | 'link_title' => $t('Add location'),
21 | 'weight' => 30,
22 | ),
23 | );
24 | shortcut_set_save($shortcut_set);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/scripts/config.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Open Restaurant modules
4 | modules=(
5 | "restaurant_admin"
6 | "restaurant_base"
7 | "restaurant_blog"
8 | "restaurant_contact"
9 | "restaurant_demo"
10 | "restaurant_event"
11 | "restaurant_location"
12 | "restaurant_mail"
13 | "restaurant_menu"
14 | "restaurant_pages"
15 | "restaurant_plugins"
16 | "restaurant_reservation"
17 | "restaurant_seo"
18 | "restaurant_slideshow"
19 | "restaurant_theme"
20 | "restaurant_toolbar"
21 | "restaurant_user"
22 | "restaurant_wysiwyg"
23 | )
24 |
25 | # Open Restaurant modules
26 | themes=(
27 | "restaurant_radix"
28 | "restaurant_seven"
29 | "sizzle"
30 | )
--------------------------------------------------------------------------------
/scripts/reset.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Script to reset the database and recreate settings.php.
3 | # Run this script inside /profiles/restaurant/scripts.
4 | echo ""
5 | echo "----------------------------------"
6 | echo "Dropping database..."
7 | echo "----------------------------------"
8 | drush sql-drop -y
9 |
10 | echo ""
11 | echo "----------------------------------"
12 | echo "Recreating settings.php in sites/default..."
13 | echo "----------------------------------"
14 | cd ~/Sites/htdocs/restaurant
15 | chmod 755 sites/default
16 | cd sites/default
17 | rm -rf settings.php files
18 | cp default.settings.php settings.php
19 | mkdir files
20 | chmod -R 777 settings.php files
21 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/sass/global/_mixin.scss:
--------------------------------------------------------------------------------
1 | // Breakpoint mixin.
2 | // Usage: @include bp(sm) { ... }
3 | // -----------------------------------------------------------------------------
4 | @mixin bp($class) {
5 | @if $class == xs {
6 | @media (max-width: $screen-xs-max) { @content; }
7 | }
8 | @else if $class == sm {
9 | @media (min-width: $screen-sm) { @content; }
10 | }
11 | @else if $class == md {
12 | @media (min-width: $screen-md) { @content; }
13 | }
14 | @else if $class == lg {
15 | @media (min-width: $screen-lg) { @content; }
16 | }
17 | @else {
18 | @warn "Breakpoint mixin supports: xs, sm, md, lg";
19 | }
20 | }
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/includes/structure.inc:
--------------------------------------------------------------------------------
1 | ' . t('You are here') . '';
14 |
15 | $output .= '' . implode(' / ', $breadcrumb) . '
';
16 | return $output;
17 | }
18 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location_demo/restaurant_location_demo.module:
--------------------------------------------------------------------------------
1 | fields('mr', array('destid1'))
19 | ->execute()
20 | ->fetchAllAssoc('destid1');
21 |
22 | return array_keys($results);
23 | }
24 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/partials/_maintenance.scss:
--------------------------------------------------------------------------------
1 | // Styles for the Maintenance page.
2 | // -----------------------------------------------------------------------------
3 | body.maintenance-page {
4 | padding: 10px 0 50px;
5 |
6 | .tasks-list {
7 | > div {
8 | margin-bottom: 25px;
9 | h6 {
10 | margin-bottom: 5px;
11 | }
12 | h4 {
13 | margin: 0;
14 | }
15 |
16 | &.done {
17 | @include opacity(0.5);
18 | }
19 |
20 | &.active {
21 | h4 {
22 | color: $brand-secondary;
23 | }
24 | }
25 | }
26 | }
27 |
28 | .form-actions {
29 | margin-top: 50px;
30 | }
31 | }
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/base/_variable.scss:
--------------------------------------------------------------------------------
1 | // Variables
2 | // -----------------------------------------------------------------------------
3 | @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,300);
4 | @import url(http://fonts.googleapis.com/css?family=Lato:400,600);
5 |
6 | $red: #e74c3c;
7 | $blue: #3498db;
8 | $green: #27ae60;
9 | $yellow: #f1c40f;
10 | $gray: #34495e;
11 | $blue-light: #EFF5F9;
12 |
13 | $link-color: #4697c6;
14 | $border-color: #cee3f0;
15 |
16 | $text-color: #333333;
17 |
18 | $font-primary: 'Open Sans', arial, sans-serif;
19 | $font-secondary: 'Lato', arial, sans-serif;
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/partials/_panel.scss:
--------------------------------------------------------------------------------
1 | // Styles for panels and panes.
2 | // -----------------------------------------------------------------------------
3 |
4 | // Panels Modal
5 | // -----------------------------------------------------------------------------
6 | .panels-add-content-modal {
7 | .widget-preview {
8 | .btn.panels-modal-add-config {
9 | @extend .btn--xs;
10 | background: rgba($brand-secondary, 0.8);
11 | color: white;
12 | border-color: rgba($brand-secondary, 0.8);
13 | @include hover() {
14 | background: rgba($brand-secondary, 1.0);
15 | border-color: rgba($brand-secondary, 1.0);
16 | }
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_demo/restaurant_demo.features.menu_custom.inc:
--------------------------------------------------------------------------------
1 | 'menu-footer-menu',
16 | 'title' => 'Footer Menu',
17 | 'description' => 'Menu links in the footer',
18 | );
19 | // Translatables
20 | // Included for use with string extractors like potx.
21 | t('Footer Menu');
22 | t('Menu links in the footer');
23 |
24 |
25 | return $menus;
26 | }
27 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_pages/restaurant_pages.features.user_permission.inc:
--------------------------------------------------------------------------------
1 | 'access site-wide contact form',
16 | 'roles' => array(
17 | 'anonymous user' => 'anonymous user',
18 | 'authenticated user' => 'authenticated user',
19 | ),
20 | 'module' => 'contact',
21 | );
22 |
23 | return $permissions;
24 | }
25 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-blog-posts.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_base/restaurant_base.features.filter.inc:
--------------------------------------------------------------------------------
1 | 'unfiltered_html',
16 | 'name' => 'Unfiltered HTML',
17 | 'cache' => 1,
18 | 'status' => 1,
19 | 'weight' => 0,
20 | 'filters' => array(
21 | 'filter_htmlcorrector' => array(
22 | 'weight' => 10,
23 | 'status' => 1,
24 | 'settings' => array(),
25 | ),
26 | ),
27 | );
28 |
29 | return $formats;
30 | }
31 |
--------------------------------------------------------------------------------
/restaurant.profile:
--------------------------------------------------------------------------------
1 | 'DefaultMailSystem'));
13 | $addition = array('restaurant_mail' => 'RestaurantMailMailSystem');
14 | variable_set('mail_system', array_merge($current, $addition));
15 | }
16 |
17 | /**
18 | * Implements hook_disable().
19 | */
20 | function restaurant_mail_disable() {
21 | $mail_system = variable_get('mail_system', array('default-system' => 'DefaultMailSystem'));
22 | unset($mail_system['restaurant_mail']);
23 | variable_set('mail_system', $mail_system);
24 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_seo/restaurant_seo.info:
--------------------------------------------------------------------------------
1 | name = Restaurant SEO
2 | description = SEO for the Restaurant Distribution
3 | core = 7.x
4 | package = Open Restaurant
5 | project = restaurant_seo
6 | dependencies[] = ctools
7 | dependencies[] = defaultconfig
8 | dependencies[] = metatag
9 | dependencies[] = panopoly_seo
10 | dependencies[] = strongarm
11 | features[ctools][] = strongarm:strongarm:1
12 | features[defaultconfig][] = strongarm:clean_url
13 | features[features_api][] = api:2
14 | features[metatag][] = global
15 | features[metatag][] = global:403
16 | features[metatag][] = global:404
17 | features[metatag][] = global:frontpage
18 | features[metatag][] = node
19 | features[metatag][] = taxonomy_term
20 | features[metatag][] = user
21 | features[variable][] = clean_url
22 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_wysiwyg/restaurant_wysiwyg.features.filter.inc:
--------------------------------------------------------------------------------
1 | 'unfiltered_html',
16 | 'name' => 'Unfiltered HTML',
17 | 'cache' => 1,
18 | 'status' => 1,
19 | 'weight' => 0,
20 | 'filters' => array(
21 | 'filter_htmlcorrector' => array(
22 | 'weight' => 10,
23 | 'status' => 1,
24 | 'settings' => array(),
25 | ),
26 | ),
27 | );
28 |
29 | return $formats;
30 | }
31 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/components/_dashboard.scss:
--------------------------------------------------------------------------------
1 | // Dashboard
2 | // -----------------------------------------------------------------------------
3 | div.admin {
4 | > .compact-link {
5 | display: none;
6 | }
7 | }
8 | div.admin-panel {
9 | border: 1px solid $border-color;
10 | background: white;
11 | padding: 0;
12 | margin: 0 0 25px;
13 | border-radius: 2px;
14 | > h3 {
15 | padding: 10px 15px;
16 | font-size: 14px;
17 | font-weight: 600;
18 | color: $link-color;
19 | border-bottom: 1px solid $border-color;
20 | background-image: linear-gradient(#fdfefe, #f5f9fc);
21 | }
22 | .body {
23 | padding: 15px;
24 | }
25 | ul.admin-list {
26 | li:last-child {
27 | margin-bottom: 0;
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/partials/_widget.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Styles for Widgets
3 | // --------------------------------------------------
4 |
5 | // Page header
6 | // --------------------------------------------------
7 | .pane-bundle-page-banner {
8 | .pane-title {
9 | display: none;
10 | }
11 | .jumbotron {
12 | border: 0;
13 | margin-bottom: 0;
14 | @include box-shadow(none);
15 | h1 {
16 | margin-top: 0;
17 | }
18 | }
19 | }
20 | .field-name-field-page-banner-links {
21 | .field-items {
22 | .field-item {
23 | display: inline-block;
24 | margin: 0 10px 0 0;
25 | }
26 | }
27 | }
28 |
29 | // Image
30 | // --------------------------------------------------
31 | .pane-bundle-image {
32 | margin-bottom: 15px;
33 | }
34 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "restaurant_seven",
3 | "description": "Administration theme for Open Restaurant.",
4 | "private": true,
5 | "scripts": {
6 | "setup": "npm install && bower install",
7 | "postinstall": "find node_modules/ -name '*.info' -type f -delete"
8 | },
9 | "dependencies": {
10 | "browser-sync": "~2.7.4",
11 | "gulp": "~3.9.0",
12 | "gulp-autoprefixer": "^3.1.0",
13 | "gulp-compass": "~2.1.0",
14 | "gulp-imagemin": "~2.2.1",
15 | "gulp-notify": "^2.2.0",
16 | "gulp-plumber": "~1.0.1",
17 | "gulp-sass": "~2.0.1",
18 | "gulp-sass-glob": "0.0.2",
19 | "gulp-shell": "~0.4.1",
20 | "gulp-util": "^3.0.7",
21 | "imagemin-pngcrush": "~4.1.0",
22 | "node-sass": "^3.4.1"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/restaurant_event.install:
--------------------------------------------------------------------------------
1 | links = array(
18 | array(
19 | 'link_path' => 'node/add/event',
20 | 'link_title' => $t('Add event'),
21 | 'weight' => 30,
22 | ),
23 | array(
24 | 'link_path' => 'admin/events/categories/add',
25 | 'link_title' => $t('Add event category'),
26 | 'weight' => 31,
27 | ),
28 | );
29 | shortcut_set_save($shortcut_set);
30 | }
31 | }
--------------------------------------------------------------------------------
/scripts/update_drops.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Configuration variables
4 | profile_root="$HOME/Sites/htdocs/restaurant/profiles/restaurant"
5 | drops_profile_dest="$HOME/Sites/box/www/openrestaurant-drops-7/profiles/restaurant"
6 |
7 | echo "Starting drops update..."
8 |
9 | # Remove drops profile.
10 | echo "Removing current drops profile..."
11 | rm -rf ${drops_profile_dest}
12 |
13 | # Copy profile to destination.
14 | echo "Copying profile to drops..."
15 | cp -R ${profile_root} ${drops_profile_dest}
16 |
17 | # Remove git files.
18 | echo "Removing all .git files";
19 | find ${drops_profile_dest} -name ".git" -exec rm -rf {} \;
20 | rm -rf ${drops_profile_dest}/.gitignore
21 |
22 |
23 | # Remove .gitignore for profile.
24 | # rm ${drops_profile_dest}/.gitignore;
25 |
26 | echo "Drops update at ${drops_profile_dest}."
27 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_blog/restaurant_blog.install:
--------------------------------------------------------------------------------
1 | links = array(
18 | array(
19 | 'link_path' => 'node/add/blog-post',
20 | 'link_title' => $t('Add blog post'),
21 | 'weight' => 20,
22 | ),
23 | array(
24 | 'link_path' => 'admin/blog_posts/categories/add',
25 | 'link_title' => $t('Add blog category'),
26 | 'weight' => 21,
27 | ),
28 | );
29 | shortcut_set_save($shortcut_set);
30 | }
31 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu.features.menu_custom.inc:
--------------------------------------------------------------------------------
1 | 'menu-restaurant-admin-menu',
16 | 'title' => 'Restaurant Admin Menu',
17 | 'description' => 'Administrative links for managing the restaurant backend.',
18 | );
19 | // Translatables
20 | // Included for use with string extractors like potx.
21 | t('Administrative links for managing the restaurant backend.');
22 | t('Restaurant Admin Menu');
23 |
24 |
25 | return $menus;
26 | }
27 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_admin/restaurant_admin.strongarm.inc:
--------------------------------------------------------------------------------
1 | disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
15 | $strongarm->api_version = 1;
16 | $strongarm->name = 'admin_menu_components';
17 | $strongarm->value = array(
18 | 'admin_menu.icon' => TRUE,
19 | 'admin_menu.menu' => TRUE,
20 | 'admin_menu.search' => TRUE,
21 | 'admin_menu.users' => TRUE,
22 | 'admin_menu.account' => TRUE,
23 | 'shortcut.links' => TRUE,
24 | );
25 | $export['admin_menu_components'] = $strongarm;
26 |
27 | return $export;
28 | }
29 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/screen.scss:
--------------------------------------------------------------------------------
1 | // @file
2 | // SASS partials import
3 | // --------------------------------------------------
4 | @import "compass";
5 |
6 | // Mixins and Variables
7 | // --------------------------------------------------
8 | @import "global/variable";
9 | @import "global/mixin";
10 | @import "global/helper";
11 |
12 | // Bootswatch
13 | // --------------------------------------------------
14 | @import "bootswatch/_variables";
15 |
16 | // Radix
17 | // --------------------------------------------------
18 | @import "compass_radix";
19 |
20 | // Bootswatch
21 | // --------------------------------------------------
22 | @import "bootswatch/bootswatch";
23 |
24 | // Theme CSS
25 | // --------------------------------------------------
26 | @import "global/typography";
27 | @import "partials/**/*";
28 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/template.php:
--------------------------------------------------------------------------------
1 | uri)) {
12 | $output = '';
16 | return $output;
17 | }
18 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/css/restaurant_menu.css:
--------------------------------------------------------------------------------
1 | /**
2 | * @file
3 | * CSS for restaurant menu module
4 | */
5 | .view-display-id-admin_menus td {
6 | vertical-align: top;
7 | }
8 | .view-display-id-admin_menus .views-field-title a {
9 | display: block;
10 | font-size: 1.1em;
11 | margin: 0 0 8px;
12 | }
13 | .views-field-title .item-list ul {
14 | margin: 0;
15 | }
16 | .views-field-title .item-list li {
17 | list-style: none outside none;
18 | }
19 | .entity-field-collection-item {
20 | margin: 0 0 5px;
21 | }
22 | .entity-field-collection-item .content {
23 | overflow: hidden;
24 | }
25 | .entity-field-collection-item .content .field-name-field-menu-type {
26 | float: left;
27 | margin: 0 5px 0 0;
28 | }
29 | .entity-field-collection-item .content .field-name-field-menu-price {
30 | float: right;
31 | margin: 0 0 0 5px;
32 | }
33 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu.features.taxonomy.inc:
--------------------------------------------------------------------------------
1 | array(
13 | 'name' => 'Menu Categories',
14 | 'machine_name' => 'menu_categories',
15 | 'description' => 'Use this taxonomy to organize menus',
16 | 'hierarchy' => 0,
17 | 'module' => 'taxonomy',
18 | 'weight' => 0,
19 | ),
20 | 'nutrition_types' => array(
21 | 'name' => 'Nutrition types',
22 | 'machine_name' => 'nutrition_types',
23 | 'description' => '',
24 | 'hierarchy' => 0,
25 | 'module' => 'taxonomy',
26 | 'weight' => 0,
27 | ),
28 | );
29 | }
30 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_seo/restaurant_seo.features.defaultconfig.inc:
--------------------------------------------------------------------------------
1 | array(
13 | 'strongarm' => 'strongarm',
14 | ),
15 | );
16 | }
17 |
18 | /**
19 | * Implements hook_defaultconfig_strongarm().
20 | */
21 | function restaurant_seo_defaultconfig_strongarm() {
22 | $export = array();
23 |
24 | $strongarm = new stdClass();
25 | $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
26 | $strongarm->api_version = 1;
27 | $strongarm->name = 'clean_url';
28 | $strongarm->value = '1';
29 | $export['clean_url'] = $strongarm;
30 |
31 | return $export;
32 | }
33 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/javascripts/restaurant_toolbar.form.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Navbar search form.
3 | */
4 | (function ($) {
5 | Drupal.behaviors.navbarSearchForm = {
6 | attach: function(context, settings) {
7 | if ($('#restaurant-toolbar-search-form').length) {
8 | var $form = $('#restaurant-toolbar-search-form');
9 | if (!$form.hasClass('navbar-form-processed')) {
10 |
11 | // Add a class when the field is focused.
12 | var $input = $form.find('.form-text');
13 | $input.on('focus', function() {
14 | $form.addClass('focused');
15 | });
16 | // Remove it when blurred.
17 | $input.on('blur', function() {
18 | $form.removeClass('focused');
19 | });
20 |
21 | $form.addClass('navbar-form-processed');
22 | }
23 | }
24 | }
25 | }
26 | })(jQuery);
27 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_user/restaurant_user.features.features_overrides.inc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation.views.inc:
--------------------------------------------------------------------------------
1 | t('Update status form'),
16 | 'help' => t('Form to update reservation status.'),
17 | 'field' => array(
18 | 'handler' => 'restaurant_reservation_handler_update_status_form',
19 | ),
20 | );
21 |
22 | $data['node']['reservation_calendar_field'] = array(
23 | 'title' => t('Reservation calendar field'),
24 | 'help' => t('Displays a reservation for a calendar.'),
25 | 'field' => array(
26 | 'handler' => 'restaurant_reservation_handler_reservation_calendar_field',
27 | ),
28 | );
29 |
30 | return $data;
31 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_blog/restaurant_blog.features.content_menu_links.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'link_path' => 'news',
17 | 'router_path' => 'news',
18 | 'link_title' => 'News',
19 | 'options' => array(),
20 | 'module' => 'system',
21 | 'hidden' => 0,
22 | 'external' => 0,
23 | 'has_children' => 0,
24 | 'expanded' => 0,
25 | 'weight' => 3,
26 | 'customized' => 1,
27 | );
28 | // Translatables
29 | // Included for use with string extractors like potx.
30 | t('News');
31 |
32 |
33 | return $menu_links;
34 | }
35 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/javascripts/restaurant_toolbar.dropdown.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Navbar dropdown.
3 | */
4 | (function ($) {
5 | Drupal.behaviors.navbarDropdown = {
6 | attach: function(context, settings) {
7 | if ($('.navbar-dropdown').length) {
8 | $('.navbar-dropdown', context).each(function () {
9 | var $this = $(this);
10 | if (!$this.hasClass('navbar-dropdown-processed')) {
11 | $this.find('.navbar-dropdown__button').click(function (event) {
12 | event.stopPropagation();
13 | $this.toggleClass('open');
14 | });
15 | }
16 | $this.addClass('navbar-dropdown-processed');
17 | });
18 |
19 | // Close dropdown on click.
20 | $('html').click(function() {
21 | $('.navbar-dropdown', context).removeClass('open');
22 | });
23 | }
24 | }
25 | }
26 | })(jQuery);
27 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "restaurant_toolbar",
3 | "version": "1.0.0",
4 | "description": "Toolbar for Open Restaurant",
5 | "private": true,
6 | "scripts": {
7 | "postinstall": "find node_modules/ -name '*.info' -type f -delete"
8 | },
9 | "keywords": [
10 | "restaurant",
11 | "drupal"
12 | ],
13 | "author": "Arshad Chummun (http://arshad.io/)",
14 | "repository": {
15 | "type": "git",
16 | "url": "git://github.com/openrestaurant/restaurant_toolbar.git"
17 | },
18 | "dependencies": {
19 | "gulp": "~3.8.11",
20 | "gulp-autoprefixer": "^2.1.0",
21 | "gulp-imagemin": "~2.2.1",
22 | "gulp-plumber": "~1.0.1",
23 | "gulp-rename": "~1.2.2",
24 | "gulp-sass": "~2.0.1",
25 | "gulp-shell": "~0.4.1",
26 | "gulp-sourcemaps": "^1.5.2",
27 | "gulp-util": "~3.0.5",
28 | "imagemin-pngcrush": "~4.1.0"
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/includes/slideshow.inc:
--------------------------------------------------------------------------------
1 | bundle) && $variables['entity']->bundle == 'slideshow') {
8 | // Add a custom template.
9 | $variables['theme_hook_suggestions'][] = 'field_slideshow__slideshow';
10 |
11 | // Create a full image url to be used as background.
12 | foreach ($variables['items'] as $index => $item) {
13 | $variables['items'][$index]['image_url'] = file_create_url($item['uri']);
14 | }
15 |
16 | // Fix controls and pager positions.
17 | $variables['controls_position'] = !empty($variables['controls_position']) ? $variables['controls_position'] : "after";
18 | $variables['pager_position'] = !empty($variables['pager_position']) ? $variables['pager_position'] : "after";
19 | }
20 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu.features.content_menu_links.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'link_path' => 'menus',
17 | 'router_path' => 'menus',
18 | 'link_title' => 'The Menu',
19 | 'options' => array(),
20 | 'module' => 'system',
21 | 'hidden' => 0,
22 | 'external' => 0,
23 | 'has_children' => 0,
24 | 'expanded' => 0,
25 | 'weight' => -9,
26 | 'customized' => 1,
27 | );
28 | // Translatables
29 | // Included for use with string extractors like potx.
30 | t('The Menu');
31 |
32 |
33 | return $menu_links;
34 | }
35 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/CHANGELOG.txt:
--------------------------------------------------------------------------------
1 | Restaurant Reservation 7.x-1.0-rc2, 2015-10-22
2 | ------------------------------------
3 | - Update reservation calendar view.
4 |
5 | Restaurant Reservation 7.x-1.0-rc3, 2016-01-25
6 | ------------------------------------
7 | - Merge branch '7.x-1.0-rc3' of github.com:openrestaurant/restaurant_reservation into 7.x-1.0-rc3.
8 | - Strict warning message when updating reservation-status.
9 | - Create release 7.x-1.0-rc2.
10 | - Update reservation calendar view.
11 | - Add demo content.
12 | - Remove demo module for reservation.
13 | - Implement view modes for reservation.
14 | - Update menu weight.
15 | - Updated reservation feature.
16 | - Updated reservation system.
17 | - Renamed package to Open Restaurant.
18 | - Updated permission to administer reservations in exported feature code.
19 | - Merge branch '7.x-1.0-rc3' of git.drupal.org:project/restaurant_reservation into 7.x-1.0-rc3.
20 |
21 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_theme/restaurant_theme.views.inc:
--------------------------------------------------------------------------------
1 | array(
15 | 'restaurant_theme_view_style' => array(
16 | 'title' => t('Default'),
17 | 'help' => t('The default view style for Open Restaurant.'),
18 | 'path' => $module_path . '/plugins/views',
19 | 'handler' => 'RestaurantThemeViewStyle',
20 | 'parent' => 'default',
21 | 'theme' => 'views_view__content',
22 | 'uses row plugin' => TRUE,
23 | 'uses grouping' => TRUE,
24 | 'uses options' => TRUE,
25 | 'type' => 'normal',
26 | ),
27 | ),
28 | );
29 | }
30 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu.entityqueue_default.inc:
--------------------------------------------------------------------------------
1 | disabled = FALSE; /* Edit this to true to make a default queue disabled initially */
15 | $queue->api_version = 1;
16 | $queue->name = 'menus_page';
17 | $queue->label = 'Menus page';
18 | $queue->language = 'en';
19 | $queue->handler = 'simple';
20 | $queue->target_type = 'node';
21 | $queue->settings = array(
22 | 'target_bundles' => array(
23 | 'menu' => 'menu',
24 | ),
25 | 'auto_add' => 1,
26 | 'min_size' => '0',
27 | 'max_size' => '0',
28 | 'act_as_queue' => 1,
29 | );
30 | $export['menus_page'] = $queue;
31 |
32 | return $export;
33 | }
34 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation.admin.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'link_path' => 'news',
17 | 'router_path' => 'news',
18 | 'link_title' => 'News',
19 | 'options' => array(
20 | 'identifier' => 'main-menu_news:news',
21 | ),
22 | 'module' => 'system',
23 | 'hidden' => 0,
24 | 'external' => 0,
25 | 'has_children' => 0,
26 | 'expanded' => 0,
27 | 'weight' => -48,
28 | 'customized' => 1,
29 | );
30 |
31 | // Translatables
32 | // Included for use with string extractors like potx.
33 | t('News');
34 |
35 | return $menu_links;
36 | }
37 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_pages/restaurant_pages.features.menu_links.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'link_path' => 'home',
17 | 'router_path' => 'home',
18 | 'link_title' => 'Home',
19 | 'options' => array(
20 | 'identifier' => 'main-menu_home:home',
21 | ),
22 | 'module' => 'system',
23 | 'hidden' => 0,
24 | 'external' => 0,
25 | 'has_children' => 0,
26 | 'expanded' => 0,
27 | 'weight' => -50,
28 | 'customized' => 1,
29 | );
30 |
31 | // Translatables
32 | // Included for use with string extractors like potx.
33 | t('Home');
34 |
35 | return $menu_links;
36 | }
37 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu.install:
--------------------------------------------------------------------------------
1 | links = array(
18 | array(
19 | 'link_path' => 'node/add/menu',
20 | 'link_title' => $t('Add menu'),
21 | 'weight' => 10,
22 | ),
23 | array(
24 | 'link_path' => 'admin/menus/categories/add',
25 | 'link_title' => $t('Add menu category'),
26 | 'weight' => 11,
27 | ),
28 | array(
29 | 'link_path' => 'admin/menus/types/add',
30 | 'link_title' => $t('Add nutrition type'),
31 | 'weight' => 12,
32 | ),
33 | );
34 | shortcut_set_save($shortcut_set);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/includes/theme.inc:
--------------------------------------------------------------------------------
1 | 'form',
15 | 'template' => 'node-form',
16 | 'path' => drupal_get_path('theme', 'restaurant_seven') . '/templates/form',
17 | );
18 |
19 | // Taxonomy term form.
20 | $items['taxonomy_form_term'] = array(
21 | 'render element' => 'form',
22 | 'template' => 'taxonomy-form-term',
23 | 'path' => drupal_get_path('theme', 'restaurant_seven') . '/templates/form',
24 | );
25 |
26 | return $items;
27 | }
28 |
29 | /**
30 | * Implements hook_element_info_alter().
31 | */
32 | function restaurant_seven_element_info_alter(&$type) {
33 | // Add a custom pre_render callback.
34 | $type['media']['#pre_render'][] = 'restaurant_seven_media_pre_render';
35 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_menu/restaurant_menu.features.menu_links.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'link_path' => 'menus',
17 | 'router_path' => 'menus',
18 | 'link_title' => 'The Menu',
19 | 'options' => array(
20 | 'identifier' => 'main-menu_the-menu:menus',
21 | ),
22 | 'module' => 'system',
23 | 'hidden' => 0,
24 | 'external' => 0,
25 | 'has_children' => 0,
26 | 'expanded' => 0,
27 | 'weight' => -49,
28 | 'customized' => 1,
29 | );
30 |
31 | // Translatables
32 | // Included for use with string extractors like potx.
33 | t('The Menu');
34 |
35 | return $menu_links;
36 | }
37 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/components/_modal.scss:
--------------------------------------------------------------------------------
1 | // Modal
2 | #modalBackdrop {
3 | background: rgba(#000, 0.7) !important;
4 | z-index: 1002 !important;
5 | }
6 | #modalContent {
7 | z-index: 1100 !important;
8 | width: 1000px !important;
9 | div.ctools-modal-content {
10 | width: 100% !important;
11 | margin: 0;
12 | background: transparent;
13 | border-radius: 2px;
14 | .modal-header {
15 | background: $gray;
16 | color: #ecf0f1;
17 | overflow: hidden;
18 | padding: 10px 20px;
19 | height: 48px;
20 | border-radius: 2px 2px 0 0;
21 | .modal-title {
22 | line-height: 30px;
23 | float: left;
24 | }
25 | a.close {
26 | margin: 5px 0 0;
27 | }
28 | }
29 | .modal-content {
30 | width: 1000px !important;
31 | padding: 20px;
32 | background: white;
33 | border-radius: 0 0 2px 2px;
34 | }
35 | }
36 | }
37 | div.ui-dialog {
38 | top: 70px !important;
39 | }
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/components/_table.scss:
--------------------------------------------------------------------------------
1 | // Tables
2 | // -----------------------------------------------------------------------------
3 | table {
4 | border: 1px solid $border-color;
5 | border-radius: 2px;
6 | th {
7 | border: 1px solid $border-color;
8 | padding: 10px 15px;
9 | font-size: 14px;
10 | font-weight: 600;
11 | color: $link-color;
12 | background-image: linear-gradient(#fdfefe, #f5f9fc);
13 | }
14 | tr.even, tr.odd, td, tr td:last-child {
15 | border-color: $border-color;
16 | }
17 | tr.even {
18 | background-color: lighten($border-color, 10);
19 | }
20 | td {
21 | padding: 10px 15px;
22 | }
23 | td.active, th.active, tr.odd td.active {
24 | background-color: lighten($border-color, 10);
25 | }
26 | tr.even td.active {
27 | background-color: lighten($border-color, 5);
28 | }
29 |
30 | &.views-table {
31 | th {
32 | &.views-field-title {
33 | min-width: 30%;
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_slideshow/restaurant_slideshow.module:
--------------------------------------------------------------------------------
1 | t('Slideshow'),
17 | 'pane category' => t('Custom'),
18 | 'pane top level' => TRUE,
19 | 'pane icon' => drupal_get_path('module', 'restaurant_slideshow') . '/images/icon/icon-slideshow.png',
20 | 'admin' => array(
21 | 'path' => 'admin/structure/fieldable-panels-panes/manage/%fieldable_panels_panes_type',
22 | 'bundle argument' => 4,
23 | 'real path' => 'admin/structure/fieldable-panels-panes/manage/slideshow',
24 | 'access arguments' => array('administer fieldable panels panes'),
25 | ),
26 | );
27 |
28 | }
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/includes/term.inc:
--------------------------------------------------------------------------------
1 | vocabulary_machine_name);
18 | $variables['classes_array'][] = drupal_html_class('term--' . $variables['term']->vocabulary_machine_name . '--view-mode--' . $variables['view_mode']);
19 |
20 | // Allow node type preprocess callbacks.
21 | // Example restaurant_radix_preprocess_node_menu.
22 | $function = $theme . '_preprocess_taxonomy_term_' . $variables['term']->vocabulary_machine_name;
23 | if (function_exists($function)) {
24 | $function($variables);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/restaurant_event.pm_existing_pages.inc:
--------------------------------------------------------------------------------
1 | api_version = 1;
15 | $pm_existing_page->name = 'events_calendar_day_page';
16 | $pm_existing_page->label = 'Events calendar day page';
17 | $pm_existing_page->context = '';
18 | $pm_existing_page->paths = 'events/calendar/day';
19 | $export['events_calendar_day_page'] = $pm_existing_page;
20 |
21 | $pm_existing_page = new stdClass();
22 | $pm_existing_page->api_version = 1;
23 | $pm_existing_page->name = 'events_calendar_month_page';
24 | $pm_existing_page->label = 'Events calendar month page';
25 | $pm_existing_page->context = '';
26 | $pm_existing_page->paths = 'events/calendar/month';
27 | $export['events_calendar_month_page'] = $pm_existing_page;
28 |
29 | return $export;
30 | }
31 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/images/icon-content.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_contact/restaurant_contact.features.menu_links.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'link_path' => 'contact',
17 | 'router_path' => 'contact',
18 | 'link_title' => 'Contact',
19 | 'options' => array(
20 | 'attributes' => array(
21 | 'title' => '',
22 | ),
23 | 'identifier' => 'main-menu_contact:contact',
24 | ),
25 | 'module' => 'menu',
26 | 'hidden' => 0,
27 | 'external' => 0,
28 | 'has_children' => 0,
29 | 'expanded' => 0,
30 | 'weight' => 0,
31 | 'customized' => 1,
32 | );
33 |
34 | // Translatables
35 | // Included for use with string extractors like potx.
36 | t('Contact');
37 |
38 | return $menu_links;
39 | }
40 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_contact/restaurant_contact.features.user_permission.inc:
--------------------------------------------------------------------------------
1 | 'access site-wide contact form',
16 | 'roles' => array(),
17 | 'module' => 'contact',
18 | );
19 |
20 | // Exported permission: 'access user contact forms'.
21 | $permissions['access user contact forms'] = array(
22 | 'name' => 'access user contact forms',
23 | 'roles' => array(),
24 | 'module' => 'contact',
25 | );
26 |
27 | // Exported permission: 'administer contact forms'.
28 | $permissions['administer contact forms'] = array(
29 | 'name' => 'administer contact forms',
30 | 'roles' => array(),
31 | 'module' => 'contact',
32 | );
33 |
34 | return $permissions;
35 | }
36 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location.features.menu_links.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'link_path' => 'locations',
17 | 'router_path' => 'locations',
18 | 'link_title' => 'Hours & Locations',
19 | 'options' => array(
20 | 'attributes' => array(
21 | 'title' => '',
22 | ),
23 | 'identifier' => 'main-menu_hours--locations:locations',
24 | ),
25 | 'module' => 'system',
26 | 'hidden' => 0,
27 | 'external' => 0,
28 | 'has_children' => 0,
29 | 'expanded' => 0,
30 | 'weight' => -47,
31 | 'customized' => 1,
32 | );
33 |
34 | // Translatables
35 | // Included for use with string extractors like potx.
36 | t('Hours & Locations');
37 |
38 | return $menu_links;
39 | }
40 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_pages/restaurant_pages.features.menu_custom.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'title' => 'Main menu',
17 | 'description' => 'The Main menu is used on many sites to show the major sections of the site, often in a top navigation bar.',
18 | );
19 | // Exported menu: menu-footer-menu.
20 | $menus['menu-footer-menu'] = array(
21 | 'menu_name' => 'menu-footer-menu',
22 | 'title' => 'Footer Menu',
23 | 'description' => 'Menu links in the footer',
24 | );
25 | // Translatables
26 | // Included for use with string extractors like potx.
27 | t('Footer Menu');
28 | t('Main menu');
29 | t('Menu links in the footer');
30 | t('The Main menu is used on many sites to show the major sections of the site, often in a top navigation bar.');
31 |
32 |
33 | return $menus;
34 | }
35 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_contact/restaurant_contact.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Contact
2 | description = Simple contact page for Open Restaurant.
3 | core = 7.x
4 | package = Open Restaurant
5 | dependencies[] = contact
6 | dependencies[] = ctools
7 | dependencies[] = defaultconfig
8 | dependencies[] = features
9 | dependencies[] = menu
10 | dependencies[] = page_manager
11 | dependencies[] = pm_existing_pages
12 | dependencies[] = restaurant_pages
13 | features[ctools][] = page_manager:pages_default:1
14 | features[ctools][] = pm_existing_pages:pm_existing_pages:1
15 | features[ctools][] = strongarm:strongarm:1
16 | features[features_api][] = api:2
17 | features[menu_links][] = main-menu_contact:contact
18 | features[page_manager_existing_pages][] = contact
19 | features[page_manager_handlers][] = pm_existing_pages_contact__panel_context_48e18782-a665-4ac2-822f-f7dc6a0f19ba
20 | features[user_permission][] = access site-wide contact form
21 | features[user_permission][] = access user contact forms
22 | features[user_permission][] = administer contact forms
23 | features[variable][] = pm_existing_pages_disabled_contact
24 | features_exclude[dependencies][strongarm] = strongarm
25 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_location/restaurant_location.features.content_menu_links.inc:
--------------------------------------------------------------------------------
1 | 'main-menu',
16 | 'link_path' => 'locations',
17 | 'router_path' => 'locations',
18 | 'link_title' => 'Hours & Locations',
19 | 'options' => array(
20 | 'attributes' => array(
21 | 'title' => '',
22 | ),
23 | 'identifier' => 'main-menu_hours--locations:locations',
24 | ),
25 | 'module' => 'system',
26 | 'hidden' => 0,
27 | 'external' => 0,
28 | 'has_children' => 0,
29 | 'expanded' => 0,
30 | 'weight' => -47,
31 | 'customized' => 1,
32 | );
33 | // Translatables
34 | // Included for use with string extractors like potx.
35 | t('Hours & Locations');
36 |
37 |
38 | return $menu_links;
39 | }
40 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation.features.content_menu_links.inc:
--------------------------------------------------------------------------------
1 | 'navigation',
16 | 'link_path' => 'node/add/reservation',
17 | 'router_path' => 'node/add/reservation',
18 | 'link_title' => 'Reservation',
19 | 'options' => array(
20 | 'attributes' => array(
21 | 'title' => 'Content type for reservation.',
22 | ),
23 | ),
24 | 'module' => 'system',
25 | 'hidden' => 0,
26 | 'external' => 0,
27 | 'has_children' => 0,
28 | 'expanded' => 0,
29 | 'weight' => 0,
30 | 'customized' => 0,
31 | 'parent_path' => 'node/add',
32 | );
33 | // Translatables
34 | // Included for use with string extractors like potx.
35 | t('Reservation');
36 |
37 |
38 | return $menu_links;
39 | }
40 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_blog/restaurant_blog.admin.inc:
--------------------------------------------------------------------------------
1 | Fax: +1 888 8888","san-francisco.jpg","icon-san-francisco.png","Monday - Tuesday 11am - 10pm
Friday - Sunday 11am - 11pm","Dolores Street","San Francisco","CA","94110","US"
3 | "Chicago","Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.","Phone: +1 111 1111
Fax: +1 222 2222","chicago.jpg","icon-chicago.png","Monday - Tuesday 11am - 10pm
Friday - Sunday 11am - 11pm","1600 S 61St Ave Cicero","Chicago","IL","60804","US"
4 | "New York","Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.","Phone: +1 999 9999
Fax: +1 888 8888","new-york.jpg","icon-new-york.png","Monday - Tuesday 11am - 10pm
Friday - Sunday 11am - 11pm","1501 Broadway","New York","NY","10036","US"
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/partials/_admin.scss:
--------------------------------------------------------------------------------
1 | // Style for Admin elements
2 | // -----------------------------------------------------------------------------
3 |
4 | // Contextual links.
5 | // -----------------------------------------------------------------------------
6 | .contextual-links-region {
7 | &.contextual-links-region-active {
8 | outline: 1px dashed $brand-secondary;
9 | background-color: rgba($brand-secondary, 0.2);
10 | }
11 | }
12 | ul.contextual-links {
13 | > li {
14 | > a {
15 | @include hover() {
16 | background-color: rgba($brand-secondary, 0.5);
17 | }
18 | }
19 | }
20 | }
21 | .pane-bundle-slideshow {
22 | .contextual-links-wrapper {
23 | right: 40px;
24 | }
25 | }
26 |
27 | // Panels IPE.
28 | // -----------------------------------------------------------------------------
29 | body.panels-ipe {
30 | margin-bottom: 55px !important;
31 | }
32 | div.panels-ipe-placeholder {
33 | background-color: rgba($brand-secondary, 0.5);
34 | outline: 1px dashed $brand-secondary;
35 | border: 0;
36 | }
37 | div.panels-ipe-newblock {
38 | @include box-shadow(none);
39 | ul {
40 | margin: 0;
41 | padding: 0;
42 | }
43 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_theme/restaurant_theme.module:
--------------------------------------------------------------------------------
1 | "3.0");
20 | }
21 |
22 | /**
23 | * Implements hook_system_info_alter().
24 | */
25 | function restaurant_theme_system_info_alter(&$info, $file, $type) {
26 | // Hide blacklisted themes.
27 | $blacklisted_themes = _restaurant_theme_get_blacklisted_themes();
28 | if ($type == 'theme') {
29 | if (in_array($file->name, $blacklisted_themes)) {
30 | $info['hidden'] = TRUE;
31 | }
32 | }
33 | }
34 |
35 | /**
36 | * Returns an array of themes to blacklist.
37 | */
38 | function _restaurant_theme_get_blacklisted_themes() {
39 | return array(
40 | 'stark',
41 | 'bartik',
42 | 'responsive_bartik',
43 | 'garland',
44 | 'octal',
45 | 'radix',
46 | 'restaurant_octal',
47 | 'restaurant_radix',
48 | );
49 | }
50 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/assets/javascripts/restaurant_toolbar.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Restaurant toolbar.
3 | */
4 | (function ($) {
5 | Drupal.behaviors.RestaurantToolbar = {
6 | attach: function(context, settings) {
7 | // Make sure navbar is always vertical.
8 | if ($('#navbar-administration').length) {
9 | // Listen to navbar change and ensure vertical navbar.
10 | ensureVerticalNavbar();
11 | $(document).on('drupalNavbarTabChange', function(event, tray) {
12 | ensureVerticalNavbar();
13 | });
14 |
15 | // TODO: Figure out a way to skip this event.
16 | $('.navbar-tab--menu .navbar-tab').click(function() {
17 | ensureVerticalNavbar();
18 | });
19 | }
20 | }
21 | }
22 |
23 | function ensureVerticalNavbar() {
24 | $('body')
25 | .removeClass('navbar-horizontal')
26 | .addClass('navbar-vertical');
27 | $('#navbar-administration .navbar-tray')
28 | .removeClass('navbar-tray-horizontal')
29 | .addClass('navbar-tray-vertical');
30 |
31 | // Lock it.
32 | if (localStorage) {
33 | localStorage.setItem('Drupal.navbar.trayVerticalLocked', true);
34 | }
35 | }
36 | })(jQuery);
37 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation.theme.inc:
--------------------------------------------------------------------------------
1 | ' . $status_value . '';
17 | }
18 | }
19 |
20 | /**
21 | * Implements theme_reservation_calendar_field().
22 | */
23 | function theme_reservation_calendar_field($variables) {
24 | $reservation = $variables['reservation'];
25 | $text = $variables['text'];
26 | $status = entity_metadata_wrapper('node', $reservation)->field_reservation_status->value();
27 | $color = _restaurant_reservation_get_status_color($status);
28 |
29 | // Add css.
30 | drupal_add_css(drupal_get_path('module', 'restaurant_reservation') . '/css/restaurant_reservation.css');
31 |
32 | return '' . $text . '';
33 | }
34 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/global/_typography.scss:
--------------------------------------------------------------------------------
1 | // Typography
2 | // -----------------------------------------------------------------------------
3 |
4 | // Headings
5 | // -----------------------------------------------------------------------------
6 | h1, h2, h3, h4, h5, h6 {
7 | &:last-child {
8 | margin-bottom: 0;
9 | }
10 | }
11 | h2 {
12 | font-size: 20px;
13 | margin: 0 0 10px;
14 | line-height: 140%;
15 | }
16 | h3 {
17 | font-size: 18px;
18 | margin: 0 0 10px;
19 | line-height: 140%;
20 | }
21 | h4 {
22 | font-size: 14px;
23 | margin: 0 0 10px;
24 | line-height: 140%;
25 | }
26 |
27 | // Anchors
28 | // -----------------------------------------------------------------------------
29 | a {
30 | @include hover() {
31 | text-decoration: none;
32 | }
33 | }
34 |
35 | // Text
36 | // -----------------------------------------------------------------------------
37 | .text {
38 | &--lead {
39 | color: $brand-secondary;
40 | font-size: 16px;
41 | font-weight: 500;
42 | text-transform: uppercase;
43 | }
44 | &--light {
45 | font-weight: 300;
46 | }
47 | &--normal {
48 | font-weight: 500;
49 | }
50 | &--bold {
51 | font-weight: 600;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation.features.menu_links.inc:
--------------------------------------------------------------------------------
1 | 'navigation',
16 | 'link_path' => 'node/add/reservation',
17 | 'router_path' => 'node/add/reservation',
18 | 'link_title' => 'Reservation',
19 | 'options' => array(
20 | 'attributes' => array(
21 | 'title' => 'Content type for reservation.',
22 | ),
23 | 'identifier' => 'navigation_reservation:node/add/reservation',
24 | ),
25 | 'module' => 'system',
26 | 'hidden' => 0,
27 | 'external' => 0,
28 | 'has_children' => 0,
29 | 'expanded' => 0,
30 | 'weight' => 0,
31 | 'customized' => 0,
32 | 'parent_identifier' => 'navigation_add-content:node/add',
33 | );
34 | // Translatables
35 | // Included for use with string extractors like potx.
36 | t('Reservation');
37 |
38 |
39 | return $menu_links;
40 | }
41 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/templates/page/page.tpl.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/includes/node.inc:
--------------------------------------------------------------------------------
1 | type);
18 | $variables['classes_array'][] = drupal_html_class('node--' . $node->type . '--view-mode--' . $variables['view_mode']);
19 |
20 | if (isset($variables['title_suffix']['contextual_links'])) {
21 | $variables['classes_array'][] = 'contextual-links-region';
22 | }
23 |
24 | // Hide all links.
25 | $variables['content']['links']['#access'] = FALSE;
26 |
27 | // Move title_suffix to an extra element.
28 | $variables['extra'] = $variables['title_suffix'];
29 | $variables['title_suffix'] = '';
30 |
31 | // Allow node type preprocess callbacks.
32 | // Example restaurant_radix_preprocess_node_menu.
33 | $function = $theme . '_preprocess_node_' . $variables['node']->type;
34 | if (function_exists($function)) {
35 | $function($variables);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_base/restaurant_base.install:
--------------------------------------------------------------------------------
1 | $t('PHP max_execution_time'),
21 | 'value' => $max_execution_time,
22 | );
23 |
24 | if (!empty($max_execution_time) && (int) $max_execution_time < RESTAURANT_MAX_EXECUTION_TIME) {
25 | $requirements['php_max_execution_time']['description'] = $t('Please update the max_execution_time value in php.ini to at least @max_execution_time. The PHP manual has instructions for how to change configuration settings.', array('@max_execution_time' => RESTAURANT_MAX_EXECUTION_TIME));
26 | $requirements['php_max_execution_time']['severity'] = REQUIREMENT_ERROR;
27 | $requirements['php_max_execution_time']['value'] = $max_execution_time;
28 | }
29 |
30 | return $requirements;
31 | }
32 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | php:
4 | - 5.4
5 |
6 | sudo: false
7 |
8 | mysql:
9 | database: drupal
10 | username: root
11 | encoding: utf8
12 |
13 | env:
14 | - UPGRADE=none
15 | - UPGRADE=7.x-1.0-rc1
16 | - UPGRADE=7.x-1.0-rc2
17 |
18 | matrix:
19 | fast_finish: true
20 | allow_failures:
21 | - env: UPGRADE=7.x-1.0-beta7
22 |
23 | mysql:
24 | database: drupal_travis_db
25 | username: root
26 | encoding: utf8
27 |
28 | before_install:
29 | - composer self-update
30 |
31 | install:
32 | # Make some variables available to the travis-ci.sh script.
33 | - export UPDATE TRAVIS_BUILD_DIR
34 |
35 | # Copy the script into a stable location.
36 | - cp scripts/travis-ci.sh $HOME/
37 |
38 | # Make travis-ci.sh executable
39 | - chmod u+x $HOME/travis-ci.sh
40 |
41 | # Move to the directory above, where we should remain.
42 | - cd ..
43 |
44 | # Start by doing system installation.
45 | - $HOME/travis-ci.sh system-install
46 |
47 | before_script:
48 | - $HOME/travis-ci.sh before-tests
49 |
50 | script:
51 | - $HOME/travis-ci.sh run-tests
52 |
53 | after_script:
54 | - $HOME/travis-ci.sh after-tests
55 |
56 | notifications:
57 | email:
58 | recipients:
59 | - drupal-restaurant-ci@googlegroups.com
60 | on_success: always
61 | on_failure: always
62 |
--------------------------------------------------------------------------------
/scripts/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Script to build the Restaurant installation profile
3 | # Run from the Drupal root.
4 | # To use this command you must have `drush make` and `git` installed.
5 |
6 | echo '========================================================================='
7 | echo ' Open Restaurant - www.open.restaurant '
8 | echo '========================================================================='
9 |
10 | echo "\nUse this command to build the Open Restaurant profile."
11 | echo "\nRun this script from Drupal root.\n"
12 | echo " [1] Build profile in place in development mode from drupal.org"
13 | echo " [2] Build profile in place in release mode from drupal.org"
14 | echo "\nSelection: \c"
15 | read SELECTION
16 |
17 | if [ $SELECTION = "1" ]; then
18 | echo "Building Open Restaurant development profile from drupal.org..."
19 | drush make -y --working-copy --no-gitinfofile --no-cache --contrib-destination=profiles/restaurant profiles/restaurant/build-restaurant-dev.make
20 | elif [ $SELECTION = "2" ]; then
21 | echo "Building Open Restaurant release profile from drupal.org..."
22 | drush make -y --working-copy --no-gitinfofile --no-cache --contrib-destination=profiles/restaurant profiles/restaurant/build-restaurant.make
23 | else
24 | echo "Invalid selection."
25 | fi
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_event/restaurant_event.admin.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
16 | /**
17 | * Implements hook_views_api().
18 | */
19 | function restaurant_user_views_api($module = NULL, $api = NULL) {
20 | return array("api" => "3.0");
21 | }
22 |
23 | /**
24 | * Implements hook_default_page_manager_handlers_alter().
25 | */
26 | function restaurant_user_default_page_manager_handlers_alter(&$data) {
27 | if (isset($data['pm_existing_pages_user_login_panel_context'])) {
28 | $data['pm_existing_pages_user_login_panel_context']->conf['display']->layout = 'radix_whelan'; /* WAS: 'radix_burr_flipped' */
29 | }
30 | if (isset($data['pm_existing_pages_user_password_panel_context'])) {
31 | $data['pm_existing_pages_user_password_panel_context']->conf['display']->layout = 'radix_whelan'; /* WAS: 'radix_burr_flipped' */
32 | }
33 | if (isset($data['pm_existing_pages_user_register_panel_context'])) {
34 | $data['pm_existing_pages_user_register_panel_context']->conf['display']->layout = 'radix_whelan'; /* WAS: 'radix_burr_flipped' */
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/assets/sass/components/_layout.scss:
--------------------------------------------------------------------------------
1 | // Styles for layout
2 | // -----------------------------------------------------------------------------
3 | * {
4 | box-sizing: border-box;
5 | }
6 |
7 | body {
8 | background: white;
9 | }
10 |
11 | // Top
12 | // -----------------------------------------------------------------------------
13 | #top {
14 | background-color: #ffffff;
15 | color: $gray;
16 | border-bottom: 1px solid #E5E5E5;
17 | padding: 15px 0;
18 | font-size: 0.85em;
19 | display: none;
20 | h1 {
21 | float: left;
22 | font-size: 2.0em;
23 | font-weight: 500;
24 | margin: 0;
25 | margin: 0 0 0 -15px;
26 | }
27 | }
28 |
29 | // Page
30 | // -----------------------------------------------------------------------------
31 | #page {
32 | padding: 0;
33 | margin: 0;
34 | border: 0;
35 | width: auto;
36 | min-width: 1000px;
37 | border-radius: 0;
38 | #content {
39 | padding: 15px 30px 30px;
40 | }
41 | }
42 |
43 | // Header
44 | // -----------------------------------------------------------------------------
45 | #header {
46 | color: $gray;
47 | padding: 15px 30px 10px;
48 | min-height: 48px;
49 | border-bottom: 1px solid $border-color;
50 | border-radius: 2px 2px 0 0;
51 | h1 {
52 | margin: 0;
53 | line-height: 140%;
54 | font-size: 1.8em;
55 | float: left;
56 | clear: left;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/Gulpfile.js:
--------------------------------------------------------------------------------
1 | // Include gulp
2 | var gulp = require('gulp');
3 |
4 | // Include Our Plugins
5 | var sass = require('gulp-sass');
6 | var rename = require('gulp-rename');
7 | var imagemin = require('gulp-imagemin');
8 | var pngcrush = require('imagemin-pngcrush');
9 | var shell = require('gulp-shell');
10 | var gutil = require('gulp-util');
11 | var plumber = require('gulp-plumber');
12 | var sourcemaps = require('gulp-sourcemaps');
13 | var autoprefixer = require('gulp-autoprefixer');
14 |
15 | // Compress images.
16 | gulp.task('images', function () {
17 | return gulp.src('assets/images/**/*')
18 | .pipe(imagemin({
19 | progressive: true,
20 | svgoPlugins: [{ removeViewBox: false }],
21 | use: [pngcrush()]
22 | }))
23 | .pipe(gulp.dest('assets/images'));
24 | });
25 |
26 | // Compile Sass.
27 | gulp.task('sass', function() {
28 | return gulp.src('assets/sass/*.scss')
29 | .pipe(plumber({
30 | errorHandler: function (error) {
31 | console.log(error.message);
32 | this.emit('end');
33 | }}))
34 | .pipe(sourcemaps.init())
35 | .pipe(sass())
36 | .pipe(autoprefixer())
37 | .pipe(sourcemaps.write())
38 | .pipe(gulp.dest('assets/stylesheets'));
39 | });
40 |
41 | gulp.task('watch', function() {
42 | gulp.watch('assets/sass/**/*.scss', ['sass']);
43 | })
44 |
45 | // Default Task.
46 | gulp.task('default', ['sass', 'watch']);
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_plugins/restaurant_plugins.module:
--------------------------------------------------------------------------------
1 | t('CSS'),
28 | 'href' => $renderer->get_url('pane-css', $pane->pid),
29 | 'attributes' => array(
30 | 'class' => array('ctools-use-modal', 'pane-css'),
31 | 'title' => t('CSS'),
32 | ),
33 | );
34 |
35 | // Make sure css is added just after style.
36 | $style_link_key = array_search('style', array_keys($vars['links']));
37 | $links_start = array_slice($vars['links'], 0, $style_link_key + 1);
38 | $links_end = array_slice($vars['links'], $style_link_key);
39 |
40 | // Add css link
41 | $links_start['css'] = $css_link;
42 | $vars['links'] = array_merge($links_start, $links_end);
43 | }
44 | }
45 |
46 |
47 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/CHANGELOG.txt:
--------------------------------------------------------------------------------
1 | Restaurant Seven 7.x-1.0-rc2, 2015-10-22
2 | ------------------------------
3 | - Remove event field style.
4 | - Fix style for event node form.
5 | - Fix style for vbo select all.
6 | - Fix ui-dialog style.
7 | - Update header and tabs display.
8 | - Add gulp autoprefixer.
9 | - BrowserSyncProxy.
10 | - Set package private to true.
11 |
12 | Restaurant Seven 7.x-1.0-rc3, 2016-01-25
13 | ------------------------------
14 | - Update css and js directories.
15 | - Merge branch '7.x-1.0-rc3' of github.com:openrestaurant/restaurant_seven into 7.x-1.0-rc3.
16 | - Update theme to use libsass and gulp.
17 | - Update README.md.
18 | - Create release 7.x-1.0-rc2.
19 | - Remove event field style.
20 | - Fix style for event node form.
21 | - Fix style for vbo select all.
22 | - Fix ui-dialog style.
23 | - Update header and tabs display.
24 | - Add gulp autoprefixer.
25 | - BrowserSyncProxy.
26 | - Set package private to true.
27 | - Remove font awesome.
28 | - Update display of action links.
29 | - Update breadcrumbs, tabs and action links styles.
30 | - Styles for action links.
31 | - Update breadcrumb position.
32 | - Minor theme fixes.
33 | - Add styles for modal and media ui.
34 | - Update default header background color.
35 | - Some minor clean up.
36 | - Fixed includes from proper theme.
37 | - Updated multiple styles.
38 | - Merge branch '7.x-1.0-rc3' of github.com:arshad/restaurant_seven into 7.x-1.0-rc3.
39 |
40 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_slideshow/restaurant_slideshow.info:
--------------------------------------------------------------------------------
1 | name = Restaurant Slideshow
2 | description = Provides the structure for creating and managing slideshows
3 | core = 7.x
4 | package = Open Restaurant
5 | project = restaurant_slideshow
6 | dependencies[] = ctools
7 | dependencies[] = features
8 | dependencies[] = field_collection
9 | dependencies[] = field_slideshow
10 | dependencies[] = fieldable_panels_panes
11 | dependencies[] = image
12 | dependencies[] = libraries
13 | dependencies[] = link
14 | dependencies[] = media
15 | dependencies[] = restaurant_base
16 | dependencies[] = strongarm
17 | dependencies[] = text
18 | features[ctools][] = strongarm:strongarm:1
19 | features[features_api][] = api:2
20 | features[field_base][] = field_slideshow_caption
21 | features[field_base][] = field_slideshow_image
22 | features[field_base][] = field_slideshow_link
23 | features[field_base][] = field_slideshow_slides
24 | features[field_instance][] = field_collection_item-field_slideshow_slides-field_slideshow_caption
25 | features[field_instance][] = field_collection_item-field_slideshow_slides-field_slideshow_image
26 | features[field_instance][] = field_collection_item-field_slideshow_slides-field_slideshow_link
27 | features[field_instance][] = fieldable_panels_pane-slideshow-field_slideshow_slides
28 | features[variable][] = field_bundle_settings_field_collection_item__field_slideshow_slides
29 | features[variable][] = field_bundle_settings_fieldable_panels_pane__slideshow
30 |
--------------------------------------------------------------------------------
/tests/features/bootstrap/FeatureContext.php:
--------------------------------------------------------------------------------
1 | locatePath('/'), '/');
36 | $login_link = $this->getMainContext()->getDriver('drush')->drush('uli', array(
37 | '--browser=0',
38 | "--uri=${base_url}",
39 | ));
40 | // Trim EOL characters. Required or else visiting the link won't work.
41 | $login_link = trim($login_link);
42 | $this->getSession()->visit($this->locatePath($login_link));
43 | return TRUE;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/javascripts/restaurant_radix.script.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @file
3 | * Custom scripts for theme.
4 | */
5 | (function ($) {
6 | $(document).ready(function() {
7 | // Show dropdowns on hover.
8 | $('.nav > li.dropdown').mouseenter(function() {
9 | $(this).addClass('open');
10 | });
11 | $('.nav > li.dropdown').mouseleave(function() {
12 | $(this).removeClass('open');
13 | });
14 |
15 | // Make dropdown toggle clickable.
16 | $('.dropdown-toggle').on('click', function() {
17 | if ($(this).attr('href')) {
18 | window.location.href = $(this).attr('href');
19 | }
20 | });
21 | });
22 |
23 | // Smooth anchor scroll.
24 | Drupal.behaviors.smoothAnchorScroll = {
25 | attach: function(context, settings) {
26 | $('a[href*=#]:not([href=#])').click(function() {
27 | var $this = this;
28 | //window.location.hash = $this.hash;
29 | if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
30 | var target = $(this.hash);
31 | target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
32 | if (target.length) {
33 | $('html,body').animate({
34 | scrollTop: target.offset().top
35 | }, 1000, function() {
36 | window.location.hash = $this.hash;
37 | });
38 | return false;
39 | }
40 | }
41 | });
42 | }
43 | }
44 | })(jQuery);
45 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/templates/view/views-view.tpl.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/views/restaurant_reservation_handler_update_status_form.inc:
--------------------------------------------------------------------------------
1 | additional_fields['field_reservation_status'] = array(
18 | 'table' => 'field_data_field_reservation_status',
19 | 'field' => 'field_reservation_status_value',
20 | );
21 | }
22 |
23 | /**
24 | * Loads additional fields.
25 | */
26 | function query() {
27 | $this->ensure_my_table();
28 | $this->add_additional_fields();
29 | }
30 |
31 | /**
32 | * Default options form.
33 | */
34 | function option_definition() {
35 | $options = parent::option_definition();
36 | return $options;
37 | }
38 |
39 | /**
40 | * Creates the form item for the options added.
41 | */
42 | function options_form(&$form, &$form_state) {
43 | parent::options_form($form, $form_state);
44 | }
45 |
46 | /**
47 | * Renders the field handler.
48 | */
49 | function render($values) {
50 | $nid = $values->nid;
51 |
52 | // Include restaurant_reservation.admin.inc.
53 | module_load_include('inc', 'restaurant_reservation', 'restaurant_reservation.admin');
54 |
55 | // Return update status form.
56 | return drupal_get_form('restaurant_reservation_update_status_form_' . $nid, $nid);
57 | }
58 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_toolbar/restaurant_toolbar.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | }
15 |
16 | /**
17 | * Implements hook_views_api().
18 | */
19 | function restaurant_toolbar_views_api($module = NULL, $api = NULL) {
20 | return array("api" => "3.0");
21 | }
22 |
23 | /**
24 | * Implements hook_search_autocomplete_config_features_default_settings().
25 | */
26 | function restaurant_toolbar_search_autocomplete_config_features_default_settings() {
27 | return array(
28 | 0 => array(
29 | 'fid' => 4,
30 | 'title' => 'Toolbar Search',
31 | 'selector' => '#restaurant-toolbar-search-form .form-item-keywords input',
32 | 'weight' => 0,
33 | 'enabled' => 1,
34 | 'parent_fid' => 0,
35 | 'min_char' => 2,
36 | 'max_sug' => 10,
37 | 'no_results' => '{"label":"No results found for [search-phrase].","value":"","link":"","group":{"group_id":"no_results"}}',
38 | 'all_results' => '{"label":"","value":"","link":"","group":{"group_id":"all_results"}}',
39 | 'auto_submit' => 1,
40 | 'auto_redirect' => 1,
41 | 'translite' => 1,
42 | 'data_source' => 'view',
43 | 'data_callback' => 'search_autocomplete/autocomplete/4/',
44 | 'data_static' => '',
45 | 'data_view' => 'toolbar_autocomplete',
46 | 'theme' => 'user-blue.css',
47 | ),
48 | );
49 | }
50 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_seven/templates/page/maintenance-page.tpl.php:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
24 |
25 |
26 |
27 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_mail/restaurant_mail.module:
--------------------------------------------------------------------------------
1 | 'href="' . $prefix,
22 | '/src="(?!https?:\/\/)(?!data:)(?!#)/' => 'src="' . $prefix
23 | );
24 | $message['body'] = preg_replace(array_keys($replacements), array_values($replacements), $message['body']);
25 |
26 | return $message;
27 | }
28 | }
29 |
30 | /**
31 | * Implements hook_mail().
32 | */
33 | function restaurant_mail_mail($key, &$message, $params) {
34 | switch ($key) {
35 | case 'restaurant_mail':
36 | $message['headers']['Content-Type'] = 'text/html; charset=UTF-8;';
37 | $message['subject'] = $params['subject'];
38 | $message['body'][] = $params['body'];
39 | break;
40 | }
41 | }
42 |
43 | /**
44 | * Implements hook_mail_alter().
45 | */
46 | function restaurant_mail_mail_alter(&$message) {
47 | $site_name = variable_get('site_name');
48 | $site_mail = variable_get('site_mail');
49 |
50 | // Add site name and site mail to mail headers.
51 | $message['from'] = $message['headers']['From'] = '"' . $site_name . '" <' . $site_mail . '>';
52 | }
53 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/templates/page/maintenance-page.tpl.php:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
18 |
19 |
20 |
21 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/includes/view.inc:
--------------------------------------------------------------------------------
1 | name);
15 | $variables['classes_array'][] = drupal_html_class('view--' . $view->name .'--' . $view->current_display);
16 |
17 | // Add some template suggestions.
18 | $variables['theme_hook_suggestions'][] = 'views-view__' . $view->name .'__' . $view->current_display;
19 |
20 | // Copy rows to content.
21 | $variables['content'] = $variables['rows'];
22 | }
23 |
24 | /**
25 | * Implements template_preprocess_views_view__content().
26 | */
27 | function restaurant_radix_preprocess_views_view__content(&$variables) {
28 | global $theme;
29 | $view = $variables['view'];
30 |
31 | // Allow specific preprocess callbacks.
32 | $function = $theme . '_preprocess_views_view__content__' . $view->name .'__' . $view->current_display;
33 | if (function_exists($function)) {
34 | $function($variables);
35 | }
36 | }
37 |
38 | /**
39 | * Implements template_preprocess_views_exposed_form().
40 | */
41 | function restaurant_radix_preprocess_views_exposed_form(&$variables) {
42 | $form = $variables['form'];
43 |
44 | // Add the type to the widget.
45 | foreach ($variables['widgets'] as $key => $widget) {
46 | if (isset($form['#info'][$key])) {
47 | $type = $form[$form['#info'][$key]['value']]['#type'];
48 | $variables['widgets'][$key]->type = $type;
49 | }
50 | }
51 | }
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_wysiwyg/restaurant_wysiwyg.module:
--------------------------------------------------------------------------------
1 | t('Support for configuration tokens: [config:name].'),
17 | 'process callback' => 'restaurant_wysiwyg_filter_process',
18 | 'tips callback' => 'restaurant_wysiwyg_filter_tips',
19 | 'weight' => 10,
20 | );
21 |
22 | return $filters;
23 | }
24 |
25 | /**
26 | * Filter tips callback.
27 | */
28 | function restaurant_wysiwyg_filter_tips($filter, $format, $long = FALSE) {
29 | return check_plain(t('You can add configuration values using tokens. Example: [config:site_name].'));
30 | }
31 |
32 | /**
33 | * Filter process callback.
34 | */
35 | function restaurant_wysiwyg_filter_process($text, $filter) {
36 | // Prevent useless processing if there are no config tags.
37 | if (stristr($text, '[config') !== FALSE) {
38 | $pattern = "/(\[config\:([a-z\_]*)\])/i";
39 | $text = preg_replace_callback($pattern, 'restaurant_wysiwyg_filter_replace', $text);
40 | }
41 | return $text;
42 | }
43 |
44 | /**
45 | * Callback for preg_replace_callback() in restaurant_wysiwyg_filter_process().
46 | */
47 | function restaurant_wysiwyg_filter_replace($matches) {
48 | // Replace the match by the config.
49 | $config_name = trim($matches[2]);
50 | $config = restaurant_base_get_config();
51 | if (isset($config[$config_name])) {
52 | return $config[$config_name];
53 | }
54 |
55 | return '';
56 | }
57 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_blog/restaurant_blog.features.field_base.inc:
--------------------------------------------------------------------------------
1 | 1,
16 | 'cardinality' => -1,
17 | 'deleted' => 0,
18 | 'entity_types' => array(),
19 | 'field_name' => 'field_blog_post_categories',
20 | 'indexes' => array(
21 | 'tid' => array(
22 | 0 => 'tid',
23 | ),
24 | ),
25 | 'locked' => 0,
26 | 'module' => 'taxonomy',
27 | 'settings' => array(
28 | 'allowed_values' => array(
29 | 0 => array(
30 | 'vocabulary' => 'blog_categories',
31 | 'parent' => 0,
32 | ),
33 | ),
34 | ),
35 | 'translatable' => 0,
36 | 'type' => 'taxonomy_term_reference',
37 | );
38 |
39 | // Exported field_base: 'field_blog_post_featured_image'
40 | $field_bases['field_blog_post_featured_image'] = array(
41 | 'active' => 1,
42 | 'cardinality' => 1,
43 | 'deleted' => 0,
44 | 'entity_types' => array(),
45 | 'field_name' => 'field_blog_post_featured_image',
46 | 'indexes' => array(
47 | 'fid' => array(
48 | 0 => 'fid',
49 | ),
50 | ),
51 | 'locked' => 0,
52 | 'module' => 'image',
53 | 'settings' => array(
54 | 'default_image' => 0,
55 | 'uri_scheme' => 'public',
56 | ),
57 | 'translatable' => 0,
58 | 'type' => 'image',
59 | );
60 |
61 | return $field_bases;
62 | }
63 |
--------------------------------------------------------------------------------
/modules/restaurant/restaurant_reservation/restaurant_reservation.features.inc:
--------------------------------------------------------------------------------
1 | "1");
13 | }
14 | if ($module == "page_manager" && $api == "pages_default") {
15 | return array("version" => "1");
16 | }
17 | if ($module == "strongarm" && $api == "strongarm") {
18 | return array("version" => "1");
19 | }
20 | }
21 |
22 | /**
23 | * Implements hook_views_api().
24 | */
25 | function restaurant_reservation_views_api($module = NULL, $api = NULL) {
26 | return array("api" => "3.0");
27 | }
28 |
29 | /**
30 | * Implements hook_eck_bundle_info().
31 | */
32 | function restaurant_reservation_eck_bundle_info() {
33 | $items = array(
34 | 'reservation_reservation' => array(
35 | 'machine_name' => 'reservation_reservation',
36 | 'entity_type' => 'reservation',
37 | 'name' => 'reservation',
38 | 'label' => 'Reservation',
39 | ),
40 | );
41 | return $items;
42 | }
43 |
44 | /**
45 | * Implements hook_eck_entity_type_info().
46 | */
47 | function restaurant_reservation_eck_entity_type_info() {
48 | $items = array(
49 | 'reservation' => array(
50 | 'name' => 'reservation',
51 | 'label' => 'Reservation',
52 | 'properties' => array(
53 | 'created' => array(
54 | 'label' => 'Created',
55 | 'type' => 'integer',
56 | 'behavior' => 'created',
57 | ),
58 | ),
59 | ),
60 | );
61 | return $items;
62 | }
63 |
--------------------------------------------------------------------------------
/themes/restaurant/restaurant_radix/assets/sass/global/_mixin.scss:
--------------------------------------------------------------------------------
1 | // SASS Mixins
2 | // -----------------------------------------------------------------------------
3 |
4 | // Hover.
5 | // -----------------------------------------------------------------------------
6 | @mixin hover() {
7 | &:hover, &:focus {
8 | @content;
9 | }
10 | }
11 |
12 | // Fading border.
13 | // -----------------------------------------------------------------------------
14 | @mixin fading-border($position) {
15 | content: "";
16 | height: 1px;
17 | width: 100%;
18 | position: absolute;
19 | left: 0;
20 | right: 0;
21 | @include background-image(linear-gradient(to right, transparent, rgba($brand-primary, 0.1), rgba($brand-primary, 0.5) 50%));
22 |
23 | @if $position == 'top' {
24 | top: 0;
25 | }
26 |
27 | @if $position == 'bottom' {
28 | bottom: 0;
29 | }
30 | }
31 |
32 | // Breakpoint mixin.
33 | // Usage: @include bp(sm) { ... }
34 | // -----------------------------------------------------------------------------
35 | @mixin bp($class) {
36 | @if $class == xs {
37 | @media (max-width: $screen-xs-max) { @content; }
38 | }
39 | @else if $class == sm {
40 | @media (min-width: $screen-sm) { @content; }
41 | }
42 | @else if $class == md {
43 | @media (min-width: $screen-md) { @content; }
44 | }
45 | @else if $class == lg {
46 | @media (min-width: $screen-lg) { @content; }
47 | }
48 | @else {
49 | @warn "Breakpoint mixin supports: xs, sm, md, lg";
50 | }
51 | }
52 |
53 | // Font Awesome.
54 | // Usage: @include fa(bars) { ... }
55 | // -----------------------------------------------------------------------------
56 | @mixin fa($icon) {
57 | @extend .fa;
58 | @extend .fa-#{$icon}
59 | }
60 |
--------------------------------------------------------------------------------