$this));
+ echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this, 'options' => ['selectorFieldName' => 'featured']));
?>
items)) : ?>
@@ -108,7 +110,7 @@
- ,
+ ,
,
@@ -118,15 +120,15 @@
|
-
+
|
-
-
- |
+
+
+ |
-
+
|
@@ -174,6 +176,9 @@
| class="js-draggable" data-url="" data-direction="" data-nested="true">
items as $i => $item) :
$item->max_ordering = 0;
+ $ordering = ($listOrder == 'fp.ordering');
+ $assetId = 'com_content.article.' . $item->id;
+ $canCreate = $user->authorise('core.create', 'com_content.category.' . $item->catid);
$canEdit = $user->authorise('core.edit', 'com_content.article.' . $item->id);
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || is_null($item->checked_out);
$canEditOwn = $user->authorise('core.edit.own', 'com_content.article.' . $item->id) && $item->created_by == $userId;
@@ -389,19 +394,30 @@
pagination->getListFooter(); ?>
-
- authorise('core.create', 'com_content')
- && $user->authorise('core.edit', 'com_content')
- && $user->authorise('core.edit.state', 'com_content')) : ?>
+
Text::_('COM_CONTENT_BATCH_OPTIONS'),
- 'footer' => $this->loadTemplate('batch_footer'),
- ),
- $this->loadTemplate('batch_body')
+ 'stageModal',
+ [
+ 'title' => Text::_('JTOOLBAR_CHANGE_STATUS'),
+ 'footer' => $this->loadTemplate('stage_footer'),
+ ],
+ $this->loadTemplate('stage_body')
); ?>
+
+ authorise('core.create', 'com_content')
+ && $user->authorise('core.edit', 'com_content')
+ && $user->authorise('core.edit.state', 'com_content')) : ?>
+ Text::_('COM_CONTENT_BATCH_OPTIONS'),
+ 'footer' => $this->loadTemplate('batch_footer'),
+ ],
+ $this->loadTemplate('batch_body')
+ ); ?>
+
diff --git a/administrator/components/com_content/tmpl/featured/default_stage_body.php b/administrator/components/com_content/tmpl/articles/default_stage_body.php
similarity index 100%
rename from administrator/components/com_content/tmpl/featured/default_stage_body.php
rename to administrator/components/com_content/tmpl/articles/default_stage_body.php
diff --git a/administrator/components/com_content/tmpl/featured/default_stage_footer.php b/administrator/components/com_content/tmpl/articles/default_stage_footer.php
similarity index 100%
rename from administrator/components/com_content/tmpl/featured/default_stage_footer.php
rename to administrator/components/com_content/tmpl/articles/default_stage_footer.php
diff --git a/administrator/components/com_content/tmpl/featured/default.php b/administrator/components/com_content/tmpl/featured/default.php
deleted file mode 100644
index 5ca431d64fe21..0000000000000
--- a/administrator/components/com_content/tmpl/featured/default.php
+++ /dev/null
@@ -1,419 +0,0 @@
-
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
-
-defined('_JEXEC') or die;
-
-use Joomla\CMS\Button\FeaturedButton;
-use Joomla\CMS\Button\PublishedButton;
-use Joomla\CMS\Button\TransitionButton;
-use Joomla\CMS\Component\ComponentHelper;
-use Joomla\CMS\Factory;
-use Joomla\CMS\HTML\HTMLHelper;
-use Joomla\CMS\Language\Associations;
-use Joomla\CMS\Language\Multilanguage;
-use Joomla\CMS\Language\Text;
-use Joomla\CMS\Layout\LayoutHelper;
-use Joomla\CMS\Router\Route;
-use Joomla\CMS\Session\Session;
-use Joomla\Component\Content\Administrator\Helper\ContentHelper;
-use Joomla\Utilities\ArrayHelper;
-
-/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
-$wa = $this->document->getWebAssetManager();
-$wa->useScript('table.columns')
- ->useScript('multiselect');
-
-$app = Factory::getApplication();
-$user = Factory::getUser();
-$userId = $user->get('id');
-$listOrder = $this->escape($this->state->get('list.ordering'));
-$listDirn = $this->escape($this->state->get('list.direction'));
-$saveOrder = $listOrder == 'fp.ordering';
-
-if (strpos($listOrder, 'publish_up') !== false)
-{
- $orderingColumn = 'publish_up';
-}
-elseif (strpos($listOrder, 'publish_down') !== false)
-{
- $orderingColumn = 'publish_down';
-}
-elseif (strpos($listOrder, 'modified') !== false)
-{
- $orderingColumn = 'modified';
-}
-else
-{
- $orderingColumn = 'created';
-}
-
-
-if ($saveOrder && !empty($this->items))
-{
- $saveOrderingUrl = 'index.php?option=com_content&task=featured.saveOrderAjax&tmpl=component&' . Session::getFormToken() . '=1';
- HTMLHelper::_('draggablelist.draggable');
-}
-
-$workflow_enabled = ComponentHelper::getParams('com_content')->get('workflow_enabled');
-$workflow_state = false;
-$workflow_featured = false;
-
-if ($workflow_enabled) :
-
-// @todo move the script to a file
-$js = <<getRegistry()->addExtensionRegistryFile('com_workflow');
-$wa->useScript('com_workflow.admin-items-workflow-buttons')
- ->addInlineScript($js, [], ['type' => 'module']);
-
-$workflow_state = Factory::getApplication()->bootComponent('com_content')->isFunctionalityUsed('core.state', 'com_content.article');
-$workflow_featured = Factory::getApplication()->bootComponent('com_content')->isFunctionalityUsed('core.featured', 'com_content.article');
-
-endif;
-
-$assoc = Associations::isEnabled();
-
-?>
-
-
diff --git a/administrator/components/com_content/tmpl/featured/default.xml b/administrator/components/com_content/tmpl/featured/default.xml
deleted file mode 100644
index 4697ce1704542..0000000000000
--- a/administrator/components/com_content/tmpl/featured/default.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/administrator/components/com_content/tmpl/featured/emptystate.php b/administrator/components/com_content/tmpl/featured/emptystate.php
deleted file mode 100644
index 99bc733f48366..0000000000000
--- a/administrator/components/com_content/tmpl/featured/emptystate.php
+++ /dev/null
@@ -1,28 +0,0 @@
-
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
-
-defined('_JEXEC') or die;
-
-use Joomla\CMS\Factory;
-use Joomla\CMS\Layout\LayoutHelper;
-
-$displayData = [
- 'textPrefix' => 'COM_CONTENT',
- 'formURL' => 'index.php?option=com_content&view=featured',
- 'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Adding_a_new_article',
-];
-
-$user = Factory::getApplication()->getIdentity();
-
-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.emptystate', $displayData);
diff --git a/administrator/components/com_menus/presets/alternate.xml b/administrator/components/com_menus/presets/alternate.xml
index 8b4e74c23498e..2732873a60560 100644
--- a/administrator/components/com_menus/presets/alternate.xml
+++ b/administrator/components/com_menus/presets/alternate.xml
@@ -294,7 +294,7 @@
title="COM_CONTENT_MENUS_FEATURED"
type="component"
element="com_content"
- link="index.php?option=com_content&view=featured"
+ link="index.php?option=com_content&view=articles&featured=1"
/>