Plugin Directory

Changeset 784151


Ignore:
Timestamp:
10/07/2013 07:37:12 PM (12 years ago)
Author:
Irena0575
Message:

new feature: central image lightbox popups on double click

Location:
is-circular-photo-gallery/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • is-circular-photo-gallery/trunk/js/iscirculargallery.js

    r773504 r784151  
    11/**
    2  *  IS Circular Photo Gallery 1.0
     2 *  IS Circular Photo Gallery 1.2
    33 *
    44 *    This provides an Polaroid style gallery plus
     
    186186    var largerimage = this.largerimg_div.childNodes.item(this.array_largerimage[x]);
    187187
    188         largerimage.style.display = 'block';
     188                largerimage.style.display = 'block';
    189189                largerimage.style.left =420 + 'px';
    190190                largerimage.style.transform = 'rotate(' + 0 +'deg' + ')';
     
    238238    //      cx = this.images_width*0.8/2 * Math.cos(angle) + this.images_width*0.85/2;
    239239    //      cy = this.images_width*0.8/2 * Math.sin(angle) +  this.images_height*0.85/2;
    240             cx = this.images_width*0.75/2 * Math.cos(angle) + this.images_width*0.8/2;
     240            cx = this.images_width*0.75/2 * Math.cos(angle) + this.images_width*0.83/2;
    241241            cy = this.images_width*0.75/2 * Math.sin(angle) +  this.images_height*0.85/2;
    242242            angle += increase;}
     
    291291            //  largerimage.style.left =this.images_width*0.67 + 'px';
    292292                if (this.images_width<this.images_height) {
    293                 largerimage.style.left =this.images_left + this.images_width*0.65/2 + 'px';}
     293                largerimage.style.left =this.images_left + this.images_width*0.7/2 + 'px';}
    294294                else{
    295295                    largerimage.style.left =this.images_left + this.images_width*0.73/2 + 'px';}
     
    353353        //  largerimage.style.top =this.imageflow2_div.offsetHeight + 'px';
    354354        if (this.images_width<this.images_height) {
    355         largerimage.style.top =this.images_top + this.images_height*0.88/2 + 'px';}
     355        largerimage.style.top =this.images_top + this.images_height*0.83/2 + 'px';}
    356356        else{
    357357            largerimage.style.top =this.images_top + this.images_height*0.76/2 + 'px';}
     
    498498    //this.caption_div.style.marginTop = -this.images_height*0.375 + 'px'; 
    499499    if (this.images_width<this.images_height) {
    500     this.caption_div.style.top =this.images_top + this.images_height*0.85/2 + 152 + 'px';}
     500    this.caption_div.style.top =this.images_top + this.images_height*0.8/2 + 152 + 'px';}
    501501    else {
    502502        this.caption_div.style.top =this.images_top + this.images_height*0.72/2 + 152 + 'px';
     
    507507//  this.caption_div.style.left=this.images_top + this.images_height*0.75/2 + 'px';
    508508        if (this.images_width<this.images_height) {
    509                 this.caption_div.style.left = this.images_left + this.images_width*0.65/2 + 'px';}
     509                this.caption_div.style.left = this.images_left + this.images_width*0.7/2 + 'px';}
    510510                else{
    511511                    this.caption_div.style.left = this.images_left + this.images_width*0.73/2 + 'px';}
     
    599599            /* Set image cursor type */
    600600            image.style.cursor = this.conf_ifp_images_cursor;
     601           
     602                /* Set ondblclick event - largerimage */
     603            largerimage.url = image.getAttribute('data-link');
     604            if (largerimage.getAttribute("data-style") && (image.getAttribute("data-style") == 'iscp_lightbox')) {
     605                largerimage.setAttribute("title",image.getAttribute('alt'));
     606
     607                largerimage.ondblclick = function () { thisObject.conf_autorotate = 'off'; thisObject.showTop(this);return false; }
     608            } else if (this.conf_samewindow) {
     609                largerimage.ondblclick = function() { window.location = this.url; }
     610            } else {
     611                largerimage.ondblclick = function() { window.open (this.url); }
     612            }
     613            /* Set image cursor type */
     614            largerimage.style.cursor = this.conf_ifp_images_cursor;
     615
    601616
    602617            i++;
     
    640655            objBody.appendChild(objOverlay);
    641656            jQuery("#"+thisObject.ifp_overlaydiv).fadeTo("fast", .7);
     657           
    642658   
    643659            /* -- top box div */
  • is-circular-photo-gallery/trunk/readme.txt

    r773504 r784151  
    7272
    7373== Changelog ==
     74Version 1.2 (October 07, 2013)
     75
     76* Large / central image lightbox popups on double click
    7477
    7578Version 1.1 (September 16, 2013)
  • is-circular-photo-gallery/trunk/wp-iscircularphoto.php

    r773504 r784151  
    44Plugin URI: http://www.polaroidgallery.hostoi.com
    55Description: WordPress implementation of the circular picture gallery.
    6 Version: 1.1
     6Version: 1.2
    77Author: I. Savkovic
    88Author URI: http://www.polaroidgallery.hostoi.com
Note: See TracChangeset for help on using the changeset viewer.