diff --git a/packages/com_cg_avis_client_j4.zip b/packages/com_cg_avis_client_j4.zip index 7de4149..4800d39 100644 Binary files a/packages/com_cg_avis_client_j4.zip and b/packages/com_cg_avis_client_j4.zip differ diff --git a/packages/com_cg_avis_client_j4/cgavisclient_changelog.xml b/packages/com_cg_avis_client_j4/cgavisclient_changelog.xml index 700007f..a4bb0ab 100644 --- a/packages/com_cg_avis_client_j4/cgavisclient_changelog.xml +++ b/packages/com_cg_avis_client_j4/cgavisclient_changelog.xml @@ -13,7 +13,7 @@ cgavisclient component - 2.0.1 + 2.0.2 Update : 13/11/2021 diff --git a/packages/com_cg_avis_client_j4/site/src/Service/Router.php b/packages/com_cg_avis_client_j4/site/src/Service/Router.php index 6753540..54c39d2 100644 --- a/packages/com_cg_avis_client_j4/site/src/Service/Router.php +++ b/packages/com_cg_avis_client_j4/site/src/Service/Router.php @@ -1,7 +1,7 @@ Module CG Avis Client version 2.0.0.
Affichage des avis clients avec recherche/affichage en mode isotope pour Joomla! 4.0." +MOD_CGAVISCLIENT_XML_DESCRIPTION = "Module CG Avis Client version 2.0.2.
Affichage des avis clients avec recherche/affichage en mode isotope pour Joomla! 4.0." COM_MODULES_MOD_CGAVISCLIENT_GENERAL_SETTINGS_FIELDSET_LABEL = "Module Settings"; MOD_CGAVISCLIENT_LAYOUT = "Affichage" MOD_CGAVISCLIENT_LAYOUT_DES = "Affichage" diff --git a/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cg_avisclient.sys.ini b/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cg_avisclient.sys.ini index 4796846..c652b8c 100644 --- a/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cg_avisclient.sys.ini +++ b/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cg_avisclient.sys.ini @@ -1 +1 @@ -MOD_CGAVISCLIENT_XML_DESCRIPTION = "Module CG Avis Client version 2.0.0.
Affichage des avis clients avec recherche/affichage en mode isotope pour Joomla! 4.0." +MOD_CGAVISCLIENT_XML_DESCRIPTION = "Module CG Avis Client version 2.0.2.
Affichage des avis clients avec recherche/affichage en mode isotope pour Joomla! 4.0." diff --git a/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cgavisclient.ini b/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cgavisclient.ini index 9fc0182..ca1136c 100644 --- a/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cgavisclient.ini +++ b/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cgavisclient.ini @@ -1,4 +1,4 @@ -MOD_CGAVISCLIENT_XML_DESCRIPTION = "Module CG Avis Client version 2.0.0.
Affichage des avis clients avec recherche/affichage en mode isotope pour Joomla! 4.0." +MOD_CGAVISCLIENT_XML_DESCRIPTION = "Module CG Avis Client version 2.0.2.
Affichage des avis clients avec recherche/affichage en mode isotope pour Joomla! 4.0." COM_MODULES_MOD_CGAVISCLIENT_GENERAL_SETTINGS_FIELDSET_LABEL = "Module Settings"; MOD_CGAVISCLIENT_LAYOUT = "Affichage" MOD_CGAVISCLIENT_LAYOUT_DES = "Affichage" diff --git a/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cgavisclient.sys.ini b/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cgavisclient.sys.ini index 4796846..c652b8c 100644 --- a/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cgavisclient.sys.ini +++ b/packages/mod_cg_avis_client_j4/language/fr-FR/mod_cgavisclient.sys.ini @@ -1 +1 @@ -MOD_CGAVISCLIENT_XML_DESCRIPTION = "Module CG Avis Client version 2.0.0.
Affichage des avis clients avec recherche/affichage en mode isotope pour Joomla! 4.0." +MOD_CGAVISCLIENT_XML_DESCRIPTION = "Module CG Avis Client version 2.0.2.
Affichage des avis clients avec recherche/affichage en mode isotope pour Joomla! 4.0." diff --git a/packages/mod_cg_avis_client_j4/layouts/pagination/isotope.php b/packages/mod_cg_avis_client_j4/layouts/pagination/isotope.php index 50a0fb3..fbf0501 100644 --- a/packages/mod_cg_avis_client_j4/layouts/pagination/isotope.php +++ b/packages/mod_cg_avis_client_j4/layouts/pagination/isotope.php @@ -1,9 +1,9 @@ CG Avis Client ConseilGouz - September 2021 - Copyright (c) 2021 ConseilGouz. All rights reserved. + April 2022 + Copyright (c) 2022 ConseilGouz. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt pascal.leconte@conseilgouz.com https://www.conseilgouz.com - 2.0.0 + 2.0.2 - mod_cg_gallery + mod_cg_avisclient Module 2.0.2 - Update : 14/09/2021 + Update : 23/04/2022 - Rename CGHelper class - Various Joomla 4.0 fixes + Affichage du filtrage - mod_cg_gallery - Module - 2.0.1 - - Update : 11/07/2021 - - - Error if article not found - - - - mod_cg_gallery + mod_cg_avisclient Module 2.0.0 - Update : 11/07/2021 + Update : 25/09/2021 - Joomla 4.0 RC2 compatibility + Joomla 4.0 compatibility diff --git a/packages/mod_cg_avis_client_j4/mod_cgavisclient.php b/packages/mod_cg_avis_client_j4/mod_cgavisclient.php deleted file mode 100644 index bf14d7e..0000000 --- a/packages/mod_cg_avis_client_j4/mod_cgavisclient.php +++ /dev/null @@ -1,56 +0,0 @@ -get('class_sfx')); -$limit = htmlspecialchars($params->get('count')); -$app = Factory::getApplication(); -$limitstart = $app->input->get('limitstart', 0, 'uint'); - -// Add style and css to header -$doc = Factory::getDocument(); -$baseurl = URI::base(); -$modulefield = ''.URI::base(true).'/media/mod_cgavisclient/'; -$doc->addStyleSheet($modulefield.'/css/cgavisclient.css'); - -$doc->addStyleSheet($modulefield."css/isotope.css"); -$doc->addScript($modulefield."js/isotope.min.js"); -$doc->addScript($modulefield.'js/packery-mode.min.js'); -$doc->addScript($modulefield."js/imagesloaded.min.js"); -$doc->addStyleDeclaration($params->get('css')); -$cats_lib = array(); -$cats_alias = array(); -$categories = $params->get('categories'); -if (is_null($categories)) { - $res = CGAvisClientHelper:: getAllCategories(); - $categories = array(); - foreach ($res as $catid) { - $categories[] = $catid->id; - } -} -foreach ($categories as $catid) { - $res = CGAvisClientHelper::getCategory($catid); - $cats_lib[$catid]= $res[0]->title; - $cats_alias[$catid] = $res[0]->alias; -} - -$lists = CGAvisClientHelper::getList($params,$limitstart,$limit); - -$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); - -require( ModuleHelper::getLayoutPath( 'mod_cgavisclient', $params->get('layout', 'isotope') ) ); diff --git a/packages/mod_cg_avis_client_j4/mod_cgavisclient.xml b/packages/mod_cg_avis_client_j4/mod_cgavisclient.xml deleted file mode 100644 index dc76459..0000000 --- a/packages/mod_cg_avis_client_j4/mod_cgavisclient.xml +++ /dev/null @@ -1,281 +0,0 @@ - - - CG Avis Client - ConseilGouz - September 2021 - Copyright (c) 2021 ConseilGouz. All rights reserved. - GNU General Public License version 2 or later; see LICENSE.txt - pascal.leconte@conseilgouz.com - https://www.conseilgouz.com - 2.0.0 - - - - ConseilGouz\Module\CGAvisClient - script.php - - - mod_cgavisclient.php - mod_cgavisclient.xml - index.html - layouts - tmpl - language - - - fr-FR/mod_cgavisclient.ini - fr-FR/mod_cgavisclient.sys.ini - - - js - css - images - index.html - - - - -
- - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - -
-
- - https://www.conseilgouz.com/updates/cg_avis_client_update.xml - - - -
\ No newline at end of file diff --git a/packages/mod_cg_avis_client_j4/mod_cgavisclient_changelog.xml b/packages/mod_cg_avis_client_j4/mod_cgavisclient_changelog.xml deleted file mode 100644 index d72fced..0000000 --- a/packages/mod_cg_avis_client_j4/mod_cgavisclient_changelog.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - mod_cg_gallery - Module - 2.0.2 - - Update : 14/09/2021 - - - Rename CGHelper class - Various Joomla 4.0 fixes - - - - mod_cg_gallery - Module - 2.0.1 - - Update : 11/07/2021 - - - Error if article not found - - - - mod_cg_gallery - Module - 2.0.0 - - Update : 11/07/2021 - - - Joomla 4.0 RC2 compatibility - - - diff --git a/packages/mod_cg_avis_client_j4/script.php b/packages/mod_cg_avis_client_j4/script.php index f1bde9b..4ad0bf1 100644 --- a/packages/mod_cg_avis_client_j4/script.php +++ b/packages/mod_cg_avis_client_j4/script.php @@ -1,9 +1,9 @@ get('add_pagination')!=0){ // gestion de la pagination - $total = CGAvisClientHelper::getTotal($params); - $pagination = new CGPagination($total, $limitstart, $limit,'',null,$params); -} -// récupération des paramètres du module -$iso_layout = $params->get('iso_layout', 'fitRows'); -$iso_nbcol = $params->get('iso_nbcol',2); -$background = $params->get("backgroundcolor","#eee"); -$buttoncolor = $params->get("buttoncolor","#eee"); -$defaultdisplay = $params->get('defaultdisplay_article', 'date_desc'); -$displaysortinfo = $params->get('displaysortinfo', 'show'); -$displayfilter = $params->get('displayfilter','hide'); -$displaysort = $params->get('displaysort','show'); -$displaysearch = $params->get('displaysearch','show'); -$intro_maxwidth = $params->get('intro_maxwidth','0'); -$cat_list = $params->get('categories'); -$cls_spavisclient = $params->get('cls_spavisclient',''); - -$button_bootstrap = "btn btn-sm "; // classe des boutons -$col_bootstrap_sort = "col-md-4 col-xs-5"; // largeur de la colonne des boutons de tri - -// libellés affichés -$libreverse=Text::_('MOD_CGAVISCLIENT_ISOLIBREVERSE'); -$liball = Text::_('MOD_CGAVISCLIENT_ISOLIBALL'); -$libdate = Text::_('MOD_CGAVISCLIENT_ISOLIBDATE'); -$libcategory = Text::_('MOD_CGAVISCLIENT_ISOLIBCAT'); -$libvote= Text::_('MOD_AVISCLIENT_ISOLIBVOTES'); -$libcreated=Text::_('MOD_CGAVISCLIENT_ISOLIBCREATED'); -$libdateformat = Text::_('MOD_CGAVISCLIENT_ISODATEFORMAT'); // format d'affichage des dates au format php d/m/Y H:i = format français avec heure/minutes -$libsearch = "Recherche"; - -// génération du CSS en fonction du type d'affichage et du nb de colonnes -echo ''; - -$plusmenu = $params->get('plusmenu'); -$menu = Factory::getApplication()->getMenu()->getItem($plusmenu); -$plusroute = Route::_($menu->link); - -?> -
- -
-get('btndate','true') == "true") { - $sens = "-"; - $sens = $defaultdisplay=="date_desc"? "+": $sens; - echo ''; - $checked = ""; -} -if ($params->get('btnrating','true') == "true") { - $sens = "-"; - $sens = $defaultdisplay=="vote_desc"? "+": $sens; - echo ''; - $checked = ""; -} -if ($params->get('btncat','true') == "true") { - $sens = "-"; - $sens = $defaultdisplay=="cat_desc"? "+": $sens; - echo ''; - $checked = ""; -} -?> -
- - -
- -
-get('add_cgavisclient')!=0){?> -
- - - -
-'; - echo ''; - foreach ($categories as $filter) { - $aff = $cats_lib[$filter]; - $aff_alias = $cats_alias[$filter]; - if (!is_null($aff)) { - echo ''; - } - } - echo '
'; - -} - -?> - -
-
- $item) : ?> - category); - echo '
'; - ?> -
-
- - comment; - if ($intro_maxwidth > 0) { - $trunc = CGAvisClientHelper::truncate($comment,$intro_maxwidth); - if (substr($trunc,strlen($trunc) - 3,3) == "...") { - $comment = '
'.$trunc; - $comment = str_replace('

...','...

',$comment); - $comment .= ''; - $comment .= '
'; - $comment .= '"; - } else { // ajout du quote final - $comment .= ''; - } - } else { // ajout du quote final - $comment .= ''; - } - echo $comment; ?> - -
-
- get('aff'); - ?> -
-
-
rating; $j++) { - $stars .= ' '; - } - $stars .= '
'; - $deb = '
get('perso'); - $arr_css= array("{name}"=>$item->name,"{first}"=>$item->firstname,"{cat}"=>$cat[0]->title,"{date}"=>$libcreated.HTMLHelper::_('date', $item->created, $libdateformat), "{stars}" =>$stars, "{zip}" => $item->zipcode, "{city}" => $item->city); - foreach ($arr_css as $key => $val) { - $perso = str_replace($key,$val,$perso); - } - echo $deb.$perso.'
'; - ?> -
-
- -
-
- get('add_pagination')!=0){?> -
- getPagesLinks($params); ?> -
- - get('add_cgavisclient')!=0){?> -

- - -

- - get('plus_cgavisclient')!=0){?> -

- - -

- - - diff --git a/pkg_cg_avis_client.xml b/pkg_cg_avis_client.xml index 5de7f8a..5d82da6 100644 --- a/pkg_cg_avis_client.xml +++ b/pkg_cg_avis_client.xml @@ -4,7 +4,7 @@ ConseilGouz September 2021 CG Avis Client - 2.0.0 + 2.0.2 https://www.conseilgouz.com/ ConseilGouz Package CG Avis Client diff --git a/pkg_cg_avis_client_changelog.xml b/pkg_cg_avis_client_changelog.xml index 8d236ca..49e0721 100644 --- a/pkg_cg_avis_client_changelog.xml +++ b/pkg_cg_avis_client_changelog.xml @@ -1,4 +1,15 @@ + + pkg_cg_avis_client + package + 2.0.2 + + Update : 24/04/2022 + + + Affichage boutons filtrage incorrect + + pkg_cg_avis_client package