[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Uri\Uri; 14 15 $button = $displayData; 16 17 if ($button->get('name')) : 18 $class = 'btn btn-secondary'; 19 $class .= ($button->get('class')) ? ' ' . $button->get('class') : null; 20 $class .= ($button->get('modal')) ? ' modal-button' : null; 21 $href = '#' . strtolower($button->get('name')) . '_modal'; 22 $link = ($button->get('link')) ? Uri::base() . $button->get('link') : null; 23 $onclick = ($button->get('onclick')) ? ' onclick="' . $button->get('onclick') . '"' : ''; 24 $title = ($button->get('title')) ? $button->get('title') : $button->get('text'); 25 $icon = ($button->get('icon')) ? $button->get('icon') : $button->get('name'); 26 ?> 27 <button type="button" data-bs-target="<?php echo $href; ?>" class="xtd-button btn btn-secondary <?php echo $class; ?>" <?php echo $button->get('modal') ? 'data-bs-toggle="modal"' : '' ?> title="<?php echo $title; ?>" <?php echo $onclick; ?>> 28 <span class="icon-<?php echo $icon; ?>" aria-hidden="true"></span> 29 <?php echo $button->get('text'); ?> 30 </button> 31 <?php endif; ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |