Changeset 1686943
- Timestamp:
- 06/28/2017 01:10:33 PM (9 years ago)
- Location:
- device-push/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
device-push/trunk/index.php
r1686039 r1686943 5 5 Author: Device Push 6 6 Author URI: https://www.devicepush.com 7 Version: 1. 77 Version: 1.8 8 8 */ 9 9 … … 518 518 <?php 519 519 // Save attachment ID 520 if ( isset( $_POST['submit_image_selector'] ) && isset( $_POST['image_attachment_id'] ) ) { update_option( 'media_selector_attachment_id', absint( $_POST['image_attachment_id'] ) ); }521 wp_enqueue_media();522 ?>523 <div class='image-preview-wrapper'>524 <img id='image-preview' src='<?php echo wp_get_attachment_url( get_option( 'image_attachment_id' ) ); ?>' height='100'>525 </div>526 <div>527 <div style="padding-top:10px; padding-bottom:10px">This image will appear if the content that is sent in the push notification does not have an custom image.</div>528 <input id="upload_image_button" type="button" class="button button-primary btn shadow" value="<?php _e( 'Upload image' ); ?>" /> <input type="button" onclick="saveImage()" class="btn shadow button-save" value="Save">529 <input type='hidden' name='image_attachment_id' id='image_attachment_id' value='<?php echo get_option( 'image_attachment_id' ); ?>'>530 </div>520 if ( isset( $_POST['submit_image_selector'] ) && isset( $_POST['image_attachment_id'] ) ) { update_option( 'media_selector_attachment_id', absint( $_POST['image_attachment_id'] ) ); } 521 wp_enqueue_media(); 522 ?> 523 <div class='image-preview-wrapper'> 524 <img id='image-preview' src='<?php echo wp_get_attachment_url( get_option( 'image_attachment_id' ) ); ?>' height='100'> 525 </div> 526 <div> 527 <div style="padding-top:10px; padding-bottom:10px">This image will appear if the content that is sent in the push notification does not have an custom image.</div> 528 <input id="upload_image_button" type="button" class="button button-primary btn shadow" value="<?php _e( 'Upload image' ); ?>" /> <input type="button" onclick="saveImage()" class="btn shadow button-save" value="Save"> 529 <input type='hidden' name='image_attachment_id' id='image_attachment_id' value='<?php echo get_option( 'image_attachment_id' ); ?>'> 530 </div> 531 531 </div> 532 532 </td> … … 552 552 <?php do_settings_sections( 'dp-popup-group' ); ?> 553 553 <table class="form-table"> 554 <tr>555 <td>556 <h3>Activate the custom prompt to incentivize the user to subscribe active push notification.</h3>557 </td>558 </tr>559 <tr>560 <td>561 <div class="check">562 <input id="noprompt" onchange="activeInputsPopup(this)" type="checkbox" <?php if (esc_attr( get_option('dp_option_prompt_option') )){echo 'checked'; } ?> name='dp_option_prompt_option'> Activate custom notification subscription prompt.563 </div>564 </td>565 </tr>554 <tr> 555 <td> 556 <h3>Activate the custom prompt to incentivize the user to subscribe active push notification.</h3> 557 </td> 558 </tr> 559 <tr> 560 <td> 561 <div class="check"> 562 <input id="noprompt" onchange="activeInputsPopup(this)" type="checkbox" <?php if (esc_attr( get_option('dp_option_prompt_option') )){echo 'checked'; } ?> name='dp_option_prompt_option'> Activate custom notification subscription prompt. 563 </div> 564 </td> 565 </tr> 566 566 <tr> 567 567 <td> … … 596 596 <input type="text" id="backgroundActivePopup" <?php if (esc_attr( get_option('dp_option_prompt_option') )!= 'on'){echo ' disabled '; } ?> name="dp_option_background_active_popup" onkeyup="writePopup('backgroundActive')" class="dp_input_text input100" placeholder="#000000" value="<?php echo esc_attr( get_option('dp_option_background_active_popup') ); ?>" ></input> 597 597 </div> 598 <div class="margin-top10">599 <input id="legendActivePopup" onchange="actionCheckLegend(this)" type="checkbox" <?php if (esc_attr( get_option('dp_option_legend_option') ) != ''){ echo 'checked'; } if (esc_attr( get_option('dp_option_prompt_option') )!= 'on'){echo ' disabled '; } ?> name='dp_option_legend_option'> I love Device Push Plugin <?php echo esc_attr( get_option('dp_option_legend_option') ); ?>.600 </div>598 <div class="margin-top10"> 599 <input id="legendActivePopup" onchange="actionCheckLegend(this)" type="checkbox" <?php if (esc_attr( get_option('dp_option_legend_option') ) != ''){ echo 'checked'; } if (esc_attr( get_option('dp_option_prompt_option') )!= 'on'){echo ' disabled '; } ?> name='dp_option_legend_option'> I love Device Push Plugin <?php echo esc_attr( get_option('dp_option_legend_option') ); ?>. 600 </div> 601 601 </td> 602 602 </tr> … … 627 627 <div id="backgroundCirclePreviewPopup" class="dp_icon" style="background-color: <?php echo esc_attr( get_option('dp_option_background_circle_popup') ); ?>"></div> 628 628 <div id="textPreviewPopup" class="dp_text"> 629 <?php if(get_option('dp_option_text_popup') != ''){ echo esc_attr( get_option('dp_option_text_popup')); }else{ echo "Activate push notifications to improve your experience on our website."; } ?>629 <?php if(get_option('dp_option_text_popup') != ''){ echo get_option('dp_option_text_popup'); }else{ echo "Activate push notifications to improve your experience on our website."; } ?> 630 630 </div> 631 631 <div class="dp_buttons"> -
device-push/trunk/js/sw.js
r1678575 r1686943 26 26 icon: data[0].info.icon, 27 27 data: data[0].info.data, 28 image: data[0].info.image, 28 29 actions: actions, 29 30 requireInteraction: true, -
device-push/trunk/readme.txt
r1686039 r1686943 3 3 Tags: device push, devicepush, notification, push, chrome, safari, firefox, opera, cordova, phonegap, ios, android, notification, marketing 4 4 Requires at least: 3.0.1 5 Stable tag: 1. 65 Stable tag: 1.8 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 == Changelog == 56 56 57 = 1.8 = 58 * Resolve bugs. 59 57 60 = 1.7 = 58 61 * Include html code into popup activation.
Note: See TracChangeset
for help on using the changeset viewer.