ls_get_key("page"); $performance = $page->get_prop_render_value("performance"); $automation = $page->get_prop_render_value("automation"); $products_slug = array(...$performance, ...$automation); $products_slug_array = array(); $products_slug = array_map(function($value) { return ' `item_slug` = "' . $value["product_slug"] . '" '; }, $products_slug); $query = "SELECT * FROM `bive_items` WHERE " . implode(" OR ", $products_slug); $result = $b->db_query($query, [], true); ?>

Варианты исполнения

$item) { $product = new Product($item["item_id"]); $b->template_load("productCategory/product_row.php", array("product" => $product)); } ?>