Ditty News Ticker - Version 2.1.5

Version Description

  • Added ditty_news_ticker function check in widgets.php file
Download this release

Release Info

Developer metaphorcreations
Plugin Icon 128x128 Ditty News Ticker
Version 2.1.5
Comparing to
See all releases

Code changes from version 2.1.4 to 2.1.5

assets/js/min/script-admin-min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function($){function t(t,e){$("#mtphr-dnt-"+e+"-metaboxes > div").stop(!0,!0).hide();for(var i=t.attr("metabox").split(" "),n=0;n<i.length;n++)$("#"+i[n]).show();t.siblings("a").removeClass("button-primary"),t.addClass("button-primary"),t.siblings("input").val(t.attr("href").substring(1))}function e(t){var e=t.find("input").is(":checked");e?t.next().fadeOut():t.next().fadeIn()}var i=$("#mtphr-dnt-settings-select"),n=$("#wpadminbar");i.mtphr_dnt_affix({offset:{top:function(){return $(window).width()<601?this.top=i.offset().top+5:this.top=i.offset().top-n.height()+5}}}),$(".mtphr-dnt-metabox-group-toggle").click(function(t){t.preventDefault();var e=$(this).attr("href");$(".mtphr-dnt-metabox-group-toggle").removeClass("active"),$(".mtphr-dnt-metabox-group").removeClass("active"),$(this).addClass("active"),$(e).addClass("active"),$('input[name="_mtphr_dnt_admin_tab"]').val(e)}),$(".mtphr-dnt-codemirror-css").each(function(){var t=$(this).children("textarea");CodeMirror.fromTextArea(t[0],{mode:"css",lineNumbers:!0,lineWrapping:!0,viewportMargin:1/0})}),$(".mtphr-dnt-codemirror-js").each(function(){var t=$(this).children("textarea"),e=CodeMirror.fromTextArea(t[0],{mode:"htmlmixed",lineNumbers:!0,lineWrapping:!0});e.setSize(!1,140)}),$(".mtphr-dnt-code-select").click(function(t){t.preventDefault();var e=$(this).siblings("pre"),i,n,r=e[0];$.browser.msie?(i=document.body.createTextRange(),i.moveToElementText(r),i.select()):$.browser.mozilla||$.browser.opera?(n=window.getSelection(),i=document.createRange(),i.selectNodeContents(r),n.removeAllRanges(),n.addRange(i)):($.browser.safari||$.browser.chrome)&&(n=window.getSelection(),n.setBaseAndExtent(r,0,r,1))}),$('input[name="_mtphr_dnt_admin_javascript"]').length&&$('input[name="_mtphr_dnt_admin_javascript"]').val("ok"),$(".mtphr-dnt-type-toggle.button-primary").length&&t($(".mtphr-dnt-type-toggle.button-primary"),"type"),$(".mtphr-dnt-mode-toggle.button-primary").length&&t($(".mtphr-dnt-mode-toggle.button-primary"),"mode"),$(".mtphr-dnt-type-toggle").click(function(e){e.preventDefault(),$(this).hasClass("button-primary")||t($(this),"type")}),$(".mtphr-dnt-mode-toggle").click(function(e){e.preventDefault(),$(this).hasClass("button-primary")||t($(this),"mode")}),$(".mtphr-dnt-sort").length>0&&($(".mtphr-dnt-sort").sortable({handle:".mtphr-dnt-sort-heading",items:".mtphr-dnt-sort-item",axis:"y",opacity:.7,placeholder:{element:function(t){var e=$(t).innerHeight();return $('<div class="mtphr-dnt-sort-placeholder" style="height:'+e+'px;"></div>')[0]},update:function(){}},helper:function(t,e){var i=e.children(),n=e.clone();return n.children().each(function(t){$(this).width(i.eq(t).width()),$(this).height(i.eq(t).height())}),n}}),$(".mtphr-dnt-sort-heading.optional").live("click",function(t){t.preventDefault();var e=$(this).parents(".mtphr-dnt-sort-item"),i=$(this).next(".mtphr-dnt-sort-item-fields"),n=$(this).children("input");e.hasClass("active")?(e.removeClass("active"),n.val("off"),i.length&&i.stop(!0,!0).slideUp(1e3,"easeOutQuint")):(e.addClass("active"),n.val("on"),i.length&&i.stop(!0,!0).slideDown(1e3,"easeOutQuint"))})),$(".mtphr-dnt-list").mtphr_dnt_list(),$(".mtphr-dnt-single-image").find(".mtphr-dnt-delete").live("click",function(t){t.preventDefault();var e=$(this).parent(),i=e.siblings(".mtphr-dnt-single-image-upload"),n=e.siblings("input");n.val(""),e.remove(),i.show()}),$(".mtphr-dnt-single-image-upload").live("click",function(t){t.preventDefault();var e=$(this),i=e.parent(),n=i.children("input"),r;return r?void r.open():(r=wp.media({title:ditty_news_ticker_vars.img_title,button:{text:ditty_news_ticker_vars.img_button,size:"small"},multiple:!1,library:{type:"image"}}),r.on("select",function(){var t=r.state().get("selection").toJSON();if(t.length>0){n.val(t[0].id);var a={action:"mtphr_dnt_single_image_ajax",attachment:t[0],security:ditty_news_ticker_vars.security};jQuery.post(ajaxurl,a,function(t){e.hide(),i.append(t)})}}),r.open(),!1)});var r={content:{attr:"data-tooltip"},style:{classes:"qtip-light qtip-rounded qtip-shadow"}};$('.mtphr-dnt-help[data-tooltip!=""]').qtip(r),$('.mtphr-dnt-help[data-tooltip!=""]').click(function(t){t.preventDefault()}),$(".mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all").find("input").live("click",function(){e($(this).parents(".mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all"))}),$(".mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all").each(function(){e($(this))})}),function($){var t={init:function(t){return this.each(function(){function e(){a.find(".mtphr-dnt-list-item").length>1?(a.find(".mtphr-dnt-list-handle").show(),a.find(".mtphr-dnt-list-delete").show()):(a.find(".mtphr-dnt-list-handle").hide(),a.find(".mtphr-dnt-list-delete").hide())}function i(){a.find(".mtphr-dnt-list-item").each(function(t){$(this).find("textarea, input, select").each(function(){var e,i;if($(this).hasClass("wp-editor-area")){var n=$(this).parents(".mtphr-dnt-field-type-wysiwyg");e=n.attr("data-name"),i=n.attr("data-key")}else e=$(this).attr("data-name"),i=$(this).attr("data-key");e&&i&&$(this).attr("name",e+"["+t+"]["+i+"]")})}),e()}function n(t,e){var n=t.clone();n.find("textarea, input, select").each(function(){"checkbox"===$(this).attr("type")||"radio"===$(this).attr("type")?$(this).removeAttr("checked"):$(this).val("")}),n.find("textarea").each(function(){if($(this).hasClass("wp-editor-area")){var t=$(this).parents(".mtphr-dnt-field-type-wysiwyg"),e=t.attr("data-name");t.children(".wp-core-ui").remove();var n={action:"mtphr_dnt_wysiwyg_ajax",name:e,security:ditty_news_ticker_vars.security};jQuery.post(ajaxurl,n,function(e){var n=$(e),r=n.find("textarea").attr("id");t.append(e),"object"==typeof tinyMCE&&"function"==typeof tinyMCE.execCommand&&tinyMCE.execCommand("mceAddEditor",!1,r),i()})}}),n.hide(),t.after(n),n.fadeIn().addClass(e),n.find('.mtphr-dnt-help[data-tooltip!=""]').qtip(s),i(),a.trigger("mtphr_dnt_list_item_added",[n,e])}var r={};t&&$.extend(r,t);var a=$(this),s={content:{attr:"data-tooltip"},style:{classes:"qtip-light qtip-rounded qtip-shadow"}};a.sortable({handle:".mtphr-dnt-list-heading",items:".mtphr-dnt-list-item",axis:"y",opacity:.7,placeholder:{element:function(t){var e=$(t).innerHeight();return $('<div class="mtphr-dnt-sort-placeholder" style="height:'+e+'px;"></div>')[0]},update:function(){}},helper:function(t,e){var i=e.children(),n=e.clone();return n.children().each(function(t){$(this).width(i.eq(t).width()),$(this).height(i.eq(t).height())}),n}}),a.find(".mtphr-dnt-list-delete").live("click",function(t){t.preventDefault(),$(this).parents(".mtphr-dnt-list-item").fadeOut(function(){$(this).remove(),i()})}),a.find(".mtphr-dnt-list-add").live("click",function(t){t.preventDefault(),n($(this).parents(".mtphr-dnt-list-item"))}),a.on("mtphr_dnt_list_add_item",function(t,e,i){n(e,i)}),i()})}};$.fn.mtphr_dnt_list=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void $.error("Method "+e+" does not exist in mtphr_dnt_list"):t.init.apply(this,arguments)}}(jQuery);
1
+ jQuery(document).ready(function($){function t(t,e){$("#mtphr-dnt-"+e+"-metaboxes > div").stop(!0,!0).hide();for(var i=t.attr("metabox").split(" "),n=0;n<i.length;n++)$("#"+i[n]).show();t.siblings("a").removeClass("button-primary"),t.addClass("button-primary"),t.siblings("input").val(t.attr("href").substring(1))}function e(t){t.find("input").is(":checked")?t.next().fadeOut():t.next().fadeIn()}var i=$("#mtphr-dnt-settings-select"),n=$("#wpadminbar");i.mtphr_dnt_affix({offset:{top:function(){return $(window).width()<601?this.top=i.offset().top+5:this.top=i.offset().top-n.height()+5}}}),$(".mtphr-dnt-metabox-group-toggle").click(function(t){t.preventDefault();var e=$(this).attr("href");$(".mtphr-dnt-metabox-group-toggle").removeClass("active"),$(".mtphr-dnt-metabox-group").removeClass("active"),$(this).addClass("active"),$(e).addClass("active"),$('input[name="_mtphr_dnt_admin_tab"]').val(e)}),$(".mtphr-dnt-codemirror-css").each(function(){var t=$(this).children("textarea");CodeMirror.fromTextArea(t[0],{mode:"css",lineNumbers:!0,lineWrapping:!0,viewportMargin:1/0})}),$(".mtphr-dnt-codemirror-js").each(function(){var t=$(this).children("textarea");CodeMirror.fromTextArea(t[0],{mode:"htmlmixed",lineNumbers:!0,lineWrapping:!0}).setSize(!1,140)}),$(".mtphr-dnt-code-select").click(function(t){t.preventDefault();var e=$(this).siblings("pre"),i,n,r=e[0];$.browser.msie?(i=document.body.createTextRange(),i.moveToElementText(r),i.select()):$.browser.mozilla||$.browser.opera?(n=window.getSelection(),i=document.createRange(),i.selectNodeContents(r),n.removeAllRanges(),n.addRange(i)):($.browser.safari||$.browser.chrome)&&(n=window.getSelection(),n.setBaseAndExtent(r,0,r,1))}),$('input[name="_mtphr_dnt_admin_javascript"]').length&&$('input[name="_mtphr_dnt_admin_javascript"]').val("ok"),$(".mtphr-dnt-type-toggle.button-primary").length&&t($(".mtphr-dnt-type-toggle.button-primary"),"type"),$(".mtphr-dnt-mode-toggle.button-primary").length&&t($(".mtphr-dnt-mode-toggle.button-primary"),"mode"),$(".mtphr-dnt-type-toggle").click(function(e){e.preventDefault(),$(this).hasClass("button-primary")||t($(this),"type")}),$(".mtphr-dnt-mode-toggle").click(function(e){e.preventDefault(),$(this).hasClass("button-primary")||t($(this),"mode")}),$(".mtphr-dnt-sort").length>0&&($(".mtphr-dnt-sort").sortable({handle:".mtphr-dnt-sort-heading",items:".mtphr-dnt-sort-item",axis:"y",opacity:.7,placeholder:{element:function(t){return $('<div class="mtphr-dnt-sort-placeholder" style="height:'+$(t).innerHeight()+'px;"></div>')[0]},update:function(){}},helper:function(t,e){var i=e.children(),n=e.clone();return n.children().each(function(t){$(this).width(i.eq(t).width()),$(this).height(i.eq(t).height())}),n}}),$(".mtphr-dnt-sort-heading.optional").live("click",function(t){t.preventDefault();var e=$(this).parents(".mtphr-dnt-sort-item"),i=$(this).next(".mtphr-dnt-sort-item-fields"),n=$(this).children("input");e.hasClass("active")?(e.removeClass("active"),n.val("off"),i.length&&i.stop(!0,!0).slideUp(1e3,"easeOutQuint")):(e.addClass("active"),n.val("on"),i.length&&i.stop(!0,!0).slideDown(1e3,"easeOutQuint"))})),$(".mtphr-dnt-list").mtphr_dnt_list(),$(".mtphr-dnt-single-image").find(".mtphr-dnt-delete").live("click",function(t){t.preventDefault();var e=$(this).parent(),i=e.siblings(".mtphr-dnt-single-image-upload");e.siblings("input").val(""),e.remove(),i.show()}),$(".mtphr-dnt-single-image-upload").live("click",function(t){t.preventDefault();var e=$(this),i=e.parent(),n=i.children("input"),r;return r?void r.open():(r=wp.media({title:ditty_news_ticker_vars.img_title,button:{text:ditty_news_ticker_vars.img_button,size:"small"},multiple:!1,library:{type:"image"}}),r.on("select",function(){var t=r.state().get("selection").toJSON();if(t.length>0){n.val(t[0].id);var a={action:"mtphr_dnt_single_image_ajax",attachment:t[0],security:ditty_news_ticker_vars.security};jQuery.post(ajaxurl,a,function(t){e.hide(),i.append(t)})}}),r.open(),!1)});var r={content:{attr:"data-tooltip"},style:{classes:"qtip-light qtip-rounded qtip-shadow"}};$('.mtphr-dnt-help[data-tooltip!=""]').qtip(r),$('.mtphr-dnt-help[data-tooltip!=""]').click(function(t){t.preventDefault()}),$(".mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all").find("input").live("click",function(){e($(this).parents(".mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all"))}),$(".mtphr-dnt-list-field-mtphr_dnt_mixed_ticks_all").each(function(){e($(this))})}),function($){var t={init:function(t){return this.each(function(){function e(){a.find(".mtphr-dnt-list-item").length>1?(a.find(".mtphr-dnt-list-handle").show(),a.find(".mtphr-dnt-list-delete").show()):(a.find(".mtphr-dnt-list-handle").hide(),a.find(".mtphr-dnt-list-delete").hide())}function i(){a.find(".mtphr-dnt-list-item").each(function(t){$(this).find("textarea, input, select").each(function(){var e,i;if($(this).hasClass("wp-editor-area")){var n=$(this).parents(".mtphr-dnt-field-type-wysiwyg");e=n.attr("data-name"),i=n.attr("data-key")}else e=$(this).attr("data-name"),i=$(this).attr("data-key");e&&i&&$(this).attr("name",e+"["+t+"]["+i+"]")})}),e()}function n(t,e){var n=t.clone();n.find("textarea, input, select").each(function(){"checkbox"===$(this).attr("type")||"radio"===$(this).attr("type")?$(this).removeAttr("checked"):$(this).val("")}),n.find("textarea").each(function(){if($(this).hasClass("wp-editor-area")){var t=$(this).parents(".mtphr-dnt-field-type-wysiwyg"),e=t.attr("data-name");t.children(".wp-core-ui").remove();var n={action:"mtphr_dnt_wysiwyg_ajax",name:e,security:ditty_news_ticker_vars.security};jQuery.post(ajaxurl,n,function(e){var n=$(e),r=n.find("textarea").attr("id");t.append(e),"object"==typeof tinyMCE&&"function"==typeof tinyMCE.execCommand&&tinyMCE.execCommand("mceAddEditor",!1,r),i()})}}),n.hide(),t.after(n),n.fadeIn().addClass(e),n.find('.mtphr-dnt-help[data-tooltip!=""]').qtip(s),i(),a.trigger("mtphr_dnt_list_item_added",[n,e])}var r={};t&&$.extend(r,t);var a=$(this),s={content:{attr:"data-tooltip"},style:{classes:"qtip-light qtip-rounded qtip-shadow"}};a.sortable({handle:".mtphr-dnt-list-heading",items:".mtphr-dnt-list-item",axis:"y",opacity:.7,placeholder:{element:function(t){return $('<div class="mtphr-dnt-sort-placeholder" style="height:'+$(t).innerHeight()+'px;"></div>')[0]},update:function(){}},helper:function(t,e){var i=e.children(),n=e.clone();return n.children().each(function(t){$(this).width(i.eq(t).width()),$(this).height(i.eq(t).height())}),n}}),a.find(".mtphr-dnt-list-delete").live("click",function(t){t.preventDefault(),$(this).parents(".mtphr-dnt-list-item").fadeOut(function(){$(this).remove(),i()})}),a.find(".mtphr-dnt-list-add").live("click",function(t){t.preventDefault(),n($(this).parents(".mtphr-dnt-list-item"))}),a.on("mtphr_dnt_list_add_item",function(t,e,i){n(e,i)}),i()})}};$.fn.mtphr_dnt_list=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void $.error("Method "+e+" does not exist in mtphr_dnt_list"):t.init.apply(this,arguments)}}(jQuery);
config.codekit3 CHANGED
@@ -7,7 +7,7 @@
7
  "uuidString": "0B43A184-D1FE-4DF7-BE71-3FAE2291CFE5"
