-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[4] Introducing Joomla’s first blank state #33264
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 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
53f3012
Introducing Joomla’s first blank state 🎉
PhilETaylor eff0027
aria-hidden="true"
PhilETaylor 7f86520
update link to docs
PhilETaylor 5840be1
Refine SQL query
PhilETaylor 006490d
rearrange tag attributes
PhilETaylor bfc3214
Change blank state title for articles
PhilETaylor f28b2f7
Use layouts - Thanks @Bakual
PhilETaylor 55d5cde
Add blank state for Featured Articles
PhilETaylor 4750b20
Remove unhelpful docblock
PhilETaylor da2c526
Improve test to look for adminForm instead of now missing filterSearc…
PhilETaylor 3802c68
Improve SQL for postgres compatibiltiy
PhilETaylor 8d3accc
Remove space.
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
34 changes: 34 additions & 0 deletions
34
administrator/components/com_content/tmpl/articles/blankstate.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,34 @@ | ||
| <?php | ||
| /** | ||
| * @package Joomla.Administrator | ||
| * @subpackage com_content | ||
| * | ||
| * @copyright (C) 2008 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\Language\Text; | ||
| use Joomla\CMS\Router\Route; | ||
|
|
||
| ?> | ||
| <form action="<?php echo Route::_('index.php?option=com_content&view=articles'); ?>" method="post" name="adminForm" id="adminForm"> | ||
|
|
||
| <div class="px-4 py-5 my-5 text-center"> | ||
| <span aria-hidden="true" class="fa-8x icon-copy mb-4 article"></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/Adding_a_new_article" class="btn btn-outline-secondary btn-lg px-4"><?php echo Text::_('COM_CONTENT_BLANKSTATE_BUTTON_LEARNMORE'); ?></a> | ||
PhilETaylor marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <input type="hidden" name="task" value=""> | ||
| <input type="hidden" name="boxchecked" value="0"> | ||
| </form> | ||
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
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
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.