2 Commits 18e4b75961 ... 5e87f15563

Autor SHA1 Mensagem Data
  cedric 5e87f15563 up version // rem xipblog 9 meses atrás
  cedric 4a08fae1dd static function php 8.1 // rem xipblog 9 meses atrás
2 arquivos alterados com 9 adições e 7 exclusões
  1. 5 4
      chcreateur.php
  2. 4 3
      classes/chcreapost.php

+ 5 - 4
chcreateur.php

@@ -23,7 +23,7 @@ class Chcreateur extends Module implements WidgetInterface
 		$this->need_instance = 0;
 		$this->ps_versions_compliancy = [
 			'min' => '1.6.0',
-			'max' => '1.7.9',
+			'max' => '8.4',
 		];
 		$this->bootstrap = true;
 		parent::__construct();
@@ -50,7 +50,7 @@ class Chcreateur extends Module implements WidgetInterface
 			&& $this->registerHook('displayHeader')
 			&& $this->registerHook('ModuleRoutes')
 			&& $this->registerHook('ActionFrontControllerSetVariables')
-			//&& $this->Register_SQL()
+			&& $this->Register_SQL()
 			&& $this->_installTab()
 			&& Configuration::updateValue('CHCREATEUR_TITLE', 'Nos createurs')
 			&& Configuration::updateValue('CHCREATEUR_URL', 'nos-createurs')
@@ -515,7 +515,7 @@ class Chcreateur extends Module implements WidgetInterface
 	 */
 	public function renderWidget($hookName = null, array $configuration = [])
 	{
-		if ($hookName  == 'displayxipblogleft') {
+		if ($hookName  == 'displayleft') {
 			$this->smarty->assign($this->getWidgetVariables($hookName, $configuration));
 			return $this->fetch('module:'.$this->name.'/views/templates/front/left-list.tpl');
 
@@ -586,7 +586,7 @@ class Chcreateur extends Module implements WidgetInterface
         return $base.$shop->getBaseURI();
     }
 
-
+	/*
     public static function XipBlogPostLink($params = array())
     {
         $url_format = Configuration::get(self::$xipblogshortname."url_format");
@@ -614,6 +614,7 @@ class Chcreateur extends Module implements WidgetInterface
             $rule = 'xipblog-single-module';
         }
     }
+	*/
 
 	public function hookActionFrontControllerSetVariables()
 	{	

+ 4 - 3
classes/chcreapost.php

@@ -322,7 +322,7 @@ class Chcreapost extends ObjectModel
 		return $results;
 	}
 
-
+	/*
 	public static function getsinglepath($id_chcreaposts = null, $post_type = 'post')
 	{
 		if (null == $id_chcreaposts) {
@@ -350,6 +350,7 @@ class Chcreapost extends ObjectModel
 
 		return $full_paths.$str;
 	}
+	*/
 
 	public static function getTopPosition()
 	{
@@ -427,7 +428,7 @@ class Chcreapost extends ObjectModel
 		return isset($rslts['id_chcreaposts']) ? $rslts['id_chcreaposts'] : null;
 	}
 
-	public function getNextPost($position)
+	public static function getNextPost($position)
 	{
 		$id_lang = (int) Context::getContext()->language->id;
 		$id_shop = (int) Context::getContext()->shop->id;
@@ -446,7 +447,7 @@ class Chcreapost extends ObjectModel
 		return $rslt;
 	}
 
-	public function getPreviousPost($position)
+	public static function getPreviousPost($position)
 	{
 		$id_lang = (int) Context::getContext()->language->id;
 		$id_shop = (int) Context::getContext()->shop->id;