├── .gitignore ├── .travis.yml ├── CHANGELOG.txt ├── README.md ├── build-restaurant-dev.make ├── build-restaurant-pantheon.make ├── build-restaurant.make ├── db └── restaurant.mysql ├── drupal-org-core.make ├── drupal-org.make ├── includes ├── quick.inc └── standard.inc ├── modules └── restaurant │ ├── restaurant_admin │ ├── CHANGELOG.txt │ ├── README.md │ ├── css │ │ └── restaurant_admin.css │ ├── restaurant_admin.admin.inc │ ├── restaurant_admin.features.inc │ ├── restaurant_admin.info │ ├── restaurant_admin.install │ ├── restaurant_admin.module │ ├── restaurant_admin.strongarm.inc │ ├── restaurant_admin.theme.inc │ └── restaurant_admin_links │ │ ├── css │ │ └── restaurant_admin_links.css │ │ ├── js │ │ └── restaurant_admin_links.js │ │ ├── restaurant_admin_links.info │ │ └── restaurant_admin_links.module │ ├── restaurant_base │ ├── CHANGELOG.txt │ ├── README.md │ ├── libraries │ │ └── simple_html_dom.php │ ├── restaurant_base.features.defaultconfig.inc │ ├── restaurant_base.features.filter.inc │ ├── restaurant_base.features.inc │ ├── restaurant_base.info │ ├── restaurant_base.install │ ├── restaurant_base.module │ ├── restaurant_base.strongarm.inc │ └── restaurant_update │ │ ├── restaurant_update.info │ │ └── restaurant_update.module │ ├── restaurant_blog │ ├── CHANGELOG.txt │ ├── README.md │ ├── restaurant_blog.admin.inc │ ├── restaurant_blog.features.content_menu_links.inc │ ├── restaurant_blog.features.field_base.inc │ ├── restaurant_blog.features.field_instance.inc │ ├── restaurant_blog.features.inc │ ├── restaurant_blog.features.menu_links.inc │ ├── restaurant_blog.features.taxonomy.inc │ ├── restaurant_blog.features.user_permission.inc │ ├── restaurant_blog.field_group.inc │ ├── restaurant_blog.info │ ├── restaurant_blog.install │ ├── restaurant_blog.module │ ├── restaurant_blog.pages_default.inc │ ├── restaurant_blog.strongarm.inc │ ├── restaurant_blog.views_default.inc │ └── restaurant_blog_demo │ │ ├── data │ │ ├── blog_posts.csv │ │ ├── images │ │ │ ├── blog-post-1.jpg │ │ │ ├── blog-post-2.jpg │ │ │ ├── blog-post-3.jpg │ │ │ ├── blog-post-4.jpg │ │ │ └── news-slideshow.jpg │ │ ├── slides.csv │ │ ├── slideshows.csv │ │ └── texts.csv │ │ ├── migrations │ │ ├── blog_post.inc │ │ ├── slide.inc │ │ ├── slideshow.inc │ │ └── text.inc │ │ ├── restaurant_blog_demo.features.inc │ │ ├── restaurant_blog_demo.info │ │ ├── restaurant_blog_demo.install │ │ └── restaurant_blog_demo.module │ ├── restaurant_contact │ ├── restaurant_contact.features.inc │ ├── restaurant_contact.features.menu_links.inc │ ├── restaurant_contact.features.user_permission.inc │ ├── restaurant_contact.info │ ├── restaurant_contact.module │ ├── restaurant_contact.pages_default.inc │ ├── restaurant_contact.pm_existing_pages.inc │ └── restaurant_contact.strongarm.inc │ ├── restaurant_demo │ ├── CHANGELOG.txt │ ├── README.md │ ├── data │ │ ├── images │ │ │ └── home-page-slideshow.jpg │ │ ├── slides.csv │ │ ├── slideshows.csv │ │ └── texts.csv │ ├── migrations │ │ ├── slide.inc │ │ ├── slideshow.inc │ │ └── text.inc │ ├── restaurant_demo.features.content_menu_links.inc │ ├── restaurant_demo.features.inc │ ├── restaurant_demo.features.menu_custom.inc │ ├── restaurant_demo.features.menu_links.inc │ ├── restaurant_demo.info │ ├── restaurant_demo.install │ ├── restaurant_demo.module │ └── restaurant_demo.strongarm.inc │ ├── restaurant_event │ ├── CHANGELOG.txt │ ├── README.md │ ├── restaurant_event.admin.inc │ ├── restaurant_event.features.content_menu_links.inc │ ├── restaurant_event.features.defaultconfig.inc │ ├── restaurant_event.features.field_base.inc │ ├── restaurant_event.features.field_instance.inc │ ├── restaurant_event.features.inc │ ├── restaurant_event.features.menu_custom.inc │ ├── restaurant_event.features.menu_links.inc │ ├── restaurant_event.features.taxonomy.inc │ ├── restaurant_event.features.user_permission.inc │ ├── restaurant_event.field_group.inc │ ├── restaurant_event.info │ ├── restaurant_event.install │ ├── restaurant_event.module │ ├── restaurant_event.pages_default.inc │ ├── restaurant_event.pm_existing_pages.inc │ ├── restaurant_event.strongarm.inc │ ├── restaurant_event.theme.inc │ ├── restaurant_event.views_default.inc │ └── restaurant_event_demo │ │ ├── data │ │ ├── events.csv │ │ ├── images │ │ │ ├── event-1.jpg │ │ │ ├── event-2.jpg │ │ │ ├── event-3.jpg │ │ │ ├── event-4.jpg │ │ │ └── events-slideshow.jpg │ │ ├── slides.csv │ │ ├── slideshows.csv │ │ └── texts.csv │ │ ├── migrations │ │ ├── event.inc │ │ ├── slides.inc │ │ ├── slideshow.inc │ │ └── text.inc │ │ ├── restaurant_event_demo.info │ │ ├── restaurant_event_demo.install │ │ └── restaurant_event_demo.module │ ├── restaurant_location │ ├── CHANGELOG.txt │ ├── README.md │ ├── restaurant_location.admin.inc │ ├── restaurant_location.features.content_menu_links.inc │ ├── restaurant_location.features.field_base.inc │ ├── restaurant_location.features.field_instance.inc │ ├── restaurant_location.features.inc │ ├── restaurant_location.features.menu_links.inc │ ├── restaurant_location.features.user_permission.inc │ ├── restaurant_location.field_group.inc │ ├── restaurant_location.info │ ├── restaurant_location.install │ ├── restaurant_location.module │ ├── restaurant_location.pages_default.inc │ ├── restaurant_location.strongarm.inc │ ├── restaurant_location.theme.inc │ ├── restaurant_location.views_default.inc │ └── restaurant_location_demo │ │ ├── data │ │ ├── images │ │ │ ├── chicago.jpg │ │ │ ├── icon-chicago.png │ │ │ ├── icon-new-york.png │ │ │ ├── icon-san-francisco.png │ │ │ ├── locations-slideshow.jpg │ │ │ ├── new-york.jpg │ │ │ └── san-francisco.jpg │ │ ├── locations.csv │ │ ├── slides.csv │ │ ├── slideshows.csv │ │ └── texts.csv │ │ ├── migrations │ │ ├── location.inc │ │ ├── slides.inc │ │ ├── slideshow.inc │ │ └── text.inc │ │ ├── restaurant_location_demo.info │ │ ├── restaurant_location_demo.install │ │ ├── restaurant_location_demo.migrate.inc │ │ └── restaurant_location_demo.module │ ├── restaurant_mail │ ├── CHANGELOG.txt │ ├── README.md │ ├── restaurant_mail.info │ ├── restaurant_mail.install │ └── restaurant_mail.module │ ├── restaurant_menu │ ├── CHANGELOG.txt │ ├── README.md │ ├── css │ │ └── restaurant_menu.css │ ├── restaurant_menu.admin.inc │ ├── restaurant_menu.entityqueue_default.inc │ ├── restaurant_menu.features.content_menu_links.inc │ ├── restaurant_menu.features.field_base.inc │ ├── restaurant_menu.features.field_instance.inc │ ├── restaurant_menu.features.inc │ ├── restaurant_menu.features.menu_custom.inc │ ├── restaurant_menu.features.menu_links.inc │ ├── restaurant_menu.features.taxonomy.inc │ ├── restaurant_menu.features.user_permission.inc │ ├── restaurant_menu.field_group.inc │ ├── restaurant_menu.info │ ├── restaurant_menu.install │ ├── restaurant_menu.make │ ├── restaurant_menu.module │ ├── restaurant_menu.pages_default.inc │ ├── restaurant_menu.strongarm.inc │ ├── restaurant_menu.views_default.inc │ └── restaurant_menu_demo │ │ ├── data │ │ ├── categories.csv │ │ ├── images │ │ │ ├── categories │ │ │ │ ├── appetizers.jpg │ │ │ │ ├── breakfast.jpg │ │ │ │ ├── dinner.jpg │ │ │ │ ├── drinks.jpg │ │ │ │ ├── grilled.jpg │ │ │ │ ├── icon-appetizers.png │ │ │ │ ├── icon-breakfast.png │ │ │ │ ├── icon-dinner.png │ │ │ │ ├── icon-drinks.png │ │ │ │ ├── icon-grilled.png │ │ │ │ ├── icon-lunch.png │ │ │ │ ├── icon-soup.png │ │ │ │ ├── lunch.jpg │ │ │ │ └── soup.jpg │ │ │ ├── menus │ │ │ │ ├── appetizers-1.jpg │ │ │ │ ├── appetizers-2.jpg │ │ │ │ ├── appetizers-3.jpg │ │ │ │ ├── breakfast-1.jpg │ │ │ │ ├── breakfast-2.jpg │ │ │ │ ├── breakfast-3.jpg │ │ │ │ ├── dinner-1.jpg │ │ │ │ ├── dinner-2.jpg │ │ │ │ ├── dinner-3.jpg │ │ │ │ ├── drinks-1.jpg │ │ │ │ ├── drinks-2.jpg │ │ │ │ ├── drinks-3.jpg │ │ │ │ ├── grilled-1.jpg │ │ │ │ ├── grilled-2.jpg │ │ │ │ ├── grilled-3.jpg │ │ │ │ ├── lunch-1.jpg │ │ │ │ ├── lunch-2.jpg │ │ │ │ ├── lunch-3.jpg │ │ │ │ ├── soup-1.jpg │ │ │ │ ├── soup-2.jpg │ │ │ │ └── soup-3.jpg │ │ │ ├── slides │ │ │ │ └── menus-slideshow.jpg │ │ │ └── types │ │ │ │ ├── icon-alcohol-free.png │ │ │ │ ├── icon-dairy-free.png │ │ │ │ ├── icon-gluten-free.png │ │ │ │ ├── icon-nuts-free.png │ │ │ │ ├── icon-organic.png │ │ │ │ ├── icon-sugar-free.png │ │ │ │ ├── icon-type-default.png │ │ │ │ ├── icon-vegan.png │ │ │ │ └── icon-vegetarian.png │ │ ├── menus-few.csv │ │ ├── menus.csv │ │ ├── slides.csv │ │ ├── slideshows.csv │ │ └── types.csv │ │ ├── migrations │ │ ├── category.inc │ │ ├── menu.inc │ │ ├── slide.inc │ │ ├── slideshow.inc │ │ └── type.inc │ │ ├── restaurant_menu_demo.features.inc │ │ ├── restaurant_menu_demo.info │ │ ├── restaurant_menu_demo.install │ │ └── restaurant_menu_demo.module │ ├── restaurant_pages │ ├── CHANGELOG.txt │ ├── README.md │ ├── restaurant_pages.features.content_menu_links.inc │ ├── restaurant_pages.features.features_overrides.inc │ ├── restaurant_pages.features.inc │ ├── restaurant_pages.features.menu_custom.inc │ ├── restaurant_pages.features.menu_links.inc │ ├── restaurant_pages.features.user_permission.inc │ ├── restaurant_pages.info │ ├── restaurant_pages.module │ ├── restaurant_pages.pages_default.inc │ └── restaurant_pages.strongarm.inc │ ├── restaurant_plugins │ ├── CHANGELOG.txt │ ├── README.md │ ├── plugins │ │ └── styles │ │ │ └── nav.inc │ ├── restaurant_plugins.info │ ├── restaurant_plugins.module │ └── restaurant_plugins.theme.inc │ ├── restaurant_reservation │ ├── CHANGELOG.txt │ ├── README.md │ ├── css │ │ └── restaurant_reservation.css │ ├── plugins │ │ └── content_types │ │ │ └── reservation_form.inc │ ├── restaurant_reservation.admin.inc │ ├── restaurant_reservation.alter.inc │ ├── restaurant_reservation.config.inc │ ├── restaurant_reservation.features.content_menu_links.inc │ ├── restaurant_reservation.features.defaultconfig.inc │ ├── restaurant_reservation.features.field_base.inc │ ├── restaurant_reservation.features.field_instance.inc │ ├── restaurant_reservation.features.inc │ ├── restaurant_reservation.features.menu_links.inc │ ├── restaurant_reservation.features.user_permission.inc │ ├── restaurant_reservation.field_group.inc │ ├── restaurant_reservation.info │ ├── restaurant_reservation.module │ ├── restaurant_reservation.pages_default.inc │ ├── restaurant_reservation.strongarm.inc │ ├── restaurant_reservation.theme.inc │ ├── restaurant_reservation.views.inc │ ├── restaurant_reservation.views_default.inc │ ├── restaurant_reservation_demo │ │ ├── README.md │ │ ├── data │ │ │ ├── images │ │ │ │ └── reservation-slideshow.jpg │ │ │ ├── slides.csv │ │ │ ├── slideshows.csv │ │ │ └── texts.csv │ │ ├── migrations │ │ │ ├── slide.inc │ │ │ ├── slideshow.inc │ │ │ └── text.inc │ │ ├── restaurant_reservation_demo.features.inc │ │ ├── restaurant_reservation_demo.info │ │ ├── restaurant_reservation_demo.install │ │ └── restaurant_reservation_demo.module │ ├── templates │ │ ├── reservation--reservation--email.tpl.php │ │ └── reservation--reservation--full.tpl.php │ └── views │ │ ├── restaurant_reservation_handler_reservation_calendar_field.inc │ │ └── restaurant_reservation_handler_update_status_form.inc │ ├── restaurant_seo │ ├── README.md │ ├── restaurant_seo.features.defaultconfig.inc │ ├── restaurant_seo.features.inc │ ├── restaurant_seo.features.metatag.inc │ ├── restaurant_seo.info │ ├── restaurant_seo.module │ └── restaurant_seo.strongarm.inc │ ├── restaurant_slideshow │ ├── README.md │ ├── images │ │ └── icon │ │ │ └── icon-slideshow.png │ ├── restaurant_slideshow.features.field.inc │ ├── restaurant_slideshow.features.field_base.inc │ ├── restaurant_slideshow.features.field_instance.inc │ ├── restaurant_slideshow.features.inc │ ├── restaurant_slideshow.info │ ├── restaurant_slideshow.module │ └── restaurant_slideshow.strongarm.inc │ ├── restaurant_theme │ ├── CHANGELOG.txt │ ├── README.md │ ├── plugins │ │ └── views │ │ │ └── restaurant_theme_view_style.inc │ ├── restaurant_theme.info │ ├── restaurant_theme.module │ ├── restaurant_theme.theme.inc │ ├── restaurant_theme.views.inc │ └── views-view--content.tpl.php │ ├── restaurant_toolbar │ ├── CHANGELOG.txt │ ├── Gulpfile.js │ ├── README.md │ ├── assets │ │ ├── images │ │ │ ├── icon-account.svg │ │ │ ├── icon-appearance.svg │ │ │ ├── icon-bars.svg │ │ │ ├── icon-blog-posts.svg │ │ │ ├── icon-configuration.svg │ │ │ ├── icon-content.svg │ │ │ ├── icon-default.svg │ │ │ ├── icon-events.svg │ │ │ ├── icon-handle-close.svg │ │ │ ├── icon-handle-open.svg │ │ │ ├── icon-locations.svg │ │ │ ├── icon-menus.svg │ │ │ ├── icon-modules.svg │ │ │ ├── icon-people.svg │ │ │ ├── icon-reports.svg │ │ │ ├── icon-reservations.svg │ │ │ ├── icon-search-active.svg │ │ │ ├── icon-search.svg │ │ │ ├── icon-shortcuts.svg │ │ │ └── icon-structure.svg │ │ ├── javascripts │ │ │ ├── restaurant_toolbar.dropdown.js │ │ │ ├── restaurant_toolbar.form.js │ │ │ └── restaurant_toolbar.js │ │ ├── sass │ │ │ ├── global │ │ │ │ ├── _mixin.scss │ │ │ │ └── _variable.scss │ │ │ ├── partials │ │ │ │ ├── _body.scss │ │ │ │ ├── _form.scss │ │ │ │ └── _toolbar.scss │ │ │ └── restaurant_toolbar.scss │ │ └── stylesheets │ │ │ └── restaurant_toolbar.css │ ├── package.json │ ├── restaurant_toolbar.features.inc │ ├── restaurant_toolbar.info │ ├── restaurant_toolbar.install │ ├── restaurant_toolbar.module │ ├── restaurant_toolbar.theme.inc │ └── restaurant_toolbar.views_default.inc │ ├── restaurant_user │ ├── README.md │ ├── restaurant_user.features.defaultconfig.inc │ ├── restaurant_user.features.features_overrides.inc │ ├── restaurant_user.features.inc │ ├── restaurant_user.features.user_role.inc │ ├── restaurant_user.info │ ├── restaurant_user.module │ └── restaurant_user.strongarm.inc │ └── restaurant_wysiwyg │ ├── CHANGELOG.txt │ ├── README.md │ ├── restaurant_wysiwyg.features.features_overrides.inc │ ├── restaurant_wysiwyg.features.filter.inc │ ├── restaurant_wysiwyg.features.inc │ ├── restaurant_wysiwyg.info │ ├── restaurant_wysiwyg.module │ └── restaurant_wysiwyg.strongarm.inc ├── restaurant.css ├── restaurant.info ├── restaurant.install ├── restaurant.png ├── restaurant.profile ├── scripts ├── build.sh ├── config.sh ├── release.sh ├── reset.sh ├── travis-ci.sh ├── update_drops.sh └── update_remotes.sh ├── tests ├── .gitignore ├── behat.travis.yml ├── composer.json └── features │ ├── bootstrap │ └── FeatureContext.php │ ├── demo.feature │ └── login.feature └── themes └── restaurant ├── restaurant_radix ├── .gitignore ├── CHANGELOG.txt ├── README.md ├── assets │ ├── javascripts │ │ └── restaurant_radix.script.js │ └── sass │ │ ├── global │ │ ├── _helper.scss │ │ ├── _mixin.scss │ │ ├── _typography.scss │ │ └── _variable.scss │ │ ├── partials │ │ ├── _admin.scss │ │ ├── _blog.scss │ │ ├── _comment.scss │ │ ├── _event.scss │ │ ├── _form.scss │ │ ├── _layout.scss │ │ ├── _location.scss │ │ ├── _maintenance.scss │ │ ├── _menu.scss │ │ ├── _nav.scss │ │ ├── _page.scss │ │ ├── _panel.scss │ │ ├── _slideshow.scss │ │ ├── _structure.scss │ │ ├── _user.scss │ │ ├── _view.scss │ │ └── _widget.scss │ │ └── screen.scss ├── includes │ ├── field.inc │ ├── form.inc │ ├── nav.inc │ ├── node.inc │ ├── slideshow.inc │ ├── term.inc │ └── view.inc ├── logo.png ├── restaurant_radix.info ├── screenshot.png ├── template.php ├── templates │ ├── page │ │ └── maintenance-page.tpl.php │ ├── region │ │ └── region.tpl.php │ └── view │ │ ├── views-exposed-form.tpl.php │ │ └── views-view.tpl.php └── theme-settings.php └── restaurant_seven ├── .gitignore ├── .npmrc ├── CHANGELOG.txt ├── Gulpfile.js ├── README.md ├── assets ├── css │ ├── restaurant_seven.style.css │ └── screen.css ├── images │ ├── README.txt │ ├── icon │ │ ├── icon-apps-active.png │ │ ├── icon-apps.png │ │ ├── icon-close-popup.png │ │ ├── icon-panopoly-active.png │ │ └── icon-panopoly.png │ └── throbber.gif ├── js │ └── restaurant_seven.script.js └── sass │ ├── base │ ├── _helper.scss │ ├── _mixin.scss │ ├── _typography.scss │ └── _variable.scss │ ├── components │ ├── _admin_list.scss │ ├── _breadcrumb.scss │ ├── _dashboard.scss │ ├── _form.scss │ ├── _layout.scss │ ├── _maintenance.scss │ ├── _media.scss │ ├── _modal.scss │ ├── _nav.scss │ ├── _page.scss │ ├── _reservation.scss │ ├── _structure.scss │ ├── _table.scss │ ├── _tabs.scss │ ├── _user.scss │ └── _view.scss │ └── restaurant_seven.style.scss ├── bower.json ├── config.json ├── includes ├── comment.inc ├── field.inc ├── form.inc ├── maintenance.inc ├── media.inc ├── nav.inc ├── node.inc ├── panel.inc ├── structure.inc ├── term.inc ├── theme.inc ├── user.inc └── view.inc ├── logo.png ├── package.json ├── restaurant_seven.info ├── screenshot.png ├── template.php └── templates ├── README.txt ├── form ├── node-form.tpl.php └── taxonomy-form-term.tpl.php ├── media └── media-dialog-page.tpl.php └── page ├── README.txt ├── maintenance-page.tpl.php └── page.tpl.php /.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore profile modules, libraries and themes 2 | modules/contrib/* 3 | modules/panopoly/* 4 | themes/contrib/* 5 | libraries/* 6 | .DS_Store 7 | RELEASE_NOTES.txt 8 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /build-restaurant-dev.make: -------------------------------------------------------------------------------- 1 | api = 2 2 | core = 7.x 3 | 4 | ; Include the definition for how to build Drupal core directly, including patches: 5 | includes[] = drupal-org-core.make 6 | 7 | ; Download the Restaurant install profile and recursively build its dependencies: 8 | projects[restaurant][type] = profile 9 | projects[restaurant][download][type] = git 10 | projects[restaurant][download][branch] = 7.x-1.x 11 | -------------------------------------------------------------------------------- /build-restaurant-pantheon.make: -------------------------------------------------------------------------------- 1 | api = 2 2 | core = 7.x 3 | 4 | ; Drupal 5 | projects[drupal][type] = core 6 | projects[drupal][download][type] = git 7 | projects[drupal][download][url] = git://github.com/pantheon-systems/drops-7.git 8 | projects[drupal][download][branch] = master 9 | 10 | ; Open Restaurant 11 | projects[restaurant][type] = profile 12 | projects[restaurant][download][type] = git 13 | projects[restaurant][download][url] = https://github.com/openrestaurant/restaurant.git 14 | projects[restaurant][version] = 1.x-dev 15 | projects[restaurant][download][branch] = 7.x-1.x -------------------------------------------------------------------------------- /build-restaurant.make: -------------------------------------------------------------------------------- 1 | api = 2 2 | core = 7.x 3 | 4 | ; Include the definition for how to build Drupal core directly, including patches: 5 | includes[] = drupal-org-core.make 6 | 7 | ; Download the Restaurant install profile and recursively build its dependencies: 8 | projects[restaurant][type] = profile 9 | projects[restaurant][version] = 1.15 10 | -------------------------------------------------------------------------------- /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_admin/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Restaurant Admin 7.x-1.0-rc2, 2015-10-22 2 | ------------------------------ 3 | - No changes since last release. 4 | 5 | Restaurant Admin 7.x-1.0-rc3, 2016-01-25 6 | ------------------------------ 7 | - No changes since last release. 8 | 9 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_admin/README.md: -------------------------------------------------------------------------------- 1 | Restaurant Admin 2 | ==== 3 | Provides administrative enhancements for the Restaurant Distribution. 4 | 5 | See project page: http://drupal.org/project/restaurant_admin 6 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_admin/css/restaurant_admin.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Admin enhancement. 3 | */ 4 | div#toolbar { 5 | z-index: 1000; 6 | } 7 | div#toolbar div.toolbar-menu { 8 | padding: 10px 50px 10px 10px; 9 | } -------------------------------------------------------------------------------- /modules/restaurant/restaurant_admin/restaurant_admin.admin.inc: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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_admin/restaurant_admin.install: -------------------------------------------------------------------------------- 1 | fields(array('weight' => 20)) 10 | ->condition('type', 'module') 11 | ->condition('name', 'restaurant_admin') 12 | ->execute(); 13 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_admin/restaurant_admin.theme.inc: -------------------------------------------------------------------------------- 1 | uri)) { 12 | $output = '
'; 13 | $output .= ''; 14 | $output .= ''; 15 | $output .= '
'; 16 | return $output; 17 | } 18 | } -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_base/restaurant_base.features.inc: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_base/restaurant_update/restaurant_update.info: -------------------------------------------------------------------------------- 1 | name = Restaurant Update 2 | description = Modifications to the Drupal update status page. 3 | core = 7.x 4 | package = Open Restaurant Core 5 | version = 7.x-1.0 6 | project = restaurant_update 7 | dependencies[] = update 8 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Restaurant Blog 7.x-1.0-rc2, 2015-10-22 2 | ----------------------------- 3 | - Add blog post category shortcut. 4 | 5 | Restaurant Blog 7.x-1.0-rc3, 2016-01-25 6 | ----------------------------- 7 | - No changes since last release. 8 | 9 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/README.md: -------------------------------------------------------------------------------- 1 | Restaurant Blog 2 | =============== 3 | 4 | Blog system for the Restaurant distribution. 5 | 6 | See project page: http://drupal.org/project/restaurant_blog 7 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog.admin.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_blog/restaurant_blog.features.menu_links.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_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_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_blog/restaurant_blog_demo/data/images/blog-post-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/blog-post-1.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/blog-post-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/blog-post-2.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/blog-post-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/blog-post-3.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/blog-post-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/blog-post-4.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/news-slideshow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_blog/restaurant_blog_demo/data/images/news-slideshow.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/data/slides.csv: -------------------------------------------------------------------------------- 1 | slide_id,slideshow_id,image,caption 2 | 1,1,news-slideshow.jpg,Veggie ipsum dolor amet -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/data/slideshows.csv: -------------------------------------------------------------------------------- 1 | uuid,slideshow_id,bundle,reusable,admin_title,category 2 | 8ff764c1-26fd-404c-b9d1-7edfb9a778eb,1,slideshow,1,News Slideshow,Slideshows -------------------------------------------------------------------------------- /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,

  See all News

