サイドパネルが表示されない問題

BuddyDocsをURL指定で動的にテーマを切り替えて表示する様にしましたが、設定した通りに表示されませんでした。
とりあえずは、一般的な項目だけでよいので、
・カテゴリ
・最近の投稿
・最近のコメント
・アーカイブ(初めからあったw)
が表示される様にしたいところです。なので、sidebar.phpを編集してしまいます。

<?php if( ! dynamic_sidebar(‘main-sidebar’)):?> の部分で正しく読み込めない場合は固定のウィジェットを表示される様なので、<?php endif; ?>までの間を以下のように書き換えました。

<?php if( ! dynamic_sidebar(‘main-sidebar’)):?>
<li class=”widget”> <!– widget starts here –>
<h3 class=”widget-title”><span><?php _e( ‘カテゴリー’, ‘buddy-docs’  ); ?></h3>
<ul>
<?php $args = array(
‘show_option_all’    => ”,
‘orderby’            => ‘name’,
‘order’              => ‘ASC’,
‘style’              => ‘list’,
‘show_count’         => 1,
‘hide_empty’         => 0,
‘use_desc_for_title’ => 1,
‘child_of’           => 0,
‘feed’               => ”,
‘feed_type’          => ”,
‘feed_image’         => ”,
‘exclude’            => ”,
‘exclude_tree’       => ”,
‘include’            => ”,
‘hierarchical’       => 1,
‘title_li’           => ”,
‘show_option_none’   => __( ” ),
‘number’             => null,
‘echo’               => 1,
‘depth’              => 0,
‘current_category’   => 0,
‘pad_counts’         => 0,
‘taxonomy’           => ‘category’,
‘walker’             => null
);
wp_list_categories( $args );
?>
</ul>
</li>  <!– widget ends here –><li class=”widget”> <!– widget starts here –>
<h3 class=”widget-title”><?php _e( ‘最近の投稿’, ‘buddy-docs’  ); ?></h3>
<ul>
<?php wp_get_archives(‘type=postbypost&limit=5’); ?>
</ul>
</li>  <!– widget ends here –>
<li class=”widget”> <!– widget starts here –>
<h3 class=”widget-title”><?php _e( ‘最近のコメント’, ‘buddy-docs’  ); ?></h3>
<ul>
<?php
$comments = get_comments(array(‘status’ => ‘approve’ ,’number’ => 5));
foreach($comments as $comment):
$post = get_post($comment->comment_post_ID);
?>
<li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a><br />
<?php comment_author_link(); ?>より</li>
<!–php comment_date(‘m/d’); comment_text(); –>
<?php endforeach; ?>
</ul>
</li>  <!– widget ends here –>
<li class=”widget”> <!– widget starts here –>
<h3 class=”widget-title”><?php _e( ‘Archives’, ‘buddy-docs’  ); ?></h3>
<ul>
<?php wp_get_archives( array( ‘type’ => ‘monthly’ ) ); ?>
</ul>
</li>  <!– widget ends here –>
<?php endif; ?>

必要ない部分もありますが、サンプルそのままで。インデント?なにそれおいしいの?
よく見る、コードを張り付けるコントロールの導入を考えないと...