Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible separator changes #17

Open
coryetzkorn opened this issue Mar 31, 2016 · 0 comments
Open

Possible separator changes #17

coryetzkorn opened this issue Mar 31, 2016 · 0 comments

Comments

@coryetzkorn
Copy link
Owner

I have only one request. When a store is closed, currently it echo's a separator or '-' by default.

I have inserted a snippet ie;
if($hours=='-'){
echo '' . 'Closed' . '';
} else {
echo '' . $hours . '';
}

However, it would be of some added value to have a variable for that in your class ie;
'open' => "Yes, we're open!
Today's hours are {%hours%}.",
'closed' => "Sorry, we're closed
Hours today are {%hours%}",
'closed_all_day' => "Sorry, we're closed today.",
'separator' => " - ",
'nohours' => " Closed ",
'join' => " and ",
'format' => "g:ia", // options listed here: http://php.net/manual/en/function.date.php
'hours' => "{%open%}{%separator%}{%closed%}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant