Plugin Directory

Changeset 159071


Ignore:
Timestamp:
09/29/2009 08:05:29 PM (17 years ago)
Author:
jeff_
Message:

tagging version 0.6.1

Location:
frontpage-slideshow
Files:
1 edited
3 copied

Legend:

Unmodified
Added
Removed
  • frontpage-slideshow/tags/0.6.1/frontpage-slideshow.php

    r159034 r159071  
    44Plugin URI: http://www.modulaweb.fr/blog/wp-plugins/frontside-slideshow/en/
    55Description: 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.7
     6Version: 0.6.1
    77Author: Jean-François VIAL
    88Author URI: http://www.modulaweb.fr/
     
    177177    color: <?php echo $options['values']['fs_font_color']?>;
    178178    font-family: Verdana, Sans, Helvetica, Arial, sans-serif!important;
    179     text-align: left;
    180179}
    181180#fs-slide {
     
    329328    return frontpageSlideshow('',true,$options);
    330329}
    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         <?php
    348         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         else
    357             $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']); ?> />&nbsp;<label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs.'); ?></label></p>
    373 <?php
    374     }
    375 }
    376 
    377 
    378 
    379330
    380331function frontpageSlideshow_get_options($get_defaults=false,$return_unique=null) {
     
    811762    add_action('admin_menu', 'frontpageSlideshow_admin_menu');
    812763}
    813 function frontpageSlideshow_Widget_init() {
    814     register_widget('frontpageSlideshow_Widget');
    815 }
    816 add_action('widgets_init', 'frontpageSlideshow_Widget_init');
     764
    817765?>
  • frontpage-slideshow/trunk/frontpage-slideshow.php

    r159034 r159071  
    374374    }
    375375}
    376 
    377 
    378 
    379376
    380377function frontpageSlideshow_get_options($get_defaults=false,$return_unique=null) {
Note: See TracChangeset for help on using the changeset viewer.