mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-06-03 06:50:49 +00:00
Remove behavior.modal with bootstrap modal
This commit is contained in:
parent
42d4286c6b
commit
d18740065b
|
@ -124,11 +124,18 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
// Open in a modal window
|
// Open in a modal window
|
||||||
HTMLHelper::_('behavior.modal', 'a.modal');
|
$modalId = 'weblink-item-modal-' . $item->id;
|
||||||
echo '<a class="modal" href="' . $link . '" rel="{handler: \'iframe\', size: {x:' . $this->escape($width) . ', y:' . $this->escape($height) . '}}">' .
|
$modalParams['title'] = $this->escape($item->title);
|
||||||
$this->escape($item->title) . ' </a>';
|
$modalParams['url'] = $link;
|
||||||
|
$modalParams['height'] = '100%';
|
||||||
|
$modalParams['width'] = '100%';
|
||||||
|
$modalParams['bodyHeight'] = 70;
|
||||||
|
$modalParams['modalWidth'] = 80;
|
||||||
|
echo HTMLHelper::_('bootstrap.renderModal', $modalId, $modalParams);
|
||||||
|
echo '<button type="button" class="btn btn-link" data-bs-toggle="modal" data-bs-target="#' . $modalId . '">
|
||||||
|
' . $item->title . '
|
||||||
|
</button>';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Open in parent window
|
// Open in parent window
|
||||||
echo '<a href="' . $link . '" class="' . $menuclass . '" rel="nofollow">' .
|
echo '<a href="' . $link . '" class="' . $menuclass . '" rel="nofollow">' .
|
||||||
|
|
Loading…
Reference in New Issue
Block a user