Changeset 1486725
- Timestamp:
- 08/30/2016 08:38:00 PM (10 years ago)
- Location:
- dobsondev-shortcodes
- Files:
-
- 5 edited
- 12 copied
-
tags/2.1.2 (copied) (copied from dobsondev-shortcodes/trunk)
-
tags/2.1.2/changelog.txt (copied) (copied from dobsondev-shortcodes/trunk/changelog.txt) (1 diff)
-
tags/2.1.2/css (copied) (copied from dobsondev-shortcodes/trunk/css)
-
tags/2.1.2/css/dobsondev-shortcodes.css (copied) (copied from dobsondev-shortcodes/trunk/css/dobsondev-shortcodes.css)
-
tags/2.1.2/css/dobsondev-shortcodes.min.css (copied) (copied from dobsondev-shortcodes/trunk/css/dobsondev-shortcodes.min.css)
-
tags/2.1.2/dobsondev-shortcodes.php (copied) (copied from dobsondev-shortcodes/trunk/dobsondev-shortcodes.php) (1 diff)
-
tags/2.1.2/js (copied) (copied from dobsondev-shortcodes/trunk/js)
-
tags/2.1.2/js/tinymce-plugin.js (copied) (copied from dobsondev-shortcodes/trunk/js/tinymce-plugin.js) (1 diff)
-
tags/2.1.2/js/tinymce-plugin.min.js (copied) (copied from dobsondev-shortcodes/trunk/js/tinymce-plugin.min.js) (1 diff)
-
tags/2.1.2/libs (copied) (copied from dobsondev-shortcodes/trunk/libs)
-
tags/2.1.2/readme.txt (copied) (copied from dobsondev-shortcodes/trunk/readme.txt) (2 diffs)
-
tags/2.1.2/res (copied) (copied from dobsondev-shortcodes/trunk/res)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/dobsondev-shortcodes.php (modified) (1 diff)
-
trunk/js/tinymce-plugin.js (modified) (1 diff)
-
trunk/js/tinymce-plugin.min.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dobsondev-shortcodes/tags/2.1.2/changelog.txt
r1452947 r1486725 12 12 Bug Fixes 13 13 14 * Fixed a bug where the Insert Code Block TinyMCE button would not use the correct syntax for the shortcode - thanks to [Chris Dillon](https://wordpress.org/support/profile/cdillon27) for catching the bug and letting me know (2.1.2) 15 * Formated some of the code for the Kodi addon download link and Kodi addon information shortcodes (2.1.1) 14 16 * Changed the way the YouTube embed works with line breaks before the container div (2.1.0) 15 * Formated some of the code for the Kodi addon download link and Kodi addon information shortcodes (2.0.1)16 17 17 18 = 2.0 = -
dobsondev-shortcodes/tags/2.1.2/dobsondev-shortcodes.php
r1452947 r1486725 4 4 * Plugin URI: http://dobsondev.com/portfolio/dobsondev-shortcodes/ 5 5 * Description: A collection of helpful shortcodes. 6 * Version: 2.1. 16 * Version: 2.1.2 7 7 * Author: Alex Dobson 8 8 * Author URI: http://dobsondev.com/ -
dobsondev-shortcodes/tags/2.1.2/js/tinymce-plugin.js
r1452947 r1486725 431 431 text: 'Code Block', 432 432 icon: 'icon fa fa-file-code-o dobsondev-shortcodes', 433 value: '[ codeBlock][endCodeBlock]',433 value: '[startCodeBlock][endCodeBlock]', 434 434 onclick: function() { 435 435 editor.insertContent(this.value()); -
dobsondev-shortcodes/tags/2.1.2/js/tinymce-plugin.min.js
r1452947 r1486725 1 !function(){tinymce.PluginManager.add("dobsondev_shrtcode_tinymce",function( e,t){e.addButton("dobsondev_shrtcode_tinymce_button",{title:"DobsonDev Shortcodes",type:"menubutton",icon:"icon dobsondev-icon",menu:[{text:"Embed PDF",icon:"icon fa fa-file-pdf-o dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed PDF",body:[{type:"textbox",name:"source",label:"Source *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.source?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedPDF source="'+t.data.source+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedPDF source="'+t.data.source+'" width="'+t.data.width+'"]'):e.insertContent('[embedPDF source="'+t.data.source+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedPDF source="'+t.data.source+'"]')):void alert("You must fill in the Source to embed a PDF")}})}},{text:"Embed GitHub Gist",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed GitHub Gist",body:[{type:"textbox",name:"source",label:"Source *"}],onsubmit:function(t){return t.data.source?void e.insertContent('[embedGist source="'+t.data.source+'"]'):void alert("You must fill in the Source to embed a GitHub Gist")}})}},{text:"Embed GitHub Readme",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed GitHub Readme",body:[{type:"textbox",name:"owner",label:"Owner *"},{type:"textbox",name:"repo",label:"Repository *"},{type:"textbox",name:"cacheid",label:"Cache ID"}],onsubmit:function(t){return t.data.owner&&t.data.repo?void(t.data.cacheid?e.insertContent('[embedGitHubReadme owner="'+t.data.owner+'" repo="'+t.data.repo+'" cache_id="'+t.data.cacheid+'"]'):e.insertContent('[embedGitHubReadme owner="'+t.data.owner+'" repo="'+t.data.repo+'"]')):void alert("You must fill in the Owner and Repository to embed a GitHub Readme")}})}},{text:"Embed GitHub File",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed GitHub File Contents",body:[{type:"textbox",name:"owner",label:"Owner *"},{type:"textbox",name:"repo",label:"Repository *"},{type:"textbox",name:"path",label:"Path to File *"},{type:"checkbox",name:"markdown",label:"Markdown",value:"yes",checked:!1},{type:"textbox",name:"cacheid",label:"Cache ID"}],onsubmit:function(t){return t.data.owner&&t.data.repo&&t.data.path?void(t.data.markdown||t.data.cacheid?!t.data.markdown&&t.data.cacheid?e.insertContent('[embedGitHubContent owner="'+t.data.owner+'" repo="'+t.data.repo+'" path="'+t.data.path+'" cache_id="'+t.data.cacheid+'"]'):t.data.markdown&&!t.data.cacheid?e.insertContent('[embedGitHubContent owner="'+t.data.owner+'" repo="'+t.data.repo+'" path="'+t.data.path+'" markdown="'+t.data.markdown+'"]'):e.insertContent('[embedGitHubContent owner="'+t.data.owner+'" repo="'+t.data.repo+'" path="'+t.data.path+'" markdown="'+t.data.markdown+'" cache_id="'+t.data.cacheid+'"]'):e.insertContent('[embedGitHubContent owner="'+t.data.owner+'" repo="'+t.data.repo+'" path="'+t.data.path+'"]')):void alert("You must fill in the Owner, Repository and Path to the File in order to embed a GitHub File")}})}},{text:"Twitch Stream",icon:"icon fa fa-twitch dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Twitch Stream",body:[{type:"textbox",name:"username",label:"Username *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.username?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedTwitch username="'+t.data.username+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedTwitch username="'+t.data.username+'" width="'+t.data.width+'"]'):e.insertContent('[embedTwitch username="'+t.data.username+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedTwitch username="'+t.data.username+'"]')):void alert("You must fill in the Username in order to embed a Twitch Stream")}})}},{text:"Twitch Chat",icon:"icon fa fa-twitch dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Twitch Chat",body:[{type:"textbox",name:"username",label:"Username *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.username?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedTwitchChat username="'+t.data.username+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedTwitchChat username="'+t.data.username+'" width="'+t.data.width+'"]'):e.insertContent('[embedTwitchChat username="'+t.data.username+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedTwitchChat username="'+t.data.username+'"]')):void alert("You must fill in the Username in order to embed a Twitch Chat")}})}},{text:"YouTube Video",icon:"icon fa fa-youtube dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed YouTube Video",body:[{type:"textbox",name:"videoid",label:"Video ID *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.videoid?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedYouTube video="'+t.data.videoid+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedYouTube video="'+t.data.videoid+'" width="'+t.data.width+'"]'):e.insertContent('[embedYouTube video="'+t.data.videoid+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedYouTube video="'+t.data.videoid+'"]')):void alert("You must fill in the Video ID in order to embed a YouTube video")}})}},{text:"Vimeo Video",icon:"icon fa fa-vimeo dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Vimeo Video",body:[{type:"textbox",name:"videoid",label:"Video ID *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.videoid?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedVimeo video="'+t.data.videoid+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedVimeo video="'+t.data.videoid+'" width="'+t.data.width+'"]'):e.insertContent('[embedVimeo video="'+t.data.videoid+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedVimeo video="'+t.data.videoid+'"]')):void alert("You must fill in the Video ID in order to embed a Vimeo video")}})}},{text:"Embed Kodi Addon Download",icon:"icon fa fa-television dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Kodi Addon Download",body:[{type:"textbox",name:"addonid",label:"AddonID *"},{type:"textbox",name:"addonxmlurl",label:"URL to addon.xml *"},{type:"textbox",name:"repoprefix",label:"Repo-Prefix (optional) *"}],onsubmit:function(t){return t.data.addonid&&t.data.addonxmlurl?void e.insertContent('[embedKodiAddonDownload addonid="'+t.data.addonid+'" addonxmlurl="'+t.data.addonxmlurl+'" repoprefix="'+t.data.repoprefix+'"]'):void alert("You must fill in the AddonID and addon.xml URL to embed a Kodi Addon Download Link")}})}},{text:"Embed Kodi Addon Info",icon:"icon fa fa-television dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Kodi Addon Info",body:[{type:"textbox",name:"addonid",label:"AddonID *"},{type:"textbox",name:"addonxmlurl",label:"URL to addon.xml *"},{type:"textbox",name:"repoprefix",label:"Repo-Prefix (optional) *"}],onsubmit:function(t){return t.data.addonid&&t.data.addonxmlurl?void e.insertContent('[embedKodiAddonInfo addonid="'+t.data.addonid+'" addonxmlurl="'+t.data.addonxmlurl+'" repoprefix="'+t.data.repoprefix+'"]'):void alert("You must fill in the AddonID and addon.xml URL to embed a Kodi Addon Download Link")}})}},{text:"Inline Code",icon:"icon fa fa-code dobsondev-shortcodes",value:"[startCode][endCode]",onclick:function(){e.insertContent(this.value())}},{text:"Code Block",icon:"icon fa fa-file-code-o dobsondev-shortcodes",value:"[codeBlock][endCodeBlock]",onclick:function(){e.insertContent(this.value())}},{text:"Button",icon:"icon fa fa-plus-square dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Button",body:[{type:"textbox",name:"text",label:"Button Text *"},{type:"listbox",name:"color",label:"Color",values:[{text:"Blue",value:"blue",selected:!0},{text:"Green",value:"green"},{text:"Red",value:"red"},{text:"Orange",value:"orange"},{text:"Purple",value:"purple"},{text:"Turquoise",value:"turquoise"}]},{type:"textbox",name:"link",label:"Link"}],onsubmit:function(t){t.data.color||t.data.link?!t.data.color&&t.data.link?e.insertContent('[button text="'+t.data.text+'" link="'+t.data.color+'"]'):t.data.color&&!t.data.link?e.insertContent('[button text="'+t.data.text+'" color="'+t.data.color+'"]'):e.insertContent('[button text="'+t.data.text+'" color="'+t.data.color+'" link="'+t.data.link+'"]'):e.insertContent('[button text="'+t.data.text+'"]')}})}},{text:"User Interaction Message",icon:"icon fa fa-quote-left dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"",body:[{type:"listbox",name:"messagetype",label:"Message Type *",values:[{text:"Info Message",value:"info",selected:!0},{text:"Success Message",value:"success"},{text:"Warning Message",value:"warning"},{text:"Error Message",value:"error"}]},{type:"textbox",name:"text",label:"Text *"}],onsubmit:function(t){"info"==t.data.messagetype?e.insertContent('[infoMessage text="'+t.data.text+'"]'):"success"==t.data.messagetype?e.insertContent('[successMessage text="'+t.data.text+'"]'):"warning"==t.data.messagetype?e.insertContent('[warningMessage text="'+t.data.text+'"]'):e.insertContent('[errorMessage text="'+t.data.text+'"]')}})}},{text:"Social Share",icon:"icon fa fa-share-alt dobsondev-shortcodes",value:"[socialShare]",onclick:function(){e.insertContent(this.value())}},{text:"Related Posts",icon:"icon dashicons-admin-post dobsondev-shortcodes",value:'[relatedPosts posts=""]',onclick:function(){e.insertContent(this.value())}}]})})}();1 !function(){tinymce.PluginManager.add("dobsondev_shrtcode_tinymce",function(a,b){a.addButton("dobsondev_shrtcode_tinymce_button",{title:"DobsonDev Shortcodes",type:"menubutton",icon:"icon dobsondev-icon",menu:[{text:"Embed PDF",icon:"icon fa fa-file-pdf-o dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed PDF",body:[{type:"textbox",name:"source",label:"Source *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.source?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedPDF source="'+b.data.source+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedPDF source="'+b.data.source+'" width="'+b.data.width+'"]'):a.insertContent('[embedPDF source="'+b.data.source+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedPDF source="'+b.data.source+'"]')):void alert("You must fill in the Source to embed a PDF")}})}},{text:"Embed GitHub Gist",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed GitHub Gist",body:[{type:"textbox",name:"source",label:"Source *"}],onsubmit:function(b){return b.data.source?void a.insertContent('[embedGist source="'+b.data.source+'"]'):void alert("You must fill in the Source to embed a GitHub Gist")}})}},{text:"Embed GitHub Readme",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed GitHub Readme",body:[{type:"textbox",name:"owner",label:"Owner *"},{type:"textbox",name:"repo",label:"Repository *"},{type:"textbox",name:"cacheid",label:"Cache ID"}],onsubmit:function(b){return b.data.owner&&b.data.repo?void(b.data.cacheid?a.insertContent('[embedGitHubReadme owner="'+b.data.owner+'" repo="'+b.data.repo+'" cache_id="'+b.data.cacheid+'"]'):a.insertContent('[embedGitHubReadme owner="'+b.data.owner+'" repo="'+b.data.repo+'"]')):void alert("You must fill in the Owner and Repository to embed a GitHub Readme")}})}},{text:"Embed GitHub File",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed GitHub File Contents",body:[{type:"textbox",name:"owner",label:"Owner *"},{type:"textbox",name:"repo",label:"Repository *"},{type:"textbox",name:"path",label:"Path to File *"},{type:"checkbox",name:"markdown",label:"Markdown",value:"yes",checked:!1},{type:"textbox",name:"cacheid",label:"Cache ID"}],onsubmit:function(b){return b.data.owner&&b.data.repo&&b.data.path?void(b.data.markdown||b.data.cacheid?!b.data.markdown&&b.data.cacheid?a.insertContent('[embedGitHubContent owner="'+b.data.owner+'" repo="'+b.data.repo+'" path="'+b.data.path+'" cache_id="'+b.data.cacheid+'"]'):b.data.markdown&&!b.data.cacheid?a.insertContent('[embedGitHubContent owner="'+b.data.owner+'" repo="'+b.data.repo+'" path="'+b.data.path+'" markdown="'+b.data.markdown+'"]'):a.insertContent('[embedGitHubContent owner="'+b.data.owner+'" repo="'+b.data.repo+'" path="'+b.data.path+'" markdown="'+b.data.markdown+'" cache_id="'+b.data.cacheid+'"]'):a.insertContent('[embedGitHubContent owner="'+b.data.owner+'" repo="'+b.data.repo+'" path="'+b.data.path+'"]')):void alert("You must fill in the Owner, Repository and Path to the File in order to embed a GitHub File")}})}},{text:"Twitch Stream",icon:"icon fa fa-twitch dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Twitch Stream",body:[{type:"textbox",name:"username",label:"Username *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.username?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedTwitch username="'+b.data.username+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedTwitch username="'+b.data.username+'" width="'+b.data.width+'"]'):a.insertContent('[embedTwitch username="'+b.data.username+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedTwitch username="'+b.data.username+'"]')):void alert("You must fill in the Username in order to embed a Twitch Stream")}})}},{text:"Twitch Chat",icon:"icon fa fa-twitch dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Twitch Chat",body:[{type:"textbox",name:"username",label:"Username *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.username?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedTwitchChat username="'+b.data.username+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedTwitchChat username="'+b.data.username+'" width="'+b.data.width+'"]'):a.insertContent('[embedTwitchChat username="'+b.data.username+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedTwitchChat username="'+b.data.username+'"]')):void alert("You must fill in the Username in order to embed a Twitch Chat")}})}},{text:"YouTube Video",icon:"icon fa fa-youtube dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed YouTube Video",body:[{type:"textbox",name:"videoid",label:"Video ID *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.videoid?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedYouTube video="'+b.data.videoid+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedYouTube video="'+b.data.videoid+'" width="'+b.data.width+'"]'):a.insertContent('[embedYouTube video="'+b.data.videoid+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedYouTube video="'+b.data.videoid+'"]')):void alert("You must fill in the Video ID in order to embed a YouTube video")}})}},{text:"Vimeo Video",icon:"icon fa fa-vimeo dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Vimeo Video",body:[{type:"textbox",name:"videoid",label:"Video ID *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.videoid?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedVimeo video="'+b.data.videoid+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedVimeo video="'+b.data.videoid+'" width="'+b.data.width+'"]'):a.insertContent('[embedVimeo video="'+b.data.videoid+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedVimeo video="'+b.data.videoid+'"]')):void alert("You must fill in the Video ID in order to embed a Vimeo video")}})}},{text:"Embed Kodi Addon Download",icon:"icon fa fa-television dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Kodi Addon Download",body:[{type:"textbox",name:"addonid",label:"AddonID *"},{type:"textbox",name:"addonxmlurl",label:"URL to addon.xml *"},{type:"textbox",name:"repoprefix",label:"Repo-Prefix (optional) *"}],onsubmit:function(b){return b.data.addonid&&b.data.addonxmlurl?void a.insertContent('[embedKodiAddonDownload addonid="'+b.data.addonid+'" addonxmlurl="'+b.data.addonxmlurl+'" repoprefix="'+b.data.repoprefix+'"]'):void alert("You must fill in the AddonID and addon.xml URL to embed a Kodi Addon Download Link")}})}},{text:"Embed Kodi Addon Info",icon:"icon fa fa-television dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Kodi Addon Info",body:[{type:"textbox",name:"addonid",label:"AddonID *"},{type:"textbox",name:"addonxmlurl",label:"URL to addon.xml *"},{type:"textbox",name:"repoprefix",label:"Repo-Prefix (optional) *"}],onsubmit:function(b){return b.data.addonid&&b.data.addonxmlurl?void a.insertContent('[embedKodiAddonInfo addonid="'+b.data.addonid+'" addonxmlurl="'+b.data.addonxmlurl+'" repoprefix="'+b.data.repoprefix+'"]'):void alert("You must fill in the AddonID and addon.xml URL to embed a Kodi Addon Download Link")}})}},{text:"Inline Code",icon:"icon fa fa-code dobsondev-shortcodes",value:"[startCode][endCode]",onclick:function(){a.insertContent(this.value())}},{text:"Code Block",icon:"icon fa fa-file-code-o dobsondev-shortcodes",value:"[startCodeBlock][endCodeBlock]",onclick:function(){a.insertContent(this.value())}},{text:"Button",icon:"icon fa fa-plus-square dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Button",body:[{type:"textbox",name:"text",label:"Button Text *"},{type:"listbox",name:"color",label:"Color",values:[{text:"Blue",value:"blue",selected:!0},{text:"Green",value:"green"},{text:"Red",value:"red"},{text:"Orange",value:"orange"},{text:"Purple",value:"purple"},{text:"Turquoise",value:"turquoise"}]},{type:"textbox",name:"link",label:"Link"}],onsubmit:function(b){b.data.color||b.data.link?!b.data.color&&b.data.link?a.insertContent('[button text="'+b.data.text+'" link="'+b.data.color+'"]'):b.data.color&&!b.data.link?a.insertContent('[button text="'+b.data.text+'" color="'+b.data.color+'"]'):a.insertContent('[button text="'+b.data.text+'" color="'+b.data.color+'" link="'+b.data.link+'"]'):a.insertContent('[button text="'+b.data.text+'"]')}})}},{text:"User Interaction Message",icon:"icon fa fa-quote-left dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"",body:[{type:"listbox",name:"messagetype",label:"Message Type *",values:[{text:"Info Message",value:"info",selected:!0},{text:"Success Message",value:"success"},{text:"Warning Message",value:"warning"},{text:"Error Message",value:"error"}]},{type:"textbox",name:"text",label:"Text *"}],onsubmit:function(b){"info"==b.data.messagetype?a.insertContent('[infoMessage text="'+b.data.text+'"]'):"success"==b.data.messagetype?a.insertContent('[successMessage text="'+b.data.text+'"]'):"warning"==b.data.messagetype?a.insertContent('[warningMessage text="'+b.data.text+'"]'):a.insertContent('[errorMessage text="'+b.data.text+'"]')}})}},{text:"Social Share",icon:"icon fa fa-share-alt dobsondev-shortcodes",value:"[socialShare]",onclick:function(){a.insertContent(this.value())}},{text:"Related Posts",icon:"icon dashicons-admin-post dobsondev-shortcodes",value:'[relatedPosts posts=""]',onclick:function(){a.insertContent(this.value())}}]})})}(); -
dobsondev-shortcodes/tags/2.1.2/readme.txt
r1452947 r1486725 7 7 Requires at least: 2.5 8 8 Tested up to: 4.6 9 Stable tag: 2.1. 19 Stable tag: 2.1.2 10 10 11 11 Add a collection of helpful shortcodes to your site. … … 187 187 Bug Fixes 188 188 189 * Fixed a bug where the Insert Code Block TinyMCE button would not use the correct syntax for the shortcode - thanks to [Chris Dillon](https://wordpress.org/support/profile/cdillon27) for catching the bug and letting me know (2.1.2) 190 * Formated some of the code for the Kodi addon download link and Kodi addon information shortcodes (2.1.1) 189 191 * Changed the way the YouTube embed works with line breaks before the container div (2.1.0) 190 * Formated some of the code for the Kodi addon download link and Kodi addon information shortcodes (2.0.1)191 192 192 193 = - 2.0 - = -
dobsondev-shortcodes/trunk/changelog.txt
r1452947 r1486725 12 12 Bug Fixes 13 13 14 * Fixed a bug where the Insert Code Block TinyMCE button would not use the correct syntax for the shortcode - thanks to [Chris Dillon](https://wordpress.org/support/profile/cdillon27) for catching the bug and letting me know (2.1.2) 15 * Formated some of the code for the Kodi addon download link and Kodi addon information shortcodes (2.1.1) 14 16 * Changed the way the YouTube embed works with line breaks before the container div (2.1.0) 15 * Formated some of the code for the Kodi addon download link and Kodi addon information shortcodes (2.0.1)16 17 17 18 = 2.0 = -
dobsondev-shortcodes/trunk/dobsondev-shortcodes.php
r1452947 r1486725 4 4 * Plugin URI: http://dobsondev.com/portfolio/dobsondev-shortcodes/ 5 5 * Description: A collection of helpful shortcodes. 6 * Version: 2.1. 16 * Version: 2.1.2 7 7 * Author: Alex Dobson 8 8 * Author URI: http://dobsondev.com/ -
dobsondev-shortcodes/trunk/js/tinymce-plugin.js
r1452947 r1486725 431 431 text: 'Code Block', 432 432 icon: 'icon fa fa-file-code-o dobsondev-shortcodes', 433 value: '[ codeBlock][endCodeBlock]',433 value: '[startCodeBlock][endCodeBlock]', 434 434 onclick: function() { 435 435 editor.insertContent(this.value()); -
dobsondev-shortcodes/trunk/js/tinymce-plugin.min.js
r1452947 r1486725 1 !function(){tinymce.PluginManager.add("dobsondev_shrtcode_tinymce",function( e,t){e.addButton("dobsondev_shrtcode_tinymce_button",{title:"DobsonDev Shortcodes",type:"menubutton",icon:"icon dobsondev-icon",menu:[{text:"Embed PDF",icon:"icon fa fa-file-pdf-o dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed PDF",body:[{type:"textbox",name:"source",label:"Source *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.source?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedPDF source="'+t.data.source+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedPDF source="'+t.data.source+'" width="'+t.data.width+'"]'):e.insertContent('[embedPDF source="'+t.data.source+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedPDF source="'+t.data.source+'"]')):void alert("You must fill in the Source to embed a PDF")}})}},{text:"Embed GitHub Gist",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed GitHub Gist",body:[{type:"textbox",name:"source",label:"Source *"}],onsubmit:function(t){return t.data.source?void e.insertContent('[embedGist source="'+t.data.source+'"]'):void alert("You must fill in the Source to embed a GitHub Gist")}})}},{text:"Embed GitHub Readme",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed GitHub Readme",body:[{type:"textbox",name:"owner",label:"Owner *"},{type:"textbox",name:"repo",label:"Repository *"},{type:"textbox",name:"cacheid",label:"Cache ID"}],onsubmit:function(t){return t.data.owner&&t.data.repo?void(t.data.cacheid?e.insertContent('[embedGitHubReadme owner="'+t.data.owner+'" repo="'+t.data.repo+'" cache_id="'+t.data.cacheid+'"]'):e.insertContent('[embedGitHubReadme owner="'+t.data.owner+'" repo="'+t.data.repo+'"]')):void alert("You must fill in the Owner and Repository to embed a GitHub Readme")}})}},{text:"Embed GitHub File",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed GitHub File Contents",body:[{type:"textbox",name:"owner",label:"Owner *"},{type:"textbox",name:"repo",label:"Repository *"},{type:"textbox",name:"path",label:"Path to File *"},{type:"checkbox",name:"markdown",label:"Markdown",value:"yes",checked:!1},{type:"textbox",name:"cacheid",label:"Cache ID"}],onsubmit:function(t){return t.data.owner&&t.data.repo&&t.data.path?void(t.data.markdown||t.data.cacheid?!t.data.markdown&&t.data.cacheid?e.insertContent('[embedGitHubContent owner="'+t.data.owner+'" repo="'+t.data.repo+'" path="'+t.data.path+'" cache_id="'+t.data.cacheid+'"]'):t.data.markdown&&!t.data.cacheid?e.insertContent('[embedGitHubContent owner="'+t.data.owner+'" repo="'+t.data.repo+'" path="'+t.data.path+'" markdown="'+t.data.markdown+'"]'):e.insertContent('[embedGitHubContent owner="'+t.data.owner+'" repo="'+t.data.repo+'" path="'+t.data.path+'" markdown="'+t.data.markdown+'" cache_id="'+t.data.cacheid+'"]'):e.insertContent('[embedGitHubContent owner="'+t.data.owner+'" repo="'+t.data.repo+'" path="'+t.data.path+'"]')):void alert("You must fill in the Owner, Repository and Path to the File in order to embed a GitHub File")}})}},{text:"Twitch Stream",icon:"icon fa fa-twitch dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Twitch Stream",body:[{type:"textbox",name:"username",label:"Username *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.username?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedTwitch username="'+t.data.username+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedTwitch username="'+t.data.username+'" width="'+t.data.width+'"]'):e.insertContent('[embedTwitch username="'+t.data.username+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedTwitch username="'+t.data.username+'"]')):void alert("You must fill in the Username in order to embed a Twitch Stream")}})}},{text:"Twitch Chat",icon:"icon fa fa-twitch dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Twitch Chat",body:[{type:"textbox",name:"username",label:"Username *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.username?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedTwitchChat username="'+t.data.username+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedTwitchChat username="'+t.data.username+'" width="'+t.data.width+'"]'):e.insertContent('[embedTwitchChat username="'+t.data.username+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedTwitchChat username="'+t.data.username+'"]')):void alert("You must fill in the Username in order to embed a Twitch Chat")}})}},{text:"YouTube Video",icon:"icon fa fa-youtube dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed YouTube Video",body:[{type:"textbox",name:"videoid",label:"Video ID *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.videoid?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedYouTube video="'+t.data.videoid+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedYouTube video="'+t.data.videoid+'" width="'+t.data.width+'"]'):e.insertContent('[embedYouTube video="'+t.data.videoid+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedYouTube video="'+t.data.videoid+'"]')):void alert("You must fill in the Video ID in order to embed a YouTube video")}})}},{text:"Vimeo Video",icon:"icon fa fa-vimeo dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Vimeo Video",body:[{type:"textbox",name:"videoid",label:"Video ID *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(t){return t.data.videoid?void(t.data.width||t.data.height?!t.data.width&&t.data.height?e.insertContent('[embedVimeo video="'+t.data.videoid+'" height="'+t.data.height+'"]'):t.data.width&&!t.data.height?e.insertContent('[embedVimeo video="'+t.data.videoid+'" width="'+t.data.width+'"]'):e.insertContent('[embedVimeo video="'+t.data.videoid+'" width="'+t.data.width+'" height="'+t.data.height+'"]'):e.insertContent('[embedVimeo video="'+t.data.videoid+'"]')):void alert("You must fill in the Video ID in order to embed a Vimeo video")}})}},{text:"Embed Kodi Addon Download",icon:"icon fa fa-television dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Kodi Addon Download",body:[{type:"textbox",name:"addonid",label:"AddonID *"},{type:"textbox",name:"addonxmlurl",label:"URL to addon.xml *"},{type:"textbox",name:"repoprefix",label:"Repo-Prefix (optional) *"}],onsubmit:function(t){return t.data.addonid&&t.data.addonxmlurl?void e.insertContent('[embedKodiAddonDownload addonid="'+t.data.addonid+'" addonxmlurl="'+t.data.addonxmlurl+'" repoprefix="'+t.data.repoprefix+'"]'):void alert("You must fill in the AddonID and addon.xml URL to embed a Kodi Addon Download Link")}})}},{text:"Embed Kodi Addon Info",icon:"icon fa fa-television dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Kodi Addon Info",body:[{type:"textbox",name:"addonid",label:"AddonID *"},{type:"textbox",name:"addonxmlurl",label:"URL to addon.xml *"},{type:"textbox",name:"repoprefix",label:"Repo-Prefix (optional) *"}],onsubmit:function(t){return t.data.addonid&&t.data.addonxmlurl?void e.insertContent('[embedKodiAddonInfo addonid="'+t.data.addonid+'" addonxmlurl="'+t.data.addonxmlurl+'" repoprefix="'+t.data.repoprefix+'"]'):void alert("You must fill in the AddonID and addon.xml URL to embed a Kodi Addon Download Link")}})}},{text:"Inline Code",icon:"icon fa fa-code dobsondev-shortcodes",value:"[startCode][endCode]",onclick:function(){e.insertContent(this.value())}},{text:"Code Block",icon:"icon fa fa-file-code-o dobsondev-shortcodes",value:"[codeBlock][endCodeBlock]",onclick:function(){e.insertContent(this.value())}},{text:"Button",icon:"icon fa fa-plus-square dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"Embed Button",body:[{type:"textbox",name:"text",label:"Button Text *"},{type:"listbox",name:"color",label:"Color",values:[{text:"Blue",value:"blue",selected:!0},{text:"Green",value:"green"},{text:"Red",value:"red"},{text:"Orange",value:"orange"},{text:"Purple",value:"purple"},{text:"Turquoise",value:"turquoise"}]},{type:"textbox",name:"link",label:"Link"}],onsubmit:function(t){t.data.color||t.data.link?!t.data.color&&t.data.link?e.insertContent('[button text="'+t.data.text+'" link="'+t.data.color+'"]'):t.data.color&&!t.data.link?e.insertContent('[button text="'+t.data.text+'" color="'+t.data.color+'"]'):e.insertContent('[button text="'+t.data.text+'" color="'+t.data.color+'" link="'+t.data.link+'"]'):e.insertContent('[button text="'+t.data.text+'"]')}})}},{text:"User Interaction Message",icon:"icon fa fa-quote-left dobsondev-shortcodes",onclick:function(){e.windowManager.open({title:"",body:[{type:"listbox",name:"messagetype",label:"Message Type *",values:[{text:"Info Message",value:"info",selected:!0},{text:"Success Message",value:"success"},{text:"Warning Message",value:"warning"},{text:"Error Message",value:"error"}]},{type:"textbox",name:"text",label:"Text *"}],onsubmit:function(t){"info"==t.data.messagetype?e.insertContent('[infoMessage text="'+t.data.text+'"]'):"success"==t.data.messagetype?e.insertContent('[successMessage text="'+t.data.text+'"]'):"warning"==t.data.messagetype?e.insertContent('[warningMessage text="'+t.data.text+'"]'):e.insertContent('[errorMessage text="'+t.data.text+'"]')}})}},{text:"Social Share",icon:"icon fa fa-share-alt dobsondev-shortcodes",value:"[socialShare]",onclick:function(){e.insertContent(this.value())}},{text:"Related Posts",icon:"icon dashicons-admin-post dobsondev-shortcodes",value:'[relatedPosts posts=""]',onclick:function(){e.insertContent(this.value())}}]})})}();1 !function(){tinymce.PluginManager.add("dobsondev_shrtcode_tinymce",function(a,b){a.addButton("dobsondev_shrtcode_tinymce_button",{title:"DobsonDev Shortcodes",type:"menubutton",icon:"icon dobsondev-icon",menu:[{text:"Embed PDF",icon:"icon fa fa-file-pdf-o dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed PDF",body:[{type:"textbox",name:"source",label:"Source *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.source?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedPDF source="'+b.data.source+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedPDF source="'+b.data.source+'" width="'+b.data.width+'"]'):a.insertContent('[embedPDF source="'+b.data.source+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedPDF source="'+b.data.source+'"]')):void alert("You must fill in the Source to embed a PDF")}})}},{text:"Embed GitHub Gist",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed GitHub Gist",body:[{type:"textbox",name:"source",label:"Source *"}],onsubmit:function(b){return b.data.source?void a.insertContent('[embedGist source="'+b.data.source+'"]'):void alert("You must fill in the Source to embed a GitHub Gist")}})}},{text:"Embed GitHub Readme",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed GitHub Readme",body:[{type:"textbox",name:"owner",label:"Owner *"},{type:"textbox",name:"repo",label:"Repository *"},{type:"textbox",name:"cacheid",label:"Cache ID"}],onsubmit:function(b){return b.data.owner&&b.data.repo?void(b.data.cacheid?a.insertContent('[embedGitHubReadme owner="'+b.data.owner+'" repo="'+b.data.repo+'" cache_id="'+b.data.cacheid+'"]'):a.insertContent('[embedGitHubReadme owner="'+b.data.owner+'" repo="'+b.data.repo+'"]')):void alert("You must fill in the Owner and Repository to embed a GitHub Readme")}})}},{text:"Embed GitHub File",icon:"icon fa fa-github dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed GitHub File Contents",body:[{type:"textbox",name:"owner",label:"Owner *"},{type:"textbox",name:"repo",label:"Repository *"},{type:"textbox",name:"path",label:"Path to File *"},{type:"checkbox",name:"markdown",label:"Markdown",value:"yes",checked:!1},{type:"textbox",name:"cacheid",label:"Cache ID"}],onsubmit:function(b){return b.data.owner&&b.data.repo&&b.data.path?void(b.data.markdown||b.data.cacheid?!b.data.markdown&&b.data.cacheid?a.insertContent('[embedGitHubContent owner="'+b.data.owner+'" repo="'+b.data.repo+'" path="'+b.data.path+'" cache_id="'+b.data.cacheid+'"]'):b.data.markdown&&!b.data.cacheid?a.insertContent('[embedGitHubContent owner="'+b.data.owner+'" repo="'+b.data.repo+'" path="'+b.data.path+'" markdown="'+b.data.markdown+'"]'):a.insertContent('[embedGitHubContent owner="'+b.data.owner+'" repo="'+b.data.repo+'" path="'+b.data.path+'" markdown="'+b.data.markdown+'" cache_id="'+b.data.cacheid+'"]'):a.insertContent('[embedGitHubContent owner="'+b.data.owner+'" repo="'+b.data.repo+'" path="'+b.data.path+'"]')):void alert("You must fill in the Owner, Repository and Path to the File in order to embed a GitHub File")}})}},{text:"Twitch Stream",icon:"icon fa fa-twitch dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Twitch Stream",body:[{type:"textbox",name:"username",label:"Username *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.username?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedTwitch username="'+b.data.username+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedTwitch username="'+b.data.username+'" width="'+b.data.width+'"]'):a.insertContent('[embedTwitch username="'+b.data.username+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedTwitch username="'+b.data.username+'"]')):void alert("You must fill in the Username in order to embed a Twitch Stream")}})}},{text:"Twitch Chat",icon:"icon fa fa-twitch dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Twitch Chat",body:[{type:"textbox",name:"username",label:"Username *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.username?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedTwitchChat username="'+b.data.username+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedTwitchChat username="'+b.data.username+'" width="'+b.data.width+'"]'):a.insertContent('[embedTwitchChat username="'+b.data.username+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedTwitchChat username="'+b.data.username+'"]')):void alert("You must fill in the Username in order to embed a Twitch Chat")}})}},{text:"YouTube Video",icon:"icon fa fa-youtube dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed YouTube Video",body:[{type:"textbox",name:"videoid",label:"Video ID *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.videoid?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedYouTube video="'+b.data.videoid+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedYouTube video="'+b.data.videoid+'" width="'+b.data.width+'"]'):a.insertContent('[embedYouTube video="'+b.data.videoid+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedYouTube video="'+b.data.videoid+'"]')):void alert("You must fill in the Video ID in order to embed a YouTube video")}})}},{text:"Vimeo Video",icon:"icon fa fa-vimeo dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Vimeo Video",body:[{type:"textbox",name:"videoid",label:"Video ID *"},{type:"textbox",name:"width",label:"Width"},{type:"textbox",name:"height",label:"Height"}],onsubmit:function(b){return b.data.videoid?void(b.data.width||b.data.height?!b.data.width&&b.data.height?a.insertContent('[embedVimeo video="'+b.data.videoid+'" height="'+b.data.height+'"]'):b.data.width&&!b.data.height?a.insertContent('[embedVimeo video="'+b.data.videoid+'" width="'+b.data.width+'"]'):a.insertContent('[embedVimeo video="'+b.data.videoid+'" width="'+b.data.width+'" height="'+b.data.height+'"]'):a.insertContent('[embedVimeo video="'+b.data.videoid+'"]')):void alert("You must fill in the Video ID in order to embed a Vimeo video")}})}},{text:"Embed Kodi Addon Download",icon:"icon fa fa-television dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Kodi Addon Download",body:[{type:"textbox",name:"addonid",label:"AddonID *"},{type:"textbox",name:"addonxmlurl",label:"URL to addon.xml *"},{type:"textbox",name:"repoprefix",label:"Repo-Prefix (optional) *"}],onsubmit:function(b){return b.data.addonid&&b.data.addonxmlurl?void a.insertContent('[embedKodiAddonDownload addonid="'+b.data.addonid+'" addonxmlurl="'+b.data.addonxmlurl+'" repoprefix="'+b.data.repoprefix+'"]'):void alert("You must fill in the AddonID and addon.xml URL to embed a Kodi Addon Download Link")}})}},{text:"Embed Kodi Addon Info",icon:"icon fa fa-television dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Kodi Addon Info",body:[{type:"textbox",name:"addonid",label:"AddonID *"},{type:"textbox",name:"addonxmlurl",label:"URL to addon.xml *"},{type:"textbox",name:"repoprefix",label:"Repo-Prefix (optional) *"}],onsubmit:function(b){return b.data.addonid&&b.data.addonxmlurl?void a.insertContent('[embedKodiAddonInfo addonid="'+b.data.addonid+'" addonxmlurl="'+b.data.addonxmlurl+'" repoprefix="'+b.data.repoprefix+'"]'):void alert("You must fill in the AddonID and addon.xml URL to embed a Kodi Addon Download Link")}})}},{text:"Inline Code",icon:"icon fa fa-code dobsondev-shortcodes",value:"[startCode][endCode]",onclick:function(){a.insertContent(this.value())}},{text:"Code Block",icon:"icon fa fa-file-code-o dobsondev-shortcodes",value:"[startCodeBlock][endCodeBlock]",onclick:function(){a.insertContent(this.value())}},{text:"Button",icon:"icon fa fa-plus-square dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"Embed Button",body:[{type:"textbox",name:"text",label:"Button Text *"},{type:"listbox",name:"color",label:"Color",values:[{text:"Blue",value:"blue",selected:!0},{text:"Green",value:"green"},{text:"Red",value:"red"},{text:"Orange",value:"orange"},{text:"Purple",value:"purple"},{text:"Turquoise",value:"turquoise"}]},{type:"textbox",name:"link",label:"Link"}],onsubmit:function(b){b.data.color||b.data.link?!b.data.color&&b.data.link?a.insertContent('[button text="'+b.data.text+'" link="'+b.data.color+'"]'):b.data.color&&!b.data.link?a.insertContent('[button text="'+b.data.text+'" color="'+b.data.color+'"]'):a.insertContent('[button text="'+b.data.text+'" color="'+b.data.color+'" link="'+b.data.link+'"]'):a.insertContent('[button text="'+b.data.text+'"]')}})}},{text:"User Interaction Message",icon:"icon fa fa-quote-left dobsondev-shortcodes",onclick:function(){a.windowManager.open({title:"",body:[{type:"listbox",name:"messagetype",label:"Message Type *",values:[{text:"Info Message",value:"info",selected:!0},{text:"Success Message",value:"success"},{text:"Warning Message",value:"warning"},{text:"Error Message",value:"error"}]},{type:"textbox",name:"text",label:"Text *"}],onsubmit:function(b){"info"==b.data.messagetype?a.insertContent('[infoMessage text="'+b.data.text+'"]'):"success"==b.data.messagetype?a.insertContent('[successMessage text="'+b.data.text+'"]'):"warning"==b.data.messagetype?a.insertContent('[warningMessage text="'+b.data.text+'"]'):a.insertContent('[errorMessage text="'+b.data.text+'"]')}})}},{text:"Social Share",icon:"icon fa fa-share-alt dobsondev-shortcodes",value:"[socialShare]",onclick:function(){a.insertContent(this.value())}},{text:"Related Posts",icon:"icon dashicons-admin-post dobsondev-shortcodes",value:'[relatedPosts posts=""]',onclick:function(){a.insertContent(this.value())}}]})})}(); -
dobsondev-shortcodes/trunk/readme.txt
r1452947 r1486725 7 7 Requires at least: 2.5 8 8 Tested up to: 4.6 9 Stable tag: 2.1. 19 Stable tag: 2.1.2 10 10 11 11 Add a collection of helpful shortcodes to your site. … … 187 187 Bug Fixes 188 188 189 * Fixed a bug where the Insert Code Block TinyMCE button would not use the correct syntax for the shortcode - thanks to [Chris Dillon](https://wordpress.org/support/profile/cdillon27) for catching the bug and letting me know (2.1.2) 190 * Formated some of the code for the Kodi addon download link and Kodi addon information shortcodes (2.1.1) 189 191 * Changed the way the YouTube embed works with line breaks before the container div (2.1.0) 190 * Formated some of the code for the Kodi addon download link and Kodi addon information shortcodes (2.0.1)191 192 192 193 = - 2.0 - =
Note: See TracChangeset
for help on using the changeset viewer.