예제 #1
0
 public function page($content = '')
 {
     set_active_theme_vars('page_content', $content);
     $this->include_template('page');
 }
예제 #2
0
/**
*	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;
}