Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 13 additions & 20 deletions administrator/components/com_banners/tmpl/banners/blankstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,19 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

?>
<form action="<?php echo Route::_('index.php?option=com_banners&view=banners'); ?>" method="post" name="adminForm" id="adminForm">
$displayData = array(
'textPrefix' => 'COM_BANNERS',
'formURL' => 'index.php?option=com_banners&view=banners',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help40:Banners',
);
$user = Factory::getUser();

<div class="px-4 py-5 my-5 text-center">
<span class="fa-8x icon-bookmark banners mb-4" aria-hidden="true"></span>
<h1 class="display-5 fw-bold"><?php echo Text::_('COM_BANNERS_BLANKSTATE_TITLE'); ?></h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">
<?php echo Text::_('COM_BANNERS_BLANKSTATE_CONTACT'); ?>
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="<?php echo Route::_('index.php?option=com_banners&view=banner&layout=edit'); ?>" class="btn btn-primary btn-lg px-4 me-sm-3"><?php echo Text::_('COM_BANNERS_BLANKSTATE_BUTTON_ADD'); ?></a>
<a href="https://docs.joomla.org/Special:MyLanguage/Help40:Banners" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_BANNERS_BLANKSTATE_BUTTON_LEARNMORE'); ?></a>
</div>
</div>
</div>
if (count($user->getAuthorisedCategories('com_banners', 'core.create')) > 0)
{
$displayData['createURL'] = 'index.php?option=com_banners&task=banner.add';
}

<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
</form>
echo LayoutHelper::render('joomla.content.blankstate', $displayData);
34 changes: 14 additions & 20 deletions administrator/components/com_contact/tmpl/contacts/blankstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,20 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

?>
<form action="<?php echo Route::_('index.php?option=com_contact&view=contacts'); ?>" method="post" name="adminForm" id="adminForm">
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

<div class="px-4 py-5 my-5 text-center">
<span class="fa-8x icon-address-book contact mb-4" aria-hidden="true"></span>
<h1 class="display-5 fw-bold"><?php echo Text::_('COM_CONTACT_BLANKSTATE_TITLE'); ?></h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">
<?php echo Text::_('COM_CONTACT_BLANKSTATE_CONTACT'); ?>
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="<?php echo Route::_('index.php?option=com_contact&view=contact&layout=edit'); ?>" class="btn btn-primary btn-lg px-4 me-sm-3"><?php echo Text::_('COM_CONTACT_BLANKSTATE_BUTTON_ADD'); ?></a>
<a href="https://docs.joomla.org/Special:MyLanguage/Help4.x:Contacts" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_CONTACT_BLANKSTATE_BUTTON_LEARNMORE'); ?></a>
</div>
</div>
</div>
$displayData = array(
'textPrefix' => 'COM_CONTACT',
'formURL' => 'index.php?option=com_contact',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help4.x:Contacts',
);
$user = Factory::getUser();

<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
</form>
if ($user->get('core.create', 'com_contact') || count($user->getAuthorisedCategories('com_contact', 'core.create')) > 0)
{
$displayData['createURL'] = 'index.php?option=com_contact&task=contact.add';
}

echo LayoutHelper::render('joomla.content.blankstate', $displayData);
33 changes: 13 additions & 20 deletions administrator/components/com_content/tmpl/articles/blankstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,19 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

?>
<form action="<?php echo Route::_('index.php?option=com_content&view=articles'); ?>" method="post" name="adminForm" id="adminForm">
$displayData = array(
'textPrefix' => 'COM_CONTENT',
'formURL' => 'index.php?option=com_content&view=articles',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Adding_a_new_article',
);
$user = Factory::getUser();

<div class="px-4 py-5 my-5 text-center">
<span class="fa-8x icon-copy mb-4 article" aria-hidden="true"></span>
<h1 class="display-5 fw-bold"><?php echo Text::_('COM_CONTENT_BLANKSTATE_TITLE'); ?></h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">
<?php echo Text::_('COM_CONTENT_BLANKSTATE_CONTENT'); ?>
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="<?php echo Route::_('index.php?option=com_content&view=article&layout=edit'); ?>" class="btn btn-primary btn-lg px-4 me-sm-3"><?php echo Text::_('COM_CONTENT_BLANKSTATE_BUTTON_ADD'); ?></a>
<a href="https://docs.joomla.org/Special:MyLanguage/Adding_a_new_article" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_CONTENT_BLANKSTATE_BUTTON_LEARNMORE'); ?></a>
</div>
</div>
</div>
if ($user->authorise('core.create', 'com_content') || count($user->getAuthorisedCategories('com_content', 'core.create')) > 0)
{
$displayData['createURL'] = 'index.php?option=com_content&task=article.add';
}

