Plugin Directory

Changeset 168816


Ignore:
Timestamp:
10/30/2009 07:29:56 PM (16 years ago)
Author:
jeff_
Message:

uses javascript to include specific css rather than plain html allowing to validate to XHTML

Location:
frontpage-slideshow/trunk
Files:
2 edited

Legend:

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

    r166061 r168816  
    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.1
     6Version: 0.7.2
    77Author: Jean-François VIAL
    88Author URI: http://www.modulaweb.fr/
     
    114114    if ((!is_feed() && is_front_page() && is_page()) || $force_display) {
    115115?>
     116<!--  added by plugin FrontpageSlideshow -->
    116117<script type="text/javascript">
    117118/* <![CDATA[ */
     
    144145/* ]]> */
    145146</script>
     147<!--  /added by plugin FrontpageSlideshow -->
    146148<?php
    147149    }
     
    157159*/
    158160?>
     161<!--  added by plugin FrontpageSlideshow -->
    159162<!--[if IE]>
    160163<style type="text/css">
     
    164167</style>
    165168<![endif]-->
    166 
    167 <style type="text/css">
     169<?php ob_start(); ?>
    168170#fs-main {
    169171    width: <?php echo $options['values']['fs_main_width']?>;
     
    308310    top: -300000px!important;
    309311}
    310 </style>
     312<?php
     313$css = ob_get_contents();
     314ob_end_clean();
     315?>
     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>
     323<!--  /added by plugin FrontpageSlideshow -->
     324
    311325<?php
    312326    }
     
    693707    $args = array('plugin' => 'frontpage-slideshow', 'plugin_version' => FRONTPAGE_SLIDESHOW_VERSION);
    694708    $args['siteurl'] = get_option('siteurl');
    695     $args['&admin_email'] = get_option('admin_email');
     709    $args['admin_email'] = get_option('admin_email');
    696710    $args['WP_version'] = $wp_version;
    697711    $args['theme'] = get_option('template');
  • frontpage-slideshow/trunk/readme.txt

    r166061 r168816  
    55Requires at least: 2.8.0
    66Tested up to: 2.8.4
    7 Stable tag: 0.7
     7Stable tag: 0.7.2
    88
    99Frontpage Slideshow provides a slide show like you can see in linux.com front page
     
    4444* v 0.7 : allow to use the WP Text Widget to display the slideshow by inserting the shortcode onto the text itself, modify the original WP Text Widget to allow the use of all other shortcodes
    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
     46* v 0.7.2 : uses javascript to include specific css rather than plain html allowing to validate to XHTML
    4647
    4748== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.