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