8
  }
9
  ],
10
- "creatorBuild": "25444",
11
  "files": {
12
  "\/assets\/css\/codemirror.css": {
13
  "aP": 0,
@@ -315,6 +315,12 @@
315
  "oAP": "\/classes\/helpers\/class-mtphr-dnt-string-replacement.php",
316
  "oF": 0
317
  },
 
 
 
 
 
 
318
  "\/includes\/admin\/ajax.php": {
319
  "ft": 8192,
320
  "oA": 2,
@@ -363,6 +369,12 @@
363
  "oAP": "\/includes\/admin\/upgrades.php",
364
  "oF": 0
365
  },
 
 
 
 
 
 
366
  "\/includes\/filters.php": {
367
  "ft": 8192,
368
  "oA": 2,
@@ -471,6 +483,12 @@
471
  "oAP": "\/languages\/ditty-news-ticker-it_IT.po",
472
  "oF": 0
473
  },
 
 
 
 
 
 
474
  "\/templates\/control_nav.php": {
475
  "ft": 8192,
476
  "oA": 2,
@@ -984,6 +1002,10 @@
984
  "active": 0,
985
  "optionString": "{'properties': 'always'}"
986
  },
 
 
 
 
987
  "class-methods-use-this": {
988
  "active": 0,
989
  "optionString": "{'exceptMethods': []}"
@@ -1148,6 +1170,10 @@
1148
  "active": 0,
1149
  "optionString": "{'max': 10}, {'ignoreTopLevelFunctions': true}"
1150
  },
 
 
 
 
1151
  "multiline-ternary": {
1152
  "active": 0,
1153
  "optionString": "'always'"
@@ -1180,6 +1206,10 @@
1180
  "active": 0,
1181
  "optionString": ""
1182
  },
 
 
 
 
1183
  "no-bitwise": {
1184
  "active": 0,
1185
  "optionString": "{'allow': ['~'], 'int32Hint': true}"
@@ -1200,6 +1230,10 @@
1200
  "active": 1,
1201
  "optionString": ""
1202
  },
 
 
 
 
1203
  "no-cond-assign": {
1204
  "active": 1,
1205
  "optionString": "'except-parens'"
@@ -1400,6 +1434,10 @@
1400
  "active": 0,
1401
  "optionString": ""
1402
  },
 
 
 
 
1403
  "no-multi-spaces": {
1404
  "active": 0,
1405
  "optionString": "{'exceptions': {'Property': true, 'BinaryExpression': false, 'VariableDeclarator': false, 'ImportDeclaration': false}}"
@@ -1512,6 +1550,10 @@
1512
  "active": 0,
1513
  "optionString": "'except-parens'"
1514
  },
 
 
 
 
1515
  "no-script-url": {
1516
  "active": 0,
1517
  "optionString": ""
@@ -1672,6 +1714,10 @@
1672
  "active": 0,
1673
  "optionString": ""
1674
  },
 
 
 
 
1675
  "object-curly-newline": {
1676
  "active": 0,
1677
  "optionString": "{'ObjectExpression': {'multiline': true}, 'ObjectPattern': {'multiline': true}}"
@@ -1716,10 +1762,18 @@
1716
  "active": 0,
1717
  "optionString": "{'destructuring': 'any', 'ignoreReadBeforeAssign': false}"
1718
  },
 
 
 
 
1719
  "prefer-numeric-literals": {
1720
  "active": 0,
1721
  "optionString": ""
1722
  },
 
 
 
 
1723
  "prefer-rest-params": {
1724
  "active": 0,
1725
  "optionString": ""
@@ -1744,6 +1798,10 @@
1744
  "active": 0,
1745
  "optionString": "'always'"
1746
  },
 
 
 
 
1747
  "require-jsdoc": {
1748
  "active": 0,
1749
  "optionString": "{'require': {'FunctionDeclaration': true, 'MethodDefinition': false, 'ClassDeclaration': false}}"
@@ -1812,6 +1870,10 @@
1812
  "active": 0,
1813
  "optionString": "'never'"
1814
  },
 
 
 
 
1815
  "unicode-bom": {
1816
  "active": 0,
1817
  "optionString": "'never'"
@@ -2255,7 +2317,8 @@
2255
  "autoOutputPathRelativePath": "",
2256
  "autoOutputPathReplace1": "",
2257
  "autoOutputPathReplace2": "",
2258
- "autoOutputPathStyle": 0
 
2259
  },
2260
  "languageDefaultsJS": {
2261
  "autoOutputAction": 0,
@@ -2348,7 +2411,9 @@
2348
  "autoOutputPathRelativePath": "",
2349
  "autoOutputPathReplace1": "",
2350
  "autoOutputPathReplace2": "",
2351
- "autoOutputPathStyle": 0
 
 
2352
  },
2353
  "languageDefaultsPUG": {
2354
  "autoOutputAction": 0,
@@ -2578,6 +2643,10 @@
2578
  "active": 1,
2579
  "flagValue": -1
2580
  },
 
 
 
 
2581
  "toplevel": {
2582
  "active": 0,
2583
  "flagValue": -1
7
  "uuidString": "0B43A184-D1FE-4DF7-BE71-3FAE2291CFE5"
8
  }
9
  ],
