Plugin Directory

Changeset 891381


Ignore:
Timestamp:
04/11/2014 02:54:13 PM (12 years ago)
Author:
jethin
Message:

img guid removed to avoid src errors if url is changed. v. 1.3 & 1.3.1 updated.

Location:
gallery-slideshow
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • gallery-slideshow/tags/1.3.1/gss_html.php

    r889462 r891381  
    1515    foreach( $ids as $image_id ){
    1616        $attachment = get_post( $image_id, 'ARRAY_A' );
    17         $src = $attachment['guid'];
     17        $src = wp_get_attachment_image_src( $image_id, 'full' );
    1818        $excerpt = htmlspecialchars($attachment['post_excerpt']);
    19         $slides .= "\n\t\t\t<img src=\"$src\" alt=\"$excerpt\" />\n";
     19        $slides .= "\n\t\t\t<img src=\"$src[0]\" alt=\"$excerpt\" />\n";
    2020        if( !empty($carousel) ){
    21             $carousel_slides .= "\t\t\t<div><img src=\"$src\" title=\"$excerpt\" /></div>\n";
     21            $carousel_slides .= "\t\t\t<div><img src=\"$src[0]\" title=\"$excerpt\" /></div>\n";
    2222        }
    2323        if( strlen( $attachment['post_excerpt'] ) > $longest_cap['length'] ){
  • gallery-slideshow/tags/1.3.1/readme.txt

    r890215 r891381  
    8686
    8787= 1.3.1 =
     88Fixed header bug from version 1.3 uploaded to WordPress.
     89
     90= 1.3.1 =
    8891* Fixed header bug from version 1.3 uploaded to WordPress.
    8992
    9093= 1.3 =
    9194* Added carousel pager (thumbnails) and embed functionalities.
    92 
    9395
    9496= 1.2 =
  • gallery-slideshow/tags/1.3/gss_html.php

    r889477 r891381  
    1515    foreach( $ids as $image_id ){
    1616        $attachment = get_post( $image_id, 'ARRAY_A' );
    17         $src = $attachment['guid'];
     17        $src = wp_get_attachment_image_src( $image_id, 'full' );
    1818        $excerpt = htmlspecialchars($attachment['post_excerpt']);
    19         $slides .= "\n\t\t\t<img src=\"$src\" alt=\"$excerpt\" />\n";
     19        $slides .= "\n\t\t\t<img src=\"$src[0]\" alt=\"$excerpt\" />\n";
    2020        if( !empty($carousel) ){
    21             $carousel_slides .= "\t\t\t<div><img src=\"$src\" title=\"$excerpt\" /></div>\n";
     21            $carousel_slides .= "\t\t\t<div><img src=\"$src[0]\" title=\"$excerpt\" /></div>\n";
    2222        }
    2323        if( strlen( $attachment['post_excerpt'] ) > $longest_cap['length'] ){
  • gallery-slideshow/tags/1.3/readme.txt

    r889477 r891381  
    8585== Changelog ==
    8686
     87= 1.3.1 =
     88Fixed header bug from version 1.3 uploaded to WordPress.
     89
    8790= 1.3 =
    8891* Added carousel pager (thumbnails) and embed functionalities.
    89 
    9092
    9193= 1.2 =
     
    100102== Upgrade Notice ==
    101103
     104= 1.3.1 =
     105Fixed header bug from version 1.3 uploaded to WordPress.
     106
    102107= 1.3 =
    103108Plugin now supports carousel pager (thumbnails) navigation and embed functionality (experimental).
  • gallery-slideshow/trunk/gss_html.php

    r889462 r891381  
    1515    foreach( $ids as $image_id ){
    1616        $attachment = get_post( $image_id, 'ARRAY_A' );
    17         $src = $attachment['guid'];
     17        $src = wp_get_attachment_image_src( $image_id, 'full' );
    1818        $excerpt = htmlspecialchars($attachment['post_excerpt']);
    19         $slides .= "\n\t\t\t<img src=\"$src\" alt=\"$excerpt\" />\n";
     19        $slides .= "\n\t\t\t<img src=\"$src[0]\" alt=\"$excerpt\" />\n";
    2020        if( !empty($carousel) ){
    21             $carousel_slides .= "\t\t\t<div><img src=\"$src\" title=\"$excerpt\" /></div>\n";
     21            $carousel_slides .= "\t\t\t<div><img src=\"$src[0]\" title=\"$excerpt\" /></div>\n";
    2222        }
    2323        if( strlen( $attachment['post_excerpt'] ) > $longest_cap['length'] ){
  • gallery-slideshow/trunk/readme.txt

    r890215 r891381  
    9191* Added carousel pager (thumbnails) and embed functionalities.
    9292
    93 
    9493= 1.2 =
    9594* Added 'options' shortcode attribute for customized slideshows; default display changes (css); more robust Javascript functions including recentering of images after window load.
Note: See TracChangeset for help on using the changeset viewer.