mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-06-03 23:10:50 +00:00
Revert "Show custom fields in category view"
This reverts commit c4b4dfcc6f
.
This commit is contained in:
parent
c4b4dfcc6f
commit
f6a5e30925
|
@ -80,11 +80,16 @@ class WeblinksComponent extends MVCComponent implements CategoryServiceInterface
|
||||||
*/
|
*/
|
||||||
public function validateSection($section, $item = null)
|
public function validateSection($section, $item = null)
|
||||||
{
|
{
|
||||||
// On the front end we need to map some sections
|
if (Factory::getApplication()->isClient('site'))
|
||||||
|
|
||||||
if (Factory::getApplication()->isClient('site') && in_array($section, ['category', 'form']))
|
|
||||||
{
|
{
|
||||||
$section = 'weblink';
|
// On the front end we need to map some sections
|
||||||
|
switch ($section)
|
||||||
|
{
|
||||||
|
// Adding/Editing a weblink
|
||||||
|
case 'form':
|
||||||
|
$section = 'weblink';
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($section != 'weblink')
|
if ($section != 'weblink')
|
||||||
|
|
|
@ -29,14 +29,6 @@ class HtmlView extends CategoryView
|
||||||
*/
|
*/
|
||||||
protected $extension = 'com_weblinks';
|
protected $extension = 'com_weblinks';
|
||||||
|
|
||||||
/**
|
|
||||||
* Run the standard Joomla plugins
|
|
||||||
*
|
|
||||||
* @var boolean
|
|
||||||
* @since 4.0
|
|
||||||
*/
|
|
||||||
protected $runPlugins = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute and display a template script.
|
* Execute and display a template script.
|
||||||
*
|
*
|
||||||
|
|
|
@ -130,8 +130,8 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
||||||
$modalParams['modalWidth'] = 80;
|
$modalParams['modalWidth'] = 80;
|
||||||
echo HTMLHelper::_('bootstrap.renderModal', $modalId, $modalParams);
|
echo HTMLHelper::_('bootstrap.renderModal', $modalId, $modalParams);
|
||||||
echo '<button type="button" class="btn btn-link" data-bs-toggle="modal" data-bs-target="#' . $modalId . '">
|
echo '<button type="button" class="btn btn-link" data-bs-toggle="modal" data-bs-target="#' . $modalId . '">
|
||||||
' . $item->title . '
|
' . $item->title . '
|
||||||
</button>';
|
</button>';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Open in parent window
|
// Open in parent window
|
||||||
|
@ -146,12 +146,6 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php // Content is generated by content plugin event "onContentAfterTitle" ?>
|
|
||||||
<?php echo $item->event->afterDisplayTitle; ?>
|
|
||||||
|
|
||||||
<?php // Content is generated by content plugin event "onContentBeforeDisplay" ?>
|
|
||||||
<?php echo $item->event->beforeDisplayContent; ?>
|
|
||||||
|
|
||||||
<?php if ($this->params->get('show_tags', 1) && !empty($item->tags->itemTags)) : ?>
|
<?php if ($this->params->get('show_tags', 1) && !empty($item->tags->itemTags)) : ?>
|
||||||
<div class="mt-2 mb-2">
|
<div class="mt-2 mb-2">
|
||||||
<?php echo LayoutHelper::render('joomla.content.tags', $item->tags->itemTags); ?>
|
<?php echo LayoutHelper::render('joomla.content.tags', $item->tags->itemTags); ?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user