Plugin Directory

Changeset 1139183


Ignore:
Timestamp:
04/20/2015 02:55:20 PM (11 years ago)
Author:
pushwoosh
Message:

2.3.13

Location:
push-notifications
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • push-notifications/trunk/html/pushwoosh.html

    r827433 r1139183  
    11<div >
    2 <b>Safari Title:</b>
     2<b>Chrome/Safari Title:</b>
    33    <br/>
    44<input id="pushwoosh_safari_title" maxlength="25" onshow="showLengthOver()" onkeyup="showLengthOver()" name="safari_title" value='%s' type="text" placeholder="%s" />
  • push-notifications/trunk/pushwoosh.php

    r1138897 r1139183  
    33    /**
    44     * @package Pushwoosh
    5      * @version 2.3.12
     5     * @version 2.3.13
    66     */
    77
     
    1212    * Author: Arello Mobile
    1313    * Author URI: http://www.arello-mobile.com/
    14     * Version: 2.3.12
     14    * Version: 2.3.13
    1515    *
    1616    * Copyright 2014 Arello Mobile (email: support@arello-mobile.com)
     
    100100        $checkbox_label = sprintf('Send a push notification when the %s is published', htmlentities($post_type));
    101101        $textarea_placeholder = 'Input text of the push here, otherwise, the post title will be used.';
    102         $safari_title_placeholder = 'Safari title';
     102        $safari_title_placeholder = 'Chrome/Safari title';
    103103        $checkbox_checked = 'checked="checked"';
    104104        $message_content = '';
     
    125125
    126126        $application_code = get_option('pushwoosh_application_code', array('text_string' => null));
     127        $chrome_icon = get_option('pushwoosh_chrome_default_icon', array('text_string' => null));
    127128        $api_token = get_option('pushwoosh_api_token', array('text_string' => null));
    128129        $safari_action = get_option('pushwoosh_safari_action', array('text_string' => null));
     
    137138            }
    138139        }
     140        $options['chrome_title'] = $options['safari_title'];
     141        $chrome_icon = $chrome_icon['text_string'];
     142        if ($chrome_icon)
     143            $options['chrome_icon'] = $chrome_icon;
    139144
    140145        $pushwoosh  = new Pushwoosh(array('auth' => $api_token['text_string']));
     
    178183                $message_content = $_POST['pushwoosh_message_content'];
    179184            }
     185            $options['chrome_title'] = $options['safari_title'];
     186
    180187            update_post_meta($ID, 'pushwoosh_message_content', $message_content);
    181188            update_post_meta($ID, 'safari_title', $options['safari_title']);
  • push-notifications/trunk/readme.txt

    r1138897 r1139183  
    6262* Fix error with un-trashed posts
    6363
     64= 2.3.13 =
     65* Chrome icon and title support
     66
    6467== Installation ==
    65681. Download the Pushwoosh plugin.
  • push-notifications/trunk/settings.php

    r948542 r1139183  
    2626                    'description' => 'Your Pushwoosh application ID you send the message to.',
    2727                    ),
     28                'chrome_default_icon' => array(
     29                    'label' => 'Chrome Icon',
     30                    'description' => 'Full URL to icon',
     31                ),
    2832                'safari_title' => array(
    29                     'label' => 'Safari Title',
    30                     'description' => 'If you do not wish to manually input Safari Title every time, you can specify
    31                     the default title here. If you publish a post with a blank Safari Title field,
     33                    'label' => 'Chrome/Safari Title',
     34                    'description' => 'If you do not wish to manually input Chrome/Safari Title every time, you can specify
     35                    the default title here. If you publish a post with a blank Chrome/Safari Title field,
    3236                    the URL of your website is used as default title.'
    3337                    ),
Note: See TracChangeset for help on using the changeset viewer.