public function set_compatibility() { active_theme_compatibility(array('INDEX', 'BLOG', 'CONTACT', 'STATIC', 'WIDGETS')); }
/** * set_app_compatibility() : définit une compatibilité pour un thème. **/ function active_theme_compatibility($APP) { if (is_array($APP)) { foreach ($APP as $_app) { active_theme_compatibility($_app); } return true; } else { $apps_supported = get_active_theme_vars('APPS_COMPATIBILITY') ? get_active_theme_vars('APPS_COMPATIBILITY') : array(); $apps_supported[] = $APP; return set_active_theme_vars('APPS_COMPATIBILITY', $apps_supported); } return false; }