<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
</form>
echo LayoutHelper::render('joomla.content.blankstate', $displayData);
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,19 @@

defined('_JEXEC') or die;

require __DIR__ . '/../articles/blankstate.php';
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

$displayData = array(
'textPrefix' => 'COM_CONTENT',
'formURL' => 'index.php?option=com_content&view=featured',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Adding_a_new_article',
);
$user = Factory::getUser();

if ($user->authorise('core.create', 'com_content') || count($user->getAuthorisedCategories('com_content', 'core.create')) > 0)
{
$displayData['createURL'] = 'index.php?option=com_content&task=article.add';
}

echo LayoutHelper::render('joomla.content.blankstate', $displayData);
34 changes: 14 additions & 20 deletions administrator/components/com_messages/tmpl/messages/blankstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,20 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

?>
<form action="<?php echo Route::_('index.php?option=com_messages&view=messages'); ?>" method="post" name="adminForm" id="adminForm">
$displayData = array(
'textPrefix' => 'COM_MESSAGES',
'formURL' => 'index.php?option=com_messages&view=messages',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help40:Private_Messages',
);
$user = Factory::getUser();

<div class="px-4 py-5 my-5 text-center">
<span class="fa-8x icon-envelope inbox mb-4" aria-hidden="true"></span>
<h1 class="display-5 fw-bold"><?php echo Text::_('COM_MESSAGES_BLANKSTATE_TITLE'); ?></h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">
<?php echo Text::_('COM_MESSAGES_BLANKSTATE_REQUESTS'); ?>
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="<?php echo Route::_('index.php?option=com_messages&view=message&layout=edit'); ?>" class="btn btn-primary btn-lg px-4 me-sm-3"><?php echo Text::_('COM_MESSAGES_BLANKSTATE_BUTTON_ADD'); ?></a>
<a href="https://docs.joomla.org/Special:MyLanguage/Help40:Private_Messages" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_MESSAGES_BLANKSTATE_BUTTON_LEARNMORE'); ?></a>
</div>
</div>
</div>
if ($user->authorise('core.create', 'com_messages'))
{
$displayData['createURL'] = 'index.php?option=com_messages&task=message.add';
}

echo LayoutHelper::render('joomla.content.blankstate', $displayData);

<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,19 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

?>
<form action="<?php echo Route::_('index.php?option=com_newsfeeds&view=newsfeed'); ?>" method="post" name="adminForm" id="adminForm">
$displayData = array(
'textPrefix' => 'COM_NEWSFEEDS',
'formURL' => 'index.php?option=com_newsfeeds&view=newsfeeds',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help4.x:News_Feeds',
);
$user = Factory::getUser();

<div class="px-4 py-5 my-5 text-center">
<span class="fa-8x icon-rss newsfeeds mb-4" aria-hidden="true"></span>
<h1 class="display-5 fw-bold"><?php echo Text::_('COM_NEWSFEEDS_BLANKSTATE_TITLE'); ?></h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">
<?php echo Text::_('COM_NEWSFEEDS_BLANKSTATE_NEWSFEEDS'); ?>
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="<?php echo Route::_('index.php?option=com_newsfeeds&view=newsfeed&layout=edit'); ?>" class="btn btn-primary btn-lg px-4 me-sm-3"><?php echo Text::_('COM_NEWSFEEDS_BLANKSTATE_BUTTON_ADD'); ?></a>
<a href="https://docs.joomla.org/Special:MyLanguage/Help4.x:News_Feeds" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_NEWSFEEDS_BLANKSTATE_BUTTON_LEARNMORE'); ?></a>
</div>
</div>
</div>
if (count($user->getAuthorisedCategories('com_newsfeeds', 'core.create')) > 0)
{
$displayData['createURL'] = 'index.php?option=com_newsfeeds&task=newsfeed.add';
}

<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
</form>
echo LayoutHelper::render('joomla.content.blankstate', $displayData);
22 changes: 8 additions & 14 deletions administrator/components/com_privacy/tmpl/consents/blankstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

use Joomla\CMS\Layout\LayoutHelper;

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
$displayData = array(
'textPrefix' => 'COM_PRIVACY_CONSENTS',
'formURL' => 'index.php?option=com_privacy&view=consents',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help40:Privacy:_Consents',
);

