diff --git a/helper.php b/helper.php
index e68926d..d81e87b 100644
--- a/helper.php
+++ b/helper.php
@@ -27,6 +27,7 @@
use Joomla\Database\ParameterType;
use Joomla\Module\Quickicon\Administrator\Event\QuickIconsEvent;
use Joomla\Registry\Registry;
+use Joomla\CMS\Router\Route;
abstract class modDashboardHelper
{
@@ -34,13 +35,13 @@ abstract class modDashboardHelper
public static function getItems($data)
{
// recuperation utilisateur connecté
- $user = JFactory::getUser();
+ $user = Factory::getUser();
$userid = $user->id;
$catids = $data->catidlist ?? [];
$limit = $data->count;
$nom_statut = $data->TypofBlock;
// recupere la connexion à la BD
- $db = JFactory::getDbo();
+ $db = Factory::getDbo();
$query = $db->getQuery(true);
$query
@@ -128,7 +129,7 @@ public static function getItems($data)
foreach ($items as $item)
{
- $item->link = JRoute::_('index.php?option=com_content&task=article.edit&id=' . $item->id);
+ $item->link = Route::_('index.php?option=com_content&task=article.edit&id=' . $item->id);
}
return $items;
@@ -136,16 +137,16 @@ public static function getItems($data)
public static function getUseritem(&$params)
{
- $user = JFactory::getUser();
+ $user = Factory::getUser();
$userid = $user->id;
//recupére la connexion à la BD
- $db = JFactory::getDbo();
+ $db = Factory::getDbo();
$queryUseritem = 'SELECT id, title, catid, created, created_by, modified, modified_by, state FROM #__content WHERE created_by = ' . $user->id . ' ORDER BY modified DESC LIMIT 50';
$db->setQuery($queryUseritem);
$itemsUseritem = $db->loadObjectList();
foreach ($itemsUseritem as &$itemUseritem)
{
- $itemUseritem->link = JRoute::_('index.php?option=com_content&task=article.edit&id=' . $itemUseritem->id);
+ $itemUseritem->link = Route::_('index.php?option=com_content&task=article.edit&id=' . $itemUseritem->id);
switch ($itemUseritem->state)
{
case 0:
diff --git a/media/css/style.css b/media/css/style.css
index 7799c42..9e304c5 100644
--- a/media/css/style.css
+++ b/media/css/style.css
@@ -146,11 +146,6 @@ padding: 10px;
justify-content: center;
align-items: center;
}
-.sep{
-height: 2rem;
-/*background: #edf2f7;*/
-background:var(--template-bg-dark-5);
-}
.card-body{
overflow-y: auto !important;
}
@@ -159,11 +154,14 @@ background:var(--template-bg-dark-5);
width: 100% !important;
}
}
-@media (prefers-color-scheme: dark) {
- .headerblock .breadcrumb {
+[data-bs-theme="dark"] .headerblock .breadcrumb {
background: none;
}
- .sep, .contentbloc {
+[data-bs-theme="dark"] .sep, [data-bs-theme="dark"] .contentbloc {
background-color: var(--template-bg-dark-90);
}
-}
\ No newline at end of file
+[data-bs-theme="dark"] .sep{
+ height: 2rem;
+ /*background: #edf2f7;*/
+ background:var(--template-bg-dark-5);
+ }
\ No newline at end of file
diff --git a/mod_dashboard.php b/mod_dashboard.php
index 14e4137..26f96dd 100644
--- a/mod_dashboard.php
+++ b/mod_dashboard.php
@@ -19,6 +19,7 @@
defined('_JEXEC') or die('Accès interdit');
jimport('joomla.application.component.controller');
JLoader::register('ModLatestActionsHelper', __DIR__ . '/helper.php');
+use Joomla\CMS\Helper\ModuleHelper;
// Inclut les méthodes du script de soutien
require_once dirname(__FILE__) . '/helper.php';
@@ -37,4 +38,4 @@
$actionlist = modDashboardHelper::getActionlogList($params);
// Get Joomla Layout
-require JModuleHelper::getLayoutPath('mod_dashboard', $params->get('layout', 'default'));
+require ModuleHelper::getLayoutPath('mod_dashboard', $params->get('layout', 'default'));
diff --git a/mod_dashboard.xml b/mod_dashboard.xml
index bdbfdb5..7d44dea 100644
--- a/mod_dashboard.xml
+++ b/mod_dashboard.xml
@@ -5,7 +5,7 @@