Не обращайте внимания.

Тестирую плагин Code Highlighter

[php]
<?php
/*
Plugin Name: Future Posts
*/
?>
<?

class FuturePosts extends WP_Widget {
function FuturePosts() {
parent::WP_Widget(false, $name = ‘Future Posts’);
}

function widget($args, $instance) {
extract( $args );
?>
<?php echo $before_title
. $instance[‘title’]
. $after_title;
query_posts(‘order=ASC&post_status=future’);
while (have_posts()) : the_post(); ?>

<li><?php the_title();?></li>
<?php endwhile; ?>

<?php

}

function update($new_instance, $old_instance) {
return $new_instance;
}

function form($instance) {
$title = esc_attr($instance[‘title’]);
?>

<p>
<label for=»<?php echo $this->get_field_id(‘title’); ?>»><?php _e(‘Title:’); ?>
<input class=»widefat» id=»<?php echo $this->get_field_id(‘title’); ?>»
name=»<?php echo $this->get_field_name(‘title’); ?>» type=»text» value=»<?php echo $title; ?>»/>
</label>
</p>

<?php

}

}

add_action(‘widgets_init’, create_function(», ‘return register_widget(«FuturePosts»);’));

?>[/php]

Комментирование закрыто.