-------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/restaurant_blog_demo.features.inc: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/restaurant_blog_demo.info: -------------------------------------------------------------------------------- 1 | name = Restaurant Blog Demo 2 | description = Demo content for the Open Restaurant Blog. 3 | core = 7.x 4 | package = Open Restaurant Demo 5 | project = restaurant_blog_demo 6 | dependencies[] = restaurant_blog 7 | features[ctools][] = strongarm:strongarm:1 8 | features[features_api][] = api:2 9 | features_exclude[dependencies][ctools] = ctools 10 | 11 | ; Migration files 12 | files[] = migrations/blog_post.inc 13 | files[] = migrations/slideshow.inc 14 | files[] = migrations/slide.inc 15 | files[] = migrations/text.inc 16 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_blog/restaurant_blog_demo/restaurant_blog_demo.install: -------------------------------------------------------------------------------- 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.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_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_contact/restaurant_contact.module: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /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_demo/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Restaurant Demo 7.x-1.0-rc2, 2015-10-22 2 | ----------------------------- 3 | - Update default slogan. 4 | 5 | Restaurant Demo 7.x-1.0-rc3, 2016-01-25 6 | ----------------------------- 7 | - No changes since last release. 8 | 9 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_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_demo/data/images/home-page-slideshow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_demo/data/images/home-page-slideshow.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_demo/data/slides.csv: -------------------------------------------------------------------------------- 1 | slide_id,slideshow_id,image,caption 2 | 1,1,home-page-slideshow.jpg,[config:site_name] -------------------------------------------------------------------------------- /modules/restaurant/restaurant_demo/data/slideshows.csv: -------------------------------------------------------------------------------- 1 | uuid,slideshow_id,bundle,reusable,admin_title,category 2 | 6f22a355-2407-4965-aea0-d0338ff40ac3,1,slideshow,1,Home page Slideshow,Slideshows -------------------------------------------------------------------------------- /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_demo/restaurant_demo.features.inc: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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_demo/restaurant_demo.install: -------------------------------------------------------------------------------- 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_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 | } -------------------------------------------------------------------------------- /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_event/restaurant_event.theme.inc: -------------------------------------------------------------------------------- 1 |   See all Events -------------------------------------------------------------------------------- /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_event/restaurant_event_demo/restaurant_event_demo.install: -------------------------------------------------------------------------------- 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_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_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 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_location/restaurant_location.theme.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" -------------------------------------------------------------------------------- /modules/restaurant/restaurant_location/restaurant_location_demo/data/slides.csv: -------------------------------------------------------------------------------- 1 | slide_id,slideshow_id,image,caption 2 | 1,1,locations-slideshow.jpg,Find your [config:site_name] -------------------------------------------------------------------------------- /modules/restaurant/restaurant_location/restaurant_location_demo/data/slideshows.csv: -------------------------------------------------------------------------------- 1 | uuid,slideshow_id,bundle,reusable,admin_title,category 2 | 6f070932-b373-4aab-80c3-d84082324b24,1,slideshow,1,Locations Slideshow,Slideshows -------------------------------------------------------------------------------- /modules/restaurant/restaurant_location/restaurant_location_demo/data/texts.csv: -------------------------------------------------------------------------------- 1 | uuid,id,bundle,reusable,admin_title,category,field_basic_text_text 2 | b4caebe6-f16a-4773-a3ed-57023be13e0c,1,text,1,Back to Locations,Panes,

  See all Locations

