Hier mal der Quelltext aus der functions.php:
<?php
/**
* Core functions file for the theme. Includes other key files.
*
* @package Suffusion
* @subpackage Functions
*/
if (!defined('SUFFUSION_THEME_VERSION')) {
define('SUFFUSION_THEME_VERSION', '4.4.0');
}
require_once(get_template_directory().'/functions/framework.php');
$suffusion_framework = new Suffusion_Framework();
require_once(get_template_directory().'/admin/theme-definitions.php');
add_action("after_setup_theme", "suffusion_theme_setup");
/**
* Initializing action. If you are creating a child theme and you want to override some of Suffusion's actions/filters etc you
* can add your own action to the hook "after_setup_theme", with a priority > 10 if you want your actions to be executed after
* Suffusion and with priority < 10 if you want your actions executed before.
*
* @return void
*/
function suffusion_theme_setup() {
global $pagenow, $suffusion_unified_options, $suffusion;
suffusion_add_theme_supports();
suffusion_include_files();
suffusion_setup_standard_actions_and_filters();
suffusion_setup_custom_actions_and_filters();
suffusion_setup_skin();
foreach ($suffusion_unified_options as $option => $value) {
global $$option;
$$option = $value;
}
$suffusion = new Suffusion();
$suffusion->init();
if(is_admin() && isset($_GET['activated']) && $pagenow = 'themes.php') {
header('Location: '.admin_url().'themes.php?page=suffusion-options-manager&now-active=true');
}
}