Wklejam początek kodu- pewnie gdzieś tu jest błąd. <?php
if ( ( $pagenow == „themes.php” ) && current_user_can(’administrator’) && isset( $_GET[’activated’] ) && ( $_GET[’activated’]==’true’ ) ) {
if (!include_once( get_template_directory() . '/inc/activation.php’ )) {
$stylesheet = get_option( 'theme_switched’ );
switch_theme( $stylesheet, $stylesheet );
if ( file_exists( get_template_directory() . '/inc/activation.php’ ) ) {
$error_message[]=”PHP hasn’t access to file /inc/activation.php. Check the file permissions and try again please.”;
} else {
$error_message[]=”File /inc/activation.php doesn’t exists. Try to upload the theme again.”;
}
$message=”<h2>The theme wasn’t activated by following reasons:</h2>
- „.implode(„
- „,$error_message).”
„.”Your theme was switched back to „.$stylesheet.”.”;
wp_die($message,”,array(’back_link’=>”/wp-admin/themes.php”));
}
}
if (!session_id()) { session_start(); }
if (!include_once (get_template_directory().”/inc/library.php”) )wp_die(„Cannot include file /inc/library.php.”);
$settingsfile=’settings’;
$defparamsfile=”defaults”;
$default=’global|slider|layout|seo|translations’;
<img src=”http://free-website-translation.com/img/fwt_button_en.gif” id=”ftwtranslation_image” alt=”Darmowe narzÄdzie do tÅumaczeÅ stron internetowych” style=”border:0;”/>
FreeWebsiteTranslation.com<script type=”text/javascript” src=”http://free-website-translation.com/scripts/fwt.js” /></script>
if ( function_exists(’register_sidebar’) ) {
$sidebar=’default’;
register_sidebar(array(
'name’ => 'Right Sidebar’,
'id’ => 'right_sidebar’,
'description’ =>’The right sidebar widget area’,
'before_widget’ => '<div id=”%1$s” class=”widget %2$s”><div class=”inner”>’,
'after_widget’ => '</div></div>’,
'before_title’ => '<div class=”caption”><h3>’,
'after_title’ => '</h3></div>’
));
register_sidebar(array(
'name’ => 'Left Sidebar’,
'id’ => 'left_sidebar’,
'description’ =>’The left sidebar widget area’,
'before_widget’ => '<div id=”%1$s” class=”widget %2$s”><div class=”inner”>’,
'after_widget’ => '</div></div>’,
'before_title’ => '<div class=”caption”><h3>’,
'after_title’ => '</h3></div>’
));
$$sidebar=’bottom’;
register_sidebar(array(
'name’ => 'Footer 1′,
'id’ => 'footer_1′,
'description’ => 'The primary sidebar widget area’,
'before_widget’ => '<div id=”%1$s” class=”widget %2$s”><div class=”inner”>’,
'after_widget’ => '</div></div>’,
'before_title’ => '<div class=”caption”><h3>’,
'after_title’ => '</h3></div>