Plugin Directory

Changeset 169308


Ignore:
Timestamp:
11/01/2009 05:56:39 PM (16 years ago)
Author:
jeff_
Message:

fixing bug introduced in 0.7.2 that was messing up the slideshow display in IE + XHTML validation improvements

Location:
frontpage-slideshow/trunk
Files:
2 edited

Legend:

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

    r168841 r169308  
    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.2
     6Version: 0.7.3
    77Author: Jean-François VIAL
    88Author URI: http://www.modulaweb.fr/
     
    2424    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    2525*/
    26 define ('FRONTPAGE_SLIDESHOW_VERSION', '0.7.2');
     26define ('FRONTPAGE_SLIDESHOW_VERSION', '0.7.3');
    2727$fs_already_displayed = false; // the slideshow dont have been displayed yet
    2828function frontpageSlideshow($content,$force_display=false,$options=array()) {
     
    7575                $fscontent .= '<div id="fs-entry-title-'.$id.'" class="fs-title">'.$entry['title'].'</div>';
    7676                $fscontent .= '<div id="fs-entry-button-comment-'.$id.'" class="fs-comment">'.$entry['button-comment'].'</div>';
    77                 $fscontent .= '<img id="fs-entry-img-'.$id.'" class="fs-skip" src="'.$entry['image'].'"';
     77                $fscontent .= '<img id="fs-entry-img-'.$id.'" class="fs-skip" alt=" " src="'.$entry['image'].'"';
    7878                if ($id == $fslast) $fscontent .= ' onload="fsDoSlide()"'; // put this to make another loop after the last image
    7979                $fscontent .= ' />';
     
    9696
    9797function frontpageSlideshow_header($force_display=false,$options=array()) {
    98     if ((!is_feed() && is_front_page()) || $force_display) {
     98    if (true || $force_display) {
    9999        if (!count($options)) $options = frontpageSlideshow_get_options();
    100100        if (!$options['values']['fs_is_activated'] && !$force_display) return;
     
    151151
    152152function frontpageSlideshow_CSS($options,$force_display=false) {
    153     if ((!is_feed() && is_front_page() && is_page()) || $force_display) {
     153    if (true || $force_display) {
    154154/*
    155155    Here comes the CSS ruleset
     
    314314ob_end_clean();
    315315?>
    316 <script type="text/javascript">
    317 /* <![CDATA[ */
    318     var frontpageSlideshow_CSS = document.createElement('style');
    319     frontpageSlideshow_CSS.innerHTML = "<?php echo str_replace("\n",' ',str_replace("\n\t",' ',str_replace('"','\"',$css))); ?>"
    320     document.getElementsByTagName('head').item(0).appendChild(frontpageSlideshow_CSS);
    321 /* ]]> */
    322 </script>
     316<style type="text/css">
     317    <?php echo str_replace("\n",' ',str_replace("\n\t",' ',str_replace('"','\"',$css))); ?>
     318   
     319</style>
    323320<!--  /added by plugin FrontpageSlideshow -->
    324321
     
    341338    $options['values'] = shortcode_atts($options['values'], $attributes);
    342339    $force_display_if_shortcode = true;
    343     frontpageSlideshow_header(true,$options);
     340//  frontpageSlideshow_header(true,$options);
    344341    return frontpageSlideshow('',true,$options);
    345342}
  • frontpage-slideshow/trunk/readme.txt

    r168816 r169308  
    4545* v 0.7.1 : changes made on the admin page ; adding the plugins unique ID system to allow faster troubleshoot ; possibility to view the complete shortcode string
    4646* v 0.7.2 : uses javascript to include specific css rather than plain html allowing to validate to XHTML
     47* v 0.7.3 : fixing bug introduced in 0.7.2 that was messing up the slideshow display in IE + XHTML validation improvements
    4748
    4849== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.