Plugin Directory

Changeset 997748


Ignore:
Timestamp:
09/27/2014 07:17:32 PM (12 years ago)
Author:
loumray
Message:

updated readme to fix installation section. Added screenshots. Added attachment display setting for remote images

Location:
remote-medias-lite/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • remote-medias-lite/trunk/assets/js/media-remote-ext.js

    r997433 r997748  
    303303        this.uploader.hide();
    304304        this.views.add( this.uploader );
     305    },
     306    createSingle: function () {
     307        var sidebar = this.sidebar,
     308            single = this.options.selection.single(),
     309            type = single.get('type'),
     310            remotetype = single.get('remotetype');
     311
     312        if (type !== 'remote') {
     313            return wp.media.view.AttachmentsBrowser.prototype.createSingle.apply( this, arguments );
     314        }
     315        //Set type from remote type to display same attachment display settings than native supported type
     316
     317        if (remotetype === 'image') {
     318            single.set('type', remotetype);
     319            wp.media.view.AttachmentsBrowser.prototype.createSingle.apply( this, arguments );
     320            single.set('type', 'remote');
     321        }
     322       
     323        wp.media.view.AttachmentsBrowser.prototype.createSingle.apply( this, arguments );
     324       
     325        // Show the sidebar on mobile
     326        if ( this.model.id === 'remote-library-'+this.model.get('sectionid') ) {
     327            sidebar.$el.addClass( 'visible' );
     328        }
    305329    }
    306330});
  • remote-medias-lite/trunk/assets/js/media-remote-ext.min.js

    r997433 r997748  
    1 !function(){oldSendAttachment=wp.media.editor.send.attachment,wp.media.editor.send.attachment=function(a,b){if("remote"!==b.type)return oldSendAttachment(a,b);{var c;b.caption}return wp.media.view.settings.captions||delete b.caption,a=wp.media.string.props(a,b),c={id:b.id,title:b.title,type:b.type,subtype:b.subtype,remotetype:b.remotetype,accountId:b.accountId||0,remotedata:b.remotedata||[]},a.linkUrl&&(c.url=a.linkUrl),"image"===b.remotetype&&(_.each({align:"align",size:"image-size",alt:"image_alt"},function(b,d){a[d]&&(c[b]=a[d])}),c.width=b.width||0,c.height=b.height||0,c.imgurl=b.url||c.url),wp.media.post("send-remote-attachment-to-editor",{nonce:rmlSendToEditorParams.nonce,attachment:c,post_id:wp.media.view.settings.post.id})},wp.media.view.RemoteUploaderInline=wp.media.View.extend({tagName:"div",className:"remote-uploader",template:wp.media.template("remote-media-upload"),events:{input:"refresh",keyup:"refresh",change:"refresh"},initialize:function(){_.defaults(this.options,{message:"",status:!0});var a=this.controller.state(),b=a.get("uploadTemplate");b&&(this.template=wp.media.template(b))},render:function(){return wp.media.View.prototype.render.apply(this,arguments),this.refresh(),this},refresh:function(){},hide:function(){this.$el.addClass("hidden")}}),wp.media.remotequery=function(a){return new wp.media.model.RemoteAttachments(null,{props:_.extend(_.defaults(a||{},{orderby:"date"}),{query:!0})})},wp.media.model.RemoteAttachments=wp.media.model.Attachments.extend({initialize:function(){wp.media.model.Attachments.prototype.initialize.apply(this,arguments)},_requery:function(){this.props.get("query")&&this.mirror(wp.media.model.RemoteQuery.get(this.props.toJSON()))}}),wp.media.model.RemoteQuery=wp.media.model.Query.extend({initialize:function(){wp.media.model.Query.prototype.initialize.apply(this,arguments)},sync:function(a,b,c){var d;return"read"===a?(c=c||{},c.context=this,c.data=_.extend(c.data||{},{action:"query-remote-attachments",post_id:wp.media.model.settings.post.id,security:rmlQueryAttachmentsParams.nonce}),args=_.clone(this.args),-1!==args.posts_per_page&&(args.paged=Math.floor(this.length/args.posts_per_page)+1),c.data.query=args,wp.media.ajax(c)):(d=wp.media.model.Attachments.prototype.sync?wp.media.model.Attachments.prototype:Backbone,d.sync.apply(this,arguments))}},{get:function(){var a=[];return function(b,c){var d,e={},f=wp.media.model.RemoteQuery.orderby,g=wp.media.model.RemoteQuery.defaultProps;return delete b.query,_.defaults(b,g),b.order=b.order.toUpperCase(),"DESC"!==b.order&&"ASC"!==b.order&&(b.order=g.order.toUpperCase()),_.contains(f.allowed,b.orderby)||(b.orderby=g.orderby),_.each(b,function(a,b){_.isNull(a)||(e[wp.media.model.RemoteQuery.propmap[b]||b]=a)}),_.defaults(e,wp.media.model.RemoteQuery.defaultArgs),e.orderby=f.valuemap[b.orderby]||b.orderby,d=_.find(a,function(a){return _.isEqual(a.args,e)}),d||(d=new wp.media.model.RemoteQuery([],_.extend(c||{},{props:b,args:e})),a.push(d)),d}}()}),wp.media.controller.RemoteLibrary=wp.media.controller.Library.extend({defaults:{id:"remote-library",multiple:"add",describe:!1,toolbar:"select",sidebar:"settings",content:"upload",router:"browse",menu:"default",remote:!0,searchable:!0,filterable:!1,sortable:!0,contentUserSetting:!0,syncSelection:!0}});var a=wp.media.view.MediaFrame.Post;wp.media.view.MediaFrame.Post=a.extend({initialize:function(){a.prototype.initialize.apply(this,arguments)},createStates:function(){a.prototype.createStates.apply(this,arguments);var b=this.options,c=this;_.each(wp.media.view.settings.remoteMediaAccounts,function(a){c.states.add([new wp.media.controller.RemoteLibrary({id:"remote-library-"+a.id,sectionid:a.id,title:a.title,service:a.type,priority:30,toolbar:"main-remote",uploadTemplate:_.isUndefined(wp.media.view.settings.remoteServiceSettings[a.type])?null:wp.media.view.settings.remoteServiceSettings[a.type].uploadTemplate,filterable:"uploaded",library:wp.media.remotequery(_.defaults({type:"remote",account_id:a.id},b.library)),state:"remote-library-"+a.id,editable:!0,displaySettings:!0,displayUserSettings:!0,menu:"default",AttachmentView:wp.media.view.Attachment.RemoteLibrary})])},this)},bindHandlers:function(){a.prototype.bindHandlers.apply(this,arguments),this.on("toolbar:create:main-remote",this.createToolbar,this),this.on("toolbar:render:main-remote",this.mainInsertToolbar,this)},uploadContent:function(){var a=this.state().get("sectionid");a?(this.$el.removeClass("hide-toolbar"),this.content.set(new wp.media.view.RemoteUploaderInline({controller:this,model:this.state().props}))):wp.media.view.MediaFrame.Select.prototype.uploadContent.apply(this,arguments)}}),wp.media.view.RemoteAttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createUploader:function(){this.uploader=new wp.media.view.RemoteUploaderInline({controller:this.controller,status:!1,message:this.controller.isModeActive("grid")?"":wp.media.view.l10n.noItemsFound,canClose:this.controller.isModeActive("grid")}),this.uploader.hide(),this.views.add(this.uploader)}});var b=wp.media.view.MediaFrame.Select;wp.media.view.MediaFrame.Select.prototype.browseRemoteContent=function(a){var c=this.state(),d=c.get("remote");d===!0?(this.$el.removeClass("hide-toolbar"),a.view=new wp.media.view.RemoteAttachmentsBrowser({controller:this,collection:c.get("library"),selection:c.get("selection"),model:c,sortable:c.get("sortable"),search:c.get("searchable"),filters:c.get("filterable"),display:c.get(c.has("display")?"display":"displaySettings"),dragInfo:c.get("dragInfo"),idealColumnWidth:c.get("idealColumnWidth"),suggestedWidth:c.get("suggestedWidth"),suggestedHeight:c.get("suggestedHeight"),AttachmentView:c.get("AttachmentView")})):b.prototype.browseContent.apply(this,arguments)},wp.media.view.MediaFrame.Select=b.extend({bindHandlers:function(){this.on("router:create:browse",this.createRouter,this),this.on("router:render:browse",this.browseRouter,this),this.on("content:create:browse",this.browseRemoteContent,this),this.on("content:render:upload",this.uploadContent,this),this.on("toolbar:create:select",this.createSelectToolbar,this)}}),wp.media.view.Attachment.RemoteLibrary=wp.media.view.Attachment.Library.extend({template:wp.media.template("attachment-remote"),toggleSelection:function(){wp.media.view.Attachment.Library.prototype.toggleSelection.apply(this,arguments)}}),wp.media.view.Attachment.RemoteSelection=wp.media.view.Attachment.Selection.extend({template:wp.media.template("attachment-remote")}),oldAttachmentsSelection=wp.media.view.Attachments.Selection,wp.media.view.Attachments.Selection=oldAttachmentsSelection.extend({initialize:function(){return _.defaults(this.options,{AttachmentView:wp.media.view.Attachment.RemoteSelection}),oldAttachmentsSelection.prototype.initialize.apply(this,arguments)}})}(jQuery);
     1!function(){oldSendAttachment=wp.media.editor.send.attachment,wp.media.editor.send.attachment=function(a,b){if("remote"!==b.type)return oldSendAttachment(a,b);{var c;b.caption}return wp.media.view.settings.captions||delete b.caption,a=wp.media.string.props(a,b),c={id:b.id,title:b.title,type:b.type,subtype:b.subtype,remotetype:b.remotetype,accountId:b.accountId||0,remotedata:b.remotedata||[]},a.linkUrl&&(c.url=a.linkUrl),"image"===b.remotetype&&(_.each({align:"align",size:"image-size",alt:"image_alt"},function(b,d){a[d]&&(c[b]=a[d])}),c.width=b.width||0,c.height=b.height||0,c.imgurl=b.url||c.url),wp.media.post("send-remote-attachment-to-editor",{nonce:rmlSendToEditorParams.nonce,attachment:c,post_id:wp.media.view.settings.post.id})},wp.media.view.RemoteUploaderInline=wp.media.View.extend({tagName:"div",className:"remote-uploader",template:wp.media.template("remote-media-upload"),events:{input:"refresh",keyup:"refresh",change:"refresh"},initialize:function(){_.defaults(this.options,{message:"",status:!0});var a=this.controller.state(),b=a.get("uploadTemplate");b&&(this.template=wp.media.template(b))},render:function(){return wp.media.View.prototype.render.apply(this,arguments),this.refresh(),this},refresh:function(){},hide:function(){this.$el.addClass("hidden")}}),wp.media.remotequery=function(a){return new wp.media.model.RemoteAttachments(null,{props:_.extend(_.defaults(a||{},{orderby:"date"}),{query:!0})})},wp.media.model.RemoteAttachments=wp.media.model.Attachments.extend({initialize:function(){wp.media.model.Attachments.prototype.initialize.apply(this,arguments)},_requery:function(){this.props.get("query")&&this.mirror(wp.media.model.RemoteQuery.get(this.props.toJSON()))}}),wp.media.model.RemoteQuery=wp.media.model.Query.extend({initialize:function(){wp.media.model.Query.prototype.initialize.apply(this,arguments)},sync:function(a,b,c){var d;return"read"===a?(c=c||{},c.context=this,c.data=_.extend(c.data||{},{action:"query-remote-attachments",post_id:wp.media.model.settings.post.id,security:rmlQueryAttachmentsParams.nonce}),args=_.clone(this.args),-1!==args.posts_per_page&&(args.paged=Math.floor(this.length/args.posts_per_page)+1),c.data.query=args,wp.media.ajax(c)):(d=wp.media.model.Attachments.prototype.sync?wp.media.model.Attachments.prototype:Backbone,d.sync.apply(this,arguments))}},{get:function(){var a=[];return function(b,c){var d,e={},f=wp.media.model.RemoteQuery.orderby,g=wp.media.model.RemoteQuery.defaultProps;return delete b.query,_.defaults(b,g),b.order=b.order.toUpperCase(),"DESC"!==b.order&&"ASC"!==b.order&&(b.order=g.order.toUpperCase()),_.contains(f.allowed,b.orderby)||(b.orderby=g.orderby),_.each(b,function(a,b){_.isNull(a)||(e[wp.media.model.RemoteQuery.propmap[b]||b]=a)}),_.defaults(e,wp.media.model.RemoteQuery.defaultArgs),e.orderby=f.valuemap[b.orderby]||b.orderby,d=_.find(a,function(a){return _.isEqual(a.args,e)}),d||(d=new wp.media.model.RemoteQuery([],_.extend(c||{},{props:b,args:e})),a.push(d)),d}}()}),wp.media.controller.RemoteLibrary=wp.media.controller.Library.extend({defaults:{id:"remote-library",multiple:"add",describe:!1,toolbar:"select",sidebar:"settings",content:"upload",router:"browse",menu:"default",remote:!0,searchable:!0,filterable:!1,sortable:!0,contentUserSetting:!0,syncSelection:!0}});var a=wp.media.view.MediaFrame.Post;wp.media.view.MediaFrame.Post=a.extend({initialize:function(){a.prototype.initialize.apply(this,arguments)},createStates:function(){a.prototype.createStates.apply(this,arguments);var b=this.options,c=this;_.each(wp.media.view.settings.remoteMediaAccounts,function(a){c.states.add([new wp.media.controller.RemoteLibrary({id:"remote-library-"+a.id,sectionid:a.id,title:a.title,service:a.type,priority:30,toolbar:"main-remote",uploadTemplate:_.isUndefined(wp.media.view.settings.remoteServiceSettings[a.type])?null:wp.media.view.settings.remoteServiceSettings[a.type].uploadTemplate,filterable:"uploaded",library:wp.media.remotequery(_.defaults({type:"remote",account_id:a.id},b.library)),state:"remote-library-"+a.id,editable:!0,displaySettings:!0,displayUserSettings:!0,menu:"default",AttachmentView:wp.media.view.Attachment.RemoteLibrary})])},this)},bindHandlers:function(){a.prototype.bindHandlers.apply(this,arguments),this.on("toolbar:create:main-remote",this.createToolbar,this),this.on("toolbar:render:main-remote",this.mainInsertToolbar,this)},uploadContent:function(){var a=this.state().get("sectionid");a?(this.$el.removeClass("hide-toolbar"),this.content.set(new wp.media.view.RemoteUploaderInline({controller:this,model:this.state().props}))):wp.media.view.MediaFrame.Select.prototype.uploadContent.apply(this,arguments)}}),wp.media.view.RemoteAttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createUploader:function(){this.uploader=new wp.media.view.RemoteUploaderInline({controller:this.controller,status:!1,message:this.controller.isModeActive("grid")?"":wp.media.view.l10n.noItemsFound,canClose:this.controller.isModeActive("grid")}),this.uploader.hide(),this.views.add(this.uploader)},createSingle:function(){var a=this.sidebar,b=this.options.selection.single(),c=b.get("type"),d=b.get("remotetype");return"remote"!==c?wp.media.view.AttachmentsBrowser.prototype.createSingle.apply(this,arguments):("image"===d&&(b.set("type",d),wp.media.view.AttachmentsBrowser.prototype.createSingle.apply(this,arguments),b.set("type","remote")),wp.media.view.AttachmentsBrowser.prototype.createSingle.apply(this,arguments),void(this.model.id==="remote-library-"+this.model.get("sectionid")&&a.$el.addClass("visible")))}});var b=wp.media.view.MediaFrame.Select;wp.media.view.MediaFrame.Select.prototype.browseRemoteContent=function(a){var c=this.state(),d=c.get("remote");d===!0?(this.$el.removeClass("hide-toolbar"),a.view=new wp.media.view.RemoteAttachmentsBrowser({controller:this,collection:c.get("library"),selection:c.get("selection"),model:c,sortable:c.get("sortable"),search:c.get("searchable"),filters:c.get("filterable"),display:c.get(c.has("display")?"display":"displaySettings"),dragInfo:c.get("dragInfo"),idealColumnWidth:c.get("idealColumnWidth"),suggestedWidth:c.get("suggestedWidth"),suggestedHeight:c.get("suggestedHeight"),AttachmentView:c.get("AttachmentView")})):b.prototype.browseContent.apply(this,arguments)},wp.media.view.MediaFrame.Select=b.extend({bindHandlers:function(){this.on("router:create:browse",this.createRouter,this),this.on("router:render:browse",this.browseRouter,this),this.on("content:create:browse",this.browseRemoteContent,this),this.on("content:render:upload",this.uploadContent,this),this.on("toolbar:create:select",this.createSelectToolbar,this)}}),wp.media.view.Attachment.RemoteLibrary=wp.media.view.Attachment.Library.extend({template:wp.media.template("attachment-remote"),toggleSelection:function(){wp.media.view.Attachment.Library.prototype.toggleSelection.apply(this,arguments)}}),wp.media.view.Attachment.RemoteSelection=wp.media.view.Attachment.Selection.extend({template:wp.media.template("attachment-remote")}),oldAttachmentsSelection=wp.media.view.Attachments.Selection,wp.media.view.Attachments.Selection=oldAttachmentsSelection.extend({initialize:function(){return _.defaults(this.options,{AttachmentView:wp.media.view.Attachment.RemoteSelection}),oldAttachmentsSelection.prototype.initialize.apply(this,arguments)}})}(jQuery);
  • remote-medias-lite/trunk/lang/remote-medias-lite.pot

    r997433 r997748  
    99"Project-Id-Version: RemoteMediasLite 1.1.0\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2014-09-26 14:30-0400\n"
     11"POT-Creation-Date: 2014-09-27 13:11-0400\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    121121msgstr ""
    122122
    123 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:82
     123#: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:87
    124124msgid "Thumbnail"
    125125msgstr ""
    126126
    127 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:83
     127#: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:88
    128128msgid "Medium"
    129129msgstr ""
    130130
    131 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:84
     131#: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:89
    132132msgid "Large"
    133133msgstr ""
    134134
    135 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:85
     135#: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:90
    136136msgid "Full Size"
    137137msgstr ""
    138138
    139 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:19
     139#: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:14
    140140msgid "Dailymotion Basic"
    141141msgstr ""
    142142
    143 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:38
     143#: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:36
    144144msgid "Dailymotion User ID"
    145145msgstr ""
    146146
    147 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:44
     147#: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:41
    148148msgid "Insert the Dailymotion User ID for this library"
    149149msgstr ""
    150150
    151 #: src/RemoteMediaExt/Accounts/Flickr/Service.php:18
     151#: src/RemoteMediaExt/Accounts/Flickr/Service.php:14
    152152msgid "Flickr Basic"
    153153msgstr ""
     
    157157msgstr ""
    158158
    159 #: src/RemoteMediaExt/Accounts/Flickr/Service.php:51
     159#: src/RemoteMediaExt/Accounts/Flickr/Service.php:50
    160160msgid "Insert the Flickr User NSID for this library"
    161161msgstr ""
    162162
    163 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php:22
     163#: src/RemoteMediaExt/Accounts/Vimeo/Service.php:16
    164164msgid "Vimeo Basic"
    165165msgstr ""
    166166
    167 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php:42
     167#: src/RemoteMediaExt/Accounts/Vimeo/Service.php:38
    168168msgid "Vimeo User ID"
    169169msgstr ""
    170170
    171 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php:48
     171#: src/RemoteMediaExt/Accounts/Vimeo/Service.php:43
    172172msgid "Insert the Vimeo User ID for this library"
    173173msgstr ""
    174174
    175 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:23
     175#: src/RemoteMediaExt/Accounts/Youtube/Service.php:16
    176176msgid "Youtube Basic"
    177177msgstr ""
    178178
    179 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:42
     179#: src/RemoteMediaExt/Accounts/Youtube/Service.php:38
    180180msgid "YouTube User ID"
    181181msgstr ""
    182182
    183 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:48
    184 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:62
     183#: src/RemoteMediaExt/Accounts/Youtube/Service.php:43
    185184msgid "Insert the Youtube User ID for this library"
    186 msgstr ""
    187 
    188 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:52
    189 msgid "Feed Type"
    190 msgstr ""
    191 
    192 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:58
    193 msgid "Uploaded by this user"
    194 msgstr ""
    195 
    196 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:59
    197 msgid "Favorites of this user"
    198185msgstr ""
    199186
     
    300287
    301288#: views/admin/media-upload-dailymotion.php:11
    302 #: views/admin/media-upload-template.php:12
    303289msgid "Upload videos directly to your DailyMotion account"
    304290msgstr ""
     
    306292#: views/admin/media-upload-dailymotion.php:13
    307293#: views/admin/media-upload-flickr.php:13
    308 #: views/admin/media-upload-template.php:14
    309294#: views/admin/media-upload-vimeo.php:13
    310295#: views/admin/media-upload-youtube.php:13
     
    313298
    314299#: views/admin/media-upload-dailymotion.php:16
    315 #: views/admin/media-upload-template.php:17
    316300msgid ""
    317301"Add our Remote Media PRO extension for DailyMotion to unlock premium "
  • remote-medias-lite/trunk/readme.txt

    r997446 r997748  
    11=== Remote Media Libraries ===
    22Contributors: loumray
    3 Tags: youtube, vimeo, vimeo pro, dailymotion, API, Media Manager, Extension, Integration, direct upload, private videos, remote medias libraries,media explorer
     3Tags: youtube, vimeo, vimeo pro, dailymotion, flickr, API, Media Manager, Extension, Integration, direct upload, private videos, remote medias libraries, media explorer, embeds
    44Requires at least: 3.5
    55Tested up to: 4.0
     
    4343* Instagram Basic Beta support
    4444
    45 == Installation ==
    46 = Minimum Requirements =
    47 
    48 * WordPress 3.5 or greater
    49 * PHP version 5.3.3 or greater
    50 
    5145== Changelog ==
    5246
     
    6458Added Flickr Basic Support & Improved Remote Libraries Admin Section
    6559
     60== Installation ==
     61= Minimum Requirements =
     62
     63* WordPress 3.5 or greater
     64* PHP version 5.3.3 or greater
     65
    6666= Manual installation =
    6767
     
    7373
    74741. Go to Medias -> Remote Librairies
    75 2. Click add New to Add an external medias source like youtube, vimeo or dailymotion.
     752. Click Add New to Add an external medias source like Youtube, Vimeo, Dailymotion or Flickr.
    76763. Insert a Title, Select the remote service you would like to query.
    77774. Insert your Service reserve ID, make sure it is valid, and publish it.
    78 5. A new section identified by the title you entered will be add in the Media Manager for each published and valid remote library.
     785. A new section identified by the title you entered will be added in the Media Manager for each published and valid remote library.
    79796. Go to a post or page, click Add Media and select the library.  The content of the remote library should be available to insert into your post. 
    8080
    8181== Screenshots ==
    82 1. Direct Youtube account videos from media manager
     821. Adding remote libraries to media manager
     832. Validate your remote libraries settings
     843. Insert remote images with your swanted size setting, just like any other local images.
     854. Inserting multiple medium size images at once
     865. Inserting a large size image
     876. Direct Vimeo videos in media manager
     887. Embeds appears in editor since WP 4.0
  • remote-medias-lite/trunk/src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php

    r997433 r997748  
    5151            $class = 'align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-remote-'.$jsattachment['remotetype'].' wp-service-'.$jsattachment['subtype'].'-'.$jsattachment['id'];
    5252
    53             $html = '<a href="'.esc_attr($jsattachment['url']).'"  class="inpost">';
     53            if (!empty($jsattachment['url'])) {
     54                $html.= '<a href="'.esc_attr($jsattachment['url']).'"  class="inpost">';
     55            }
     56           
    5457            $html.= '<img src="'.esc_attr($jsattachment['imgurl']).'" ';
    5558            $html.= 'alt="'.esc_attr($alt).'" ';
     
    5760            $html.=  $hwstring;
    5861            $html.= 'class="' . $class . '" />';
    59             $html.= '</a>';
     62            if (!empty($jsattachment['url'])) {
     63                $html.= '</a>';
     64            }
    6065
    6166            return $html;
  • remote-medias-lite/trunk/src/RemoteMediaExt/FRemoteMediaExt.php

    r997433 r997748  
    3333    public static $instance;
    3434
    35     protected $version = '1.1.0';
     35    protected $version = '1.1.1';
    3636    protected $accountPostType;
    3737    protected $remoteServices = array();
  • remote-medias-lite/trunk/vendor/autoload.php

    r997433 r997748  
    55require_once __DIR__ . '/composer' . '/autoload_real.php';
    66
    7 return ComposerAutoloaderInitb9b97df2f1e86062c20f9aa870afda99::getLoader();
     7return ComposerAutoloaderInitd752069639a820c3ccaba5226dc5255e::getLoader();
  • remote-medias-lite/trunk/vendor/composer/autoload_real.php

    r997433 r997748  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitb9b97df2f1e86062c20f9aa870afda99
     5class ComposerAutoloaderInitd752069639a820c3ccaba5226dc5255e
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInitb9b97df2f1e86062c20f9aa870afda99', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInitd752069639a820c3ccaba5226dc5255e', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInitb9b97df2f1e86062c20f9aa870afda99', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInitd752069639a820c3ccaba5226dc5255e', 'loadClassLoader'));
    2525
    2626        $map = require __DIR__ . '/autoload_namespaces.php';
     
    4545}
    4646
    47 function composerRequireb9b97df2f1e86062c20f9aa870afda99($file)
     47function composerRequired752069639a820c3ccaba5226dc5255e($file)
    4848{
    4949    require $file;
Note: See TracChangeset for help on using the changeset viewer.