Changeset 1139183
- Timestamp:
- 04/20/2015 02:55:20 PM (11 years ago)
- Location:
- push-notifications
- Files:
-
- 1 added
- 4 edited
-
assets/icon-128x128.png (added)
-
trunk/html/pushwoosh.html (modified) (1 diff)
-
trunk/pushwoosh.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
push-notifications/trunk/html/pushwoosh.html
r827433 r1139183 1 1 <div > 2 <b> Safari Title:</b>2 <b>Chrome/Safari Title:</b> 3 3 <br/> 4 4 <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 3 3 /** 4 4 * @package Pushwoosh 5 * @version 2.3.1 25 * @version 2.3.13 6 6 */ 7 7 … … 12 12 * Author: Arello Mobile 13 13 * Author URI: http://www.arello-mobile.com/ 14 * Version: 2.3.1 214 * Version: 2.3.13 15 15 * 16 16 * Copyright 2014 Arello Mobile (email: support@arello-mobile.com) … … 100 100 $checkbox_label = sprintf('Send a push notification when the %s is published', htmlentities($post_type)); 101 101 $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'; 103 103 $checkbox_checked = 'checked="checked"'; 104 104 $message_content = ''; … … 125 125 126 126 $application_code = get_option('pushwoosh_application_code', array('text_string' => null)); 127 $chrome_icon = get_option('pushwoosh_chrome_default_icon', array('text_string' => null)); 127 128 $api_token = get_option('pushwoosh_api_token', array('text_string' => null)); 128 129 $safari_action = get_option('pushwoosh_safari_action', array('text_string' => null)); … … 137 138 } 138 139 } 140 $options['chrome_title'] = $options['safari_title']; 141 $chrome_icon = $chrome_icon['text_string']; 142 if ($chrome_icon) 143 $options['chrome_icon'] = $chrome_icon; 139 144 140 145 $pushwoosh = new Pushwoosh(array('auth' => $api_token['text_string'])); … … 178 183 $message_content = $_POST['pushwoosh_message_content']; 179 184 } 185 $options['chrome_title'] = $options['safari_title']; 186 180 187 update_post_meta($ID, 'pushwoosh_message_content', $message_content); 181 188 update_post_meta($ID, 'safari_title', $options['safari_title']); -
push-notifications/trunk/readme.txt
r1138897 r1139183 62 62 * Fix error with un-trashed posts 63 63 64 = 2.3.13 = 65 * Chrome icon and title support 66 64 67 == Installation == 65 68 1. Download the Pushwoosh plugin. -
push-notifications/trunk/settings.php
r948542 r1139183 26 26 'description' => 'Your Pushwoosh application ID you send the message to.', 27 27 ), 28 'chrome_default_icon' => array( 29 'label' => 'Chrome Icon', 30 'description' => 'Full URL to icon', 31 ), 28 32 'safari_title' => array( 29 'label' => ' Safari Title',30 'description' => 'If you do not wish to manually input Safari Title every time, you can specify31 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, 32 36 the URL of your website is used as default title.' 33 37 ),
Note: See TracChangeset
for help on using the changeset viewer.