Plugin Directory

Changeset 946749


Ignore:
Timestamp:
07/11/2014 07:02:41 AM (12 years ago)
Author:
bmodesign2
Message:

new version von nextgen metadata fix

Location:
bmo-expo/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bmo-expo/trunk/bmo_expo.php

    r908414 r946749  
    66Author: Benedikt Morschheuser
    77Author URI: http://bmo-design.de/
    8 Version: 1.0.14
     8Version: 1.0.15
    99
    1010Copyright 2012-2013 by Benedikt Morschheuser (http://bmo-design.de/kontakt/)
     
    3333//###############################################################
    3434
    35   define('BMO_EXPO_VERSION','1.0.14');//version 
     35  define('BMO_EXPO_VERSION','1.0.15');//version 
    3636  define('BMO_EXPO_SITEBASE_URL', get_option('siteurl'));
    3737  define('BMO_EXPO_PLUGINNAME', trim(plugin_basename(dirname(__FILE__))));
  • bmo-expo/trunk/classes/theGallery.php

    r828973 r946749  
    555555          #$getInformation["img_abs_path"]   = ABSPATH . $path ."/" . $picture->filename;
    556556          $getInformation["thumb"] = BMO_EXPO_SITEBASE_URL . "/" . $path ."/thumbs/thumbs_" . $picture->filename;
    557           //metaData
    558           $serialized_data = unserialize($picture->meta_data);
    559           $getInformation["width"]  = $serialized_data["width"];
    560           $getInformation["height"]  = $serialized_data["height"];
    561           $getInformation["thumbWidth"] = $serialized_data["thumbnail"]["width"];
    562           $getInformation["thumbHeight"] = $serialized_data["thumbnail"]["height"];
    563        
    564         if(!empty($getInformation["width"])&&!empty($getInformation["height"])&&!empty($getInformation["thumbWidth"])&&!empty($getInformation["thumbHeight"])){
     557         //metaData
     558          if(class_exists ( "C_NextGen_Metadata")){//new version
     559              $meta = new C_NextGen_Metadata($picture);
     560              $meta->sanitize();
     561              $serialized_data = $meta->get_common_meta();
     562              $getInformation["width"]  = $serialized_data["width"];
     563              $getInformation["height"]  = $serialized_data["height"];
     564          }else{
     565         
     566              $serialized_data = unserialize($picture->meta_data);
     567              $getInformation["width"]  = $serialized_data["width"];
     568              $getInformation["height"]  = $serialized_data["height"];
     569              $getInformation["thumbWidth"] = $serialized_data["thumbnail"]["width"];
     570              $getInformation["thumbHeight"] = $serialized_data["thumbnail"]["height"];
     571          }
     572       
     573          if(!empty($getInformation["width"])&&!empty($getInformation["height"])){
    565574            $finalInformation[] = $getInformation;
    566575          }
  • bmo-expo/trunk/readme.txt

    r908417 r946749  
    9292
    9393= Version 1.0 =
     94    * 1.0.15 Fix for the new NextGen Gallery MetaData Format
    9495    * 1.0.14 TinyMCE fix for WP 3.9
    9596    * 1.0.13 Checkbox Fix for NextGen Gallery Version
Note: See TracChangeset for help on using the changeset viewer.