Changeset 809945
- Timestamp:
- 11/25/2013 06:55:56 AM (12 years ago)
- Location:
- captain-up/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
captainup.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
captain-up/trunk/README.md
r789075 r809945 95 95 ## Changelog 96 96 97 ###### 1.4.2 98 99 * Support for WordPress 3.7.1 100 101 * Fixed issue with MU installs and language selection. 102 97 103 ###### 1.4.1 98 104 -
captain-up/trunk/captainup.php
r789075 r809945 4 4 Plugin URI: http://www.captainup.com 5 5 Description: Add Game Mechanics to your site and increase your engagement and retention. 2 minutes install: Simply add your free Captain Up API Key and you are good to go. The plugin also adds widgets you can use to show leaderboards and activities within your site. 6 Version: 1.4. 16 Version: 1.4.2 7 7 Author: Captain Up Team 8 8 License: GPL2 … … 106 106 var selected_language = "<?php echo get_option('captain-locale', 'en'); ?>"; 107 107 $(function() { 108 // Break execution if `web-available-languages` failed to 109 // load on the page. In that odd case, only English will 110 // be available for selection. 111 if (! window.__cpt_available_languages) return; 112 108 113 // Grab the language <select> options and empty it 109 114 var $select = $('select#captain-locale').empty(); … … 130 135 <label for="captain-language">Language:</label> 131 136 <select id='captain-locale' name='captain-locale'> 132 <option value='en' >English</option>137 <option value='en' selected>English</option> 133 138 </select> 134 139 </div> … … 240 245 $valid_api_secret = preg_match("/^[0-9A-Fa-f]{64,64}$/", $api_secret) == 1; 241 246 242 // Add a language suffix to the Embed Script, if the 243 // captain-locale was not set it will return 'en'. 244 $lang = "." . get_option('captain-locale', 'en'); 247 // Add a language suffix to the Embed Script. 248 // get_option's default parameter only affects values which 249 // were not already set in the database. So if an empty 250 // string was saved, make sure to handle it gracefully. 251 $current_lang = get_option('captain-locale', 'en'); 252 if (empty($current_lang)) $current_lang = 'en'; 253 $lang = "." . $current_lang; 245 254 246 255 // Grab the current user ID -
captain-up/trunk/readme.txt
r789075 r809945 3 3 Tags: game-mechanics,captainup,gamification,engagement,comments,widget,plugin,twitter,facebook,google 4 4 Requires at least: 3.0.1 5 Tested up to: 3. 6.15 Tested up to: 3.7.1 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 18 18 You will need to associate your WordPress site with a free Captain Up account. If you don't have one yet - [sign up now](http://captainup.com/). 19 19 20 **NEW**: Localization support for over 10 languages. Awesome shortcodes for adding the activity widget, the leaderboard widget and a sign up link inside your posts. Support for native WordPress comments. Support for differnet default leaderboards. CloudFlare issue resolved.20 **NEW**: Two new level and badge sets to select from. Localization support for over 14 languages. Awesome shortcodes for adding the activity widget, the leaderboard widget and a sign up link inside your posts. Support for native WordPress comments. Support for differnet default leaderboards. 21 21 22 22 **Features**: … … 116 116 == Changelog == 117 117 118 = 1.4.2 = 119 120 * Support for WordPress 3.7.1 121 122 * Fixed issue with MU installs and language selection. 123 118 124 = 1.4.1 = 119 125
Note: See TracChangeset
for help on using the changeset viewer.