forked from ohrionmartin/subform-power
38 lines
1.5 KiB
PHP
38 lines
1.5 KiB
PHP
<?php
|
|
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
Nampharm
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
@version 1.0.1
|
|
@build 5th February, 2025
|
|
@created 24th May, 2024
|
|
@package Subform Power
|
|
@subpackage emptystate.php
|
|
@author Oh Martin <https://nampharm.com.na>
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
|
|
/------------------------------------------------------------------------------------------------------*/
|
|
|
|
use Joomla\CMS\Layout\LayoutHelper;
|
|
|
|
// No direct access to this file
|
|
defined('_JEXEC') or die;
|
|
|
|
$displayData = [
|
|
'textPrefix' => 'COM_SUBFORMPOWER_COUNTRIES',
|
|
'formURL' => 'index.php?option=com_subformpower&view=countries',
|
|
'icon' => 'icon-joomla',
|
|
];
|
|
|
|
if ($this->user->authorise('country.create', 'com_subformpower'))
|
|
{
|
|
$displayData['createURL'] = 'index.php?option=com_subformpower&task=country.add';
|
|
}
|
|
|
|
echo LayoutHelper::render('joomla.content.emptystate', $displayData);
|