?>
<div class="px-4 py-5 my-5 text-center">
<span class="fa-8x icon-lock mb-4" aria-hidden="true"></span>
<h1 class="display-5 fw-bold"><?php echo Text::_('COM_PRIVACY_CONSENTS_BLANKSTATE_TITLE'); ?></h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">
<?php echo Text::_('COM_PRIVACY_CONSENTS_BLANKSTATE_CONSENTS'); ?>
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="https://docs.joomla.org/Special:MyLanguage/Help40:Privacy:_Consents" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_PRIVACY_BLANKSTATE_BUTTON_LEARNMORE'); ?></a>
</div>
</div>
</div>
echo LayoutHelper::render('joomla.content.blankstate', $displayData);
34 changes: 14 additions & 20 deletions administrator/components/com_privacy/tmpl/requests/blankstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,20 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

?>
<form action="<?php echo Route::_('index.php?option=com_privacy&view=requests'); ?>" method="post" name="adminForm" id="adminForm">
$displayData = array(
'textPrefix' => 'COM_PRIVACY_REQUESTS',
'formURL' => 'index.php?option=com_privacy&view=requests',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help40:Privacy:_Information_Requests',
);
$user = Factory::getUser();

<div class="px-4 py-5 my-5 text-center">
<span class="fa-8x icon-lock mb-4" aria-hidden="true"></span>
<h1 class="display-5 fw-bold"><?php echo Text::_('COM_PRIVACY_REQUESTS_BLANKSTATE_TITLE'); ?></h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">
<?php echo Text::_('COM_PRIVACY_REQUESTS_BLANKSTATE_REQUESTS'); ?>
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="<?php echo Route::_('index.php?option=com_privacy&view=request&layout=edit'); ?>" class="btn btn-primary btn-lg px-4 me-sm-3"><?php echo Text::_('COM_PRIVACY_REQUESTS_BLANKSTATE_BUTTON_ADD'); ?></a>
<a href="https://docs.joomla.org/Special:MyLanguage/Help40:Privacy:_Information_Requests" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_PRIVACY_BLANKSTATE_BUTTON_LEARNMORE'); ?></a>
</div>
</div>
</div>
if (Factory::getApplication()->get('mailonline', 1))
{
$displayData['createURL'] = 'index.php?option=com_privacy&task=request.add';
}

echo LayoutHelper::render('joomla.content.blankstate', $displayData);

<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
</form>
33 changes: 13 additions & 20 deletions administrator/components/com_users/tmpl/notes/blankstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,19 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

?>
<form action="<?php echo Route::_('index.php?option=com_users&view=notes'); ?>" method="post" name="adminForm" id="adminForm">
$displayData = array(
'textPrefix' => 'COM_USERS_NOTES',
'formURL' => 'index.php?option=com_users&view=notes',
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help40:User_Notes',
);
$user = Factory::getUser();

<div class="px-4 py-5 my-5 text-center">
<span class="fa-8x icon-users user mb-4" aria-hidden="true"></span>
<h1 class="display-5 fw-bold"><?php echo Text::_('COM_USERS_NOTES_BLANKSTATE_TITLE'); ?></h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">
<?php echo Text::_('COM_USERS_NOTES_BLANKSTATE_REQUESTS'); ?>
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="<?php echo Route::_('index.php?option=com_users&view=note&layout=edit'); ?>" class="btn btn-primary btn-lg px-4 me-sm-3"><?php echo Text::_('COM_USERS_NOTES_BLANKSTATE_BUTTON_ADD'); ?></a>
<a href="https://docs.joomla.org/Special:MyLanguage/Help40:User_Notes" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_USERS_NOTES_BLANKSTATE_BUTTON_LEARNMORE'); ?></a>
</div>
</div>
</div>
if ($user->authorise('core.create', 'com_users'))
{
$displayData['createURL'] = 'index.php?option=com_users&task=note.add';
}

