Changeset 2694798
- Timestamp:
- 03/16/2022 12:31:02 PM (4 years ago)
- Location:
- aopush/trunk
- Files:
-
- 1 added
- 6 edited
-
aopush_plugin.php (modified) (1 diff)
-
assets/css/bootstrap.min.css.map (added)
-
assets/js/script.js (modified) (1 diff)
-
assets/js/script.min.js (modified) (1 diff)
-
includes/AopushAdmin.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
views/admin_page_push.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
aopush/trunk/aopush_plugin.php
r2329319 r2694798 5 5 Description: Плагин для лёгкого подключения push-уведомлений на вашем сайте. Пройдя двухминутную регистрацию прямо через Wordpress, вы сможете включить подписку на push на вашем сайте одной кнопкой. Плагин поддерживает два способа отправки пуш: автоматический - при создании или обновлении записи на блоге, и ручную рассылку по подписчикам. 6 6 Author: Autooffice 7 Version: 1.1.0 17 Version: 1.1.02 8 8 Author URI: https://profiles.wordpress.org/autooffice#content-plugins 9 9 */ -
aopush/trunk/assets/js/script.js
r2064907 r2694798 11 11 function loadPage() { 12 12 setTimeout(function(){jQuery('.message_output').fadeOut('slow')}, 5000); 13 //switcher();13 switcher(); 14 14 loadDateTimePickerPlugin(); 15 15 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")},5 000);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")})});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")},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 439 439 wp_enqueue_script('aoph_plugin_js', plugins_url('assets/js/script.min.js', dirname(__FILE__))); 440 440 } 441 442 wp_enqueue_script('pic', plugins_url('assets/js/jquery-ui-timepicker-addon-1.6.3.min.js', dirname(__FILE__))); 441 443 } 442 444 -
aopush/trunk/readme.txt
r2329319 r2694798 5 5 Tested up to: 7.3.10 6 6 Requires PHP: 5.2 7 Stable tag: 1.1.0 17 Stable tag: 1.1.02 8 8 9 9 ===Description=== -
aopush/trunk/views/admin_page_push.php
r2065869 r2694798 1 2 <script src='/wp-content/plugins/aopush/assets/js/jquery.js'></script> 1 3 <?php 2 4 wp_enqueue_script('jquery-ui-datepicker');
Note: See TracChangeset
for help on using the changeset viewer.