10
+ "creatorBuild": "25704",
11
  "files": {
12
  "\/assets\/css\/codemirror.css": {
13
  "aP": 0,
315
  "oAP": "\/classes\/helpers\/class-mtphr-dnt-string-replacement.php",
316
  "oF": 0
317
  },
318
+ "\/ditty-news-ticker.php": {
319
+ "ft": 8192,
320
+ "oA": 2,
321
+ "oAP": "\/ditty-news-ticker.php",
322
+ "oF": 0
323
+ },
324
  "\/includes\/admin\/ajax.php": {
325
  "ft": 8192,
326
  "oA": 2,
369
  "oAP": "\/includes\/admin\/upgrades.php",
370
  "oF": 0
371
  },
372
+ "\/includes\/composer.php": {
373
+ "ft": 8192,
374
+ "oA": 2,
375
+ "oAP": "\/includes\/composer.php",
376
+ "oF": 0
377
+ },
378
  "\/includes\/filters.php": {
379
  "ft": 8192,
380
  "oA": 2,
483
  "oAP": "\/languages\/ditty-news-ticker-it_IT.po",
484
  "oF": 0
485
  },
486
+ "\/readme.txt": {
487
+ "ft": 8192,
488
+ "oA": 2,
489
+ "oAP": "\/readme.txt",
490
+ "oF": 0
491
+ },
492
  "\/templates\/control_nav.php": {
493
  "ft": 8192,
494
  "oA": 2,
1002
  "active": 0,
1003
  "optionString": "{'properties': 'always'}"
1004
  },
1005
+ "capitalized-comments": {
1006
+ "active": 0,
1007
+ "optionString": "'always', {'ignoreInlineComments': false, 'ignoreConsecutiveComments': false}"
1008
+ },
1009
  "class-methods-use-this": {
1010
  "active": 0,
1011
  "optionString": "{'exceptMethods': []}"
1170
  "active": 0,
1171
  "optionString": "{'max': 10}, {'ignoreTopLevelFunctions': true}"
1172
  },
1173
+ "max-statements-per-line": {
1174
+ "active": 0,
1175
+ "optionString": "{'max': 1}"
1176
+ },
1177
  "multiline-ternary": {
1178
  "active": 0,
1179
  "optionString": "'always'"
1206
  "active": 0,
1207
  "optionString": ""
1208
  },
1209
+ "no-await-in-loop": {
1210
+ "active": 0,
1211
+ "optionString": ""
1212
+ },
1213
  "no-bitwise": {
1214
  "active": 0,
1215
  "optionString": "{'allow': ['~'], 'int32Hint': true}"
1230
  "active": 1,
1231
  "optionString": ""
1232
  },
1233
+ "no-compare-neg-zero": {
1234
+ "active": 0,
1235
+ "optionString": ""
1236
+ },
1237
  "no-cond-assign": {
1238
  "active": 1,
1239
  "optionString": "'except-parens'"
1434
  "active": 0,
1435
  "optionString": ""
1436
  },
1437
+ "no-multi-assign": {
1438
+ "active": 0,
1439
+ "optionString": ""
1440
+ },
1441
  "no-multi-spaces": {
1442
  "active": 0,
1443
  "optionString": "{'exceptions': {'Property': true, 'BinaryExpression': false, 'VariableDeclarator': false, 'ImportDeclaration': false}}"
1550
  "active": 0,
1551
  "optionString": "'except-parens'"
1552
  },
1553
+ "no-return-await": {
1554
+ "active": 0,
1555
+ "optionString": ""
1556
+ },
1557
  "no-script-url": {
1558
  "active": 0,
1559
  "optionString": ""
1714
  "active": 0,
1715
  "optionString": ""
1716
  },
1717
+ "nonblock-statement-body-position": {
1718
+ "active": 0,
1719
+ "optionString": "'beside'"
1720
+ },
1721
  "object-curly-newline": {
1722
  "active": 0,
1723
  "optionString": "{'ObjectExpression': {'multiline': true}, 'ObjectPattern': {'multiline': true}}"
1762
  "active": 0,
1763
  "optionString": "{'destructuring': 'any', 'ignoreReadBeforeAssign': false}"
1764
  },
1765
+ "prefer-destructuring": {
1766
+ "active": 0,
1767
+ "optionString": "{'array': true, 'object': true}, {'enforceForRenamedProperties': false}"
1768
+ },
1769
  "prefer-numeric-literals": {
1770
  "active": 0,
1771
  "optionString": ""
1772
  },
1773
+ "prefer-promise-reject-errors": {
1774
+ "active": 0,
1775
+ "optionString": "{'allowEmptyReject': false}"
1776
+ },
1777
  "prefer-rest-params": {
1778
  "active": 0,
1779
  "optionString": ""
1798
  "active": 0,
1799
  "optionString": "'always'"
1800
  },
1801
+ "require-await": {
1802
+ "active": 0,
1803
+ "optionString": ""
1804
+ },
1805
  "require-jsdoc": {
1806
  "active": 0,
1807
  "optionString": "{'require': {'FunctionDeclaration': true, 'MethodDefinition': false, 'ClassDeclaration': false}}"
1870
  "active": 0,
1871
  "optionString": "'never'"
1872
  },
1873
+ "template-tag-spacing": {
1874
+ "active": 0,
1875
+ "optionString": "'never'"
1876
+ },
1877
  "unicode-bom": {
1878
  "active": 0,
1879
  "optionString": "'never'"
2317
  "autoOutputPathRelativePath": "",
2318
  "autoOutputPathReplace1": "",
2319
  "autoOutputPathReplace2": "",
2320
+ "autoOutputPathStyle": 0,
2321
+ "quality": 100
2322
  },
2323
  "languageDefaultsJS": {
2324
  "autoOutputAction": 0,
2411
  "autoOutputPathRelativePath": "",
2412
  "autoOutputPathReplace1": "",
2413
  "autoOutputPathReplace2": "",
2414
+ "autoOutputPathStyle": 0,
2415
+ "enableLossy": 1,
2416
+ "quality": 100
2417
  },
2418
  "languageDefaultsPUG": {
2419
  "autoOutputAction": 0,
2643
  "active": 1,
2644
  "flagValue": -1
2645
  },
2646
+ "support-ie8": {
2647
+ "active": 0,
2648
+ "flagValue": -1
2649
+ },
2650
  "toplevel": {
2651
  "active": 0,
2652
  "flagValue": -1
ditty-news-ticker.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://dittynewsticker.com/
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
- Version: 2.1.4
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
 
32
 
33
 
34
- define ( 'MTPHR_DNT_VERSION', '2.1.4' );
35
  define ( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path(__FILE__)) );
36
 
37
 
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
+ Version: 2.1.5
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
31
 
32
 
33
 
34
+ define ( 'MTPHR_DNT_VERSION', '2.1.5' );
35
  define ( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path(__FILE__)) );
