-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4] Blank State for com_cache #33325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fe84a2a
add com_cache blank slate
PhilETaylor 955d52e
Dont display toolbar if no cache items
PhilETaylor 8739a87
Add blank state language strings
PhilETaylor 1a14bb1
namespace \count function calls
PhilETaylor 5c5f494
/s/you/if
PhilETaylor 802cc2d
Update administrator/components/com_cache/tmpl/cache/blankstate.php
PhilETaylor 2ac5c43
Update administrator/components/com_cache/tmpl/cache/blankstate.php
PhilETaylor 4f39351
Update administrator/language/en-GB/com_cache.ini
PhilETaylor 79cc7c5
Add icon
PhilETaylor d0e945a
a-z lang strings
PhilETaylor 0ddbe8b
s/blankslate/emptystate
PhilETaylor 2a84690
Short array syntax
0014620
Update administrator/language/en-GB/com_cache.ini
PhilETaylor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
administrator/components/com_cache/tmpl/cache/emptystate.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?php | ||
| /** | ||
| * @package Joomla.Administrator | ||
| * @subpackage com_cache | ||
| * | ||
| * @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org> | ||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| defined('_JEXEC') or die; | ||
|
|
||
| use Joomla\CMS\Layout\LayoutHelper; | ||
|
|
||
| $displayData = [ | ||
| 'textPrefix' => 'COM_CACHE', | ||
| 'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Cache', | ||
| 'icon' => 'icon-bolt clear', | ||
| ]; | ||
|
|
||
| echo LayoutHelper::render('joomla.content.emptystate', $displayData); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.