Plugin Directory

Changeset 416083


Ignore:
Timestamp:
07/27/2011 08:35:16 PM (15 years ago)
Author:
jeff_
Message:

fix the bug that uses post thumbnail even if none has been set for the post.

Location:
frontpage-slideshow/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • frontpage-slideshow/trunk/frontpage-slideshow.php

    r416021 r416083  
    44Plugin URI: http://wordpress.org/extend/plugins/frontpage-slideshow/
    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.9.9.3.7
     6Version: 0.9.9.3.8
    77Author: Jean-François VIAL
    88Author URI: http://www.modulaweb.fr/
     
    2525    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    2626*/
    27 define ('FRONTPAGE_SLIDESHOW_VERSION', '0.9.9.3.7');
     27define ('FRONTPAGE_SLIDESHOW_VERSION', '0.9.9.3.8');
    2828$fs_already_displayed = false; // the slideshow dont have been displayed yet
    2929
     
    4545    if (!count($options)) $options = frontpageSlideshow_get_options();
    4646    if (!$options['values']['fs_is_activated'] && !$force_display) return $content;
    47 
    48     $fscategories = join(',',$options['values']['fs_cats']);
     47    $fscategories = implode(',',$options['values']['fs_cats']);
    4948
    5049    if ((!is_feed() && is_front_page() && $options['values']['fs_insert']!='shortcode') || $force_display) { // the slideshow is only displayed on frontpage
     
    7069                        $image = $image[0];
    7170                    }
    72                 } else {
     71                }
     72                if ($image=='') {
    7373                    if (preg_match('/<img[^>]*src="([^"]*)"/i',$fspost->post_content,$matches)) {
    7474                        $image = $matches[1];
     
    120120        if (!count($options)) $options = frontpageSlideshow_get_options();
    121121        if (!$options['values']['fs_is_activated'] && !$force_display) return;
    122 
    123         $fscategories = join(',',$options['values']['fs_cats']);
    124             $fsposts = get_posts('category='.$fscategories.'&orderby=ID&numberposts='.$options['values']['fs_slides']);
    125             $fslast = count($fsposts) - 1;
    126 
    127             frontpageSlideshow_JS($options,$fslast);
    128             frontpageSlideshow_CSS($options,$fslast+1);
    129             return '
     122        $fscategories = implode(',',$options['values']['fs_cats']);
     123        $fsposts = get_posts('category='.$fscategories.'&orderby=ID&numberposts='.$options['values']['fs_slides']);
     124        $fslast = count($fsposts) - 1;
     125
     126        frontpageSlideshow_JS($options,$fslast);
     127        frontpageSlideshow_CSS($options,$fslast+1);
     128        return '
    130129<script type="text/javascript">
    131130// <![CDATA[
     
    294293                    'fs_next_image'             => get_bloginfo('url').'/wp-content/plugins/frontpage-slideshow/images/next.png',
    295294                    'fs_rounded'                => '1',
    296                     'fs_theme'              => 'default',
     295                    'fs_template'               => 'default',
    297296                    'fs_pause_duration'         => '5000',
    298297                    'fs_transition_on_duration'     => '500',
     
    339338                    'fs_next_image'             => 'variant',
    340339                    'fs_rounded'                => 'bool',
    341                     'fs_theme'              => 'variant',
     340                    'fs_template'               => 'variant',
    342341                    'fs_pause_duration'         => 'duration',
    343342                    'fs_transition_on_duration'     => 'duration',
     
    383382                    'fs_next_image'             => __('The «next slide» image','frontpage-slideshow'),
    384383                    'fs_rounded'                => __('The «use rounded corners» option','frontpage-slideshow'),
    385                     'fs_theme'              => __('The template','frontpage-slideshow'),
     384                    'fs_template'               => __('The template','frontpage-slideshow'),
    386385                    'fs_pause_duration'         => __('The slides\' display duration','frontpage-slideshow'),
    387386                    'fs_transition_on_duration'     => __('The transision\'s beginning duration','frontpage-slideshow'),
  • frontpage-slideshow/trunk/readme.txt

    r416021 r416083  
    55Requires at least: 2.7.0
    66Tested up to: 3.2.1
    7 Stable tag: 0.9.9.3.7
     7Stable tag: 0.9.9.3.8
    88
    99Frontpage Slideshow provides a slide show like you can see in linux.com front page
     
    121121* v 0.9.9.3.6 : fix an error when the theme do not support posts thumbnails + atempt to fix some «always loading» behaviors
    122122* v 0.9.9.3.7 : atempt to fix some «always loading» behaviors
     123* v 0.9.9.3.8 : fix the bug that uses post thumbnail even if none has been set for the post.
    123124
    124125== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.