From 3247644aac64deea8e966407d89ef64714a92f11 Mon Sep 17 00:00:00 2001 From: Thomas Hunziker Date: Mon, 15 Apr 2024 10:09:01 +0200 Subject: [PATCH] Add download buttons to list layouts --- com_sermonspeaker/site/views/serie/tmpl/list.php | 10 +++++++++- com_sermonspeaker/site/views/sermons/tmpl/list.php | 10 +++++++++- com_sermonspeaker/site/views/speaker/tmpl/list.php | 8 ++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/com_sermonspeaker/site/views/serie/tmpl/list.php b/com_sermonspeaker/site/views/serie/tmpl/list.php index d0015accc..857444531 100644 --- a/com_sermonspeaker/site/views/serie/tmpl/list.php +++ b/com_sermonspeaker/site/views/serie/tmpl/list.php @@ -28,6 +28,7 @@ $listDirn = $this->state->get('list.direction'); $limit = (int) $this->params->get('limit', ''); $player = SermonspeakerHelperSermonspeaker::getPlayer($this->items); +$prio = $this->params->get('fileprio'); ?>
loadTemplate('header'); ?> @@ -64,6 +65,13 @@ class="state) ? '' : 'system-unpublished '; ?>cat-list-row $item, 'show' => $showState)); ?> + columns)) : ?> + videofile and ($prio || !$item->audiofile)) ? 'video' : 'audio'; ?> + + + slug, $type, 3, $item->$filesize); ?> + + columns)) : ?> hits); ?> @@ -105,7 +113,7 @@ class="state) ? '' : 'system-unpublished '; ?>cat-list-row sermon_date, Text::_($this->params->get('date_format')), true); ?> -   + diff --git a/com_sermonspeaker/site/views/sermons/tmpl/list.php b/com_sermonspeaker/site/views/sermons/tmpl/list.php index 2ef863d38..cbcd6cd5f 100644 --- a/com_sermonspeaker/site/views/sermons/tmpl/list.php +++ b/com_sermonspeaker/site/views/sermons/tmpl/list.php @@ -29,6 +29,7 @@ $listDirn = $this->state->get('list.direction'); $limit = (int) $this->params->get('limit', ''); $player = SermonspeakerHelperSermonspeaker::getPlayer($this->items); +$prio = $this->params->get('fileprio'); ?>
$this->category, 'params' => $this->params)); ?> @@ -65,6 +66,13 @@ class="state) ? '' : 'system-unpublished '; ?>cat-list-row $item, 'show' => $showState)); ?> + columns)) : ?> + videofile and ($prio || !$item->audiofile)) ? 'video' : 'audio'; ?> + + + slug, $type, 3, $item->$filesize); ?> + + columns)) : ?> hits); ?> @@ -122,7 +130,7 @@ class="state) ? '' : 'system-unpublished '; ?>cat-list-row sermon_date, Text::_($this->params->get('date_format')), true); ?> -   + columns) and $item->notes) : ?> diff --git a/com_sermonspeaker/site/views/speaker/tmpl/list.php b/com_sermonspeaker/site/views/speaker/tmpl/list.php index bd605318d..b9a171b38 100644 --- a/com_sermonspeaker/site/views/speaker/tmpl/list.php +++ b/com_sermonspeaker/site/views/speaker/tmpl/list.php @@ -32,6 +32,7 @@ $listDirnSeries = $this->state_series->get('list.direction'); $limit = (int) $this->params->get('limit', ''); $player = SermonspeakerHelperSermonspeaker::getPlayer($this->sermons); +$prio = $this->params->get('fileprio'); // Determine active tab $this->getDocument()->addScriptDeclaration("window.onload = function() { @@ -89,6 +90,13 @@ class="state) ? '' : 'system-unpublished '; ?>cat-list-row $item, 'show' => $showState)); ?> + col_sermon)) : ?> + videofile and ($prio || !$item->audiofile)) ? 'video' : 'audio'; ?> + + + slug, $type, 3, $item->$filesize); ?> + + col_sermon)) : ?> hits); ?>