36
 
37
 
includes/widget.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Create a class for the widget
5
  *
6
- * @since 1.5.8
7
  */
8
  class mtphr_dnt_widget extends WP_Widget {
9
 
@@ -56,7 +56,9 @@ class mtphr_dnt_widget extends WP_Widget {
56
 
57
  // Display the ticker
58
  if( $ticker != '' ) {
59
- ditty_news_ticker( $ticker, '', $atts );
 
 
60
  }
61
 
62
  // After widget (defined by themes)
3
  /**
4
  * Create a class for the widget
5
  *
6
+ * @since 2.1.5
7
  */
8
  class mtphr_dnt_widget extends WP_Widget {
9
 
56
 
57
  // Display the ticker
58
  if( $ticker != '' ) {
59
+ if( function_exists('ditty_news_ticker') ) {
60
+ ditty_news_ticker( $ticker, '', $atts );
61
+ }
62
  }
63
 
64
  // After widget (defined by themes)
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: metaphorcreations
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
4
  Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
  Requires at least: 4.0
6
- Tested up to: 4.7
7
  Stable tag: /trunk/
8
  License: GPL2
9
 
@@ -68,6 +68,9 @@ Each individual Ticker post has multiple settings to customize.
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 2.1.4 =
72
  * Removed testing code from last update
73
 
@@ -404,4 +407,4 @@ Each individual Ticker post has multiple settings to customize.
404
 
405
  == Upgrade Notice ==
406
 
407
- Removed testing code from last update
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
4
  Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
  Requires at least: 4.0
6
+ Tested up to: 4.7.3
7
  Stable tag: /trunk/
8
  License: GPL2
9
 
68
 
69
  == Changelog ==
70
 
71
+ = 2.1.5 =
72
+ * Added ditty_news_ticker function check in widgets.php file
73
+
74
  = 2.1.4 =
75
  * Removed testing code from last update
76
 
407
 
408
  == Upgrade Notice ==
409
 
410
+ Added ditty_news_ticker function check in widgets.php file