Created
January 2, 2015 13:10
-
-
Save bastianallgeier/fea4d35cdfe3f17e8b11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $zeiten = page('oeffnungszeiten') ?> | |
<?php if($zeiten->status() == 'normal'): ?> | |
<!-- hier werden die öffnungszeiten abhängig vom tag angezeigt --> | |
<?php else if($zeiten->status() == 'open'): ?> | |
<!-- hier wird einfach nur angezeigt dass geöffnet ist --> | |
<?php else: ?> | |
<!-- hier wird angezeigt dass geschlossen ist --> | |
<?php endif ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fields: | |
title: | |
label: Titel | |
type: text | |
oeffnungszeiten_mo: | |
label: Montag | |
type: textarea | |
oeffnungszeiten_di: | |
label: Dienstag | |
type: textarea | |
oeffnungszeiten_mi: | |
label: Mittwoch | |
type: textarea | |
oeffnungszeiten_do: | |
label: Donnerstag | |
type: textarea | |
oeffnungszeiten_fr: | |
label: Freitag | |
type: textarea | |
oeffnungszeiten_sa: | |
label: Sammstag | |
type: textarea | |
oeffnungszeiten_so: | |
label: Sonntag | |
type: textarea | |
status: | |
label: Status | |
type: radio | |
options: | |
normal: Normale Öffnungszeiten | |
open: Das Restaurant hat heute geöffnet | |
closed: Das Restaurant hat heute geschlossen | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool, Danke!