Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Where did you get that code? If it is from a plugin or theme in the WordPress repo then I can direct you to that dedicates sub-forum for support.
Thread Starter
ctcp
(@ctcp)
Thank you for your time
This message come today i just edit home page text and got this error
this code is from theme
switch ($what) {
case 'icon':
$anc = get_ancestors( $categoryID, 'ait-dir-item-category' );
$icon = isset($aitCategoryMeta[$categoryID]) ? $aitCategoryMeta[$categoryID]['icon'] : '';
if(empty($icon)){
foreach ($anc as $value) {
if(!empty($aitCategoryMeta[$value]['icon'])){
$icon = $aitCategoryMeta[$value]['icon'];
break;
}
}
if(empty($icon)){
$icon = $GLOBALS['aitThemeOptions']->directory->defaultCategoryIcon;
}
}
return $icon;
case 'marker':
$anc = get_ancestors( $categoryID, 'ait-dir-item-category' );
$marker = isset($aitCategoryMeta[$categoryID]) ? $aitCategoryMeta[$categoryID]['marker'] : '';
if(empty($marker)){
foreach ($anc as $value) {
if(!empty($aitCategoryMeta[$value]['marker'])){
$marker = $aitCategoryMeta[$value]['marker'];
break;
}
}
if(empty($marker)){
$marker = $GLOBALS['aitThemeOptions']->directoryMap->defaultMapMarkerImage;
}
}
return $marker;
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
*Drinks more coffee*
Where did you get that code and which theme is it?