-------------------------------------------------------------------------------- /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_location/restaurant_location_demo/restaurant_location_demo.install: -------------------------------------------------------------------------------- 1 | fields('mr', array('destid1')) 19 | ->execute() 20 | ->fetchAllAssoc('destid1'); 21 | 22 | return array_keys($results); 23 | } 24 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_mail/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Restaurant Mail 7.x-1.0-rc2, 2015-10-22 2 | ----------------------------- 3 | - No changes since last release. 4 | 5 | Restaurant Mail 7.x-1.0-rc3, 2016-01-25 6 | ----------------------------- 7 | - No changes since last release. 8 | 9 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_mail/README.md: -------------------------------------------------------------------------------- 1 | Restaurant Mail 2 | =============== 3 | Handles emails for the Restaurant Distribution. 4 | 5 | See the project page: http://drupal.org/project/restaurant_mail 6 | -------------------------------------------------------------------------------- /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_mail/restaurant_mail.install: -------------------------------------------------------------------------------- 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_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 | -------------------------------------------------------------------------------- /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/README.md: -------------------------------------------------------------------------------- 1 | Restaurant Menu 2 | === 3 | A menu management system for the Restaurant Distribution. 4 | 5 | See project page: http://drupal.org/project/restaurant_menu 6 | -------------------------------------------------------------------------------- /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.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_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_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_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 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu.make: -------------------------------------------------------------------------------- 1 | api = 2 2 | core = 7.x 3 | 4 | ; Dependencies 5 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/appetizers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/breakfast.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/dinner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/grilled.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-appetizers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-breakfast.png -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-dinner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-grilled.png -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-lunch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/icon-soup.png -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/lunch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/categories/soup.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/appetizers-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/breakfast-3.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/dinner-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/dinner-1.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/dinner-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/dinner-2.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/dinner-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/dinner-3.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/drinks-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/drinks-1.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/drinks-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/drinks-2.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/drinks-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/drinks-3.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/grilled-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/grilled-3.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/lunch-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/lunch-1.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/lunch-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/lunch-2.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/lunch-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/lunch-3.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/soup-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/soup-1.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/soup-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/soup-2.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/soup-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/menus/soup-3.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/slides/menus-slideshow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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/b9f00ad4c50e3363975a788ddd23087c732e849d/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-dairy-free.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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-gluten-free.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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-nuts-free.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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-organic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-organic.png -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-sugar-free.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/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-type-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-type-default.png -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-vegan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-vegan.png -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-vegetarian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_menu/restaurant_menu_demo/data/images/types/icon-vegetarian.png -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/slides.csv: -------------------------------------------------------------------------------- 1 | slide_id,slideshow_id,image,caption 2 | 1,1,menus-slideshow.jpg,Veggie ipsum dolor amet -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/data/slideshows.csv: -------------------------------------------------------------------------------- 1 | uuid,slideshow_id,bundle,reusable,admin_title,category 2 | 98ac107a-5948-4c4f-abca-e8ffca577bfd,1,slideshow,1,Menus Slideshow,Slideshows -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/restaurant_menu_demo.features.inc: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/restaurant_menu_demo.info: -------------------------------------------------------------------------------- 1 | name = Restaurant Menu Demo 2 | description = Demo content for Restaurant Menu 3 | core = 7.x 4 | package = Open Restaurant Demo 5 | project = restaurant_menu_demo 6 | dependencies[] = restaurant_menu 7 | features[features_api][] = api:1 8 | 9 | ; Migration files 10 | files[] = migrations/menu.inc 11 | files[] = migrations/category.inc 12 | files[] = migrations/type.inc 13 | files[] = migrations/slideshow.inc 14 | files[] = migrations/slide.inc 15 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_menu/restaurant_menu_demo/restaurant_menu_demo.install: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | if ($module == "strongarm" && $api == "strongarm") { 15 | return array("version" => "1"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /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_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_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_pages/restaurant_pages.module: -------------------------------------------------------------------------------- 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_plugins/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Restaurant Plugins 7.x-1.0-rc2, 2015-10-22 2 | -------------------------------- 3 | - No changes since last release. 4 | 5 | Restaurant Plugins 7.x-1.0-rc3, 2016-01-25 6 | -------------------------------- 7 | - No changes since last release. 8 | 9 | -------------------------------------------------------------------------------- /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_plugins/restaurant_plugins.info: -------------------------------------------------------------------------------- 1 | name = Restaurant Plugins 2 | description = Provides multiple plugins for the Restaurant Distribution 3 | core = 7.x 4 | package = Open Restaurant 5 | project = restaurant_plugins 6 | features[features_api][] = api:2 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_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_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 | } -------------------------------------------------------------------------------- /modules/restaurant/restaurant_reservation/restaurant_reservation.admin.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_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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_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_reservation/restaurant_reservation_demo/data/images/reservation-slideshow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_reservation/restaurant_reservation_demo/data/images/reservation-slideshow.jpg -------------------------------------------------------------------------------- /modules/restaurant/restaurant_reservation/restaurant_reservation_demo/data/slides.csv: -------------------------------------------------------------------------------- 1 | slide_id,slideshow_id,image,caption 2 | 1,1,reservation-slideshow.jpg,Book a Table -------------------------------------------------------------------------------- /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_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_reservation/restaurant_reservation_demo/restaurant_reservation_demo.features.inc: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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_reservation/restaurant_reservation_demo/restaurant_reservation_demo.install: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
12 | 13 | -------------------------------------------------------------------------------- /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_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_seo/README.md: -------------------------------------------------------------------------------- 1 | Restaurant SEO 2 | ============== 3 | 4 | SEO for the Restaurant Distribution 5 | 6 | See the project page: http://drupal.org/project/restaurant_seo 7 | -------------------------------------------------------------------------------- /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_seo/restaurant_seo.features.inc: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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_seo/restaurant_seo.module: -------------------------------------------------------------------------------- 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_slideshow/README.md: -------------------------------------------------------------------------------- 1 | Restaurant Slideshow 2 | ==================== 3 | 4 | Provides the structure for creating and managing slideshows for the Restaurant distribution. 5 | 6 | See project page: http://drupal.org/project/restaurant_slideshow 7 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_slideshow/images/icon/icon-slideshow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/modules/restaurant/restaurant_slideshow/images/icon/icon-slideshow.png -------------------------------------------------------------------------------- /modules/restaurant/restaurant_slideshow/restaurant_slideshow.features.inc: -------------------------------------------------------------------------------- 1 | "1"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /modules/restaurant/restaurant_theme/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Restaurant Theme 7.x-1.0-rc2, 2015-10-22 2 | ------------------------------ 3 | - No changes since last release. 4 | 5 | Restaurant Theme 7.x-1.0-rc3, 2016-01-25 6 | ------------------------------ 7 | - No changes since last release. 8 | 9 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_theme/README.md: -------------------------------------------------------------------------------- 1 | Restaurant Theme 2 | === 3 | Theming helpers for the Restaurant Distribution 4 | 5 | See project page: http://drupal.org/project/restaurant_theme. 6 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_theme/plugins/views/restaurant_theme_view_style.inc: -------------------------------------------------------------------------------- 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_theme/restaurant_theme.theme.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_theme/views-view--content.tpl.php: -------------------------------------------------------------------------------- 1 | 7 | 8 |

