Changeset 3122253
- Timestamp:
- 07/19/2024 06:44:32 PM (18 months ago)
- Location:
- ia-magic-galleries
- Files:
-
- 86 added
- 25 edited
- 3 copied
-
tags/1.1.5 (added)
-
tags/1.1.5/IAMagic-galleries.php (copied) (copied from ia-magic-galleries/trunk/IAMagic-galleries.php) (2 diffs)
-
tags/1.1.5/README.txt (copied) (copied from ia-magic-galleries/trunk/README.txt) (3 diffs)
-
tags/1.1.5/css (added)
-
tags/1.1.5/css/ia_designer_general.css (added)
-
tags/1.1.5/css/ia_general.min.css (added)
-
tags/1.1.5/css/ia_presenter_admin.css (added)
-
tags/1.1.5/css/ia_presenter_admin.min.css (added)
-
tags/1.1.5/css/ia_presenter_general.css (added)
-
tags/1.1.5/css/iamg-base.css (added)
-
tags/1.1.5/css/index.php (added)
-
tags/1.1.5/css/video-js.css (added)
-
tags/1.1.5/css/video-js.min.css (added)
-
tags/1.1.5/images (added)
-
tags/1.1.5/images/admin (added)
-
tags/1.1.5/images/admin/IAMG_icon.png (added)
-
tags/1.1.5/images/admin/IAMG_icon_16.png (added)
-
tags/1.1.5/images/admin/IAMG_icon_16_dark.png (added)
-
tags/1.1.5/images/admin/IAMG_icon_32.png (added)
-
tags/1.1.5/images/admin/loading_dots.gif (added)
-
tags/1.1.5/includes (added)
-
tags/1.1.5/includes/IAMG_Activation.php (added)
-
tags/1.1.5/includes/IAMG_App_Loader.php (added)
-
tags/1.1.5/includes/IAMG_ComDispatcher.php (added)
-
tags/1.1.5/includes/IAMG_GalleryUpdate.php (added)
-
tags/1.1.5/includes/IAMG_LibHandler.php (added)
-
tags/1.1.5/includes/IAMG_admin_notices.php (added)
-
tags/1.1.5/includes/IAMG_posttype.php (added)
-
tags/1.1.5/includes/IAMG_submenue.php (added)
-
tags/1.1.5/includes/block (added)
-
tags/1.1.5/includes/block/IAMG_Block.php (added)
-
tags/1.1.5/includes/block/index.php (added)
-
tags/1.1.5/includes/index.php (added)
-
tags/1.1.5/js (added)
-
tags/1.1.5/js/boot_iamg.js (added)
-
tags/1.1.5/js/boot_iamg.min.js (added)
-
tags/1.1.5/js/boot_iamg_cache.js (added)
-
tags/1.1.5/js/boot_iamg_cache.min.js (added)
-
tags/1.1.5/js/boot_iamg_post_admin.js (added)
-
tags/1.1.5/js/boot_iamg_post_admin.min.js (added)
-
tags/1.1.5/js/dist (added)
-
tags/1.1.5/js/dist/Youtube.min.js (added)
-
tags/1.1.5/js/dist/howler.js (added)
-
tags/1.1.5/js/dist/howler.min.js (added)
-
tags/1.1.5/js/dist/ia_md5.min.js (added)
-
tags/1.1.5/js/dist/index.php (added)
-
tags/1.1.5/js/dist/lz-string.js (added)
-
tags/1.1.5/js/dist/lz-string.min.js (added)
-
tags/1.1.5/js/dist/math.min.js (added)
-
tags/1.1.5/js/dist/minify.json.js (added)
-
tags/1.1.5/js/dist/minify.json.min.js (added)
-
tags/1.1.5/js/dist/mousetrap.min.js (added)
-
tags/1.1.5/js/dist/simple-statistics.min.js (added)
-
tags/1.1.5/js/dist/video.min.js (added)
-
tags/1.1.5/js/dist/videojs-vimeo.umd.min.js (added)
-
tags/1.1.5/js/iaPresenter_loader.js (added)
-
tags/1.1.5/js/iaPresenter_loader.min.js (added)
-
tags/1.1.5/js/iamg-block.js (added)
-
tags/1.1.5/js/iamg-block.min.js (added)
-
tags/1.1.5/js/iamg_helper.js (added)
-
tags/1.1.5/js/iamg_helper.min.js (added)
-
tags/1.1.5/js/index.php (added)
-
tags/1.1.5/js/media_upload.js (added)
-
tags/1.1.5/js/media_upload.min.js (added)
-
tags/1.1.5/js/parent_style_setter.js (added)
-
tags/1.1.5/js/parent_style_setter.min.js (added)
-
tags/1.1.5/js/presentation_expander.js (added)
-
tags/1.1.5/js/presentation_expander.min.js (added)
-
tags/1.1.5/js/presentation_full.js (added)
-
tags/1.1.5/js/presentation_full.min.js (added)
-
tags/1.1.5/languages (added)
-
tags/1.1.5/languages/index.php (added)
-
tags/1.1.5/license.txt (copied) (copied from ia-magic-galleries/trunk/license.txt)
-
tags/1.1.5/resources (added)
-
tags/1.1.5/resources/index.php (added)
-
tags/1.1.5/resources/loading.gif (added)
-
tags/1.1.5/src (added)
-
tags/1.1.5/src/IAMG (added)
-
tags/1.1.5/src/IAMG/IAMG_AdminNotice.php (added)
-
tags/1.1.5/src/IAMG/IAMG_AppSettingsBuilder.php (added)
-
tags/1.1.5/src/IAMG/IAMG_Client.php (added)
-
tags/1.1.5/src/IAMG/IAMG_ImageHandler.php (added)
-
tags/1.1.5/src/IAMG/IAMG_Nonce.php (added)
-
tags/1.1.5/src/IAMG/index.php (added)
-
tags/1.1.5/src/autoload.php (added)
-
tags/1.1.5/src/index.php (added)
-
tags/1.1.5/templates (added)
-
tags/1.1.5/templates/index.php (added)
-
tags/1.1.5/templates/post.php (added)
-
trunk/IAMagic-galleries.php (modified) (2 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/css/ia_general.min.css (modified) (1 diff)
-
trunk/css/ia_presenter_admin.css (modified) (1 diff)
-
trunk/css/ia_presenter_admin.min.css (modified) (1 diff)
-
trunk/css/ia_presenter_general.css (modified) (1 diff)
-
trunk/includes/IAMG_App_Loader.php (modified) (4 diffs)
-
trunk/includes/IAMG_ComDispatcher.php (modified) (4 diffs)
-
trunk/includes/IAMG_posttype.php (modified) (2 diffs)
-
trunk/js/boot_iamg.min.js (modified) (1 diff)
-
trunk/js/boot_iamg_cache.min.js (modified) (1 diff)
-
trunk/js/boot_iamg_post_admin.min.js (modified) (1 diff)
-
trunk/js/iaPresenter_loader.js (modified) (2 diffs)
-
trunk/js/iaPresenter_loader.min.js (modified) (1 diff)
-
trunk/js/iamg-block.js (modified) (15 diffs)
-
trunk/js/iamg-block.min.js (modified) (1 diff)
-
trunk/js/iamg_helper.min.js (modified) (1 diff)
-
trunk/js/media_upload.js (modified) (1 diff)
-
trunk/js/media_upload.min.js (modified) (1 diff)
-
trunk/js/parent_style_setter.min.js (modified) (1 diff)
-
trunk/js/presentation_expander.min.js (modified) (1 diff)
-
trunk/js/presentation_full.min.js (modified) (1 diff)
-
trunk/src/IAMG/IAMG_Client.php (modified) (1 diff)
-
trunk/src/IAMG/IAMG_ImageHandler.php (modified) (3 diffs)
-
trunk/templates/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ia-magic-galleries/tags/1.1.5/IAMagic-galleries.php
r3107697 r3122253 9 9 Plugin URI: https://iaesth.ca/wp/ 10 10 Description: The plugin facilitates the integration of the IA Magic Galleries system into the WordPress environment. 11 Version: 1.1. 411 Version: 1.1.5 12 12 Author: Information Aesthetics 13 13 Author URI: https://iaesth.ca … … 47 47 48 48 49 define("IAMG_VERSION", '1.1. 4');49 define("IAMG_VERSION", '1.1.5'); 50 50 define("IAMG_API_URL", "https://iaesth.ca/apps/IAMG/com"); 51 51 define("IAMG_API_URL_BACKUP", "https://infoaesthetics.ca/apps/IAMG/com"); -
ia-magic-galleries/tags/1.1.5/README.txt
r3109365 r3122253 3 3 Tags: gallery, photo gallery, responsive gallery, WordPress gallery plugin, albums, media gallery, video gallery, lightbox, dynamic galleries, interactive galleries, slideshows, carousels 4 4 Requires at least: 5.8 5 Tested up to: 6. 56 Stable tag: 1.1. 45 Tested up to: 6.6 6 Stable tag: 1.1.5 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 44 44 **IA Magic Galleries**<br> 45 45 *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> 46 47 *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> 47 48 *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> 48 49 *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> 49 51 *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> 50 52 <br> … … 72 74 73 75 == 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. 74 80 = 1.1.4 = 75 81 - Optimization: -
ia-magic-galleries/trunk/IAMagic-galleries.php
r3098209 r3122253 9 9 Plugin URI: https://iaesth.ca/wp/ 10 10 Description: The plugin facilitates the integration of the IA Magic Galleries system into the WordPress environment. 11 Version: 1.1. 411 Version: 1.1.5 12 12 Author: Information Aesthetics 13 13 Author URI: https://iaesth.ca … … 47 47 48 48 49 define("IAMG_VERSION", '1.1. 4');49 define("IAMG_VERSION", '1.1.5'); 50 50 define("IAMG_API_URL", "https://iaesth.ca/apps/IAMG/com"); 51 51 define("IAMG_API_URL_BACKUP", "https://infoaesthetics.ca/apps/IAMG/com"); -
ia-magic-galleries/trunk/README.txt
r3109365 r3122253 3 3 Tags: gallery, photo gallery, responsive gallery, WordPress gallery plugin, albums, media gallery, video gallery, lightbox, dynamic galleries, interactive galleries, slideshows, carousels 4 4 Requires at least: 5.8 5 Tested up to: 6. 56 Stable tag: 1.1. 45 Tested up to: 6.6 6 Stable tag: 1.1.5 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 44 44 **IA Magic Galleries**<br> 45 45 *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> 46 47 *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> 47 48 *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> 48 49 *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> 49 51 *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> 50 52 <br> … … 72 74 73 75 == 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. 74 80 = 1.1.4 = 75 81 - 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 18 18 width: 50%; 19 19 } 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 } 21 28 /* devanagari */ 22 29 @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 223 223 /*pointer*/ 224 224 225 .IA_Designer_ pointer_ignore {225 .IA_Designer_Pointer_Ignore { 226 226 pointer-events: none !important; 227 227 } 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 } 229 280 230 281 /*//cursors//*/ -
ia-magic-galleries/trunk/includes/IAMG_App_Loader.php
r3107668 r3122253 28 28 29 29 30 use IAMG\IAMG_AdminNotice;30 //use IAMG\IAMG_AdminNotice; 31 31 use IAMG\IAMG_AppSettingsBuilder; 32 32 use IAMG\IAMG_Client; … … 257 257 ); 258 258 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 } 259 266 260 267 $a = shortcode_atts(array( … … 267 274 'max_width' => null, 268 275 'resize_time' => null, 269 'background_color' => "#FFFFFF",270 'background_opacity' => 0276 'background_color' => $color, 277 'background_opacity' => 1 271 278 ), $atts); 272 279 … … 298 305 // print_r("Style" . $style_css); 299 306 300 $max_width = $a['max_width'] || $a['max-width']; 307 $max_width = !empty($a['max_width']) ? $a['max_width'] : $a['max-width']; 308 301 309 switch ($behavior) { 302 310 case 'full': -
ia-magic-galleries/trunk/includes/IAMG_ComDispatcher.php
r3098209 r3122253 49 49 add_action('wp_ajax_iamg_com', [$this, 'dispatcher']); 50 50 51 51 if (defined('IAMG_DEBUG_SKIP_SECURITY') && IAMG_DEBUG_SKIP_SECURITY) { 52 add_action('wp_ajax_nopriv_iamg_com', [$this, 'dispatcher']); 53 } 52 54 53 55 //Loading the IA Presenter app in secure format, this is processed by iaPresenter_loader.js … … 421 423 } 422 424 425 $links = $this->_get_param("links"); 426 427 if ($links && !is_array($links)) { 428 return ['error' => 'Invalid Links']; 429 } 430 423 431 $imageHandler = new IAMG_ImageHandler("all"); 424 432 425 $image_info = $imageHandler->get_for_gallery($images );433 $image_info = $imageHandler->get_for_gallery($images, $links); 426 434 427 435 $settings["type"] = $type; … … 514 522 private function _verify_nonce($actions) 515 523 { 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 516 529 $nonce = sanitize_text_field(wp_unslash($this->_get_param('_iamgnonce'))); 517 530 … … 591 604 private function is_allowed(): bool 592 605 { 606 if (defined('IAMG_DEBUG_SKIP_SECURITY') && IAMG_DEBUG_SKIP_SECURITY) { 607 return true; 608 } 609 593 610 return is_admin() && is_user_logged_in() && current_user_can('edit_posts'); 594 611 } -
ia-magic-galleries/trunk/includes/IAMG_posttype.php
r3107668 r3122253 557 557 558 558 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 above564 '></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 escaped570 '></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 } 574 574 575 575 } … … 687 687 public function include_clipboard_script() 688 688 { 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 ?> 690 698 <script> 691 699 jQuery(function ($) { 692 700 $('.iamg-shortcode').on('click', function () { 693 701 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 697 720 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 699 726 $('.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>'); 703 729 } catch (err) { 704 730 console.log('Oops, unable to copy!'); -
ia-magic-galleries/trunk/js/boot_iamg.min.js
r3107668 r3122253 1 /*! ia-designer 25-06-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This 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-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This 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-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This work is licensed under the GPL2, V2/ license.*/ -
ia-magic-galleries/trunk/js/iaPresenter_loader.js
r3098209 r3122253 156 156 157 157 function load_from_settings(settings) { 158 158 159 settings = (typeof settings === 'object') ? settings : 159 160 JSON.parse(JSON.minify(settings)); … … 431 432 } 432 433 433 let $pk = /**PK*/"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA mwao9fwKR/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*/; 434 435 435 436 async function load_secure_scripts(scripts, defer) { -
ia-magic-galleries/trunk/js/iaPresenter_loader.min.js
r3107668 r3122253 1 /*! ia-designer 25-06-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This work is licensed under the GPL2, V2/ license.*/ 4 4 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="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA mwao9fwKR/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);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="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 53 53 block_id: {type: 'string'}, 54 54 behavior: {type: 'string', default: 'fixed'}, 55 height: {type: ' number', default: 100},55 height: {type: 'string', default: "100"}, 56 56 height_percent: {type: 'boolean', default: true}, 57 width: {type: 'string', default: "0"}, 58 width_percent: {type: 'boolean', default: true}, 57 59 properties: {type: 'string', default: ""}, 58 60 background_color: {type: 'string', default: "#fff"}, 59 background_opacity: {type: ' number', default: 0}61 background_opacity: {type: 'string', default: "0"} 60 62 }, 61 63 usesContext: ['postId'], … … 137 139 138 140 //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) { 141 143 height = height + "vh"; 142 144 } … … 156 158 } 157 159 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 } 159 168 const html = el('div', 160 169 { … … 165 174 '', 166 175 'behavior': 'fixed', 167 style: {height: height}176 style: style 168 177 }, 169 178 … … 186 195 if (props.attributes.pres_id) { 187 196 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); 201 213 202 214 return element; … … 426 438 last_fixed_settings["height"] = props.attributes.height; 427 439 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; 428 442 props.setAttributes({ 429 443 behavior: "full", 430 444 height: 100, 431 height_percent: true 445 height_percent: true, 432 446 }) 433 447 } … … 437 451 height: last_fixed_settings.height, 438 452 height_percent: last_fixed_settings.height_percent, 453 width: last_fixed_settings.width, 454 width_percent: last_fixed_settings.width_percent, 439 455 behavior: "fixed" 440 456 }) … … 676 692 const is_full = props.attributes.behavior !== "fixed" 677 693 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) ? 680 696 el(wp.components.Button, 681 697 { … … 684 700 props.setAttributes({height_percent: false}); 685 701 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)}); 688 705 689 706 // const to_percent = 100 * props.attributes.height / (window.innerHeight - admin_bar_height); … … 703 720 // props.setAttributes({height: to_pixel}); 704 721 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)}); 707 725 708 726 }, … … 710 728 }, 711 729 "Px"); 730 712 731 let panel_height = (is_full) ? undefined 713 732 : el(wp.components.PanelBody, … … 718 737 el(wp.components.PanelRow, {}, 719 738 720 el("div", { },739 el("div", {class: "IAMG_Layout_FlexRow"}, 721 740 el(wp.components.TextControl, 722 741 { … … 724 743 type: 'number', 725 744 onChange: (value) => { 726 props.setAttributes({height: value})745 props.setAttributes({height: String(value)}) 727 746 }, 728 747 value: props.attributes.height || "", 729 class: "IAMG_Layout_ HalfWidth"748 class: "IAMG_Layout_ButtHeight" 730 749 } 731 750 ), 732 751 // el("div", {}, 733 percent_or_px_button ,752 percent_or_px_button_h, 734 753 // el("text", {}, 735 754 // (is_percent) ? … … 744 763 // ) 745 764 ); 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 746 823 let panel_layout = el(wp.components.PanelBody, { 747 824 title: __('Layout'), … … 817 894 is_full_allowed() ? panel_layout : null, 818 895 panel_height, 896 panel_width, 819 897 color_panel, 820 898 ) -
ia-magic-galleries/trunk/js/iamg-block.min.js
r3107668 r3122253 1 /*! ia-designer 25-06-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This work is licensed under the GPL2, V2/ license.*/ 4 4 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-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This work is licensed under the GPL2, V2/ license.*/ -
ia-magic-galleries/trunk/js/media_upload.js
r3098209 r3122253 19 19 let frame = wp.media({ 20 20 title: title, 21 button: {22 text: button23 },21 // button: { 22 // text: button 23 // }, 24 24 multiple: true, // Set to true to allow multiple files to be selected 25 25 library: { -
ia-magic-galleries/trunk/js/media_upload.min.js
r3107668 r3122253 1 /*! ia-designer 25-06-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This work is licensed under the GPL2, V2/ license.*/ 4 4 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()});5 window.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-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This work is licensed under the GPL2, V2/ license.*/ -
ia-magic-galleries/trunk/js/presentation_expander.min.js
r3107668 r3122253 1 /*! ia-designer 25-06-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This work is licensed under the GPL2, V2/ license.*/ -
ia-magic-galleries/trunk/js/presentation_full.min.js
r3107668 r3122253 1 /*! ia-designer 25-06-20241 /*! ia-designer 19-07-2024 2 2 Copyright © 2023 Information Aesthetics. All rights reserved. 3 3 This work is licensed under the GPL2, V2/ license.*/ -
ia-magic-galleries/trunk/src/IAMG/IAMG_Client.php
r3107668 r3122253 294 294 true, true); 295 295 296 296 297 set_transient(IAMG_SLUG . "_called_update_app_script", $results); 297 298 -
ia-magic-galleries/trunk/src/IAMG/IAMG_ImageHandler.php
r3098209 r3122253 51 51 * ]; 52 52 */ 53 public function get_for_gallery($ids = null )53 public function get_for_gallery($ids = null, $links = null) 54 54 { 55 55 $map = []; … … 71 71 } 72 72 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; 74 81 } 75 82 } … … 395 402 ]; 396 403 397 if (!$sizes ) {404 if (!$sizes && isset($meta['sizes'])) { 398 405 // get sizes from teh keys of meta['sizes'] 399 406 $sizes = array_keys($meta['sizes']); 400 } 401 407 } else { 408 $sizes = ['medium', 'large', 'thumbnail']; 409 } 402 410 foreach ($sizes as $size) { 403 411 if (isset($meta['sizes'][$size])) { -
ia-magic-galleries/trunk/templates/post.php
r3098209 r3122253 42 42 > 43 43 <div id="page"> 44 45 44 </div> 46 45 <?php 47 //the_content(); 46 48 47 IAMG_posttype::render_post(); 49 48 //echo wp_kses(IAMG_posttype::render_post(), IAMG_posttype::$allowed_html);
Note: See TracChangeset
for help on using the changeset viewer.