Changeset 159071
- Timestamp:
- 09/29/2009 08:05:29 PM (17 years ago)
- Location:
- frontpage-slideshow
- Files:
-
- 1 edited
- 3 copied
-
tags/0.6.1 (copied) (copied from frontpage-slideshow/trunk)
-
tags/0.6.1/frontpage-slideshow.php (copied) (copied from frontpage-slideshow/trunk/frontpage-slideshow.php) (4 diffs)
-
tags/0.6.1/readme.txt (copied) (copied from frontpage-slideshow/trunk/readme.txt)
-
trunk/frontpage-slideshow.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
frontpage-slideshow/tags/0.6.1/frontpage-slideshow.php
r159034 r159071 4 4 Plugin URI: http://www.modulaweb.fr/blog/wp-plugins/frontside-slideshow/en/ 5 5 Description: Frontpage Slideshow provides a slide show like you can see on <a href="http://linux.com">linux.com</a> or <a href="http://modulaweb.fr/">modulaweb.fr</a> front page. <a href="options-general.php?page=frontpage-slideshow">Configuration Page</a> 6 Version: 0. 76 Version: 0.6.1 7 7 Author: Jean-François VIAL 8 8 Author URI: http://www.modulaweb.fr/ … … 177 177 color: <?php echo $options['values']['fs_font_color']?>; 178 178 font-family: Verdana, Sans, Helvetica, Arial, sans-serif!important; 179 text-align: left;180 179 } 181 180 #fs-slide { … … 329 328 return frontpageSlideshow('',true,$options); 330 329 } 331 332 class frontpageSlideshow_Widget extends WP_Widget {333 334 function frontpageSlideshow_Widget() {335 $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML'));336 $control_ops = array('width' => 400, 'height' => 350);337 $this->WP_Widget('text', __('Text'), $widget_ops, $control_ops);338 }339 340 function widget( $args, $instance ) {341 extract($args);342 $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title']);343 $text = apply_filters( 'widget_text', $instance['text'] );344 echo $before_widget;345 if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>346 <div class="textwidget"><?php echo $instance['filter'] ? wpautop(do_shortcode($text)) : do_shortcode($text); ?></div>347 <?php348 echo $after_widget;349 }350 351 function update( $new_instance, $old_instance ) {352 $instance = $old_instance;353 $instance['title'] = strip_tags($new_instance['title']);354 if ( current_user_can('unfiltered_html') )355 $instance['text'] = $new_instance['text'];356 else357 $instance['text'] = wp_filter_post_kses( $new_instance['text'] );358 $instance['filter'] = isset($new_instance['filter']);359 return $instance;360 }361 362 function form( $instance ) {363 $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'text' => '' ) );364 $title = strip_tags($instance['title']);365 $text = format_to_edit($instance['text']);366 ?>367 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>368 <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>369 370 <textarea class="widefat" rows="16" cols="20" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>"><?php echo $text; ?></textarea>371 372 <p><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked($instance['filter']); ?> /> <label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs.'); ?></label></p>373 <?php374 }375 }376 377 378 379 330 380 331 function frontpageSlideshow_get_options($get_defaults=false,$return_unique=null) { … … 811 762 add_action('admin_menu', 'frontpageSlideshow_admin_menu'); 812 763 } 813 function frontpageSlideshow_Widget_init() { 814 register_widget('frontpageSlideshow_Widget'); 815 } 816 add_action('widgets_init', 'frontpageSlideshow_Widget_init'); 764 817 765 ?> -
frontpage-slideshow/trunk/frontpage-slideshow.php
r159034 r159071 374 374 } 375 375 } 376 377 378 379 376 380 377 function frontpageSlideshow_get_options($get_defaults=false,$return_unique=null) {
Note: See TracChangeset
for help on using the changeset viewer.