Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Added like parameter to be used as alternative to search if string search is needed instead of full text
givanza6d3611f5923
diff --git a/app/component/posts.php b/app/component/posts.phpindex 5569913..0327eab 100755--- a/app/component/posts.php+++ b/app/component/posts.php@@ -50,6 +50,7 @@ class Posts extends ComponentBase {'taxonomy_item_id' => NULL,'taxonomy_item_slug' => NULL,'search' => NULL,+ 'like' => NULL,'admin_id' => NULL,//archive'month' => NULL,@@ -176,6 +177,7 @@ class Posts extends ComponentBase {//rfc$post['pubDate'] = date('r', strtotime($post['created_at']));+ $post['modDate'] = date('r', strtotime($post['updated_at']));//url$url = ['slug' => $post['slug'], 'post_id' => $post['post_id']] + $language;diff --git a/app/component/products.php b/app/component/products.phpindex 46af317..151f255 100755--- a/app/component/products.php+++ b/app/component/products.php@@ -48,6 +48,7 @@ class Products extends ComponentBase {'product_image' => true,'product_id' => [],'search' => null,+ 'like' => null,'slug' => null,'related' => null,'variant' => null,@@ -63,7 +64,7 @@ class Products extends ComponentBase {if ($page = $this->options['page']) {$this->options['start'] = ($page - 1) * $this->options['limit'];}-+if ($this->options['filter']) {foreach ($this->options['filter'] as $name => $values) {if ($name == 'manufacturer_id' || $name == 'vendor_id') {@@ -135,9 +136,10 @@ class Products extends ComponentBase {//rfc$product['pubDate'] = date('r', strtotime($product['created_at']));+ $product['modDate'] = date('r', strtotime($product['updated_at']));$url = ['slug' => $product['slug'], 'product_id' => $product['product_id']] + $language;- $product['url'] = url('product/product/index', $url);+ $product['url'] = url('product/product/index', $url);$product['add_cart_url'] = url('cart/cart/add', ['product_id' => $product['product_id']]);$product['buy_url'] = url('checkout/checkout/index', ['product_id' => $product['product_id']]);$product['add_wishlist_url'] = url('user/wishlist/add', ['product_id' => $product['product_id']]);