Plugin Directory

Changeset 1686943


Ignore:
Timestamp:
06/28/2017 01:10:33 PM (9 years ago)
Author:
Device Push
Message:

Resolve bugs

Location:
device-push/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • device-push/trunk/index.php

    r1686039 r1686943  
    55Author: Device Push
    66Author URI: https://www.devicepush.com
    7 Version: 1.7
     7Version: 1.8
    88*/
    99
     
    518518                                    <?php
    519519                                    // 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>
    531531                                </div>
    532532                            </td>
     
    552552                  <?php do_settings_sections( 'dp-popup-group' ); ?>
    553553                    <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>
    566566                <tr>
    567567                    <td>
     
    596596                            <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>
    597597                        </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>
    601601                    </td>
    602602                    </tr>
     
    627627                                    <div id="backgroundCirclePreviewPopup" class="dp_icon" style="background-color: <?php echo esc_attr( get_option('dp_option_background_circle_popup') ); ?>"></div>
    628628                                    <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."; } ?>
    630630                            </div>
    631631                            <div class="dp_buttons">
  • device-push/trunk/js/sw.js

    r1678575 r1686943  
    2626                icon: data[0].info.icon,
    2727                data: data[0].info.data,
     28        image: data[0].info.image,
    2829                actions: actions,
    2930        requireInteraction: true,
  • device-push/trunk/readme.txt

    r1686039 r1686943  
    33Tags: device push, devicepush, notification, push, chrome, safari, firefox, opera, cordova, phonegap, ios, android, notification, marketing
    44Requires at least: 3.0.1
    5 Stable tag: 1.6
     5Stable tag: 1.8
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57= 1.8 =
     58* Resolve bugs.
     59
    5760= 1.7 =
    5861* Include html code into popup activation.
Note: See TracChangeset for help on using the changeset viewer.