Server IP : 195.201.23.43 / Your IP : 18.220.50.218 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/kdecoratie/public_html/templates/beez3/html/com_content/article/ |
Upload File : |
<?php /** * @package Joomla.Site * @subpackage Templates.beez3 * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; // Create shortcut $urls = json_decode($this->item->urls); // Create shortcuts to some parameters. $params = $this->item->params; if ($urls && (!empty($urls->urla) || !empty($urls->urlb) || !empty($urls->urlc))) : ?> <div class="content-links"> <ul class="nav nav-tabs nav-stacked"> <?php $urlarray = array( array($urls->urla, $urls->urlatext, $urls->targeta, 'a'), array($urls->urlb, $urls->urlbtext, $urls->targetb, 'b'), array($urls->urlc, $urls->urlctext, $urls->targetc, 'c') ); foreach ($urlarray as $url) : $link = $url[0]; $label = $url[1]; $target = $url[2]; $id = $url[3]; if (!$link) : continue; endif; // If no label is present, take the link $label = $label ?: $link; // If no target is present, use the default $target = $target ?: $params->get('target'.$id); ?> <li class="content-links-<?php echo $id; ?>"> <?php // Compute the correct link switch ($target) { case 1: // open in a new window echo '<a href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" target="_blank" rel="nofollow noopener noreferrer">' . htmlspecialchars($label, ENT_COMPAT, 'UTF-8') .'</a>'; break; case 2: // open in a popup window $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=600'; echo "<a href=\"" . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . "\" onclick=\"window.open(this.href, 'targetWindow', '".$attribs."'); return false;\" rel=\"noopener noreferrer\">". htmlspecialchars($label, ENT_COMPAT, 'UTF-8').'</a>'; break; case 3: // open in a modal window JHtml::_('behavior.modal', 'a.modal'); echo '<a class="modal" href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" rel="{handler: \'iframe\', size: {x:600, y:600}} noopener noreferrer">'. htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' </a>'; break; default: // open in parent window echo '<a href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" rel="nofollow">'. htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' </a>'; break; } ?> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?>Private