Changeset 1239889
- Timestamp:
- 09/07/2015 02:49:01 PM (11 years ago)
- Location:
- sendmachine
- Files:
-
- 49 added
- 4 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/api (added)
-
tags/1.0.2/api/README.md (added)
-
tags/1.0.2/api/SendmachineApiClient.php (added)
-
tags/1.0.2/api/composer.json (added)
-
tags/1.0.2/api/examples (added)
-
tags/1.0.2/api/examples/account_examples.php (added)
-
tags/1.0.2/api/examples/campaign_examples.php (added)
-
tags/1.0.2/api/examples/list_examples.php (added)
-
tags/1.0.2/api/examples/sender_examples.php (added)
-
tags/1.0.2/api/examples/template_examples.php (added)
-
tags/1.0.2/api/library (added)
-
tags/1.0.2/api/library/Account.php (added)
-
tags/1.0.2/api/library/Campaigns.php (added)
-
tags/1.0.2/api/library/Lists.php (added)
-
tags/1.0.2/api/library/Sender.php (added)
-
tags/1.0.2/api/library/Templates.php (added)
-
tags/1.0.2/includes (added)
-
tags/1.0.2/includes/sendmachine_api.php (added)
-
tags/1.0.2/includes/sendmachine_defaults.php (added)
-
tags/1.0.2/includes/sendmachine_email_manager.php (added)
-
tags/1.0.2/includes/sendmachine_feed_manager.php (added)
-
tags/1.0.2/includes/sendmachine_subscribe_manager.php (added)
-
tags/1.0.2/includes/utils.php (added)
-
tags/1.0.2/languages (added)
-
tags/1.0.2/languages/wp-sendmachine-ro_RO.mo (added)
-
tags/1.0.2/languages/wp-sendmachine-ro_RO.po (added)
-
tags/1.0.2/languages/wp-sendmachine.pot (added)
-
tags/1.0.2/readme.txt (added)
-
tags/1.0.2/sendmachine_widget.php (added)
-
tags/1.0.2/sendmachine_wp.php (added)
-
tags/1.0.2/sendmachine_wp_admin.php (added)
-
tags/1.0.2/static (added)
-
tags/1.0.2/static/css (added)
-
tags/1.0.2/static/css/sm-admin.css (added)
-
tags/1.0.2/static/css/sm-widget.css (added)
-
tags/1.0.2/static/images (added)
-
tags/1.0.2/static/images/loading.gif (added)
-
tags/1.0.2/static/images/wp_sendmachine_logo.png (added)
-
tags/1.0.2/static/images/wp_sendmachine_logo_big.png (added)
-
tags/1.0.2/static/js (added)
-
tags/1.0.2/static/js/sm-admin.js (added)
-
tags/1.0.2/static/js/sm-widget.js (added)
-
tags/1.0.2/views (added)
-
tags/1.0.2/views/wp_sm_email_settings.php (added)
-
tags/1.0.2/views/wp_sm_feed_preview.php (added)
-
tags/1.0.2/views/wp_sm_feed_settings.php (added)
-
tags/1.0.2/views/wp_sm_general_settings.php (added)
-
tags/1.0.2/views/wp_sm_list_settings.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sendmachine_wp.php (modified) (2 diffs)
-
trunk/static/js/sm-admin.js (modified) (1 diff)
-
trunk/views/wp_sm_general_settings.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendmachine/trunk/readme.txt
r1230263 r1239889 4 4 Requires at least: 3.2.1 5 5 Tested up to: 4.3 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 96 96 == Changelog == 97 97 98 == 1.0.2 == 99 * Blurred credentials 100 * Removed display error: all 101 98 102 = 1.0.1 = 99 103 * Added description field to widget area. -
sendmachine/trunk/sendmachine_wp.php
r1230263 r1239889 5 5 Plugin URI: https://www.sendmachine.com 6 6 Description: The official Sendmachine plugin featuring subscribe forms, users sync, news feed, email sending and transactional campaigns. 7 Version: 1.0. 17 Version: 1.0.2 8 8 Author: Sendmachine team 9 9 Author URI: http://developers.sendmachine.com/ … … 11 11 Domain Path: /languages/ 12 12 */ 13 14 error_reporting(E_ALL);15 13 16 14 define('SM_PLUGIN_DIR', dirname(__FILE__) . '/'); -
sendmachine/trunk/static/js/sm-admin.js
r1226818 r1239889 34 34 }); 35 35 } 36 37 function smInitCredentialsBlur() { 38 39 smToggleCredentialsVisibility('sm_api_username', 'hide'); 40 smToggleCredentialsVisibility('sm_api_password', 'hide'); 41 42 document.getElementById('sm_api_username').onfocus = function () { 43 smToggleCredentialsVisibility('sm_api_username', 'show'); 44 }; 45 document.getElementById('sm_api_password').onfocus = function () { 46 smToggleCredentialsVisibility('sm_api_password', 'show'); 47 }; 48 } 49 50 function smToggleCredentialsVisibility(id, state) { 51 52 if (id !== 'sm_api_username' && id !== 'sm_api_password') { 53 return; 54 } 55 56 var style = ''; 57 var text = ''; 58 59 var button = document.getElementById('button_' + id); 60 61 if (!state) { 62 state = button.getAttribute('smState'); 63 } 64 65 if (state === 'hide') { 66 style = 'color:transparent;text-shadow:0 0 5px rgba(0,0,0,0.5)'; 67 text = 'show'; 68 } 69 else if (state === 'show') { 70 style = ''; 71 text = 'hide'; 72 } 73 74 button.setAttribute('smState', text); 75 button.innerHTML = text; 76 document.getElementById(id).setAttribute('style', style); 77 } -
sendmachine/trunk/views/wp_sm_general_settings.php
r1236939 r1239889 49 49 <input type="hidden" name="sm_admin_wp_request" value="1" /> 50 50 <input type="hidden" name="sm_action" value="init_sm_data" /> 51 <input type="text" class="api_credentials" name="update[credentials][api_username]" value="<?php echo isset($this->app['credentials']['api_username']) ? trim($this->app['credentials']['api_username']) : '' ?>"> 51 <input id="sm_api_username" type="text" class="api_credentials" name="update[credentials][api_username]" value="<?php echo isset($this->app['credentials']['api_username']) ? trim($this->app['credentials']['api_username']) : '' ?>"> 52 <button class="button" id="button_sm_api_username" onclick="smToggleCredentialsVisibility('sm_api_username');return false;" >show</button> 52 53 </td> 53 54 </tr> … … 55 56 <th scope="row"><?php _e("API PASSWORD", SM_LANGUAGE_DOMAIN) ?></th> 56 57 <td> 57 <input type="text" class="api_credentials" name="update[credentials][api_password]" value="<?php echo isset($this->app['credentials']['api_password']) ? trim($this->app['credentials']['api_password']) : '' ?>"> 58 <input id="sm_api_password" type="text" class="api_credentials" name="update[credentials][api_password]" value="<?php echo isset($this->app['credentials']['api_password']) ? trim($this->app['credentials']['api_password']) : '' ?>"> 59 <button class="button" id="button_sm_api_password" onclick="smToggleCredentialsVisibility('sm_api_password');return false;" >show</button> 58 60 </td> 59 61 </tr> … … 67 69 </div> 68 70 </div> 71 <script>smInitCredentialsBlur();</script>
Note: See TracChangeset
for help on using the changeset viewer.