9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /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_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_toolbar/README.md: -------------------------------------------------------------------------------- 1 | # restaurant_toolbar 2 | Toolbar for [Open Restaurant](http://open.restaurant). 3 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-account.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-appearance.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-bars.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-blog-posts.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-configuration.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-content.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-default.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-events.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/images/icon-locations.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-menus.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-modules.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-people.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-reports.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-reservations.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-search-active.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-search.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-shortcuts.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/images/icon-structure.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/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_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_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 | } -------------------------------------------------------------------------------- /modules/restaurant/restaurant_toolbar/assets/sass/partials/_body.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | // ----------------------------------------------------------------------------- 3 | body.restaurant-toolbar { 4 | padding-top: 52px !important; 5 | &.navbar-tray-open { 6 | margin-left: $tray-width !important; 7 | } 8 | } -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_toolbar/restaurant_toolbar.install: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /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_user/restaurant_user.module: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /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_wysiwyg/restaurant_wysiwyg.strongarm.inc: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /restaurant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/restaurant.png -------------------------------------------------------------------------------- /restaurant.profile: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/.gitignore: -------------------------------------------------------------------------------- 1 | .sass-cache 2 | extensions 3 | node_modules -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Restaurant Radix 7.x-1.0-rc2, 2015-10-22 2 | ------------------------------ 3 | - No changes since last release. 4 | 5 | Restaurant Radix 7.x-1.0-rc3, 2016-01-25 6 | ------------------------------ 7 | - No changes since last release. 8 | 9 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/README.md: -------------------------------------------------------------------------------- 1 | Restaurant Radix 2 | ========= 3 | The default theme for the Restaurant Distribution based on [Radix](http://drupal.org/project/radix). 4 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/assets/sass/partials/_comment.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Styles for comment. 3 | // -------------------------------------------------- 4 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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_radix/assets/sass/partials/_page.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Styles for individual pages 3 | // -------------------------------------------------- 4 | 5 | .front { 6 | .view { 7 | background: image-url("bg/bg-separator-shadow.png") no-repeat top center; 8 | padding-top: 100px; 9 | } 10 | } -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/assets/sass/partials/_structure.scss: -------------------------------------------------------------------------------- 1 | // Styles for Tabs, Messages, ..etc 2 | // -------------------------------------------------- 3 | 4 | // Logo 5 | // ----------------------------------------------------------------------------- 6 | .logo { 7 | img { 8 | display: inline-block; 9 | vertical-align: middle; 10 | + h1 { 11 | @extend .margin--sm--left; 12 | } 13 | } 14 | h1 { 15 | display: inline-block; 16 | margin: 0; 17 | } 18 | } 19 | 20 | // Address 21 | // ----------------------------------------------------------------------------- 22 | .address { 23 | font-size: 12px; 24 | // border: 1px solid $brand-primary; 25 | // padding: 10px; 26 | // color: lighten($brand-primary, 40); 27 | // text-align: right; 28 | // background-color: rgba($brand-primary, 0.95); 29 | } 30 | 31 | // Page header 32 | // ----------------------------------------------------------------------------- 33 | .page-header { 34 | margin: 0 0 30px; 35 | } 36 | 37 | // Alerts 38 | // ----------------------------------------------------------------------------- 39 | .alert { 40 | &.alert-success { 41 | @extend .border--xs; 42 | } 43 | } 44 | 45 | // Node 46 | // ----------------------------------------------------------------------------- 47 | .node { 48 | position: relative; 49 | } -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/assets/sass/partials/_user.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Styles for User pages 3 | // -------------------------------------------------- 4 | -------------------------------------------------------------------------------- /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_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/includes/field.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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/themes/restaurant/restaurant_radix/logo.png -------------------------------------------------------------------------------- /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_radix/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openrestaurant/restaurant/b9f00ad4c50e3363975a788ddd23087c732e849d/themes/restaurant/restaurant_radix/screenshot.png -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/template.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | <?php print $head_title; ?> 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 |
14 |
15 | <?php print $site_name; ?> 16 |
17 |
18 | 19 |
20 |
21 | 22 | 25 | 26 |
27 | 28 | 34 | 35 | 36 | 37 |
38 |
39 |
40 |
41 | 42 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/templates/region/region.tpl.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/templates/view/views-view.tpl.php: -------------------------------------------------------------------------------- 1 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |
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 |
43 | 44 |
45 | 46 | 47 | 48 |
49 | 50 |
51 | 52 | 53 | 54 | 57 | 58 |
59 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_radix/theme-settings.php: -------------------------------------------------------------------------------- 1 | .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_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 | -------------------------------------------------------------------------------- /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/_nav.scss: -------------------------------------------------------------------------------- 1 | // Styles for Navs 2 | // -------------------------------------------------- 3 | 4 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_seven/assets/sass/components/_page.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Styles for individual pages 3 | // -------------------------------------------------- -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /themes/restaurant/restaurant_seven/assets/sass/components/_user.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Styles for User pages 3 | // -------------------------------------------------- 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_seven/includes/comment.inc: -------------------------------------------------------------------------------- 1 | ' . t('You are here') . ''; 14 | 15 | $output .= ''; 16 | return $output; 17 | } 18 | } -------------------------------------------------------------------------------- /themes/restaurant/restaurant_seven/includes/term.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 | } -------------------------------------------------------------------------------- /themes/restaurant/restaurant_seven/includes/user.inc: -------------------------------------------------------------------------------- 1 | 7 |
8 |
9 |
10 | 11 | 12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 | 20 |
21 |
-------------------------------------------------------------------------------- /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 |
-------------------------------------------------------------------------------- /themes/restaurant/restaurant_seven/templates/page/README.txt: -------------------------------------------------------------------------------- 1 | 2 | This directory should be used to place page template files. 3 | -------------------------------------------------------------------------------- /themes/restaurant/restaurant_seven/templates/page/maintenance-page.tpl.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | <?php print $head_title; ?> 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 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------