Changeset 997748
- Timestamp:
- 09/27/2014 07:17:32 PM (12 years ago)
- Location:
- remote-medias-lite/trunk
- Files:
-
- 8 edited
-
assets/js/media-remote-ext.js (modified) (1 diff)
-
assets/js/media-remote-ext.min.js (modified) (1 diff)
-
lang/remote-medias-lite.pot (modified) (6 diffs)
-
readme.txt (modified) (4 diffs)
-
src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php (modified) (2 diffs)
-
src/RemoteMediaExt/FRemoteMediaExt.php (modified) (1 diff)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remote-medias-lite/trunk/assets/js/media-remote-ext.js
r997433 r997748 303 303 this.uploader.hide(); 304 304 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 } 305 329 } 306 330 }); -
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 9 9 "Project-Id-Version: RemoteMediasLite 1.1.0\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2014-09-2 6 14:30-0400\n"11 "POT-Creation-Date: 2014-09-27 13:11-0400\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 121 121 msgstr "" 122 122 123 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:8 2123 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:87 124 124 msgid "Thumbnail" 125 125 msgstr "" 126 126 127 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:8 3127 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:88 128 128 msgid "Medium" 129 129 msgstr "" 130 130 131 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:8 4131 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:89 132 132 msgid "Large" 133 133 msgstr "" 134 134 135 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php: 85135 #: src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php:90 136 136 msgid "Full Size" 137 137 msgstr "" 138 138 139 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:1 9139 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:14 140 140 msgid "Dailymotion Basic" 141 141 msgstr "" 142 142 143 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:3 8143 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:36 144 144 msgid "Dailymotion User ID" 145 145 msgstr "" 146 146 147 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:4 4147 #: src/RemoteMediaExt/Accounts/Dailymotion/Service.php:41 148 148 msgid "Insert the Dailymotion User ID for this library" 149 149 msgstr "" 150 150 151 #: src/RemoteMediaExt/Accounts/Flickr/Service.php:1 8151 #: src/RemoteMediaExt/Accounts/Flickr/Service.php:14 152 152 msgid "Flickr Basic" 153 153 msgstr "" … … 157 157 msgstr "" 158 158 159 #: src/RemoteMediaExt/Accounts/Flickr/Service.php:5 1159 #: src/RemoteMediaExt/Accounts/Flickr/Service.php:50 160 160 msgid "Insert the Flickr User NSID for this library" 161 161 msgstr "" 162 162 163 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php: 22163 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php:16 164 164 msgid "Vimeo Basic" 165 165 msgstr "" 166 166 167 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php: 42167 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php:38 168 168 msgid "Vimeo User ID" 169 169 msgstr "" 170 170 171 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php:4 8171 #: src/RemoteMediaExt/Accounts/Vimeo/Service.php:43 172 172 msgid "Insert the Vimeo User ID for this library" 173 173 msgstr "" 174 174 175 #: src/RemoteMediaExt/Accounts/Youtube/Service.php: 23175 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:16 176 176 msgid "Youtube Basic" 177 177 msgstr "" 178 178 179 #: src/RemoteMediaExt/Accounts/Youtube/Service.php: 42179 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:38 180 180 msgid "YouTube User ID" 181 181 msgstr "" 182 182 183 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:48 184 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:62 183 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:43 185 184 msgid "Insert the Youtube User ID for this library" 186 msgstr ""187 188 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:52189 msgid "Feed Type"190 msgstr ""191 192 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:58193 msgid "Uploaded by this user"194 msgstr ""195 196 #: src/RemoteMediaExt/Accounts/Youtube/Service.php:59197 msgid "Favorites of this user"198 185 msgstr "" 199 186 … … 300 287 301 288 #: views/admin/media-upload-dailymotion.php:11 302 #: views/admin/media-upload-template.php:12303 289 msgid "Upload videos directly to your DailyMotion account" 304 290 msgstr "" … … 306 292 #: views/admin/media-upload-dailymotion.php:13 307 293 #: views/admin/media-upload-flickr.php:13 308 #: views/admin/media-upload-template.php:14309 294 #: views/admin/media-upload-vimeo.php:13 310 295 #: views/admin/media-upload-youtube.php:13 … … 313 298 314 299 #: views/admin/media-upload-dailymotion.php:16 315 #: views/admin/media-upload-template.php:17316 300 msgid "" 317 301 "Add our Remote Media PRO extension for DailyMotion to unlock premium " -
remote-medias-lite/trunk/readme.txt
r997446 r997748 1 1 === Remote Media Libraries === 2 2 Contributors: loumray 3 Tags: youtube, vimeo, vimeo pro, dailymotion, API, Media Manager, Extension, Integration, direct upload, private videos, remote medias libraries,media explorer3 Tags: youtube, vimeo, vimeo pro, dailymotion, flickr, API, Media Manager, Extension, Integration, direct upload, private videos, remote medias libraries, media explorer, embeds 4 4 Requires at least: 3.5 5 5 Tested up to: 4.0 … … 43 43 * Instagram Basic Beta support 44 44 45 == Installation ==46 = Minimum Requirements =47 48 * WordPress 3.5 or greater49 * PHP version 5.3.3 or greater50 51 45 == Changelog == 52 46 … … 64 58 Added Flickr Basic Support & Improved Remote Libraries Admin Section 65 59 60 == Installation == 61 = Minimum Requirements = 62 63 * WordPress 3.5 or greater 64 * PHP version 5.3.3 or greater 65 66 66 = Manual installation = 67 67 … … 73 73 74 74 1. Go to Medias -> Remote Librairies 75 2. Click add New to Add an external medias source like youtube, vimeo or dailymotion.75 2. Click Add New to Add an external medias source like Youtube, Vimeo, Dailymotion or Flickr. 76 76 3. Insert a Title, Select the remote service you would like to query. 77 77 4. 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.78 5. A new section identified by the title you entered will be added in the Media Manager for each published and valid remote library. 79 79 6. 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. 80 80 81 81 == Screenshots == 82 1. Direct Youtube account videos from media manager 82 1. Adding remote libraries to media manager 83 2. Validate your remote libraries settings 84 3. Insert remote images with your swanted size setting, just like any other local images. 85 4. Inserting multiple medium size images at once 86 5. Inserting a large size image 87 6. Direct Vimeo videos in media manager 88 7. Embeds appears in editor since WP 4.0 -
remote-medias-lite/trunk/src/RemoteMediaExt/Accounts/AbstractRemoteMedia.php
r997433 r997748 51 51 $class = 'align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-remote-'.$jsattachment['remotetype'].' wp-service-'.$jsattachment['subtype'].'-'.$jsattachment['id']; 52 52 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 54 57 $html.= '<img src="'.esc_attr($jsattachment['imgurl']).'" '; 55 58 $html.= 'alt="'.esc_attr($alt).'" '; … … 57 60 $html.= $hwstring; 58 61 $html.= 'class="' . $class . '" />'; 59 $html.= '</a>'; 62 if (!empty($jsattachment['url'])) { 63 $html.= '</a>'; 64 } 60 65 61 66 return $html; -
remote-medias-lite/trunk/src/RemoteMediaExt/FRemoteMediaExt.php
r997433 r997748 33 33 public static $instance; 34 34 35 protected $version = '1.1. 0';35 protected $version = '1.1.1'; 36 36 protected $accountPostType; 37 37 protected $remoteServices = array(); -
remote-medias-lite/trunk/vendor/autoload.php
r997433 r997748 5 5 require_once __DIR__ . '/composer' . '/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit b9b97df2f1e86062c20f9aa870afda99::getLoader();7 return ComposerAutoloaderInitd752069639a820c3ccaba5226dc5255e::getLoader(); -
remote-medias-lite/trunk/vendor/composer/autoload_real.php
r997433 r997748 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit b9b97df2f1e86062c20f9aa870afda995 class ComposerAutoloaderInitd752069639a820c3ccaba5226dc5255e 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit b9b97df2f1e86062c20f9aa870afda99', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInitd752069639a820c3ccaba5226dc5255e', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit b9b97df2f1e86062c20f9aa870afda99', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInitd752069639a820c3ccaba5226dc5255e', 'loadClassLoader')); 25 25 26 26 $map = require __DIR__ . '/autoload_namespaces.php'; … … 45 45 } 46 46 47 function composerRequire b9b97df2f1e86062c20f9aa870afda99($file)47 function composerRequired752069639a820c3ccaba5226dc5255e($file) 48 48 { 49 49 require $file;
Note: See TracChangeset
for help on using the changeset viewer.