Plugin Directory

Changeset 2122321


Ignore:
Timestamp:
07/12/2019 10:39:36 PM (7 years ago)
Author:
pinecast
Message:

[1.0.1] Bump podcast row to have more comprehensive template support

Location:
pinecast-wp-sync
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pinecast-wp-sync/tags/1.0.1/dist/admin/js/pinecast.min.js

    r2120413 r2122321  
    1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);
     1"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.find(".otherwise-required").attr("required","required"),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);
  • pinecast-wp-sync/tags/1.0.1/includes/admin/views/podcast-row.php

    r2120413 r2122321  
    3131                    type="text"
    3232                    value="<?php echo esc_attr( $podcast->get_name() ); ?>"
    33                     class="feed-name"
    34                     required
     33                    class="feed-name otherwise-required"
     34                    <?php if ($podcast->get_feed_url()) {echo 'required';} ?>
    3535                >
    3636            </div>
     
    4646                    <?php if ($podcast->get_feed_url()) {echo 'readonly';} ?>
    4747                    pattern="https?://.+"
    48                     required
     48                    class="otherwise-required"
     49                    <?php if ($podcast->get_feed_url()) {echo 'required';} ?>
    4950                >
    5051            </div>
  • pinecast-wp-sync/tags/1.0.1/readme.txt

    r2120417 r2122321  
    55Tested up to: 5.2.2
    66Stable tag: 1.0
    7 Requires PHP: 7
     7Requires PHP: 7.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • pinecast-wp-sync/trunk/dist/admin/js/pinecast.min.js

    r2120413 r2122321  
    1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);
     1"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.find(".otherwise-required").attr("required","required"),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);
  • pinecast-wp-sync/trunk/includes/admin/views/podcast-row.php

    r2120413 r2122321  
    3131                    type="text"
    3232                    value="<?php echo esc_attr( $podcast->get_name() ); ?>"
    33                     class="feed-name"
    34                     required
     33                    class="feed-name otherwise-required"
     34                    <?php if ($podcast->get_feed_url()) {echo 'required';} ?>
    3535                >
    3636            </div>
     
    4646                    <?php if ($podcast->get_feed_url()) {echo 'readonly';} ?>
    4747                    pattern="https?://.+"
    48                     required
     48                    class="otherwise-required"
     49                    <?php if ($podcast->get_feed_url()) {echo 'required';} ?>
    4950                >
    5051            </div>
  • pinecast-wp-sync/trunk/readme.txt

    r2120417 r2122321  
    55Tested up to: 5.2.2
    66Stable tag: 1.0
    7 Requires PHP: 7
     7Requires PHP: 7.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.