Skip to content

Commit

Permalink
Don't bother with lightbox links for images in RSS feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Sep 19, 2016
1 parent 9b6f796 commit 9ce6fc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/com_fabrik/views/list/view.fabrikfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public function display($tpl = null)
}
else
{
$enclosureUrl = ltrim($enclosureUrl, '/\\');
$enclosureFile = COM_FABRIK_BASE . $enclosureUrl;
$enclosureUrl = COM_FABRIK_LIVESITE . str_replace('\\', '/', $enclosureUrl);
}
Expand Down
5 changes: 4 additions & 1 deletion plugins/fabrik_element/fileupload/models/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function render(&$model, &$params, $file, $thisRow = null)
* So we have to work out if we're being called from a table or form
*/
$formModel = $model->getFormModel();
$listModel = $model->getListModel();
$title = basename($file);

if ($params->get('fu_title_element') == '')
Expand Down Expand Up @@ -134,7 +135,9 @@ public function render(&$model, &$params, $file, $thisRow = null)
$displayData->lightboxAttrs = FabrikHelperHTML::getLightboxAttributes($title, $n);
$displayData->fullSize = $model->storage->preRenderPath($fullSize);
$displayData->file = $file;
$displayData->makeLink = $params->get('make_link', true) && !$this->fullImageInRecord($params);
$displayData->makeLink = $params->get('make_link', true)
&& !$this->fullImageInRecord($params)
&& $listModel->getOutPutFormat() !== 'feed';
$displayData->title = $title;
$displayData->isJoin = $model->isJoin();
$displayData->width = $width;
Expand Down

0 comments on commit 9ce6fc7

Please sign in to comment.