summaryrefslogtreecommitdiff
path: root/includes/view/EventConfig_view.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-09-23 19:13:19 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-09-23 20:11:37 +0200
commit66038eda14d5d4e624b6636a6156570e3e940e49 (patch)
tree6e4b7557b7d91786ef47f22f7ddef85eed1dfb42 /includes/view/EventConfig_view.php
parent590adffa9316b98544cb8d67b03b80e44ba9c8b7 (diff)
parent9d34f371cb9c5ab0d60bd3158678b9cc9da6cc80 (diff)
Merge branch 'twig-templates'
Diffstat (limited to 'includes/view/EventConfig_view.php')
-rw-r--r--includes/view/EventConfig_view.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/includes/view/EventConfig_view.php b/includes/view/EventConfig_view.php
index 2525182a..4290ab0a 100644
--- a/includes/view/EventConfig_view.php
+++ b/includes/view/EventConfig_view.php
@@ -61,57 +61,6 @@ function EventConfig_countdown_page($event_config)
}
/**
- * Converts event name and start+end date into a line of text.
- *
- * @param array $event_config
- * @return string
- */
-function EventConfig_info($event_config)
-{
- if (empty($event_config)) {
- return '';
- }
-
- // Event name, start+end date are set
- if (
- !is_null($event_config['event_name'])
- && !is_null($event_config['event_start_date'])
- && !is_null($event_config['event_end_date'])
- ) {
- return sprintf(
- __('%s, from %s to %s'),
- $event_config['event_name'],
- date(__('Y-m-d'), $event_config['event_start_date']),
- date(__('Y-m-d'), $event_config['event_end_date'])
- );
- }
-
- // Event name, start date are set
- if (!is_null($event_config['event_name']) && !is_null($event_config['event_start_date'])) {
- return sprintf(
- __('%s, starting %s'), $event_config['event_name'],
- date(__('Y-m-d'), $event_config['event_start_date'])
- );
- }
-
- // Event start+end date are set
- if (!is_null($event_config['event_start_date']) && !is_null($event_config['event_end_date'])) {
- return sprintf(
- __('Event from %s to %s'),
- date(__('Y-m-d'), $event_config['event_start_date']),
- date(__('Y-m-d'), $event_config['event_end_date'])
- );
- }
-
- // Only event name is set
- if (!is_null($event_config['event_name'])) {
- return sprintf($event_config['event_name']);
- }
-
- return '';
-}
-
-/**
* Render edit page for event config.
*
* @param string $event_name The event name