Gerade noch ne Fehlermeldung bekommen:
[Fri Aug 21 14:28:39 2015] [warn] [client 212.202.165.26] mod_fcgid: stderr: PHP Fatal error: Cannot redeclare theme_slug_widgets_init() (previously declared in /var/www/vhosts/hosting4405.af92c.netcup.net/httpdocs/wp-content/themes/imevent/functions.php:15) in /var/www/vhosts/hosting4405.af92c.netcup.net/httpdocs/wp-content/themes/imevent/functions.php on line 25, referer: http://einfach-online-arbeiten.de/?elqTrackId=15…aid=687&elqat=1
PHP
<?php
define('TEXT_DOMAIN','imevent');
// Load the theme of translated strings
$lang = get_template_directory() . '/languages';
load_theme_textdomain(TEXT_DOMAIN, $lang);
// Require theme option
require_once get_template_directory() . '/framework/redux/sample-config.php';
global $theme_option;
// Create sidebar right
function theme_slug_widgets_init() {
$args = array(
'name' => sprintf( __( 'Sidebar right', TEXT_DOMAIN) ),
'id' => "sidebar-right",
'description' => __( 'Sidebar right', TEXT_DOMAIN ),
'class' => '',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>",
'before_title' => '<h3 class="widget-title">',
'after_title' => "</h3>",
);
register_sidebar( $args );
}
add_action( 'widgets_init', 'theme_slug_widgets_init' );
Alles anzeigen