Plugin Directory

Changeset 3122253


Ignore:
Timestamp:
07/19/2024 06:44:32 PM (18 months ago)
Author:
ovakarelov
Message:

Version 1.1.5 added

Location:
ia-magic-galleries
Files:
86 added
25 edited
3 copied

Legend:

Unmodified
Added
Removed
  • ia-magic-galleries/tags/1.1.5/IAMagic-galleries.php

    r3107697 r3122253  
    99Plugin URI: https://iaesth.ca/wp/
    1010Description: The plugin facilitates the integration of the IA Magic Galleries system into the WordPress environment.
    11 Version: 1.1.4
     11Version: 1.1.5
    1212Author: Information Aesthetics
    1313Author URI: https://iaesth.ca
     
    4747
    4848
    49     define("IAMG_VERSION", '1.1.4');
     49    define("IAMG_VERSION", '1.1.5');
    5050    define("IAMG_API_URL", "https://iaesth.ca/apps/IAMG/com");
    5151    define("IAMG_API_URL_BACKUP", "https://infoaesthetics.ca/apps/IAMG/com");
  • ia-magic-galleries/tags/1.1.5/README.txt

    r3109365 r3122253  
    33Tags: gallery, photo gallery, responsive gallery, WordPress gallery plugin, albums, media gallery, video gallery, lightbox, dynamic galleries, interactive galleries, slideshows, carousels
    44Requires at least: 5.8
    5 Tested up to: 6.5
    6 Stable tag: 1.1.4
     5Tested up to: 6.6
     6Stable tag: 1.1.5
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4444**IA Magic Galleries**<br>
    4545*Slide Gallery: <a href="https://iaesth.ca/wp/slide-gallery-sample/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=slide-vancouver" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=slide-new-york" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=slide-rome" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=slide-dubai" target="_blank">[5] </a>
     46<br>
    4647*Grid Gallery: <a href="https://iaesth.ca/wp/grid-smaple-gallery/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=grid-renaissance" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=grid-vangogh" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=grid-picasso" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=grid-monet" target="_blank">[5] </a><br>
    4748*Morph Gallery: <a href="https://iaesth.ca/wp/morph-gallery-sample/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=morph-space" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=morph-cats" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=morph-flowers" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=sky-birds" target="_blank">[5] </a><br>
    4849*Fan Gallery: <a href="https://iaesth.ca/wp/morph-gallery-sample/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=fan-hotels" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=fan-hiking" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=fan-face-models" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=fan-birthday" target="_blank">[5] </a>
     50<br>
    4951*Rolling Gallery:<a href="https://iaesth.ca/wp/morph-gallery-sample/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=roll-desserts" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=roll-watches" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=roll-cars" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=roll-heels" target="_blank">[5] </a>
    5052<br>
     
    7274
    7375== Changelog ==
     76= 1.1.5 =
     77- Bug Fixes:
     78    - Fixed issues with images that have not been processed by WordPress properly
     79    - Disabled select button name in WP media interface.
    7480= 1.1.4 =
    7581- Optimization:
  • ia-magic-galleries/trunk/IAMagic-galleries.php

    r3098209 r3122253  
    99Plugin URI: https://iaesth.ca/wp/
    1010Description: The plugin facilitates the integration of the IA Magic Galleries system into the WordPress environment.
    11 Version: 1.1.4
     11Version: 1.1.5
    1212Author: Information Aesthetics
    1313Author URI: https://iaesth.ca
     
    4747
    4848
    49     define("IAMG_VERSION", '1.1.4');
     49    define("IAMG_VERSION", '1.1.5');
    5050    define("IAMG_API_URL", "https://iaesth.ca/apps/IAMG/com");
    5151    define("IAMG_API_URL_BACKUP", "https://infoaesthetics.ca/apps/IAMG/com");
  • ia-magic-galleries/trunk/README.txt

    r3109365 r3122253  
    33Tags: gallery, photo gallery, responsive gallery, WordPress gallery plugin, albums, media gallery, video gallery, lightbox, dynamic galleries, interactive galleries, slideshows, carousels
    44Requires at least: 5.8
    5 Tested up to: 6.5
    6 Stable tag: 1.1.4
     5Tested up to: 6.6
     6Stable tag: 1.1.5
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4444**IA Magic Galleries**<br>
    4545*Slide Gallery: <a href="https://iaesth.ca/wp/slide-gallery-sample/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=slide-vancouver" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=slide-new-york" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=slide-rome" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=slide-dubai" target="_blank">[5] </a>
     46<br>
    4647*Grid Gallery: <a href="https://iaesth.ca/wp/grid-smaple-gallery/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=grid-renaissance" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=grid-vangogh" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=grid-picasso" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=grid-monet" target="_blank">[5] </a><br>
    4748*Morph Gallery: <a href="https://iaesth.ca/wp/morph-gallery-sample/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=morph-space" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=morph-cats" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=morph-flowers" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=sky-birds" target="_blank">[5] </a><br>
    4849*Fan Gallery: <a href="https://iaesth.ca/wp/morph-gallery-sample/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=fan-hotels" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=fan-hiking" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=fan-face-models" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=fan-birthday" target="_blank">[5] </a>
     50<br>
    4951*Rolling Gallery:<a href="https://iaesth.ca/wp/morph-gallery-sample/" target="_blank">[1]</a> <a href="https://iaesth.ca/wp/?iamg=roll-desserts" target="_blank">[2]</a> <a href="https://iaesth.ca/wp/?iamg=roll-watches" target="_blank">[3]</a> <a href="https://iaesth.ca/wp/?iamg=roll-cars" target="_blank">[4]</a> <a href="https://iaesth.ca/wp/?iamg=roll-heels" target="_blank">[5] </a>
    5052<br>
     
    7274
    7375== Changelog ==
     76= 1.1.5 =
     77- Bug Fixes:
     78    - Fixed issues with images that have not been processed by WordPress properly
     79    - Disabled select button name in WP media interface.
    7480= 1.1.4 =
    7581- Optimization:
  • ia-magic-galleries/trunk/css/ia_general.min.css

    r3098209 r3122253  
    1 @namespace svg url(http://www.w3.org/2000/svg);.IA_Designer_Main_SVG text{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.IA_Designer_Main_SVG text::selection{background:0 0}.IA_Designer_Container,.IA_Presenter_Container{display:flex;align-items:center;justify-content:center}.IA_Designer_Main_SVG{top:0}.IA_Designer_Panel_Background{fill-opacity:0}.IA_Designer_Menu_Background{fill:#b8bec7;fill-opacity:.7}.IA_Designer_Bar_Background{fill:#8e949d}.IA_Designer_Tool_Panels{fill:#b3d9d2}.IA_Designer_Topbar_Background{fill:#36383a}.IA_Designer_Slider_Background{fill:#edeff1}.IA_Designer_Zoom_Slider{fill:#b3d9d2}.IA_Designer_Zoom_Handle{fill:#939dd2}.IA_Designer_MessageBox{fill:whitesmoke}.IA_Designer_MessageText{fill:black}.IA_Designer_MessageText_error{fill:red}.IA_Designer_MessageText_warning{fill:orange}.IA_Designer_Tooltip_Background{opacity:.6;rx:4}.IA_Designer_Alert_Text{font-family:Jaldi-Regular,Jaldi,serif!important}.IA_Designer_Alert_Background{fill:#d0f2fc!important;rx:5px;ry:5px}.IA_Designer_Alert_Prompt_Text{font-family:Jaldi-Regular,Jaldi,serif}.IA_Designer_Alert_Prompt_Background{fill:#14c0ef!important;opacity:.5!important;rx:5px;ry:5px}.IA_Designer_Controller_Panel_Background{fill:#e8edfc!important}.IA_Designer_Pre-load_Element{display:block;margin-left:auto;margin-right:auto}.IA_Designer_Full_Width{width:100vw}IA_Designer_Input_Table_Background{stroke:blue;fill:Wheat;fill-opacity:.5}.IA_Designer_Input_Table_Button{stroke:blue;fill:green;fill-opacity:.7}.IA_Designer_Form_Field{stroke:none;fill:white;opacity:.9}.IA_Designer_Column_Menu_Background{fill:white}.IA_Designer_Column_Menu_Row{fill:white;opacity:0}.IA_Designer_Menu_Font{font-family:Jaldi-Regular,Georgia,serif;font-size:14px}.IA_Designer_Scrollbox_Slider{fill:lightgray;stroke:darkgray;stroke-width:1px;opacity:.5}.IA_Designer_Slider_Body{fill:white;stroke-width:.5px;stroke:black}.IA_Designer_pointer_ignore{pointer-events:none!important}.IA_Designer_Cursor_alias{cursor:alias}.IA_Designer_Cursor_all-scroll{cursor:all-scroll}.IA_Designer_Cursor_auto{cursor:auto}.IA_Designer_Cursor_cell{cursor:cell}.IA_Designer_Cursor_context-menu{cursor:context-menu}.IA_Designer_Cursor_col-resize{cursor:col-resize}.IA_Designer_Cursor_copy{cursor:copy}.IA_Designer_Cursor_crosshair{cursor:crosshair}.IA_Designer_Cursor_default{cursor:default}.IA_Designer_Cursor_e-resize{cursor:e-resize}.IA_Designer_Cursor_ew-resize{cursor:ew-resize}.IA_Designer_Cursor_grab{cursor:grab}.IA_Designer_Cursor_grabbing{cursor:grabbing}.IA_Designer_Cursor_help{cursor:help}.IA_Designer_Cursor_move{cursor:move}.IA_Designer_Cursor_n-resize{cursor:n-resize}.IA_Designer_Cursor_ne-resize{cursor:ne-resize}.IA_Designer_Cursor_nesw-resize{cursor:nesw-resize}.IA_Designer_Cursor_ns-resize{cursor:ns-resize}.IA_Designer_Cursor_nw-resize{cursor:nw-resize}.IA_Designer_Cursor_nwse-resize{cursor:nwse-resize}.IA_Designer_Cursor_no-drop{cursor:no-drop}.IA_Designer_Cursor_none{cursor:none}.IA_Designer_Cursor_not-allowed{cursor:not-allowed}.IA_Designer_Cursor_pointer{cursor:pointer}.IA_Designer_Cursor_progress{cursor:progress}.IA_Designer_Cursor_row-resize{cursor:row-resize}.IA_Designer_Cursor_s-resize{cursor:s-resize}.IA_Designer_Cursor_se-resize{cursor:se-resize}.IA_Designer_Cursor_sw-resize{cursor:sw-resize}.IA_Designer_Cursor_text{cursor:text}.IA_Designer_Cursor_w-resize{cursor:w-resize}.IA_Designer_Cursor_wait{cursor:wait}.IA_Designer_Cursor_zoom-in{cursor:zoom-in}.IA_Designer_Cursor_zoom-out{cursor:zoom-out}.IA_Designer_Ignore_Click{cursor:default}
     1@namespace svg url(http://www.w3.org/2000/svg);.IA_Designer_Main_SVG text{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.IA_Designer_Main_SVG text::selection{background:0 0}.IA_Designer_Container,.IA_Presenter_Container{display:flex;align-items:center;justify-content:center}.IA_Designer_Main_SVG{top:0}.IA_Designer_Panel_Background{fill-opacity:0}.IA_Designer_Menu_Background{fill:#b8bec7;fill-opacity:.7}.IA_Designer_Bar_Background{fill:#8e949d}.IA_Designer_Tool_Panels{fill:#b3d9d2}.IA_Designer_Topbar_Background{fill:#36383a}.IA_Designer_Slider_Background{fill:#edeff1}.IA_Designer_Zoom_Slider{fill:#b3d9d2}.IA_Designer_Zoom_Handle{fill:#939dd2}.IA_Designer_MessageBox{fill:whitesmoke}.IA_Designer_MessageText{fill:black}.IA_Designer_MessageText_error{fill:red}.IA_Designer_MessageText_warning{fill:orange}.IA_Designer_Tooltip_Background{opacity:.6;rx:4}.IA_Designer_Alert_Text{font-family:Jaldi-Regular,Jaldi,serif!important}.IA_Designer_Alert_Background{fill:#d0f2fc!important;rx:5px;ry:5px}.IA_Designer_Alert_Prompt_Text{font-family:Jaldi-Regular,Jaldi,serif}.IA_Designer_Alert_Prompt_Background{fill:#14c0ef!important;opacity:.5!important;rx:5px;ry:5px}.IA_Designer_Controller_Panel_Background{fill:#e8edfc!important}.IA_Designer_Pre-load_Element{display:block;margin-left:auto;margin-right:auto}.IA_Designer_Full_Width{width:100vw}IA_Designer_Input_Table_Background{stroke:blue;fill:Wheat;fill-opacity:.5}.IA_Designer_Input_Table_Button{stroke:blue;fill:green;fill-opacity:.7}.IA_Designer_Form_Field{stroke:none;fill:white;opacity:.9}.IA_Designer_Column_Menu_Background{fill:white}.IA_Designer_Column_Menu_Row{fill:white;opacity:0}.IA_Designer_Menu_Font{font-family:Jaldi-Regular,Georgia,serif;font-size:14px}.IA_Designer_Scrollbox_Slider{fill:lightgray;stroke:darkgray;stroke-width:1px;opacity:.5}.IA_Designer_Slider_Body{fill:white;stroke-width:.5px;stroke:black}.IA_Designer_Pointer_Ignore{pointer-events:none!important}.IA_Designer_OP_0{opacity:0}.IA_Designer_OP_10{opacity:.1}.IA_Designer_OP_20{opacity:.2}.IA_Designer_OP_30{opacity:.3}.IA_Designer_OP_40{opacity:.4}.IA_Designer_OP_50{opacity:.5}.IA_Designer_OP_60{opacity:.6}.IA_Designer_OP_70{opacity:.7}.IA_Designer_OP_80{opacity:.8}.IA_Designer_OP_90{opacity:.9}.IA_Designer_OP_100{opacity:1}.IA_Designer_OP_Trans{transition:opacity 1s}.IA_Designer_Hide{display:none}.IA_Designer_Cursor_alias{cursor:alias}.IA_Designer_Cursor_all-scroll{cursor:all-scroll}.IA_Designer_Cursor_auto{cursor:auto}.IA_Designer_Cursor_cell{cursor:cell}.IA_Designer_Cursor_context-menu{cursor:context-menu}.IA_Designer_Cursor_col-resize{cursor:col-resize}.IA_Designer_Cursor_copy{cursor:copy}.IA_Designer_Cursor_crosshair{cursor:crosshair}.IA_Designer_Cursor_default{cursor:default}.IA_Designer_Cursor_e-resize{cursor:e-resize}.IA_Designer_Cursor_ew-resize{cursor:ew-resize}.IA_Designer_Cursor_grab{cursor:grab}.IA_Designer_Cursor_grabbing{cursor:grabbing}.IA_Designer_Cursor_help{cursor:help}.IA_Designer_Cursor_move{cursor:move}.IA_Designer_Cursor_n-resize{cursor:n-resize}.IA_Designer_Cursor_ne-resize{cursor:ne-resize}.IA_Designer_Cursor_nesw-resize{cursor:nesw-resize}.IA_Designer_Cursor_ns-resize{cursor:ns-resize}.IA_Designer_Cursor_nw-resize{cursor:nw-resize}.IA_Designer_Cursor_nwse-resize{cursor:nwse-resize}.IA_Designer_Cursor_no-drop{cursor:no-drop}.IA_Designer_Cursor_none{cursor:none}.IA_Designer_Cursor_not-allowed{cursor:not-allowed}.IA_Designer_Cursor_pointer{cursor:pointer}.IA_Designer_Cursor_progress{cursor:progress}.IA_Designer_Cursor_row-resize{cursor:row-resize}.IA_Designer_Cursor_s-resize{cursor:s-resize}.IA_Designer_Cursor_se-resize{cursor:se-resize}.IA_Designer_Cursor_sw-resize{cursor:sw-resize}.IA_Designer_Cursor_text{cursor:text}.IA_Designer_Cursor_w-resize{cursor:w-resize}.IA_Designer_Cursor_wait{cursor:wait}.IA_Designer_Cursor_zoom-in{cursor:zoom-in}.IA_Designer_Cursor_zoom-out{cursor:zoom-out}.IA_Designer_Ignore_Click{cursor:default}
  • ia-magic-galleries/trunk/css/ia_presenter_admin.css

    r3098209 r3122253  
    1818    width: 50%;
    1919}
    20 
     20.IAMG_Layout_ButtHeight {
     21    min-height: 36px !important;
     22}
     23.IAMG_Layout_FlexRow{
     24    display: flex;
     25    flex-direction: row;
     26    margin-bottom: -40px !important;
     27}
    2128/* devanagari */
    2229@font-face {
  • ia-magic-galleries/trunk/css/ia_presenter_admin.min.css

    r3098209 r3122253  
    1 .IA_Designer_Panel_Background{fill-opacity:0}[data-disable-border]:focus::after{box-shadow:none!important}.IAMG_Layout_FullWidth{width:100%}.IAMG_Layout_HalfWidth{width:50%}@font-face{font-family:Jaldi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NSbJHPBw.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:Jaldi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NdbJHPBw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jaldi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NTbJE.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Jaldi-Regular;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NSbJHPBw.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:Jaldi-Regular;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NdbJHPBw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jaldi-Regular;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NTbJE.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
     1.IA_Designer_Panel_Background{fill-opacity:0}[data-disable-border]:focus::after{box-shadow:none!important}.IAMG_Layout_FullWidth{width:100%}.IAMG_Layout_HalfWidth{width:50%}.IAMG_Layout_ButtHeight{min-height:36px!important}.IAMG_Layout_FlexRow{display:flex;flex-direction:row;margin-bottom:-40px!important}@font-face{font-family:Jaldi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NSbJHPBw.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:Jaldi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NdbJHPBw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jaldi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NTbJE.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Jaldi-Regular;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NSbJHPBw.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:Jaldi-Regular;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NdbJHPBw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jaldi-Regular;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jaldi/v12/or3sQ67z0_CI33NTbJE.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
  • ia-magic-galleries/trunk/css/ia_presenter_general.css

    r3098209 r3122253  
    223223/*pointer*/
    224224
    225 .IA_Designer_pointer_ignore {
     225.IA_Designer_Pointer_Ignore {
    226226    pointer-events: none !important;
    227227}
    228 
     228/*Opacity*/
     229.IA_Designer_OP_0 {
     230    opacity: 0;
     231}
     232
     233.IA_Designer_OP_10 {
     234    opacity: .1;
     235}
     236
     237.IA_Designer_OP_20 {
     238    opacity: .2;
     239}
     240
     241.IA_Designer_OP_30 {
     242    opacity: .3;
     243}
     244
     245.IA_Designer_OP_40 {
     246    opacity: .4;
     247}
     248
     249.IA_Designer_OP_50 {
     250    opacity: .5;
     251}
     252
     253.IA_Designer_OP_60 {
     254    opacity: .6;
     255}
     256
     257.IA_Designer_OP_70 {
     258    opacity: .7;
     259}
     260
     261.IA_Designer_OP_80 {
     262    opacity: .8;
     263}
     264
     265.IA_Designer_OP_90 {
     266    opacity: .9;
     267}
     268
     269.IA_Designer_OP_100 {
     270    opacity: 1;
     271}
     272
     273.IA_Designer_OP_Trans {
     274    transition: opacity 1s;
     275}
     276
     277.IA_Designer_Hide {
     278    display: none;
     279}
    229280
    230281/*//cursors//*/
  • ia-magic-galleries/trunk/includes/IAMG_App_Loader.php

    r3107668 r3122253  
    2828
    2929
    30 use IAMG\IAMG_AdminNotice;
     30//use IAMG\IAMG_AdminNotice;
    3131use IAMG\IAMG_AppSettingsBuilder;
    3232use IAMG\IAMG_Client;
     
    257257        );
    258258
     259        if (!function_exists('get_background_color')) {
     260            require_once(ABSPATH . 'wp-admin/includes/template.php');
     261        }
     262        $color = get_background_color();
     263        if (!$color) {
     264            $color = "#ffffff";
     265        }
    259266
    260267        $a = shortcode_atts(array(
     
    267274            'max_width' => null,
    268275            'resize_time' => null,
    269             'background_color' => "#FFFFFF",
    270             'background_opacity' => 0
     276            'background_color' => $color,
     277            'background_opacity' => 1
    271278        ), $atts);
    272279
     
    298305//        print_r("Style" . $style_css);
    299306
    300         $max_width = $a['max_width'] || $a['max-width'];
     307        $max_width = !empty($a['max_width']) ? $a['max_width'] : $a['max-width'];
     308
    301309        switch ($behavior) {
    302310            case 'full':
  • ia-magic-galleries/trunk/includes/IAMG_ComDispatcher.php

    r3098209 r3122253  
    4949        add_action('wp_ajax_iamg_com', [$this, 'dispatcher']);
    5050
    51        
     51        if (defined('IAMG_DEBUG_SKIP_SECURITY') && IAMG_DEBUG_SKIP_SECURITY) {
     52            add_action('wp_ajax_nopriv_iamg_com', [$this, 'dispatcher']);
     53        }
    5254
    5355        //Loading the IA Presenter app in secure format, this is processed by iaPresenter_loader.js
     
    421423        }
    422424
     425        $links = $this->_get_param("links");
     426
     427        if ($links && !is_array($links)) {
     428            return ['error' => 'Invalid Links'];
     429        }
     430
    423431        $imageHandler = new IAMG_ImageHandler("all");
    424432
    425         $image_info = $imageHandler->get_for_gallery($images);
     433        $image_info = $imageHandler->get_for_gallery($images, $links);
    426434
    427435        $settings["type"] = $type;
     
    514522    private function _verify_nonce($actions)
    515523    {
     524        // if IAMG_DEBUG_SKIP_NONCE is defined, we skip nonce verification
     525        if (defined('IAMG_DEBUG_SKIP_SECURITY') && IAMG_DEBUG_SKIP_SECURITY) {
     526            return true;
     527        }
     528
    516529        $nonce = sanitize_text_field(wp_unslash($this->_get_param('_iamgnonce')));
    517530
     
    591604    private function is_allowed(): bool
    592605    {
     606        if (defined('IAMG_DEBUG_SKIP_SECURITY') && IAMG_DEBUG_SKIP_SECURITY) {
     607            return true;
     608        }
     609
    593610        return is_admin() && is_user_logged_in() && current_user_can('edit_posts');
    594611    }
  • ia-magic-galleries/trunk/includes/IAMG_posttype.php

    r3107668 r3122253  
    557557
    558558
    559        if ($direct_output){
    560            echo '<div class="IA_Presenter_Container "'
    561                . ' behaviour="' . esc_attr($behaviour) . '"'
    562                . ' presentation="' . 'base64:' . esc_attr($pres) . '" '
    563                . $attr_str . //already escaped above
    564                '></div>';
    565        } else {
    566            $div = '<div class="IA_Presenter_Container "'
    567             . ' behaviour="' . esc_attr($behaviour) . '"'
    568             . ' presentation="' . 'base64:' . esc_attr($pres) . '" '
    569             . $attr_str . //already escaped
    570             '></div>';
    571 
    572         return $div;
    573        }
     559        if ($direct_output) {
     560            echo '<div class="IA_Presenter_Container "'
     561                . ' behaviour="' . esc_attr($behaviour) . '"'
     562                . ' presentation="' . 'base64:' . esc_attr($pres) . '" '
     563                . $attr_str . //already escaped above
     564                '></div>';
     565        } else {
     566            $div = '<div class="IA_Presenter_Container "'
     567                . ' behaviour="' . esc_attr($behaviour) . '"'
     568                . ' presentation="' . 'base64:' . esc_attr($pres) . '" '
     569                . $attr_str . //already escaped
     570                '></div>';
     571
     572            return $div;
     573        }
    574574
    575575    }
     
    687687    public function include_clipboard_script()
    688688    {
    689         if ($this->include_clipboard_script) { ?>
     689        if ($this->include_clipboard_script) {
     690            if (!function_exists('get_background_color')) {
     691                require_once(ABSPATH . 'wp-admin/includes/template.php');
     692            }
     693            $color = get_background_color();
     694            if (!$color) {
     695                $color = "white";
     696            }
     697            ?>
    690698            <script>
    691699                jQuery(function ($) {
    692700                    $('.iamg-shortcode').on('click', function () {
    693701                        try {
    694                             //select the contents
    695                             this.select();
    696                             //copy the selection
     702                            // Select the contents
     703                            const content = this.value;
     704
     705
     706
     707
     708                            // Replace ] with height = "100"]
     709                            let modifiedContent = content.replace(']', ' height="100" height-type="percent" background-opacity ="0" background-color="<?php echo $color; ?>"]');
     710
     711                            // Create a temporary textarea to hold the content
     712                            var tempTextArea = document.createElement('textarea');
     713                            tempTextArea.value = modifiedContent;
     714                            document.body.appendChild(tempTextArea);
     715
     716                            // Select the modified content
     717                            tempTextArea.select();
     718
     719                            // Copy the selection
    697720                            document.execCommand('copy');
    698                             //show the copied message
     721
     722                            // Remove the temporary textarea
     723                            document.body.removeChild(tempTextArea);
     724
     725                            // Show the copied message
    699726                            $('.iamg-shortcode-message').remove();
    700                             $(this).after('<p class="iamg-shortcode-message"><?php
    701                                 esc_html_e('Shortcode copied to clipboard!',
    702                                     'ia-magic-galleries'); ?></p>');
     727                            $(this).after('<p class="iamg-shortcode-message"><?php esc_html_e("Shortcode copied to clipboard!",
     728                                "ia-magic-galleries"); ?></p>');
    703729                        } catch (err) {
    704730                            console.log('Oops, unable to copy!');
  • ia-magic-galleries/trunk/js/boot_iamg.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
  • ia-magic-galleries/trunk/js/boot_iamg_cache.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
  • ia-magic-galleries/trunk/js/boot_iamg_post_admin.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
  • ia-magic-galleries/trunk/js/iaPresenter_loader.js

    r3098209 r3122253  
    156156
    157157        function load_from_settings(settings) {
     158
    158159            settings = (typeof settings === 'object') ? settings :
    159160                JSON.parse(JSON.minify(settings));
     
    431432    }
    432433
    433     let $pk = /**PK*/"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmwao9fwKR/h5dyOPSwR4fp8lCxyw2twohudJDIV/42u8Dy89bP0HWkG9LqQ1NoW6x7XPwi/vRrxbZEqHRhNog/ho1SqtZrKphYEP8XHO3lPpeepScY4dUcw15zEVgZbLH1lJrwkyKV9BurQTgHtMAM8mWmD4otMM+sL7hRlYi2eHmWGlhmDVvMQHRJeGIlSEmuDrqBpuQRMmnIVWKL7zhgVzTPwcQVAVQF+i96ptV2DSG1sBVVSkBNuk9Hw6lFW2DkLQKvnj+8sAyvwN+7pVJSV6OWTuDDLNWL6+XgKVMgwiMHNBzpsreRWFv1HlK8SrO357r1bDV293otL+oOV83wIDAQAB"/**PK*/;
     434    let $pk = /**PK*/"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAugykYVXRecEa245A+LIfKCn/kumGQhZCPh0+Fe6WHt++rN6o1nojyxuKBG3wSJgB06lNOrSG3+Jv2jwtqK2QqhIVknIRz0HEFW9fYUunb/DW8tdpLTnqz70Bxq45t49D6/dFMhtiiJPpL52KKFjAgL8i3hJU6nlWFiSEjUVFyJ1/9EIE6NAhhR1E76L2mVvhVHIxx/GDhiPSOCgY5RMoIOj4QDEQdLLgOKzi/MMFhSKbhWkw29Kq1aXHRVeRJx+HbCS/3H5v6yNZSR3l3dnZ6+KrJiRIM4NIc/QfMO0TI364C77yAc2Q/YR7UTrvEzmn3jY2P8F0b5O4FkRRaqQUcQIDAQAB"/**PK*/;
    434435
    435436    async function load_secure_scripts(scripts, defer) {
  • ia-magic-galleries/trunk/js/iaPresenter_loader.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
    44
    5 var IA_Presenter_loader=function(t){var e=[["dist/mousetrap.min.js",function(){return window.hasOwnProperty("Mousetrap")}],["dist/simple-statistics.min.js",function(){return window.hasOwnProperty("ss")&&ss.hasOwnProperty("linearRegression")}],["dist/math.min.js",function(){return window.hasOwnProperty("math")&&math.hasOwnProperty("eval")}],["dist/minify.json.min.js",function(){return JSON.hasOwnProperty("minify")}]],r=[],i=!1,n={},o={},s=0;function a(t,e,r,n){if("object"==typeof r&&(n=r,r=""),r=r||"",n=n||{},e=e||"js",!n.load_condition||"function"!=typeof n.load_condition||n.load_condition())if(i)i.push([t,e,r,n]);else{if(i=[],t.pre_scripts&&(n.pre_scripts=t.pre_scripts,delete t.pre_scripts),t.post_scripts&&(n.post_scripts=t.post_scripts,delete t.post_scripts),n.load_only)return p(n,r,f.bind(void 0,n,r));p(n,r,function(){if("function"==typeof t)t(),f(n,r);else if("string"==typeof t)switch(e){case"js":jQuery.getScript(t).done(function(){f(n,r)}).fail(y);break;case"json":jQuery.get(t,function(){},"text").done(t=>{a(t),f(n,r)}).fail(y)}else"object"==typeof t&&t.panel_setting&&(a(t),f(n,r))})}function a(t){if((t="object"==typeof t?t:JSON.parse(JSON.minify(t))).html_tab_id)o[t.html_tab_id]||(e(t.html_tab_id,t),o[t.html_tab_id]=!0);else{let r=document.querySelector('iframe[name="editor-canvas"]'),i=r?r.contentDocument||r.contentWindow.document:null,n=jQuery(".IA_Designer_Container, .IA_Presenter_Container").toArray();if(i){let t=jQuery(i).find(".IA_Presenter_Container").toArray();n=n.concat(t),Snap_ia.setWindow(r.contentWindow)}if(!n.length)return;let a=0;n.forEach(function(r){let n;if(i&&i.contains(r)&&(n=i),r=Snap_ia(r),t.container_filter&&"function"==typeof t.container_filter&&!t.container_filter(r))return;t.pre_process_container&&"function"==typeof t.pre_process_container&&t.pre_process_container(r);let c=r.attr("id");if(c||(c="IA_Designer_Container_gui"+s++,r.attr("id",c)),!o[c]){const i=r.select("svg");let s;if(i){const e=i.node.outerHTML;t.initial_graphics={svg:e},e.remove()}else if(s=r.attr("presentation"))if(s.startsWith("base64:")){let e=LZString.decompressFromBase64(s.slice(7));e||(e=atob(s.slice(7))),t.initial_graphics={svg:e},r.attr("presentation","")}else s.startsWith("http")&&(t.initial_graphics=s);t.html_tab_id=c,setTimeout(e.bind(void 0,c,Object.assign({},t),n),a),a+=200,o[c]=!0}})}function e(t,e,r){let i;(i=e.initial_graphics)&&delete e.initial_graphics;var n=IA_Designer.createInterface(t,e,r);const o=(r=r||window.document).defaultView.getComputedStyle(r.body,null).getPropertyValue("background-color");n.div_container.setStyle({background:o}),i?"string"==typeof i?n.openGraphics(i,c):"object"==typeof i&&i.hasOwnProperty("svg")&&(n.loadGraphicsFromString(i.svg),c(n)):c(n)}}}var c=function(t){};function p(t,r,i){if(t.after_callback){let e=i;i=function(){e&&e(),t.after_callback()}}if(window.IA_Designer||!window.jQuery)return i&&i();var n=e;t.pre_scripts&&(Array.isArray(t.pre_scripts)||(t.pre_scripts=[t.pre_scripts]),n=[...t.pre_scripts,...n]);var o=function(t,e,r){const i=jQuery.Deferred();if(r){let r=!1;if(e&&"string"==typeof e){let n=localStorage.getItem(e);n&&(n=JSON.parse(n)).url===t&&n.data&&(u(n.data,i),r=!0)}!r&&jQuery.getJSON(t,function(r){e&&localStorage.setItem(e,JSON.stringify({url:t,data:r})),u(r,i)})}else jQuery.getScript(t).done(function(t,e){i.resolve()});return i.promise()},s=[];jQuery.ajaxSetup({cache:!0}),n.forEach(function(t){let e=!1;if(Array.isArray(t)){if("function"==typeof t[1]&&t[1]())return;t=t[0]}"string"==typeof t&&(t=t.startsWith("http")?t:r+t,s.push(o(t))),"object"==typeof t&&t.encrypted&&(e=t.cache||!1,t=(t=t.url).startsWith("http")?t:r+t,s.push(o(t,e,!0)))});var a=jQuery.when.apply($,s);i&&a.done(i)}function f(t,e){if("string"==typeof t&&(e=t,t={}),t.post_scripts&&("string"==typeof t.post_scripts&&(t.post_scripts=t.post_scripts.split(",")),r=r.concat(t.post_scripts)),t.crypto&&r.push("dist/ia_md5.min.js"),r.forEach(function(t){if("object"==typeof t&&(t.ES6||t.ES6)&&(t=supportsES6?t.ES6||"":t.ES5||""),t){if(Array.isArray(t)){if("function"==typeof t[1]&&t[1]())return;if("string"==typeof t[1]&&window.hasOwnProperty(t[1]))return;t=t[0]}t=e+t.trim(),n[t]||(n[t]=!0,jQuery.getScript(t,function(){}))}}),jQuery.ajaxSetup({cache:!1}),i.length){i.forEach(t=>{a.apply(void 0,t)})}i=void 0}let l="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmwao9fwKR/h5dyOPSwR4fp8lCxyw2twohudJDIV/42u8Dy89bP0HWkG9LqQ1NoW6x7XPwi/vRrxbZEqHRhNog/ho1SqtZrKphYEP8XHO3lPpeepScY4dUcw15zEVgZbLH1lJrwkyKV9BurQTgHtMAM8mWmD4otMM+sL7hRlYi2eHmWGlhmDVvMQHRJeGIlSEmuDrqBpuQRMmnIVWKL7zhgVzTPwcQVAVQF+i96ptV2DSG1sBVVSkBNuk9Hw6lFW2DkLQKvnj+8sAyvwN+7pVJSV6OWTuDDLNWL6+XgKVMgwiMHNBzpsreRWFv1HlK8SrO357r1bDV293otL+oOV83wIDAQAB";async function u(t,e){if(!Array.isArray(t))return void e.reject();function r(t){const e=new ArrayBuffer(t.length),r=new Uint8Array(e);for(let e=0,i=t.length;e<i;e++)r[e]=t.charCodeAt(e);return e}const i=r(atob(l)),n=await crypto.subtle.importKey("spki",i,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!1,["verify"]);let o=await Promise.all(t.map(async(t,i)=>{let o=t.data,s=t.sign;if(!o||!s)return;if(await crypto.subtle.verify({name:"RSASSA-PKCS1-v1_5"},n,r(atob(s)),r(o))){let t=LZString.decompressFromBase64(o);if(t||(t=atob(o)),t)return t}return e.reject(),Promise.reject()}));o&&(o=o.filter(Boolean)).length===t.length&&(o.forEach(t=>{Function('"use strict"; '+t)()}),e.resolve())}function y(t,e){}return a.loadLibrariesOnly=function(t){p({},t=t||"",function(){f(t)})},a}(window);
     5var IA_Presenter_loader=function(t){var e=[["dist/mousetrap.min.js",function(){return window.hasOwnProperty("Mousetrap")}],["dist/simple-statistics.min.js",function(){return window.hasOwnProperty("ss")&&ss.hasOwnProperty("linearRegression")}],["dist/math.min.js",function(){return window.hasOwnProperty("math")&&math.hasOwnProperty("eval")}],["dist/minify.json.min.js",function(){return JSON.hasOwnProperty("minify")}]],r=[],i=!1,n={},o={},s=0;function a(t,e,r,n){if("object"==typeof r&&(n=r,r=""),r=r||"",n=n||{},e=e||"js",!n.load_condition||"function"!=typeof n.load_condition||n.load_condition())if(i)i.push([t,e,r,n]);else{if(i=[],t.pre_scripts&&(n.pre_scripts=t.pre_scripts,delete t.pre_scripts),t.post_scripts&&(n.post_scripts=t.post_scripts,delete t.post_scripts),n.load_only)return p(n,r,f.bind(void 0,n,r));p(n,r,function(){if("function"==typeof t)t(),f(n,r);else if("string"==typeof t)switch(e){case"js":jQuery.getScript(t).done(function(){f(n,r)}).fail(y);break;case"json":jQuery.get(t,function(){},"text").done(t=>{a(t),f(n,r)}).fail(y)}else"object"==typeof t&&t.panel_setting&&(a(t),f(n,r))})}function a(t){if((t="object"==typeof t?t:JSON.parse(JSON.minify(t))).html_tab_id)o[t.html_tab_id]||(e(t.html_tab_id,t),o[t.html_tab_id]=!0);else{let r=document.querySelector('iframe[name="editor-canvas"]'),i=r?r.contentDocument||r.contentWindow.document:null,n=jQuery(".IA_Designer_Container, .IA_Presenter_Container").toArray();if(i){let t=jQuery(i).find(".IA_Presenter_Container").toArray();n=n.concat(t),Snap_ia.setWindow(r.contentWindow)}if(!n.length)return;let a=0;n.forEach(function(r){let n;if(i&&i.contains(r)&&(n=i),r=Snap_ia(r),t.container_filter&&"function"==typeof t.container_filter&&!t.container_filter(r))return;t.pre_process_container&&"function"==typeof t.pre_process_container&&t.pre_process_container(r);let c=r.attr("id");if(c||(c="IA_Designer_Container_gui"+s++,r.attr("id",c)),!o[c]){const i=r.select("svg");let s;if(i){const e=i.node.outerHTML;t.initial_graphics={svg:e},e.remove()}else if(s=r.attr("presentation"))if(s.startsWith("base64:")){let e=LZString.decompressFromBase64(s.slice(7));e||(e=atob(s.slice(7))),t.initial_graphics={svg:e},r.attr("presentation","")}else s.startsWith("http")&&(t.initial_graphics=s);t.html_tab_id=c,setTimeout(e.bind(void 0,c,Object.assign({},t),n),a),a+=200,o[c]=!0}})}function e(t,e,r){let i;(i=e.initial_graphics)&&delete e.initial_graphics;var n=IA_Designer.createInterface(t,e,r);const o=(r=r||window.document).defaultView.getComputedStyle(r.body,null).getPropertyValue("background-color");n.div_container.setStyle({background:o}),i?"string"==typeof i?n.openGraphics(i,c):"object"==typeof i&&i.hasOwnProperty("svg")&&(n.loadGraphicsFromString(i.svg),c(n)):c(n)}}}var c=function(t){};function p(t,r,i){if(t.after_callback){let e=i;i=function(){e&&e(),t.after_callback()}}if(window.IA_Designer||!window.jQuery)return i&&i();var n=e;t.pre_scripts&&(Array.isArray(t.pre_scripts)||(t.pre_scripts=[t.pre_scripts]),n=[...t.pre_scripts,...n]);var o=function(t,e,r){const i=jQuery.Deferred();if(r){let r=!1;if(e&&"string"==typeof e){let n=localStorage.getItem(e);n&&(n=JSON.parse(n)).url===t&&n.data&&(u(n.data,i),r=!0)}!r&&jQuery.getJSON(t,function(r){e&&localStorage.setItem(e,JSON.stringify({url:t,data:r})),u(r,i)})}else jQuery.getScript(t).done(function(t,e){i.resolve()});return i.promise()},s=[];jQuery.ajaxSetup({cache:!0}),n.forEach(function(t){let e=!1;if(Array.isArray(t)){if("function"==typeof t[1]&&t[1]())return;t=t[0]}"string"==typeof t&&(t=t.startsWith("http")?t:r+t,s.push(o(t))),"object"==typeof t&&t.encrypted&&(e=t.cache||!1,t=(t=t.url).startsWith("http")?t:r+t,s.push(o(t,e,!0)))});var a=jQuery.when.apply($,s);i&&a.done(i)}function f(t,e){if("string"==typeof t&&(e=t,t={}),t.post_scripts&&("string"==typeof t.post_scripts&&(t.post_scripts=t.post_scripts.split(",")),r=r.concat(t.post_scripts)),t.crypto&&r.push("dist/ia_md5.min.js"),r.forEach(function(t){if("object"==typeof t&&(t.ES6||t.ES6)&&(t=supportsES6?t.ES6||"":t.ES5||""),t){if(Array.isArray(t)){if("function"==typeof t[1]&&t[1]())return;if("string"==typeof t[1]&&window.hasOwnProperty(t[1]))return;t=t[0]}t=e+t.trim(),n[t]||(n[t]=!0,jQuery.getScript(t,function(){}))}}),jQuery.ajaxSetup({cache:!1}),i.length){i.forEach(t=>{a.apply(void 0,t)})}i=void 0}let l="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAugykYVXRecEa245A+LIfKCn/kumGQhZCPh0+Fe6WHt++rN6o1nojyxuKBG3wSJgB06lNOrSG3+Jv2jwtqK2QqhIVknIRz0HEFW9fYUunb/DW8tdpLTnqz70Bxq45t49D6/dFMhtiiJPpL52KKFjAgL8i3hJU6nlWFiSEjUVFyJ1/9EIE6NAhhR1E76L2mVvhVHIxx/GDhiPSOCgY5RMoIOj4QDEQdLLgOKzi/MMFhSKbhWkw29Kq1aXHRVeRJx+HbCS/3H5v6yNZSR3l3dnZ6+KrJiRIM4NIc/QfMO0TI364C77yAc2Q/YR7UTrvEzmn3jY2P8F0b5O4FkRRaqQUcQIDAQAB";async function u(t,e){if(!Array.isArray(t))return void e.reject();function r(t){const e=new ArrayBuffer(t.length),r=new Uint8Array(e);for(let e=0,i=t.length;e<i;e++)r[e]=t.charCodeAt(e);return e}const i=r(atob(l)),n=await crypto.subtle.importKey("spki",i,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!1,["verify"]);let o=await Promise.all(t.map(async(t,i)=>{let o=t.data,s=t.sign;if(!o||!s)return;if(await crypto.subtle.verify({name:"RSASSA-PKCS1-v1_5"},n,r(atob(s)),r(o))){let t=LZString.decompressFromBase64(o);if(t||(t=atob(o)),t)return t}return e.reject(),Promise.reject()}));o&&(o=o.filter(Boolean)).length===t.length&&(o.forEach(t=>{Function('"use strict"; '+t)()}),e.resolve())}function y(t,e){}return a.loadLibrariesOnly=function(t){p({},t=t||"",function(){f(t)})},a}(window);
  • ia-magic-galleries/trunk/js/iamg-block.js

    r3098967 r3122253  
    5353            block_id: {type: 'string'},
    5454            behavior: {type: 'string', default: 'fixed'},
    55             height: {type: 'number', default: 100},
     55            height: {type: 'string', default: "100"},
    5656            height_percent: {type: 'boolean', default: true},
     57            width: {type: 'string', default: "0"},
     58            width_percent: {type: 'boolean', default: true},
    5759            properties: {type: 'string', default: ""},
    5860            background_color: {type: 'string', default: "#fff"},
    59             background_opacity: {type: 'number', default: 0}
     61            background_opacity: {type: 'string', default: "0"}
    6062        },
    6163        usesContext: ['postId'],
     
    137139
    138140        //Build div
    139         let height = props.attributes.height;
    140         if (props.attributes.height_percent) {
     141        let height = +props.attributes.height;
     142        if (height && props.attributes.height_percent) {
    141143            height = height + "vh";
    142144        }
     
    156158        }
    157159
    158 
     160        let width = +props.attributes.width;
     161        let suffix = (props.attributes.width_percent) ? "vw" : "px";
     162
     163        let style = {height: height};
     164        if (width) {
     165            style['width'] = width + suffix;
     166            style["margin-left"] = "calc(50% - " + (width / 2) + suffix + ")";
     167        }
    159168        const html = el('div',
    160169            {
     
    165174                    '',
    166175                'behavior': 'fixed',
    167                 style: {height: height}
     176                style: style
    168177            },
    169178
     
    186195        if (props.attributes.pres_id) {
    187196
    188             let behavior = process_behavior_object(
    189                 {
    190                     behavior: props.attributes.behavior,
    191                     height: props.attributes.height,
    192                     height_type: (props.attributes.height_percent) ? "percent" : "pixel",
    193                     background_color: props.attributes.background_color,
    194                     background_opacity: props.attributes.background_opacity
    195                 }
    196             );
    197             let element = el('div', {},
    198                 '[ia_magic_gallery id="' + props.attributes.pres_id + '"' + behavior + ']');
    199 
    200             debug && console.log('In Save Fun', props.clientId, props, behavior);
     197            let bh = {
     198                behavior: props.attributes.behavior,
     199                height: props.attributes.height,
     200                height_type: (props.attributes.height_percent) ? "percent" : "pixel",
     201                background_color: props.attributes.background_color,
     202                background_opacity: props.attributes.background_opacity
     203            };
     204            // if (props.attributes.width) {
     205            //     bh.width = props.attributes.width;
     206            //     bh.width_type = (props.attributes.width_percent) ? "percent" : "pixel";
     207            // }
     208            let behavior = process_behavior_object(bh);
     209            let text = '[ia_magic_gallery id="' + props.attributes.pres_id + '"' + behavior + ']';
     210            let element = el('div', {}, text);
     211
     212            debug && console.log('In Save Fun', props.clientId, props, behavior, text);
    201213
    202214            return element;
     
    426438            last_fixed_settings["height"] = props.attributes.height;
    427439            last_fixed_settings["height_percent"] = props.attributes.height_percent;
     440            last_fixed_settings["width"] = props.attributes.width;
     441            last_fixed_settings["width_percent"] = props.attributes.width_percent;
    428442            props.setAttributes({
    429443                behavior: "full",
    430444                height: 100,
    431                 height_percent: true
     445                height_percent: true,
    432446            })
    433447        }
     
    437451                    height: last_fixed_settings.height,
    438452                    height_percent: last_fixed_settings.height_percent,
     453                    width: last_fixed_settings.width,
     454                    width_percent: last_fixed_settings.width_percent,
    439455                    behavior: "fixed"
    440456                })
     
    676692        const is_full = props.attributes.behavior !== "fixed"
    677693
    678         const is_percent = props.attributes.height_percent;
    679         let percent_or_px_button = (is_percent) ?
     694        const is_percent_h = props.attributes.height_percent;
     695        let percent_or_px_button_h = (is_percent_h) ?
    680696            el(wp.components.Button,
    681697                {
     
    684700                        props.setAttributes({height_percent: false});
    685701
    686                         const to_pixel = props.attributes.height * (window.innerHeight - admin_bar_height) / 100;
    687                         props.setAttributes({height: to_pixel});
     702                        let height = +props.attributes.height;
     703                        const to_pixel = height * (window.innerHeight - admin_bar_height) / 100;
     704                        props.setAttributes({height: String(to_pixel)});
    688705
    689706                        // const to_percent = 100 * props.attributes.height / (window.innerHeight - admin_bar_height);
     
    703720                        // props.setAttributes({height: to_pixel});
    704721
    705                         const to_percent = 100 * props.attributes.height / (window.innerHeight - admin_bar_height);
    706                         props.setAttributes({height: to_percent});
     722                        let height = +props.attributes.height;
     723                        const to_percent = 100 * height / (window.innerHeight - admin_bar_height);
     724                        props.setAttributes({height: String(to_percent)});
    707725
    708726                    },
     
    710728                },
    711729                "Px");
     730
    712731        let panel_height = (is_full) ? undefined
    713732            : el(wp.components.PanelBody,
     
    718737                el(wp.components.PanelRow, {},
    719738
    720                     el("div", {},
     739                    el("div", {class: "IAMG_Layout_FlexRow"},
    721740                        el(wp.components.TextControl,
    722741                            {
     
    724743                                type: 'number',
    725744                                onChange: (value) => {
    726                                     props.setAttributes({height: value})
     745                                    props.setAttributes({height: String(value)})
    727746                                },
    728747                                value: props.attributes.height || "",
    729                                 class: "IAMG_Layout_HalfWidth"
     748                                class: "IAMG_Layout_ButtHeight"
    730749                            }
    731750                        ),
    732751                        // el("div", {},
    733                         percent_or_px_button,
     752                        percent_or_px_button_h,
    734753                        //     el("text", {},
    735754                        //         (is_percent) ?
     
    744763                // )
    745764            );
     765
     766        const is_percent_w = props.attributes.width_percent;
     767        let percent_or_px_button_w = (is_percent_w) ?
     768            el(wp.components.Button,
     769                {
     770                    isDefault: true,
     771                    onClick: () => {
     772                        props.setAttributes({width_percent: false});
     773
     774                        const to_pixel = +props.attributes.width * window.innerWidth / 100;
     775                        props.setAttributes({width: String(to_pixel)});
     776                    }
     777                },
     778                "%")
     779            :
     780            el(wp.components.Button,
     781                {
     782                    isDefault: true,
     783                    onClick: () => {
     784                        props.setAttributes({width_percent: true});
     785
     786                        const to_percent = 100 * +props.attributes.width / window.innerWidth;
     787                        props.setAttributes({width: String(to_percent)});
     788                    },
     789                    marginTop: "auto"
     790                },
     791                "Px");
     792
     793        let panel_width = el(wp.components.PanelBody,
     794            {
     795                title: __('Width'), initialOpen: false,
     796                className: 'IAMG_Width_Panel_' + block_id,
     797            },
     798            el(wp.components.PanelRow, {},
     799                el("text", {},
     800                    "It is better to set width with block alignment for a standalone block! "),
     801            ),
     802            el(wp.components.PanelRow, {},
     803                el("text", {},
     804                    "Width must be set in the context of Row or Columns!"),
     805            ),
     806            el(wp.components.PanelRow, {},
     807                el("div", {class: "IAMG_Layout_FlexRow"},
     808                    el(wp.components.TextControl,
     809                        {
     810                            type: 'number',
     811                            onChange: (value) => {
     812                                props.setAttributes({width: value})
     813                            },
     814                            value: props.attributes.width || "",
     815                            class: "IAMG_Layout_ButtHeight"
     816                        }
     817                    ),
     818                    percent_or_px_button_w,
     819                )
     820            )//
     821        );
     822
    746823        let panel_layout = el(wp.components.PanelBody, {
    747824                title: __('Layout'),
     
    817894            is_full_allowed() ? panel_layout : null,
    818895            panel_height,
     896            panel_width,
    819897            color_panel,
    820898        )
  • ia-magic-galleries/trunk/js/iamg-block.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
    44
    5 !function(){const e=wp.element.createElement,t=iap_loader_settings,i=wp.i18n.__;let o,n=0,r={},a=t.wp_version&&parseFloat(t.wp_version)<5.8?"widgets":"media";wp.blocks.registerBlockType("ia-mg/gallery",{title:i("IA Magic Gallery"),icon:"format-gallery",category:a,supports:{align:!0},example:{},attributes:{presentation:{type:"string"},pres_id:{type:"string"},block_id:{type:"string"},behavior:{type:"string",default:"fixed"},height:{type:"number",default:100},height_percent:{type:"boolean",default:!0},properties:{type:"string",default:""},background_color:{type:"string",default:"#fff"},background_opacity:{type:"number",default:0}},usesContext:["postId"],edit:function(a){o=a.context?a.context.postId:null,s=a.clientId,a.attributes.block_id||a.setAttributes({block_id:s}),!a.attributes.pres_id&&a.attributes.block_id&&function(e){a.setAttributes({pres_id:e})}(a.attributes.block_id);var s;a.attributes.block_id&&a!==r[a.attributes.block_id]&&(r[a.attributes.block_id]=a);const d=Object.assign({},t.settings),h={load_condition:function(){let e=document.querySelectorAll(".interface-interface-skeleton__content .IA_Presenter_Container");if(e.length)return!0;let t=document.querySelector('iframe[name="editor-canvas"]');if(t){let e=t.contentDocument||t.contentWindow.document,i=e.querySelectorAll(".IA_Presenter_Container");return i.length}return!1},after_callback:function(e){if(l||!window.eve_ia)return;l=!0,eve_ia.on(["global","iamg","gallery","save"],function(e){const t=this,n=t.getBlockId(),a=r[n];let l=a.attributes.pres_id;const s={command:"save",block_id:n,pres_id:l,post_id:o,locator:e};t.comManager.wpCommand(s,function(e){let o={margin:{top:10,bottom:5,left:10,right:5}};if(e.error)return t.eve("gui.alert",i("Gallery was not saved successfully")+".",[220,70],[i("OK")],[],o),t.eve("gui.error",e.error),submit_button&&(submit_button.disabled=!1),void(save_button&&(save_button.disabled=!1));let n=e.settings?JSON.stringify(e.settings):"";a.setAttributes({properties:n}),t.eve("gui.alert",i("Gallery is saved successfully")+".",[200,70],[i("OK")],void 0,o),wp.data.dispatch("core/editor").savePost()},function(e){})}),eve_ia.on(["global","iamg","gallery","removed"],function(e){const t=this.getBlockId(),i=r[t];let a=i.attributes.pres_id;n=Math.max(n-1,0);const l={command:"remove",block_id:t,pres_id:a,post_id:o,locator:e};this.comManager.wpCommand(l,function(e){},function(e){})}),eve_ia.on(["ia","gui","created"],function(e){const t=this;if(Snap_ia.window().MutationObserver){let e=new MutationObserver(function(e){t.eve("gui.panel.resize")});const i=t.div_container.node.parentNode;i&&e.observe(i,{attributes:!0,attributeOldValue:!1,attributeFilter:["data-align","class"]})}if(Snap_ia.window().ResizeObserver){let e=new ResizeObserver(function(e){t.eve("gui.panel.resize")});const i=document.getElementsByClassName("interface-interface-skeleton__content")[0];i&&e.observe(i)}n++,t.eve.once(["presenter","loaded"],function(e){const t=e.getBlockId();let i=r[t].attributes,o=i.properties;o&&(o=JSON.parse(o));i.background_color&&e.setPanelStyle({fill:i.background_color,fillOpacity:i.background_opacity/100});if(!o.type)return;const n=o.type;let a=o.images||[];const l=o.requested_images||[],s=o.resource;let c,u;for(let e in o)o.hasOwnProperty(e)&&e.startsWith(n)&&((c=c||{})[e]=o[e]);u=function(e,t){const i=[];let o=t.length;for(let n,r=0;r<e.length;r++){n=e[r].title;for(let a=0;a<o;a++){let l=t[(r+a)%o];if(n===l.title){i.push({id:n+"_"+l.id,url:e[r].thumbnail.url,title:n});break}}}return i}(a,l),e.eve(["iamg","load_gallery_setup"],void 0,n,u,c,s)}.bind(void 0,t))(100)})}.bind(void 0,a.attributes),post_scripts:["media_upload.min.js"]};setTimeout(()=>{window.IA_Presenter_loader&&IA_Presenter_loader(d,void 0,t.resources,h)},5);let b=a.attributes.height;a.attributes.height_percent&&(b+="vh");if(!b||"100vh"===b){let e=0;const t=jQuery(".interface-interface-skeleton__header");t.length&&(e=t.height());const i=jQuery(".interface-interface-skeleton__footer");i.length&&(e+=i.height()),b="calc(100vh - "+e+"px)"}return e("div",{className:"IA_Presenter_Container","data-block-id":a.attributes.block_id,presentation:a.attributes.pres_id?a.attributes.pres_id:"",behavior:"fixed",style:{height:b}},function(t){if(!c())return;const o="fixed"!==t.attributes.behavior,n=e("svg",{width:20,height:20},e("path",{d:"M6.368.937a1.016,1.016,0,0,1,.513.092.871.871,0,0,1,.256.919.482.482,0,0,1-.6.367c-.855,0-1.795.092-2.65.092l4.1,4.411a.692.692,0,0,1-.171,1.01.624.624,0,0,1-.855-.092L2.949,3.418c0,.919,0,1.838-.085,2.848a.866.866,0,0,1-.256.643c-.257.276-.684.184-.941-.183a1.253,1.253,0,0,1-.085-.552c0-1.47.085-2.94.085-4.41a.765.765,0,0,1,.684-.735C3.719,1.029,5.086,1.029,6.368.937Zm11.281.092a.7.7,0,0,1,.684.735c.085,1.47.085,2.94.085,4.41a1.253,1.253,0,0,1-.085.552.654.654,0,0,1-.941.183.739.739,0,0,1-.256-.643c0-.919,0-1.837-.085-2.848L13.034,7.736a.615.615,0,0,1-.855.092.692.692,0,0,1-.171-1.01l4.1-4.411c-.855,0-1.795-.092-2.65-.092a.566.566,0,0,1-.6-.367.682.682,0,0,1,.256-.919,1.016,1.016,0,0,1,.513-.092C15,1.029,16.281,1.029,17.649,1.029ZM2.351,18.854a.7.7,0,0,1-.684-.736c-.085-1.47-.085-2.94-.085-4.41a1.251,1.251,0,0,1,.085-.551.655.655,0,0,1,.941-.184.741.741,0,0,1,.256.643c0,.919,0,1.838.085,2.849l4.017-4.319a.616.616,0,0,1,.855-.091.692.692,0,0,1,.171,1.01l-4.1,4.41c.855,0,1.8.092,2.65.092a.567.567,0,0,1,.6.368.682.682,0,0,1-.256.919,1.026,1.026,0,0,1-.513.091C5.086,18.945,3.719,18.854,2.351,18.854Zm11.281.091a1.026,1.026,0,0,1-.513-.091.871.871,0,0,1-.256-.919.483.483,0,0,1,.6-.368c.855,0,1.8-.092,2.65-.092l-4.1-4.41a.692.692,0,0,1,.171-1.01.625.625,0,0,1,.855.091l4.017,4.319c0-.919,0-1.838.085-2.849a.869.869,0,0,1,.256-.643c.257-.275.684-.183.941.184a1.251,1.251,0,0,1,.085.551c0,1.47-.085,2.94-.085,4.41a.765.765,0,0,1-.684.736C16.281,18.854,15,18.945,13.632,18.945ZM20,20H0V0H20ZM.471,19.529H19.529V.471H.471Z"}),o?e("path",{fill:"#BC1F47",d:"M0.5,20.3c-0.2,0-0.4-0.1-0.5-0.2c-0.3-0.3-0.3-0.8,0-1.1L19-0.1c0.3-0.3,0.8-0.3,1.1,0s0.3,0.8,0,1.1L1,20.1C0.9,20.2,0.7,20.3,0.5,20.3z"}):null);let r=e(wp.blockEditor.BlockIcon,{icon:n});return e(wp.blockEditor.BlockControls,{key:"element_fullscreen"},e(wp.components.ToolbarButton,{icon:r,label:i(o?"Set to Fixed Placement on Page":"Set to Full Page Gallery (Alignment is disregarded)"),onClick:()=>{u(!o,t,!0)}}))}(a),function(t){if("fixed"!==t.attributes.behavior)return;const o=e("svg",{width:20,height:20},e("path",{d:"M0,0v20h20V0H0z M19.5,19.5H0.5V0.5h19.1V19.5z M10.1,19.1C10,19.1,10,19.1,10.1,19.1c-0.2,0-0.4,0-0.5-0.1l-2.9-2.9c-0.2-0.2-0.2-0.5,0-0.7s0.5-0.2,0.7,0l2.1,2.1v-6.4c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v6.4l2.1-2.1c0.2-0.2,0.5-0.2,0.7,0s0.2,0.5,0,0.7l-2.9,2.9C10.3,19,10.2,19.1,10.1,19.1z M10,9.6c-0.3,0-0.5-0.2-0.5-0.5V2.7L7.4,4.8C7.2,5,6.9,5,6.7,4.8s-0.2-0.5,0-0.7l2.9-2.9C9.7,1.1,9.8,1.1,10,1.1c0.1,0,0.3,0,0.4,0.1l2.9,2.9c0.2,0.2,0.2,0.5,0,0.7s-0.5,0.2-0.7,0l-2.1-2.1v6.4C10.5,9.4,10.3,9.6,10,9.6z"}));let n=e(wp.blockEditor.BlockIcon,{icon:o});return e(wp.blockEditor.BlockControls,{key:"height_menu"},e(wp.components.ToolbarDropdownMenu,{icon:n,label:i("Height (Check Settings for more options)"),controls:[{title:"100%",onClick:()=>{t.setAttributes({height:100,height_percent:!0})}},{title:"75%",onClick:()=>{t.setAttributes({height:75,height_percent:!0})}},{title:"50%",onClick:()=>{t.setAttributes({height:50,height_percent:!0})}},{title:"25%",onClick:()=>{t.setAttributes({height:25,height_percent:!0})}}]}))}(a),function(t){let o=t.attributes.block_id;t.attributes.behavior;let n,r="IAMG_Height_Panel_"+o;window.IA_Designer&&(n=IA_Designer.getGui(e=>e.getBlockId()===o));const a="fixed"!==t.attributes.behavior;let l=t.attributes.height_percent?e(wp.components.Button,{isDefault:!0,onClick:()=>{t.setAttributes({height_percent:!1});const e=t.attributes.height*(window.innerHeight-0)/100;t.setAttributes({height:e})}},"%"):e(wp.components.Button,{isDefault:!0,onClick:()=>{t.setAttributes({height_percent:!0});const e=100*t.attributes.height/(window.innerHeight-0);t.setAttributes({height:e})},marginTop:"auto"},"Px"),s=a?void 0:e(wp.components.PanelBody,{title:i("Height"),initialOpen:!0,className:r},e(wp.components.PanelRow,{},e("div",{},e(wp.components.TextControl,{type:"number",onChange:e=>{t.setAttributes({height:e})},value:t.attributes.height||"",class:"IAMG_Layout_HalfWidth"}),l))),d=e(wp.components.PanelBody,{title:i("Layout"),initialOpen:!0,className:"IAMG_Layout_Panel_"+o},e(wp.components.PanelRow,{},e(wp.components.ToggleControl,{label:i("Fixed (or Full)"),onChange:e=>{u(e,t,!0)},checked:"fixed"!==t.attributes.behavior})),e(wp.components.PanelRow,{},e("text",{},i(a?"The gallery will take the full page. Only one full gallery can be placed on a page as all other elements will be removed.":"The gallery will have fixed location in the page. Set the height behavior below!")))),h=t.attributes.background_color,b=e(wp.components.PanelBody,{title:i("Background Color"),initialOpen:!0},e(wp.components.PanelRow,{},e(wp.blockEditor.PanelColorSettings,{colorSettings:[{value:h,onChange:e=>{t.setAttributes({background_color:e}),n&&n.setPanelStyle({fill:e})},label:i("Color")}],className:"IAMG_Layout_FullWidth"})),e(wp.components.PanelRow,{},e(wp.components.RangeControl,{label:i("Opacity"),onChange:e=>{t.setAttributes({background_opacity:e}),n&&n.setPanelStyle({fillOpacity:e/100})},value:t.attributes.background_opacity||0,min:0,max:100,className:"IAMG_Layout_FullWidth"})));return e(wp.blockEditor.InspectorControls,{},c()?d:null,s,b)}(a))},save:function(t){if(t.attributes.pres_id){let i=function(e){let t=" ";return Object.keys(e).forEach(i=>{const o=e[i];"object"==typeof o?Object.keys(o).forEach(e=>{t+=" "+i+"_"+e+'="'+o[e]+'"'}):t+=" "+i+'="'+o+'"'}),t}({behavior:t.attributes.behavior,height:t.attributes.height,height_type:t.attributes.height_percent?"percent":"pixel",background_color:t.attributes.background_color,background_opacity:t.attributes.background_opacity}),o=e("div",{},'[ia_magic_gallery id="'+t.attributes.pres_id+'"'+i+"]");return o}{let t=e("div",{},'[ia_magic_gallery id="demo"]');return t}}});let l=!1;let s={};function c(){return 1===n}function u(e,t,i){e&&c()&&(s.height=t.attributes.height,s.height_percent=t.attributes.height_percent,t.setAttributes({behavior:"full",height:100,height_percent:!0})),e||(i&&"full"===t.attributes.behavior&&s.hasOwnProperty("height")?t.setAttributes({height:s.height,height_percent:s.height_percent,behavior:"fixed"}):t.setAttributes({behavior:"fixed"}))}}();
     5!function(){const t=wp.element.createElement,e=iap_loader_settings,i=wp.i18n.__;let n,o=0,r={},a=e.wp_version&&parseFloat(e.wp_version)<5.8?"widgets":"media";wp.blocks.registerBlockType("ia-mg/gallery",{title:i("IA Magic Gallery"),icon:"format-gallery",category:a,supports:{align:!0},example:{},attributes:{presentation:{type:"string"},pres_id:{type:"string"},block_id:{type:"string"},behavior:{type:"string",default:"fixed"},height:{type:"string",default:"100"},height_percent:{type:"boolean",default:!0},width:{type:"string",default:"0"},width_percent:{type:"boolean",default:!0},properties:{type:"string",default:""},background_color:{type:"string",default:"#fff"},background_opacity:{type:"string",default:"0"}},usesContext:["postId"],edit:function(a){n=a.context?a.context.postId:null,s=a.clientId,a.attributes.block_id||a.setAttributes({block_id:s}),!a.attributes.pres_id&&a.attributes.block_id&&function(t){a.setAttributes({pres_id:t})}(a.attributes.block_id);var s;a.attributes.block_id&&a!==r[a.attributes.block_id]&&(r[a.attributes.block_id]=a);const d=Object.assign({},e.settings),h={load_condition:function(){let t=document.querySelectorAll(".interface-interface-skeleton__content .IA_Presenter_Container");if(t.length)return!0;let e=document.querySelector('iframe[name="editor-canvas"]');if(e){let t=e.contentDocument||e.contentWindow.document,i=t.querySelectorAll(".IA_Presenter_Container");return i.length}return!1},after_callback:function(t){if(l||!window.eve_ia)return;l=!0,eve_ia.on(["global","iamg","gallery","save"],function(t){const e=this,o=e.getBlockId(),a=r[o];let l=a.attributes.pres_id;const s={command:"save",block_id:o,pres_id:l,post_id:n,locator:t};e.comManager.wpCommand(s,function(t){let n={margin:{top:10,bottom:5,left:10,right:5}};if(t.error)return e.eve("gui.alert",i("Gallery was not saved successfully")+".",[220,70],[i("OK")],[],n),e.eve("gui.error",t.error),submit_button&&(submit_button.disabled=!1),void(save_button&&(save_button.disabled=!1));let o=t.settings?JSON.stringify(t.settings):"";a.setAttributes({properties:o}),e.eve("gui.alert",i("Gallery is saved successfully")+".",[200,70],[i("OK")],void 0,n),wp.data.dispatch("core/editor").savePost()},function(t){})}),eve_ia.on(["global","iamg","gallery","removed"],function(t){const e=this.getBlockId(),i=r[e];let a=i.attributes.pres_id;o=Math.max(o-1,0);const l={command:"remove",block_id:e,pres_id:a,post_id:n,locator:t};this.comManager.wpCommand(l,function(t){},function(t){})}),eve_ia.on(["ia","gui","created"],function(t){const e=this;if(Snap_ia.window().MutationObserver){let t=new MutationObserver(function(t){e.eve("gui.panel.resize")});const i=e.div_container.node.parentNode;i&&t.observe(i,{attributes:!0,attributeOldValue:!1,attributeFilter:["data-align","class"]})}if(Snap_ia.window().ResizeObserver){let t=new ResizeObserver(function(t){e.eve("gui.panel.resize")});const i=document.getElementsByClassName("interface-interface-skeleton__content")[0];i&&t.observe(i)}o++,e.eve.once(["presenter","loaded"],function(t){const e=t.getBlockId();let i=r[e].attributes,n=i.properties;n&&(n=JSON.parse(n));i.background_color&&t.setPanelStyle({fill:i.background_color,fillOpacity:i.background_opacity/100});if(!n.type)return;const o=n.type;let a=n.images||[];const l=n.requested_images||[],s=n.resource;let c,u;for(let t in n)n.hasOwnProperty(t)&&t.startsWith(o)&&((c=c||{})[t]=n[t]);u=function(t,e){const i=[];let n=e.length;for(let o,r=0;r<t.length;r++){o=t[r].title;for(let a=0;a<n;a++){let l=e[(r+a)%n];if(o===l.title){i.push({id:o+"_"+l.id,url:t[r].thumbnail.url,title:o});break}}}return i}(a,l),t.eve(["iamg","load_gallery_setup"],void 0,o,u,c,s)}.bind(void 0,e))(100)})}.bind(void 0,a.attributes),post_scripts:["media_upload.min.js"]};setTimeout(()=>{window.IA_Presenter_loader&&IA_Presenter_loader(d,void 0,e.resources,h)},5);let p=+a.attributes.height;p&&a.attributes.height_percent&&(p+="vh");if(!p||"100vh"===p){let t=0;const e=jQuery(".interface-interface-skeleton__header");e.length&&(t=e.height());const i=jQuery(".interface-interface-skeleton__footer");i.length&&(t+=i.height()),p="calc(100vh - "+t+"px)"}let b=+a.attributes.width,g=a.attributes.width_percent?"vw":"px",_={height:p};b&&(_.width=b+g,_["margin-left"]="calc(50% - "+b/2+g+")");return t("div",{className:"IA_Presenter_Container","data-block-id":a.attributes.block_id,presentation:a.attributes.pres_id?a.attributes.pres_id:"",behavior:"fixed",style:_},function(e){if(!c())return;const n="fixed"!==e.attributes.behavior,o=t("svg",{width:20,height:20},t("path",{d:"M6.368.937a1.016,1.016,0,0,1,.513.092.871.871,0,0,1,.256.919.482.482,0,0,1-.6.367c-.855,0-1.795.092-2.65.092l4.1,4.411a.692.692,0,0,1-.171,1.01.624.624,0,0,1-.855-.092L2.949,3.418c0,.919,0,1.838-.085,2.848a.866.866,0,0,1-.256.643c-.257.276-.684.184-.941-.183a1.253,1.253,0,0,1-.085-.552c0-1.47.085-2.94.085-4.41a.765.765,0,0,1,.684-.735C3.719,1.029,5.086,1.029,6.368.937Zm11.281.092a.7.7,0,0,1,.684.735c.085,1.47.085,2.94.085,4.41a1.253,1.253,0,0,1-.085.552.654.654,0,0,1-.941.183.739.739,0,0,1-.256-.643c0-.919,0-1.837-.085-2.848L13.034,7.736a.615.615,0,0,1-.855.092.692.692,0,0,1-.171-1.01l4.1-4.411c-.855,0-1.795-.092-2.65-.092a.566.566,0,0,1-.6-.367.682.682,0,0,1,.256-.919,1.016,1.016,0,0,1,.513-.092C15,1.029,16.281,1.029,17.649,1.029ZM2.351,18.854a.7.7,0,0,1-.684-.736c-.085-1.47-.085-2.94-.085-4.41a1.251,1.251,0,0,1,.085-.551.655.655,0,0,1,.941-.184.741.741,0,0,1,.256.643c0,.919,0,1.838.085,2.849l4.017-4.319a.616.616,0,0,1,.855-.091.692.692,0,0,1,.171,1.01l-4.1,4.41c.855,0,1.8.092,2.65.092a.567.567,0,0,1,.6.368.682.682,0,0,1-.256.919,1.026,1.026,0,0,1-.513.091C5.086,18.945,3.719,18.854,2.351,18.854Zm11.281.091a1.026,1.026,0,0,1-.513-.091.871.871,0,0,1-.256-.919.483.483,0,0,1,.6-.368c.855,0,1.8-.092,2.65-.092l-4.1-4.41a.692.692,0,0,1,.171-1.01.625.625,0,0,1,.855.091l4.017,4.319c0-.919,0-1.838.085-2.849a.869.869,0,0,1,.256-.643c.257-.275.684-.183.941.184a1.251,1.251,0,0,1,.085.551c0,1.47-.085,2.94-.085,4.41a.765.765,0,0,1-.684.736C16.281,18.854,15,18.945,13.632,18.945ZM20,20H0V0H20ZM.471,19.529H19.529V.471H.471Z"}),n?t("path",{fill:"#BC1F47",d:"M0.5,20.3c-0.2,0-0.4-0.1-0.5-0.2c-0.3-0.3-0.3-0.8,0-1.1L19-0.1c0.3-0.3,0.8-0.3,1.1,0s0.3,0.8,0,1.1L1,20.1C0.9,20.2,0.7,20.3,0.5,20.3z"}):null);let r=t(wp.blockEditor.BlockIcon,{icon:o});return t(wp.blockEditor.BlockControls,{key:"element_fullscreen"},t(wp.components.ToolbarButton,{icon:r,label:i(n?"Set to Fixed Placement on Page":"Set to Full Page Gallery (Alignment is disregarded)"),onClick:()=>{u(!n,e,!0)}}))}(a),function(e){if("fixed"!==e.attributes.behavior)return;const n=t("svg",{width:20,height:20},t("path",{d:"M0,0v20h20V0H0z M19.5,19.5H0.5V0.5h19.1V19.5z M10.1,19.1C10,19.1,10,19.1,10.1,19.1c-0.2,0-0.4,0-0.5-0.1l-2.9-2.9c-0.2-0.2-0.2-0.5,0-0.7s0.5-0.2,0.7,0l2.1,2.1v-6.4c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v6.4l2.1-2.1c0.2-0.2,0.5-0.2,0.7,0s0.2,0.5,0,0.7l-2.9,2.9C10.3,19,10.2,19.1,10.1,19.1z M10,9.6c-0.3,0-0.5-0.2-0.5-0.5V2.7L7.4,4.8C7.2,5,6.9,5,6.7,4.8s-0.2-0.5,0-0.7l2.9-2.9C9.7,1.1,9.8,1.1,10,1.1c0.1,0,0.3,0,0.4,0.1l2.9,2.9c0.2,0.2,0.2,0.5,0,0.7s-0.5,0.2-0.7,0l-2.1-2.1v6.4C10.5,9.4,10.3,9.6,10,9.6z"}));let o=t(wp.blockEditor.BlockIcon,{icon:n});return t(wp.blockEditor.BlockControls,{key:"height_menu"},t(wp.components.ToolbarDropdownMenu,{icon:o,label:i("Height (Check Settings for more options)"),controls:[{title:"100%",onClick:()=>{e.setAttributes({height:100,height_percent:!0})}},{title:"75%",onClick:()=>{e.setAttributes({height:75,height_percent:!0})}},{title:"50%",onClick:()=>{e.setAttributes({height:50,height_percent:!0})}},{title:"25%",onClick:()=>{e.setAttributes({height:25,height_percent:!0})}}]}))}(a),function(e){let n=e.attributes.block_id;e.attributes.behavior;let o,r="IAMG_Height_Panel_"+n;window.IA_Designer&&(o=IA_Designer.getGui(t=>t.getBlockId()===n));const a="fixed"!==e.attributes.behavior;let l=e.attributes.height_percent?t(wp.components.Button,{isDefault:!0,onClick:()=>{e.setAttributes({height_percent:!1});let t=+e.attributes.height;const i=t*(window.innerHeight-0)/100;e.setAttributes({height:String(i)})}},"%"):t(wp.components.Button,{isDefault:!0,onClick:()=>{e.setAttributes({height_percent:!0});let t=+e.attributes.height;const i=100*t/(window.innerHeight-0);e.setAttributes({height:String(i)})},marginTop:"auto"},"Px"),s=a?void 0:t(wp.components.PanelBody,{title:i("Height"),initialOpen:!0,className:r},t(wp.components.PanelRow,{},t("div",{class:"IAMG_Layout_FlexRow"},t(wp.components.TextControl,{type:"number",onChange:t=>{e.setAttributes({height:String(t)})},value:e.attributes.height||"",class:"IAMG_Layout_ButtHeight"}),l)));let d=e.attributes.width_percent?t(wp.components.Button,{isDefault:!0,onClick:()=>{e.setAttributes({width_percent:!1});const t=+e.attributes.width*window.innerWidth/100;e.setAttributes({width:String(t)})}},"%"):t(wp.components.Button,{isDefault:!0,onClick:()=>{e.setAttributes({width_percent:!0});const t=100*+e.attributes.width/window.innerWidth;e.setAttributes({width:String(t)})},marginTop:"auto"},"Px"),h=t(wp.components.PanelBody,{title:i("Width"),initialOpen:!1,className:"IAMG_Width_Panel_"+n},t(wp.components.PanelRow,{},t("text",{},"It is better to set width with block alignment for a standalone block! ")),t(wp.components.PanelRow,{},t("text",{},"Width must be set in the context of Row or Columns!")),t(wp.components.PanelRow,{},t("div",{class:"IAMG_Layout_FlexRow"},t(wp.components.TextControl,{type:"number",onChange:t=>{e.setAttributes({width:t})},value:e.attributes.width||"",class:"IAMG_Layout_ButtHeight"}),d))),p=t(wp.components.PanelBody,{title:i("Layout"),initialOpen:!0,className:"IAMG_Layout_Panel_"+n},t(wp.components.PanelRow,{},t(wp.components.ToggleControl,{label:i("Fixed (or Full)"),onChange:t=>{u(t,e,!0)},checked:"fixed"!==e.attributes.behavior})),t(wp.components.PanelRow,{},t("text",{},i(a?"The gallery will take the full page. Only one full gallery can be placed on a page as all other elements will be removed.":"The gallery will have fixed location in the page. Set the height behavior below!")))),b=e.attributes.background_color,g=t(wp.components.PanelBody,{title:i("Background Color"),initialOpen:!0},t(wp.components.PanelRow,{},t(wp.blockEditor.PanelColorSettings,{colorSettings:[{value:b,onChange:t=>{e.setAttributes({background_color:t}),o&&o.setPanelStyle({fill:t})},label:i("Color")}],className:"IAMG_Layout_FullWidth"})),t(wp.components.PanelRow,{},t(wp.components.RangeControl,{label:i("Opacity"),onChange:t=>{e.setAttributes({background_opacity:t}),o&&o.setPanelStyle({fillOpacity:t/100})},value:e.attributes.background_opacity||0,min:0,max:100,className:"IAMG_Layout_FullWidth"})));return t(wp.blockEditor.InspectorControls,{},c()?p:null,s,h,g)}(a))},save:function(e){if(e.attributes.pres_id){let i={behavior:e.attributes.behavior,height:e.attributes.height,height_type:e.attributes.height_percent?"percent":"pixel",background_color:e.attributes.background_color,background_opacity:e.attributes.background_opacity},n=function(t){let e=" ";return Object.keys(t).forEach(i=>{const n=t[i];"object"==typeof n?Object.keys(n).forEach(t=>{e+=" "+i+"_"+t+'="'+n[t]+'"'}):e+=" "+i+'="'+n+'"'}),e}(i),o='[ia_magic_gallery id="'+e.attributes.pres_id+'"'+n+"]",r=t("div",{},o);return r}{let e=t("div",{},'[ia_magic_gallery id="demo"]');return e}}});let l=!1;let s={};function c(){return 1===o}function u(t,e,i){t&&c()&&(s.height=e.attributes.height,s.height_percent=e.attributes.height_percent,s.width=e.attributes.width,s.width_percent=e.attributes.width_percent,e.setAttributes({behavior:"full",height:100,height_percent:!0})),t||(i&&"full"===e.attributes.behavior&&s.hasOwnProperty("height")?e.setAttributes({height:s.height,height_percent:s.height_percent,width:s.width,width_percent:s.width_percent,behavior:"fixed"}):e.setAttributes({behavior:"fixed"}))}}();
  • ia-magic-galleries/trunk/js/iamg_helper.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
  • ia-magic-galleries/trunk/js/media_upload.js

    r3098209 r3122253  
    1919        let frame = wp.media({
    2020            title: title,
    21             button: {
    22                 text: button
    23             },
     21            // button: {
     22            //     text: button
     23            // },
    2424            multiple: true, // Set to true to allow multiple files to be selected
    2525            library: {
  • ia-magic-galleries/trunk/js/media_upload.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
    44
    5 window.eve_ia&&window.wp.media&&eve_ia.on(["global","media","upload_interface"],function(e,t,l){t=t||"Upload Media",l=l||"Use this media";let n=wp.media({title:t,button:{text:l},multiple:!0,library:{uploadedTo:null}}),i=document.fullscreenElement;i&&document.exitFullscreen(),n.on({select:function(){let t=n.state().get("selection").toJSON();e(t)},close:function(){i&&i.requestFullscreen()}}),n.open()});
     5window.eve_ia&&window.wp.media&&eve_ia.on(["global","media","upload_interface"],function(e,l,t){l=l||"Upload Media",t=t||"Use this media";let n=wp.media({title:l,multiple:!0,library:{uploadedTo:null}}),i=document.fullscreenElement;i&&document.exitFullscreen(),n.on({select:function(){let l=n.state().get("selection").toJSON();e(l)},close:function(){i&&i.requestFullscreen()}}),n.open()});
  • ia-magic-galleries/trunk/js/parent_style_setter.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
  • ia-magic-galleries/trunk/js/presentation_expander.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
  • ia-magic-galleries/trunk/js/presentation_full.min.js

    r3107668 r3122253  
    1 /*! ia-designer 25-06-2024
     1/*! ia-designer 19-07-2024
    22Copyright © 2023 Information Aesthetics. All rights reserved.
    33This work is licensed under the GPL2, V2/ license.*/
  • ia-magic-galleries/trunk/src/IAMG/IAMG_Client.php

    r3107668 r3122253  
    294294            true, true);
    295295
     296
    296297        set_transient(IAMG_SLUG . "_called_update_app_script", $results);
    297298
  • ia-magic-galleries/trunk/src/IAMG/IAMG_ImageHandler.php

    r3098209 r3122253  
    5151     * ];
    5252     */
    53     public function get_for_gallery($ids = null)
     53    public function get_for_gallery($ids = null, $links = null)
    5454    {
    5555        $map = [];
     
    7171            }
    7272            if (isset($map[$id])) {
    73                 $result[] = $this->convert_image_info_for_gallery($map[$id]);
     73                $img_info = $this->convert_image_info_for_gallery($map[$id]);
     74                if ($links && isset($links[$id])) {
     75                    $link = wp_http_validate_url($links[$id]);
     76                    if ($link){
     77                        $img_info["link"] = $links[$id];
     78                    }
     79                }
     80                $result[] = $img_info;
    7481            }
    7582        }
     
    395402        ];
    396403
    397         if (!$sizes) {
     404        if (!$sizes && isset($meta['sizes'])) {
    398405//            get sizes from teh keys of meta['sizes']
    399406            $sizes = array_keys($meta['sizes']);
    400         }
    401 
     407        } else {
     408            $sizes = ['medium', 'large', 'thumbnail'];
     409        }
    402410        foreach ($sizes as $size) {
    403411            if (isset($meta['sizes'][$size])) {
  • ia-magic-galleries/trunk/templates/post.php

    r3098209 r3122253  
    4242>
    4343<div id="page">
    44 
    4544</div>
    4645<?php
    47 //the_content();
     46
    4847IAMG_posttype::render_post();
    4948//echo wp_kses(IAMG_posttype::render_post(), IAMG_posttype::$allowed_html);
Note: See TracChangeset for help on using the changeset viewer.