I know that is one solution, but i don't want to copy manually everytime when i create u sub-cat the stylesheet and rename it the cpath.css
I've found another solution it works, but i got an error-message.
The change is in the html_header.php
Code:
/**
* load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
*/
$manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
$tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
$sheets_array = array('/' . $_SESSION['language'] . '_stylesheet',
'/' . $tmp_pagename,
'/' . $_SESSION['language'] . '_' . $tmp_pagename,
'/c_' . (int)$cPath .'/',
'/' . $_SESSION['language'] . '_c_' . (int)$cPath . '/',
'/m_' . $manufacturers_id,
'/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id,
'/p_' . $tmp_products_id,
'/' . $_SESSION['language'] . '_p_' . $tmp_products_id
);
while(list ($key, $value) = each($sheets_array)) {
//echo "<--$value-->\n";
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), $value, '.css');
sort($directory_array);
while(list ($key2, $value2) = each($directory_array)) {
echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value2 .'" />'."\n";
}
}
The error i get is
Code:
Warning: preg_match() [function.preg-match]: No ending delimiter '/' found in \includes\classes\template_func.php on line 30
Bookmarks