WordPress.org

Plugin Directory

Changeset 193206


Ignore:
Timestamp:
01/12/10 15:33:38 (4 years ago)
Author:
KopiPejst
Message:

valid xhtml markup

Location:
fancy-transitions-featured-gallery/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • fancy-transitions-featured-gallery/trunk/ftFeatured-content.php

    r189128 r193206  
    44Plugin URI: http://www.workshop.rs 
    55Description: ftFeatured is Wordpress plugin for creating image gallery with fancy transition effects of featured posts. You can choose between three types of transition effects: curtain, wave and zipper. Also, you can set width, height, delay time, number of posts etc. 
    6 Version: 1.1.0 
     6Version: 1.2.0 
    77Author: Ivan Lazarevic 
    88Author URI: http://www.workshop.rs 
  • fancy-transitions-featured-gallery/trunk/ftFeatured.php

    r189065 r193206  
    66        $tmp_query = $wp_query;  
    77 
    8         query_posts('showposts=50');     
     8        query_posts('showposts=50'); 
    99     
    1010        if (have_posts()) :  
     
    1919                $image = get_post_meta($post->ID, $imgField , true); 
    2020                $text = get_post_meta($post->ID, $txtField , true); 
     21                if ($text) $text = "<br /><span>".$text."</span>"; 
    2122                if ($image != ''){ ?> 
    22                     <img src="<?php echo $image; ?>" alt="<a href='<?php the_permalink() ?>'><?php the_title() ?></a><br /><span><?= $text ?></span>" /> 
     23                    <img src="<?php echo $image; ?>" alt="<?php the_title() ?>" /> 
     24                    <span><a href='<?php the_permalink() ?>'><?php the_title() ?></a><?= $text ?></span> 
    2325          <?php }  
    2426              
     
    3234        $ftHeight = get_option('ftfeatured-height') ? get_option('ftfeatured-height') : 332;         
    3335        $ftDelay = get_option('ftfeatured-delay') ? get_option('ftfeatured-delay') : 5000; 
    34  
    35         $wp_query = $tmp_query;      
     36         
     37        $wp_query = $tmp_query; 
    3638         
    3739    ?> 
     
    3941</div> 
    4042 
    41 <script> 
     43<script type="text/javascript"> 
    4244 
    4345    $("#ftFeatured").jqFancyTransitions({  
  • fancy-transitions-featured-gallery/trunk/readme.txt

    r189065 r193206  
    3434= 1.1.0 = 
    3535* Work on all posts and pages not only on front page 
     36 
     37= 1.2.0 = 
     38* Valid XHTML Markup 
  • fancy-transitions-featured-gallery/trunk/scripts/jqFancyTransitions.min.js

    r188071 r193206  
    1010 *   http://www.gnu.org/licenses/gpl.html 
    1111**/ 
    12  
    1312(function($){var opts=new Array;var level=new Array;var img=new Array;var titles=new Array;var order=new Array;var imgInc=new Array;var inc=new Array;var stripInt=new Array;var imgInt=new Array;$.fn.jqFancyTransitions=$.fn.jqFancyTransitions=function(options){init=function(el){opts[el.id]=$.extend({},$.fn.jqFancyTransitions.defaults,options);img[el.id]=new Array();titles[el.id]=new Array();order[el.id]=new Array();imgInc[el.id]=0;inc[el.id]=0;params=opts[el.id];if(params.effect=='zipper'){params.direction='alternate';params.position='alternate';} 
    1413if(params.effect=='wave'){params.direction='alternate';params.position='top';} 
    1514if(params.effect=='curtain'){params.direction='alternate';params.position='curtain';} 
    16 stripWidth=parseInt(params.width/params.strips);gap=params.width-stripWidth*params.strips;stripLeft=0;$.each($('#'+el.id+' img'),function(i,item){img[el.id][i]=$(item).attr('src');titles[el.id][i]=$(item).attr('alt')?$(item).attr('alt'):'';$(item).hide();});$('#'+el.id).css({'background-image':'url('+img[el.id][0]+')','width':params.width,'height':params.height,'position':'relative','background-position':'top left'});$('#'+el.id).append("<div class='ft-title' id='ft-title-"+el.id+"' style='position: absolute; bottom:0; left: 0; z-index: 1000; color: #fff; background-color: #000; '>"+titles[el.id][0]+"</div>");if(titles[el.id][imgInc[el.id]]) 
     15stripWidth=parseInt(params.width/params.strips);gap=params.width-stripWidth*params.strips;stripLeft=0;$.each($('#'+el.id+' img'),function(i,item){img[el.id][i]=$(item).attr('src');titles[el.id][i]=$(item).next().html()?$(item).next().html():'';$(item).hide();$(item).next().hide();});$('#'+el.id).css({'background-image':'url('+img[el.id][0]+')','width':params.width,'height':params.height,'position':'relative','background-position':'top left'});$('#'+el.id).append("<div class='ft-title' id='ft-title-"+el.id+"' style='position: absolute; bottom:0; left: 0; z-index: 1000; color: #fff; background-color: #000; '>"+titles[el.id][0]+"</div>");if(titles[el.id][imgInc[el.id]]) 
    1716$('#ft-title-'+el.id).css('opacity',opts[el.id].titleOpacity);else 
    1817$('#ft-title-'+el.id).css('opacity',0);odd=1;for(j=1;j<params.strips+1;j++){if(gap>0){tstripWidth=stripWidth+1;gap--;}else{tstripWidth=stripWidth;} 
Note: See TracChangeset for help on using the changeset viewer.