Plugin Directory

Changeset 2694798


Ignore:
Timestamp:
03/16/2022 12:31:02 PM (4 years ago)
Author:
autooffice
Message:

Update plugin v 1.1.02

Location:
aopush/trunk
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • aopush/trunk/aopush_plugin.php

    r2329319 r2694798  
    55Description: Плагин для лёгкого подключения push-уведомлений на вашем сайте. Пройдя двухминутную регистрацию прямо через Wordpress, вы сможете включить подписку на push на вашем сайте одной кнопкой. Плагин поддерживает два способа отправки пуш: автоматический - при создании или обновлении записи на блоге, и ручную рассылку по подписчикам.
    66Author: Autooffice
    7 Version: 1.1.01
     7Version: 1.1.02
    88Author URI: https://profiles.wordpress.org/autooffice#content-plugins
    99*/
  • aopush/trunk/assets/js/script.js

    r2064907 r2694798  
    1111function loadPage() {
    1212    setTimeout(function(){jQuery('.message_output').fadeOut('slow')}, 5000);
    13     //switcher();
     13    switcher();
    1414    loadDateTimePickerPlugin();
    1515    jQuery('#aoph-overlay, #aoph-loader').hide();
  • aopush/trunk/assets/js/script.min.js

    r2064907 r2694798  
    1 function switcher(){jQuery("#events-form, #templates-form, #settings-form").find('.form-group input[type="checkbox"]').bootstrapSwitch({size:"mini",onColor:"danger",offColor:"default",onText:'<i class="fa fa-check" aria-hidden="true"></i>',offText:'<i class="fa fa-times" aria-hidden="true"></i>'})}function loadPage(){setTimeout(function(){jQuery(".message_output").fadeOut("slow")},5000);loadDateTimePickerPlugin();jQuery("#aoph-overlay, #aoph-loader").hide()}function addMessages(a){if(typeof a.AophTestNotifications.message==="undefined"){a.AophTestNotifications.error=1;a.AophTestNotifications.message="Подписка на Web Push уведомления завершилась неудачей"}if(a&&!a.AophTestNotifications.error){if(jQuery(".message_output").hasClass(".alert-success")){success_block.html(a.AophTestNotifications.message)}else{jQuery(".message_output").html('<p class="alert alert-success">'+a.AophTestNotifications.message+"</p>")}}else{if(jQuery(".message_output").hasClass(".alert-danger")){error_block.html(a.AophTestNotifications.message)}else{jQuery(".message_output").html('<p class="alert alert-danger">'+a.AophTestNotifications.message+"</p>")}}}function reloadForm(e,b,d,a){jQuery("#aoph-overlay, #aoph-loader").show();var c="aoph_load_form_"+e;if(d.AophTestNotifications&&d.AophTestNotifications.id_form){var e="#aoph-"+d.AophTestNotifications.id_form}else{var e="#aoph-"+e}jQuery(e).load(a+"admin-ajax.php?action="+c,{data:d},function(){loadPage();getBalance(b);if(d.AophTestNotifications&&d.AophTestNotifications.action&&d.AophTestNotifications.action=="subscribe"){addMessages(d)}})}jQuery(document).ready(function(){loadPage();jQuery(document).delegate("#aoph-settings-tab a","click",function(a){jQuery(".message_output").hide();a.preventDefault();jQuery(this).tab("show")});jQuery(document).delegate(".tips","mouseover",function(a){jQuery(this).tooltip("show")})});
     1function switcher(){jQuery("#events-form, #templates-form, #settings-form").find('.form-group input[type="checkbox"]').bootstrapSwitch({size:"mini",onColor:"danger",offColor:"default",onText:'<i class="fa fa-check" aria-hidden="true"></i>',offText:'<i class="fa fa-times" aria-hidden="true"></i>'})}function loadPage(){setTimeout(function(){jQuery(".message_output").fadeOut("slow")},5e3),switcher(),loadDateTimePickerPlugin(),jQuery("#aoph-overlay, #aoph-loader").hide()}function addMessages(e){void 0===e.AophTestNotifications.message&&(e.AophTestNotifications.error=1,e.AophTestNotifications.message="Подписка на Web Push уведомления завершилась неудачей"),e&&!e.AophTestNotifications.error?jQuery(".message_output").hasClass(".alert-success")?success_block.html(e.AophTestNotifications.message):jQuery(".message_output").html('<p class="alert alert-success">'+e.AophTestNotifications.message+"</p>"):jQuery(".message_output").hasClass(".alert-danger")?error_block.html(e.AophTestNotifications.message):jQuery(".message_output").html('<p class="alert alert-danger">'+e.AophTestNotifications.message+"</p>")}function reloadForm(e,o,t,s){jQuery("#aoph-overlay, #aoph-loader").show();var a="aoph_load_form_"+e;e=t.AophTestNotifications&&t.AophTestNotifications.id_form?"#aoph-"+t.AophTestNotifications.id_form:"#aoph-"+e,jQuery(e).load(s+"admin-ajax.php?action="+a,{data:t},function(){loadPage(),getBalance(o),t.AophTestNotifications&&t.AophTestNotifications.action&&"subscribe"==t.AophTestNotifications.action&&addMessages(t)})}jQuery(document).ready(function(){loadPage(),jQuery(document).delegate("#aoph-settings-tab a","click",function(e){jQuery(".message_output").hide(),e.preventDefault(),jQuery(this).tab("show")}),jQuery(document).delegate(".tips","mouseover",function(e){jQuery(this).tooltip("show")})});
  • aopush/trunk/includes/AopushAdmin.php

    r2329319 r2694798  
    439439            wp_enqueue_script('aoph_plugin_js', plugins_url('assets/js/script.min.js', dirname(__FILE__)));
    440440        }
     441
     442        wp_enqueue_script('pic', plugins_url('assets/js/jquery-ui-timepicker-addon-1.6.3.min.js', dirname(__FILE__)));
    441443    }
    442444   
  • aopush/trunk/readme.txt

    r2329319 r2694798  
    55Tested up to: 7.3.10
    66Requires PHP: 5.2
    7 Stable tag: 1.1.01
     7Stable tag: 1.1.02
    88
    99===Description===
  • aopush/trunk/views/admin_page_push.php

    r2065869 r2694798  
     1
     2<script src='/wp-content/plugins/aopush/assets/js/jquery.js'></script>
    13<?php
    24wp_enqueue_script('jquery-ui-datepicker');
Note: See TracChangeset for help on using the changeset viewer.