Plugin Directory

Changeset 466320


Ignore:
Timestamp:
11/23/2011 08:36:02 AM (14 years ago)
Author:
zlabs
Message:
 
Location:
picgrab/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • picgrab/trunk/picgrab.php

    r98061 r466320  
    33
    44Plugin Name: Picture grabber, resizer and cropper
    5 Plugin URI: http://fabrizio.zellini.org/picgrab-a-wordpress-plugin
     5Plugin URI: http://fabrizio.zellini.org/picgrab-a-wordpress-plugin-to-grab-resize-crop-and-cache-images
    66Description: Plugin
    77Author: Fabrizio Zellini
     
    4646    $resizeparms=Array();
    4747
    48     if (preg_match_all ('/<img.*?src=["\'](.*?)["\'].*?resize=["\'](.*?)["\'].*?>/i', $content, &$matches)){
    49       if (!strpos ($matches[1],$resizerbase)){
     48    if (preg_match_all ('/<img.*?src=["\'](.*?)["\'].*?resize=["\'](.*?)["\'].*?>/i', $content, $matches)){
     49      if (!strpos ($matches[1][0],$resizerbase)){
    5050        $imgtags = array_merge ($imgtags,$matches[0]);
    5151        $imgurls = array_merge ($imgurls,$matches[1]);
     
    5353      }
    5454    }
    55     if (preg_match_all ('/<img.*?resize=["\'](.*?)["\'].*?src=["\'](.*?)["\'].*?>/i', $content, &$matches)){
    56       if (!strpos ($matches[2],$resizerbase)){
     55    if (preg_match_all ('/<img.*?resize=["\'](.*?)["\'].*?src=["\'](.*?)["\'].*?>/i', $content, $matches)){
     56      if (!strpos ($matches[2][0],$resizerbase)){
    5757        $imgtags = array_merge ($imgtags,$matches[0]);
    5858        $imgurls = array_merge ($imgurls,$matches[2]);
  • picgrab/trunk/readme.txt

    r98070 r466320  
    33Tags: pictures, resize, crop, cache
    44Requires at least: 2.5
    5 Tested up to: 2.7
     5Tested up to: 3.2.1
    66Stable tag: trunk
    77
  • picgrab/trunk/resizer.php

    r98061 r466320  
    140140}
    141141
    142 function resizeAndOuput($resizeExpr, $imageurl) {
     142function resizeAndOuput($resizeExpr, $imageurl,$expire=CACHETIME) {
    143143
    144144  //echo $fullname;die();
Note: See TracChangeset for help on using the changeset viewer.