var $n = jQuery.noConflict();
if($n('#currImg').length>0){
return true;
}
var fragment = $n("#image_name").val();
var filename = $n("#image_name").val().replace(/.+[\\\/]/, "");
var imageid=$n("#image_name").val();
var $n = jQuery.noConflict();
var fragment = $n("#image_name").val();
var filename = $n("#image_name").val().replace(/.+[\\\/]/, "");
var validExtensions=new Array();
validExtensions[0]='jpg';
validExtensions[1]='jpeg';
validExtensions[2]='png';
validExtensions[3]='gif';
var extension = filename.substr( (filename.lastIndexOf('.') +1) ).toLowerCase();
var inarr=parseInt($n.inArray( extension, validExtensions));
$location=’admin.php?page=responsive_photo_gallery_image_management’;
if(isset($_POST) and isset($_POST[‘deleteselected’]) and ( $_POST[‘action’]==’delete’ or $_POST[‘action_upper’]==’delete’)){
transition_speed:, //INT - duration of panel/frame transition (in milliseconds)
transition_interval:, //INT - delay between panel/frame transitions (in milliseconds)
easing:'', //STRING - easing method to use for animations (jQuery provides 'swing' or 'linear', more available with jQuery UI or Easing plugin)
show_panels:, //BOOLEAN - flag to show or hide panel portion of gallery
show_panel_nav:, //BOOLEAN - flag to show or hide panel navigation buttons
enable_overlays:, //BOOLEAN - flag to show or hide panel overlays
panel_width:, //INT - width of gallery panel (in pixels)
panel_height:, //INT - height of gallery panel (in pixels)
panel_animation:'', //STRING - animation method for panel transitions (crossfade,fade,slide,none)
panel_scale: '', //STRING - cropping option for panel images (crop = scale image and fit to aspect ratio determined by panel_width and panel_height, fit = scale image and preserve original aspect ratio)
overlay_position:'', //STRING - position of panel overlay (bottom, top)
pan_images:, //BOOLEAN - flag to allow user to grab/drag oversized images within gallery
pan_style:'', //STRING - panning method (drag = user clicks and drags image to pan, track = image automatically pans based on mouse position
start_frame:'', //INT - index of panel/frame to show first when gallery loads
show_filmstrip:, //BOOLEAN - flag to show or hide filmstrip portion of gallery
show_filmstrip_nav:, //BOOLEAN - flag indicating whether to display navigation buttons
enable_slideshow:, //BOOLEAN - flag indicating whether to display slideshow play/pause button
autoplay:, //BOOLEAN - flag to start slideshow on gallery load
show_captions:, //BOOLEAN - flag to show or hide frame captions
filmstrip_style: '', //STRING - type of filmstrip to use (scroll = display one line of frames, scroll filmstrip if necessary, showall = display multiple rows of frames if necessary)
filmstrip_position:'', //STRING - position of filmstrip within gallery (bottom, top, left, right)
frame_width:, //INT - width of filmstrip frames (in pixels)
frame_height:, //INT - width of filmstrip frames (in pixels)
frame_opacity:, //FLOAT - transparency of non-active frames (1.0 = opaque, 0.0 = transparent)
frame_scale: '', //STRING - cropping option for filmstrip images (same as above)
frame_gap:, //INT - spacing between frames within filmstrip (in pixels)
show_infobar:, //BOOLEAN - flag to show or hide infobar
infobar_opacity:, //FLOAT - transparency for info bar
clickable: 'all'
});
});
});
//
// Resize the image gallery
//
var oldsize_w=;
var oldsize_h=;
function resizegallery(){
if(galleryItems==undefined){return;}
galleryItems.each(function (index, item){
var $parent = item.parent_data;
// width based on parent?
var width = ($parent.innerWidth()-10);//2 times 5 pixels margin
var height = ($parent.innerHeight()-10);//2 times 5 pixels margin
if(oldsize_w==width){
return;
}
oldsize_w=width;
thumbfactor = width/(-10);
transition_speed:, //INT - duration of panel/frame transition (in milliseconds)
transition_interval:, //INT - delay between panel/frame transitions (in milliseconds)
easing:'', //STRING - easing method to use for animations (jQuery provides 'swing' or 'linear', more available with jQuery UI or Easing plugin)
show_panels:, //BOOLEAN - flag to show or hide panel portion of gallery
show_panel_nav:, //BOOLEAN - flag to show or hide panel navigation buttons
enable_overlays:, //BOOLEAN - flag to show or hide panel overlays
panel_width:, //INT - width of gallery panel (in pixels)
panel_height:, //INT - height of gallery panel (in pixels)
panel_animation:'', //STRING - animation method for panel transitions (crossfade,fade,slide,none)
panel_scale: '', //STRING - cropping option for panel images (crop = scale image and fit to aspect ratio determined by panel_width and panel_height, fit = scale image and preserve original aspect ratio)
overlay_position:'', //STRING - position of panel overlay (bottom, top)
pan_images:, //BOOLEAN - flag to allow user to grab/drag oversized images within gallery
pan_style:'', //STRING - panning method (drag = user clicks and drags image to pan, track = image automatically pans based on mouse position
start_frame:'', //INT - index of panel/frame to show first when gallery loads
show_filmstrip:, //BOOLEAN - flag to show or hide filmstrip portion of gallery
show_filmstrip_nav:, //BOOLEAN - flag indicating whether to display navigation buttons
enable_slideshow:, //BOOLEAN - flag indicating whether to display slideshow play/pause button
autoplay:, //BOOLEAN - flag to start slideshow on gallery load
show_captions:, //BOOLEAN - flag to show or hide frame captions
filmstrip_style: '', //STRING - type of filmstrip to use (scroll = display one line of frames, scroll filmstrip if necessary, showall = display multiple rows of frames if necessary)
filmstrip_position:'', //STRING - position of filmstrip within gallery (bottom, top, left, right)
frame_width:, //INT - width of filmstrip frames (in pixels)
frame_height:, //INT - width of filmstrip frames (in pixels)
frame_opacity:, //FLOAT - transparency of non-active frames (1.0 = opaque, 0.0 = transparent)
frame_scale: '', //STRING - cropping option for filmstrip images (same as above)
frame_gap:, //INT - spacing between frames within filmstrip (in pixels)
show_infobar:, //BOOLEAN - flag to show or hide infobar
infobar_opacity:, //FLOAT - transparency for info bar
clickable: 'all'
});
});
var oldsize_w=;
var oldsize_h=;
function resizegallery(){
if(galleryItems==undefined){return;}
galleryItems.each(function (index, item){
var $parent = item.parent_data;
// width based on parent?
var width = ($parent.innerWidth()-10);//2 times 5 pixels margin
var height = ($parent.innerHeight()-10);//2 times 5 pixels margin
if(oldsize_w==width){
return;
}
oldsize_w=width;
thumbfactor = width/(-10);
Leave a Reply