I used categories are not assigned icons. Decided to appoint from. Filled your icons in a folder arcade / images / cats /.
He went into the setup option categories:
He pressed the green gear to enter setting itself the chosen category:
Debugger gives an error:
You can fix this?
Regards, Alexander
Code: Select all
$category_images = array();
if ($files = scandir($dir))
{
foreach ($files as $file)
{
$ext = strrchr($file, '.');
if (!in_array(strtolower($ext), array('.gif', '.jpg', '.png', '.jpeg')))
{
continue;
}
+++ list($width, $height) = getimagesize($dir . $file);
if ($width && $height)
{
$category_images[] = $file;
}
}
}
$filename_list = '';