Plugin Directory

Changeset 2785863


Ignore:
Timestamp:
09/16/2022 10:21:31 AM (3 years ago)
Author:
publisherstoolbox
Message:

Version 1.2.2

Location:
bibliodam-connect/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bibliodam-connect/trunk/admin/ptxDcPluginAdmin.php

    r2753046 r2785863  
    466466            foreach ($damPostData['media'] as $media) {
    467467                if (($media['@type'] === 'Video') && isset($media['url'])) {
    468                     $mediaHtml .= '<p>[imigino_video url="' . $media['url'] . '"]</p>';
     468                    $mediaHtml .= '<p>[imigino_video url="' . $media['url'] . '" title="' . $damPostData['headline'] . '"]</p>';
    469469                }
    470470            }
  • bibliodam-connect/trunk/bibliodam-connect.php

    r2753046 r2785863  
    1111     * Plugin URI: https://wordpress.org/plugins/bibliodam-connect/
    1212     * Description: BiblioDAM Connect allows seamless integration of BiblioDAM media onto your WordPress website(s).
    13      * Version: 1.2.1
     13     * Version: 1.2.2
    1414     * Author: Publishers Toolbox
    1515     * Author URI: https://www.publisherstoolbox.com/bibliodam/
     
    3636     * Rename this for your plugin and update it as you release new versions.
    3737     */
    38     define('PTX_BIBLIODAM_CONNECT_VERSION', '1.2.1');
     38    define('PTX_BIBLIODAM_CONNECT_VERSION', '1.2.2');
    3939   
    4040    /**
  • bibliodam-connect/trunk/build/index.min.js

    r2748926 r2785863  
    3131      !*** ./src/index.js ***!
    3232      \**********************/
    33 /*! no exports provided */function(e,t,r){"use strict";r.r(t);var n=r(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js"),a=r.n(n),o=r(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js"),l=r.n(o),i=r(/*! @wordpress/element */"@wordpress/element"),c=r(/*! @wordpress/i18n */"@wordpress/i18n"),s=r(/*! @wordpress/blocks */"@wordpress/blocks"),u=r(/*! @wordpress/block-editor */"@wordpress/block-editor"),b=r(/*! @wordpress/components */"@wordpress/components");function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){l()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p="BiblioDAM Connect",f="bibliodam-connect",g=Object(i.createElement)("svg",{width:"16.403",height:"19.996",viewBox:"0 0 16.403 19.996",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{id:"Path_8303","data-name":"Path 8303",d:"M3.281,12.029H2.656a.207.207,0,0,1-.234-.234V8.436A.207.207,0,0,1,2.656,8.2H5.936c1.953,0,2.968.625,2.968,1.875a1.6,1.6,0,0,1-.7,1.562,4.117,4.117,0,0,1-1.172.391c-.234,0-.547.078-.859.078H3.281ZM2.421,2.5a.207.207,0,0,1,.234-.234H5.468a3.268,3.268,0,0,1,1.953.469,1.772,1.772,0,0,1,.625,1.484V4.3c0,1.172-.859,1.718-2.578,1.718H2.656a.207.207,0,0,1-.234-.234V2.5ZM14.372,6.171h0a1.074,1.074,0,0,0-1.64.078l-.156.156a1.073,1.073,0,0,0,.078,1.406,6.488,6.488,0,0,1,1.328,4.218,5.459,5.459,0,0,1-1.406,4.062A5.388,5.388,0,0,1,8.592,17.5H5.233a.43.43,0,0,1-.391-.234l-1.8-2.968H6.639a5.455,5.455,0,0,0,3.046-.781c.234-.156.469-.391.7-.547A3.778,3.778,0,0,0,11.4,10.31a3.205,3.205,0,0,0-.781-2.265,4.653,4.653,0,0,0-1.64-1.094.163.163,0,0,1,0-.312h0a.077.077,0,0,0,.078-.078c.078-.078.234-.156.547-.391A2.806,2.806,0,0,0,10.623,4.3V3.671a3.419,3.419,0,0,0-1.015-2.5A3.331,3.331,0,0,0,8.045.234,11.32,11.32,0,0,0,5.546,0H.625A.672.672,0,0,0,0,.625V13.747a2.08,2.08,0,0,0,.234.937l2.89,4.608a1.407,1.407,0,0,0,1.25.7H8.28c2.734,0,4.765-.7,6.093-2.187A8.209,8.209,0,0,0,16.4,11.951a7.81,7.81,0,0,0-2.031-5.78",fill:"#223e77"}));Object(s.registerBlockType)("bibliodam-connect/bc-block",{title:Object(c.__)(p,f),description:Object(c.__)("Integration of BiblioDAM media onto your WordPress website.",f),icon:{src:g},category:"layout",keywords:[Object(c.__)("Dam",f),Object(c.__)("Picker",f),Object(c.__)("Media",f),Object(c.__)("Video",f),Object(c.__)("Image",f)],attributes:{mediaArray:{type:"array",default:[]},content:{type:"string",source:"html",selector:".shortcode_body"},button:{type:"string",source:"text"},alignment:{type:"string",default:"none"}},edit:function(e){var t,r=e.className,n=e.attributes,o=n.mediaArray,l=n.alignment,c=e.setAttributes,s=function t(r){if(r.data){var n=JSON.parse(r.data);switch(n.request){case"config":damLauncher.handleConfigRequest();break;case"baobabCP":damLauncher.handleBaobabAuthRequest();break;case"selected":case"selected2":var o=n.items.filter((function(e){return"ExistingImage"===e["@type"]||"Video"===e["@type"]}));damLauncher.cl.close(),l=o,c(m(m({},e.attributes),{},{mediaArray:a()(l)})),window.removeEventListener("message",t,!0)}}var l},d=function(){damLauncher.popupWithUrl("".concat(damLauncher.cfg.domain).concat(damLauncher.cfg.searchFrag)),window.addEventListener("message",s,!0)},f=function(e){c({content:e})},h=function(t){e.setAttributes({alignment:void 0===t?"none":t})};return o.length>0?Object(i.createElement)("div",{className:r,align:l},0===(t=o).length?null:"ExistingImage"===t[0]["@type"]?Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(u.BlockAlignmentToolbar,{value:l,onChange:h}),Object(i.createElement)(b.Toolbar,null,Object(i.createElement)(b.Button,{onClick:d,title:p,label:"Replace",value:"Replace",className:"replace_dam"},"Replace Video"))):Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(b.Toolbar,null,Object(i.createElement)(b.Button,{onClick:d,title:p,label:"Replace",value:"Replace",className:"replace_dam"},"Replace Video"))),function(e){return 0===e.length?null:e.map((function(e){switch(e["@type"]){case"ExistingImage":return Object(i.createElement)("figure",{className:"align ".concat(l," wp-block-image size-large")},Object(i.createElement)("img",{src:e.imageURL,alt:e.articleMetadata.titleName,width:e.width,height:e.height}));case"Video":return Object(i.createElement)(u.PlainText,{tagName:"div",style:{height:100,fontSize:14,padding:10},className:r,onChange:f,value:'[imigino_video url="'.concat(e.url,'"]')});default:return null}}))}(o)):Object(i.createElement)("div",{className:r},Object(i.createElement)("div",{className:"components-placeholder block-editor-media-placeholder wp-block-image is-large"},Object(i.createElement)("div",{className:"components-placeholder__label"},Object(i.createElement)("span",{className:"block-editor-block-icon"},g),"Media Select"),Object(i.createElement)("div",{className:"components-placeholder__instructions"},"Select an image or video, pick one from the media library, or search for one."),Object(i.createElement)(b.Button,{className:"button button-large",label:"Change BiblioDam Media",onClick:d},"Select BiblioDAM Media")))},save:function(e){e.className;var t,r=e.attributes,n=r.mediaArray,a=r.alignment;return Object(i.createElement)("div",{className:"media"},0===(t=n).length?null:t.map((function(e){switch(e["@type"]){case"ExistingImage":return Object(i.createElement)("figure",{className:"align ".concat(a," wp-block-image size-large")},Object(i.createElement)("img",{src:e.imageURL,alt:e.articleMetadata.titleName}));case"Video":return'[imigino_video url="'.concat(e.url,'"]');default:return null}})))}})},"@wordpress/block-editor":
     33/*! no exports provided */function(e,t,r){"use strict";r.r(t);var n=r(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js"),a=r.n(n),o=r(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js"),l=r.n(o),i=r(/*! @wordpress/element */"@wordpress/element"),c=r(/*! @wordpress/i18n */"@wordpress/i18n"),s=r(/*! @wordpress/blocks */"@wordpress/blocks"),u=r(/*! @wordpress/block-editor */"@wordpress/block-editor"),b=r(/*! @wordpress/components */"@wordpress/components");function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){l()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p="BiblioDAM Connect",f="bibliodam-connect",g=Object(i.createElement)("svg",{width:"16.403",height:"19.996",viewBox:"0 0 16.403 19.996",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{id:"Path_8303","data-name":"Path 8303",d:"M3.281,12.029H2.656a.207.207,0,0,1-.234-.234V8.436A.207.207,0,0,1,2.656,8.2H5.936c1.953,0,2.968.625,2.968,1.875a1.6,1.6,0,0,1-.7,1.562,4.117,4.117,0,0,1-1.172.391c-.234,0-.547.078-.859.078H3.281ZM2.421,2.5a.207.207,0,0,1,.234-.234H5.468a3.268,3.268,0,0,1,1.953.469,1.772,1.772,0,0,1,.625,1.484V4.3c0,1.172-.859,1.718-2.578,1.718H2.656a.207.207,0,0,1-.234-.234V2.5ZM14.372,6.171h0a1.074,1.074,0,0,0-1.64.078l-.156.156a1.073,1.073,0,0,0,.078,1.406,6.488,6.488,0,0,1,1.328,4.218,5.459,5.459,0,0,1-1.406,4.062A5.388,5.388,0,0,1,8.592,17.5H5.233a.43.43,0,0,1-.391-.234l-1.8-2.968H6.639a5.455,5.455,0,0,0,3.046-.781c.234-.156.469-.391.7-.547A3.778,3.778,0,0,0,11.4,10.31a3.205,3.205,0,0,0-.781-2.265,4.653,4.653,0,0,0-1.64-1.094.163.163,0,0,1,0-.312h0a.077.077,0,0,0,.078-.078c.078-.078.234-.156.547-.391A2.806,2.806,0,0,0,10.623,4.3V3.671a3.419,3.419,0,0,0-1.015-2.5A3.331,3.331,0,0,0,8.045.234,11.32,11.32,0,0,0,5.546,0H.625A.672.672,0,0,0,0,.625V13.747a2.08,2.08,0,0,0,.234.937l2.89,4.608a1.407,1.407,0,0,0,1.25.7H8.28c2.734,0,4.765-.7,6.093-2.187A8.209,8.209,0,0,0,16.4,11.951a7.81,7.81,0,0,0-2.031-5.78",fill:"#223e77"}));Object(s.registerBlockType)("bibliodam-connect/bc-block",{title:Object(c.__)(p,f),description:Object(c.__)("Integration of BiblioDAM media onto your WordPress website.",f),icon:{src:g},category:"layout",keywords:[Object(c.__)("Dam",f),Object(c.__)("Picker",f),Object(c.__)("Media",f),Object(c.__)("Video",f),Object(c.__)("Image",f)],attributes:{mediaArray:{type:"array",default:[]},content:{type:"string",source:"html",selector:".shortcode_body"},button:{type:"string",source:"text"},alignment:{type:"string",default:"none"}},edit:function(e){var t,r=e.className,n=e.attributes,o=n.mediaArray,l=n.alignment,c=e.setAttributes,s=function t(r){if(r.data){var n=JSON.parse(r.data);switch(n.request){case"config":damLauncher.handleConfigRequest();break;case"baobabCP":damLauncher.handleBaobabAuthRequest();break;case"selected":case"selected2":var o=n.items.filter((function(e){return"ExistingImage"===e["@type"]||"Video"===e["@type"]}));damLauncher.cl.close(),l=o,c(m(m({},e.attributes),{},{mediaArray:a()(l)})),window.removeEventListener("message",t,!0)}}var l},d=function(){damLauncher.popupWithUrl("".concat(damLauncher.cfg.domain).concat(damLauncher.cfg.searchFrag)),window.addEventListener("message",s,!0)},f=function(e){c({content:e})},h=function(t){e.setAttributes({alignment:void 0===t?"none":t})};return o.length>0?Object(i.createElement)("div",{className:r,align:l},0===(t=o).length?null:"ExistingImage"===t[0]["@type"]?Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(u.BlockAlignmentToolbar,{value:l,onChange:h}),Object(i.createElement)(b.Toolbar,null,Object(i.createElement)(b.Button,{onClick:d,title:p,label:"Replace",value:"Replace",className:"replace_dam"},"Replace Video"))):Object(i.createElement)(u.BlockControls,null,Object(i.createElement)(b.Toolbar,null,Object(i.createElement)(b.Button,{onClick:d,title:p,label:"Replace",value:"Replace",className:"replace_dam"},"Replace Video"))),function(e){return 0===e.length?null:e.map((function(e){switch(e["@type"]){case"ExistingImage":return Object(i.createElement)("figure",{className:"align ".concat(l," wp-block-image size-large")},Object(i.createElement)("img",{src:e.imageURL,alt:e.articleMetadata.titleName,width:e.width,height:e.height}));case"Video":return Object(i.createElement)(u.PlainText,{tagName:"div",style:{height:100,fontSize:14,padding:10},className:r,onChange:f,value:'[imigino_video url="'+e.url+'" title="'+e.usage.Headline+'"]'});default:return null}}))}(o)):Object(i.createElement)("div",{className:r},Object(i.createElement)("div",{className:"components-placeholder block-editor-media-placeholder wp-block-image is-large"},Object(i.createElement)("div",{className:"components-placeholder__label"},Object(i.createElement)("span",{className:"block-editor-block-icon"},g),"Media Select"),Object(i.createElement)("div",{className:"components-placeholder__instructions"},"Select an image or video, pick one from the media library, or search for one."),Object(i.createElement)(b.Button,{className:"button button-large",label:"Change BiblioDam Media",onClick:d},"Select BiblioDAM Media")))},save:function(e){e.className;var t,r=e.attributes,n=r.mediaArray,a=r.alignment;return Object(i.createElement)("div",{className:"media"},0===(t=n).length?null:t.map((function(e){switch(e["@type"]){case"ExistingImage":return Object(i.createElement)("figure",{className:"align ".concat(a," wp-block-image size-large")},Object(i.createElement)("img",{src:e.imageURL,alt:e.articleMetadata.titleName}));case"Video":return'[imigino_video url="'+e.url+'" title="'+e.usage.Headline+'"]';default:return null}})))}})},"@wordpress/block-editor":
    3434/*!**********************************************!*\
    3535      !*** external {"this":["wp","blockEditor"]} ***!
  • bibliodam-connect/trunk/readme.txt

    r2753046 r2785863  
    33Tags: publishers, websuite, bibliodam, video, bibliodam
    44Requires at least: 4.9
    5 Tested up to: 6.0
     5Tested up to: 6.0.2
    66Requires PHP: 7.4
    77Stable tag: trunk
    8 Version: 1.2.1
     8Version: 1.2.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 1.2.2 =
     54* Add title parameter to videos.
     55
    5356= 1.2.1 =
    5457* Add contentBase parameter to fix `Cannot get titles` error.
Note: See TracChangeset for help on using the changeset viewer.