} $content['overwrite_canonical'] = $row['article_canonical']; // UNIQUE article ID as used for teaser content part if (!isset($content['UNIQUE_ALINK'])) { $content['UNIQUE_ALINK'] = array(); } $content['UNIQUE_ALINK'][$row["article_id"]] = $row["article_id"]; //set cache timeout for this article if ($row['article_cache'] != '') { $phpwcms['cache_timeout'] = $row['article_cache']; } //get value for article search (on/off) if ($row['article_nosearch'] != '') { $cache_searchable = '1'; } $content['opengraph']['support'] = phpwcms_boolval($row["article_opengraph"]); $content['opengraph']['type'] = 'article'; // Open Graph type //check if article has custom pagetitle if (empty($row["article_pagetitle"])) { $content["pagetitle"] = setPageTitle($content["pagetitle"], $article['cat'], $row["article_title"]); $content['opengraph']['title'] = $row["article_title"]; } else { $content["pagetitle"] = $row["article_pagetitle"]; $content['opengraph']['title'] = $content["pagetitle"]; } // check description if (!empty($row['article_description'])) { set_meta('description', $row['article_description']); $content['opengraph']['description'] = $row["article_description"]; }
// Check against language specific shop template if (is_file($phpwcms['modules']['shop']['path'] . 'template/' . $phpwcms['default_lang'] . '.html')) { $_tmpl['source'] = @file_get_contents($phpwcms['modules']['shop']['path'] . 'template/' . $phpwcms['default_lang'] . '.html'); } else { $_tmpl['source'] = @file_get_contents($phpwcms['modules']['shop']['path'] . 'template/default.html'); } if ($_tmpl['source']) { if (PHPWCMS_CHARSET !== 'utf-8' && phpwcms_seems_utf8($_tmpl['source'])) { $_tmpl['source'] = mb_convert_encoding($_tmpl['source'], PHPWCMS_CHARSET, 'utf-8'); } $_tmpl['config'] = parse_ini_str(get_tmpl_section('CONFIG', $_tmpl['source']), false); $_tmpl['config']['cat_list_products'] = empty($_tmpl['config']['cat_list_products']) ? false : phpwcms_boolval($_tmpl['config']['cat_list_products']); $_tmpl['config']['image_list_lightbox'] = empty($_tmpl['config']['image_list_lightbox']) ? false : phpwcms_boolval($_tmpl['config']['image_list_lightbox']); $_tmpl['config']['image_detail_lightbox'] = empty($_tmpl['config']['image_detail_lightbox']) ? false : phpwcms_boolval($_tmpl['config']['image_detail_lightbox']); $_tmpl['config']['image_detail_crop'] = empty($_tmpl['config']['image_detail_crop']) ? false : phpwcms_boolval($_tmpl['config']['image_detail_crop']); $_tmpl['config']['image_list_crop'] = empty($_tmpl['config']['image_list_crop']) ? false : phpwcms_boolval($_tmpl['config']['image_list_crop']); // Classes $_tmpl['config'] = array_merge(array('class_form_product_cart_option' => 'product-cart-option', 'class_shop_amount' => 'shop-amount', 'class_cart_add_button' => 'cart-add-button', 'class_product_option_1' => 'product-option-1', 'class_product_option_2' => 'product-option-2', 'class_form_cart' => 'cart-form'), $_tmpl['config']); if (empty($_tmpl['config']['class_prefix_shop_mode'])) { $_tmpl['config']['class_prefix_shop_mode'] = 'shopmode-'; } // handle custom fields $_tmpl['config']['shop_field'] = array(); $custom_field_number = 1; while (!empty($_tmpl['config']['shop_field_' . $custom_field_number])) { $custom_field_type = explode('_', trim($_tmpl['config']['shop_field_' . $custom_field_number])); if ($custom_field_type[0] === 'STRING' || $custom_field_type[0] === 'TEXTAREA' || $custom_field_type[0] === 'CHECK') { $_tmpl['config']['shop_field'][$custom_field_number]['type'] = $custom_field_type[0]; if (isset($custom_field_type[1]) && $custom_field_type[1] == 'REQ') { $_tmpl['config']['shop_field'][$custom_field_number]['required'] = true; if (empty($custom_field_type[2])) {