<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
</form>
echo LayoutHelper::render('joomla.content.blankstate', $displayData);
3 changes: 1 addition & 2 deletions administrator/language/en-GB/com_banners.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ COM_BANNERS_BATCH_TIP="If a category is selected for move/copy, any actions sele
COM_BANNERS_BEGIN_HINT="Begin date (yyyy-mm-dd)"
COM_BANNERS_BEGIN_LABEL="Begin Date"
COM_BANNERS_BLANKSTATE_BUTTON_ADD="Add your first banner"
COM_BANNERS_BLANKSTATE_BUTTON_LEARNMORE="Learn more"
COM_BANNERS_BLANKSTATE_CONTACT="Banners are blocks of content containing advertising information and a record of the number of times the banner has been displayed is kept. You can use this component to create and manage your banners."
COM_BANNERS_BLANKSTATE_CONTENT="Banners are blocks of content containing advertising information and a record of the number of times the banner has been displayed is kept. You can use this component to create and manage your banners."
COM_BANNERS_BLANKSTATE_TITLE="No Banners have been created yet."
COM_BANNERS_CANCEL="Cancel"
COM_BANNERS_CLICK="Click"
Expand Down
3 changes: 1 addition & 2 deletions administrator/language/en-GB/com_contact.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL="Contact Display Options"
COM_CONTACT_BATCH_OPTIONS="Batch process the selected contacts"
COM_CONTACT_BATCH_TIP="If a category is selected for move/copy, any actions selected will be applied to the copied or moved contacts. Otherwise, all actions are applied to the selected contacts."
COM_CONTACT_BLANKSTATE_BUTTON_ADD="Add your first contact"
COM_CONTACT_BLANKSTATE_BUTTON_LEARNMORE="Learn more"
COM_CONTACT_BLANKSTATE_CONTACT="Contacts can be as simple as a contact form or as complex as a staff directory. You can use this component to create and manage your contacts."
COM_CONTACT_BLANKSTATE_CONTENT="Contacts can be as simple as a contact form or as complex as a staff directory. You can use this component to create and manage your contacts."
COM_CONTACT_BLANKSTATE_TITLE="No Contacts have been created yet."
COM_CONTACT_CATEGORIES_VIEW_DEFAULT_DESC="Shows a list of contact categories within a category."
COM_CONTACT_CATEGORY_VIEW_DEFAULT_DESC="This view lists the contacts in a category."
Expand Down
1 change: 0 additions & 1 deletion administrator/language/en-GB/com_content.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ COM_CONTENT_ATTRIBS_FIELDSET_LABEL="Options"
COM_CONTENT_BATCH_OPTIONS="Batch process the selected articles"
COM_CONTENT_BATCH_TIP="If a category is selected for move/copy, any actions selected will be applied to the copied or moved articles. Otherwise, all actions are applied to the selected articles."
COM_CONTENT_BLANKSTATE_BUTTON_ADD="Add your first article"
COM_CONTENT_BLANKSTATE_BUTTON_LEARNMORE="Learn more"
COM_CONTENT_BLANKSTATE_CONTENT="Articles are the main content on most Joomla sites. You can use the Joomla Article Editor to create and manage your content."
COM_CONTENT_BLANKSTATE_TITLE="No Articles have been created yet."
COM_CONTENT_CHANGE_STAGE="Change stage"
Expand Down
5 changes: 2 additions & 3 deletions administrator/language/en-GB/com_messages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

COM_MESSAGES="Messaging"
COM_MESSAGES_ADD="New Private Message"
COM_MESSAGES_BLANKSTATE_TITLE="There are no messages for you in your inbox."
COM_MESSAGES_BLANKSTATE_REQUESTS="Send messages to other administrators on your site and read their replies."
COM_MESSAGES_BLANKSTATE_BUTTON_ADD="Send a message"
COM_MESSAGES_BLANKSTATE_BUTTON_LEARNMORE="Learn more"
COM_MESSAGES_BLANKSTATE_CONTENT="Send messages to other administrators on your site and read their replies."
COM_MESSAGES_BLANKSTATE_TITLE="There are no messages for you in your inbox."
COM_MESSAGES_CONFIG_SAVED="Configuration saved."
COM_MESSAGES_CONFIGURATION="Messages: Options"
COM_MESSAGES_ERR_INVALID_USER="Invalid user"
Expand Down
3 changes: 1 addition & 2 deletions administrator/language/en-GB/com_newsfeeds.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ COM_NEWSFEEDS="News Feeds"
COM_NEWSFEEDS_BATCH_OPTIONS="Batch process the selected news feeds"
COM_NEWSFEEDS_BATCH_TIP="If a category is selected for move/copy, any actions selected will be applied to the copied or moved news feeds. Otherwise, all actions are applied to the selected news feeds."
COM_NEWSFEEDS_BLANKSTATE_BUTTON_ADD="Add your first news feed"
COM_NEWSFEEDS_BLANKSTATE_BUTTON_LEARNMORE="Learn more"
COM_NEWSFEEDS_BLANKSTATE_NEWSFEEDS="Adding News Feeds to your sites is a way of integrating content from other web sites."
COM_NEWSFEEDS_BLANKSTATE_CONTENT="Adding News Feeds to your sites is a way of integrating content from other web sites."
COM_NEWSFEEDS_BLANKSTATE_TITLE="No News Feeds have been created yet."
COM_NEWSFEEDS_CACHE_TIME_HEADING="Cache Time"
COM_NEWSFEEDS_CACHE_TIME_HEADING_ASC="Cache Time ascending"
Expand Down
Loading