Plugin Directory

Changeset 702409


Ignore:
Timestamp:
04/23/2013 06:24:20 PM (13 years ago)
Author:
bergh
Message:

0.6

Thumbs are now longer made with imagick, but with jquery.

Location:
tagged-gallery/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tagged-gallery/trunk/tg.php

    r702080 r702409  
    1212include_once ( dirname(__FILE__) . "/tg_admin.php");
    1313
     14wp_enqueue_script('jquery');
     15
    1416wp_register_style( 'tg-style', plugins_url('/css/tg.css', __FILE__) );
    1517wp_enqueue_style( 'tg-style' );
    1618   
    17 wp_enqueue_script("jquery");
    18 
    1919wp_register_script( 'tg-script', plugins_url( '/js/tg.js', __FILE__ ) );
    2020wp_enqueue_script('tg-script');
     21
     22wp_register_script( 'jqresize-script', plugins_url( '/js/jquery.resizecrop-1.0.3.js', __FILE__ ) );
     23wp_enqueue_script('jqresize-script');
     24
     25wp_register_script( 'resize-script', plugins_url( '/js/resize.js', __FILE__ ) );
     26wp_enqueue_script('resize-script');
    2127
    2228add_filter('the_content','tg_gallery');
  • tagged-gallery/trunk/tg_class.php

    r701587 r702409  
    4040                    {
    4141                        $img=substr($post->guid,strlen($server),strlen($post->guid)-strlen($server));
    42                         $string="<img class=\"tagged-gallery\" src=\"/wp-content/plugins/tagged-gallery/img.php?img=".$img."&type=thumb&size=".$height."x".$width."\" data-larger=\"/wp-content/plugins/tagged-gallery/img.php?img=".$img."&size=700x700\" alt=\"".$img."\" />";
    43                          
     42                       
     43                        $string="<img src=\"".$img."\" class=\"tagged-gallery\" style=\"max-width: 500px;\" data-larger=\"/wp-content/plugins/tagged-gallery/img.php?img=".$img."&size=700x700\" alt=\"".$img."\" /> ";
    4444                        $sup.="<div class=\"tg-thumb\">".$string."</div>";
     45                        //$sup.=$string;
    4546                    }
    4647                }   
Note: See TracChangeset for help on using the changeset viewer.