WordPress.org

Plugin Directory

Changeset 405480


Ignore:
Timestamp:
07/06/11 14:24:30 (3 years ago)
Author:
philiparthurmoore
Message:

Version 1.1.2

  • Added ability to insert Galleries in any place on Posts and Pages.
Location:
gpp-slideshow
Files:
36 added
3 edited

Legend:

Unmodified
Added
Removed
  • gpp-slideshow/trunk/gpp_activate.php

    r393704 r405480  
    55Plugin URI: http://graphpaperpress.com/plugins/gpp-slideshow/ 
    66Description: Create minimalist slideshows using a new Gallery post type 
    7 Version: 1.1.1 
     7Version: 1.1.2 
    88Author: Thad Allender 
    99Author URI: http://graphpaperpress.com 
  • gpp-slideshow/trunk/gpp_functions.php

    r381738 r405480  
    181181    if ( empty($attachments) ) 
    182182        return ''; 
    183  
    184     echo "\n\n",'<!-- #slideshow -->',"\n", 
    185                     '<div id="gpp_slideshow_menu" class="clearfix">',"\n", 
    186                     "\t",'<div id="slideshow_options">',"\n", 
    187                         "\t\t",'<a id="show_thumbnails" href="#" title="Show thumbnails">Show thumbnails</a>',"\n", 
    188                         "\t\t",'<a id="show_captions" href="#" title="Caption">Caption</a>',"\n", 
    189                     "\t",'</div>',"\n", 
    190                     "\t",'<div id="slideshow_nav">',"\n", 
    191                         "\t\t",'<a href="#" id="prev" title="Previous">Previous</a>',"\n", 
    192                         "\t\t",'<a href="#" id="next" title="Next">Next</a>',"\n", 
    193                     "\t",'</div>',"\n", 
    194                 '</div>',"\n", 
    195                 '<div class="clear"></div>',"\n"; 
    196                  
    197                  
    198         echo '<ul id="gpp_slideshow_thumbnails" style="display:none">',"\n"; 
     183    ob_start(); 
     184    echo '<div id="gpp_slideshow_menu" class="clearfix">', 
     185                    "\t",'<div id="slideshow_options">', 
     186                        "\t\t",'<a id="show_thumbnails" href="#" title="Show thumbnails">Show thumbnails</a>', 
     187                        "\t\t",'<a id="show_captions" href="#" title="Caption">Caption</a>', 
     188                    "\t",'</div>', 
     189                    "\t",'<div id="slideshow_nav">', 
     190                        "\t\t",'<a href="#" id="prev" title="Previous">Previous</a>', 
     191                        "\t\t",'<a href="#" id="next" title="Next">Next</a>', 
     192                    "\t",'</div>', 
     193                '</div>', 
     194                '<div class="clear"></div>'; 
     195                 
     196                 
     197        echo '<ul id="gpp_slideshow_thumbnails" style="display:none">'; 
    199198                 
    200199        foreach ( $attachments as $id => $attachment ) { 
    201200            $attachmentimage = wp_get_attachment_image( $id, 'thumbnail' ); 
    202             echo "\t",'<li><a href="#">',"\n"; 
    203             echo "\t\t",$attachmentimage.apply_filters('the_title', isset($parent->post_title)),"\n"; 
    204             echo "\t",'</a></li>',"\n"; 
    205         } 
    206          
    207         echo    '</ul>',"\n", 
    208                     '<div class="clear"></div>',"\n", 
    209                     '<div id="slideshowloader"></div>',"\n";     
    210      
    211         echo "\n",'<div id="gpp_slideshow">',"\n"; 
     201            echo "\t",'<li><a href="#">'; 
     202            echo "\t\t",$attachmentimage.apply_filters('the_title', isset($parent->post_title)); 
     203            echo "\t",'</a></li>'; 
     204        } 
     205         
     206        echo    '</ul>', 
     207                    '<div class="clear"></div>', 
     208                    '<div id="slideshowloader"></div>';  
     209     
     210        echo "\n",'<div id="gpp_slideshow">'; 
    212211         
    213212        foreach ( $attachments as $id => $attachment ) { 
    214213            $attachmentimage = wp_get_attachment_image( $id, $gallery_size );            
    215214            $description = $attachment->post_title;          
    216             echo "\t",'<div class="gpp_slide">',"\n"; 
    217             echo "\t\t",$attachmentimage.apply_filters('the_title', isset($parent->post_title)),"\n"; 
     215            echo "\t",'<div class="gpp_slide">'; 
     216            echo "\t\t",$attachmentimage.apply_filters('the_title', isset($parent->post_title)); 
    218217            if (isset($description)) 
    219                 echo "\t\t",'<div class="caption" style="display:none">'.$description.'</div>',"\n"; 
    220             echo "\t",'</div>',"\n"; 
     218                echo "\t\t",'<div class="caption" style="display:none">'.$description.'</div>'; 
     219            echo '</div>'; 
    221220        }        
    222         echo '</div><!-- .gpp_slideshow -->',"\n\n";     
     221        echo '</div>'; 
     222        $gallery = ob_get_clean(); 
     223        return $gallery; 
     224        ob_end_clean(); 
    223225 } 
    224226?> 
  • gpp-slideshow/trunk/readme.txt

    r393704 r405480  
    44Tags: gallery, slideshow, images, portfolio, photos, photo gallery, lightbox, graphpaperpress 
    55Requires at least: 3.1 
    6 Tested up to: 3.1.3 
    7 Stable tag: 1.1.1 
     6Tested up to: 3.2 
     7Stable tag: 1.1.2 
    88 
    99Creates minimalist slideshows using a new Gallery post type. 
     
    5757         
    5858== Upgrade Notice == 
    59 * Change `if ( taxonomy_exists('collection') ) {` to `if ( is_tax('gallery_collections')) {` so that Collections pages display properly. 
     59* Added ability to insert Galleries in any place on Posts and Pages. 
    6060 
    6161== Changelog == 
     62 
     63= Version 1.1.2 = 
     64* Added ability to insert Galleries in any place on Posts and Pages. 
    6265 
    6366= Version 1.1.1 = 
Note: See TracChangeset for help on using the changeset viewer.