.*\(.*)\<\/title\>(.*)\<\/head\>.*\.*\

(.*)\<\!-- end sidebar --\>.*\<\/body\>/Uims", $content, $out)) preg_match("/\.*\(.*)\<\/title\>(.*)\<\/head\>.*\.*\
.*\
(.*)\
.*\
.*\<\/body\>/Uims", $content, $out); preg_match_all("/()/", $out[2], $links); preg_match_all("/()/ims", $out[2], $styles); preg_match_all("//", $out[2], $meta); preg_match_all("/()/Uims", $out[2], $jss); $wordpress_content = $out[3]; if(is_array($jss[1])) foreach($jss[1] as $js) $js_content .= $js."\n"; $wordpress_content = $js_content."\n".$wordpress_content; if(is_array($links[1])) foreach($links[1] as $link) $css_content .= $link."\n"; if(is_array($styles[1])) foreach($styles[1] as $css) $css_content .= $css."\n"; $wordpress_content = $css_content."\n".$wordpress_content; $wordpress_title = $out[1]; /* require $xcart_dir."/include/categories.php"; if ($active_modules["Manufacturers"]) include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php"; if ($active_modules["Bestsellers"]) include $xcart_dir."/modules/Bestsellers/bestsellers.php"; */ if (is_array($meta)) foreach($meta[1] as $ind=>$val) { if ($val == 'keywords') $_meta_keywords = $meta[2][$ind]; elseif($val == 'description') $_meta_descr = $meta[2][$ind]; } $smarty->assign('page_data', array('metatitle' => $wordpress_title, 'metadescr' => $_meta_descr, 'metakeywords' => $_meta_keywords)); unset($location); $location[] = array($wordpress_title); $smarty->assign('location', $location); $smarty->assign('wordpress_content', '
'.$wordpress_content.'
'); $smarty->assign('main', 'wordpress'); func_display('customer/home_blog.tpl', $smarty); ?>