Changeset 708989
- Timestamp:
- 05/07/2013 02:38:24 AM (13 years ago)
- Location:
- captain-up/trunk
- Files:
-
- 4 edited
-
README.md (modified) (1 diff)
-
captainup.css (modified) (4 diffs)
-
captainup.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
captain-up/trunk/README.md
r692934 r708989 95 95 ## Changelog 96 96 97 ###### 1.2 98 99 * Fixed a caching bug with Internet Explorer 10 100 101 * We no longer to release new WordPress versions for additional languages 102 103 * Added French, German, Portuguese (Brazil) and Thai support. 104 97 105 ###### 1.1 98 106 -
captain-up/trunk/captainup.css
r673835 r708989 87 87 } 88 88 89 #cpt-wrap #cpt-apilabel {89 #cpt-wrap label { 90 90 font-size: 18px; 91 91 line-height: 40px; … … 97 97 98 98 #cpt-wrap #cpt-api input[type="text"] { 99 font-size: 1 5px;99 font-size: 16px; 100 100 padding: 5px 10px; 101 101 height: 35px; … … 104 104 margin-right: 5px; 105 105 } 106 107 #cpt-wrap select { 108 margin-left: 25px; 109 width: 350px; 110 font-size: 16px; 111 } 112 113 #cpt-wrap #cpt-submit { 114 position: absolute; 115 bottom: 110px; 116 right: 50px; 117 } 118 106 119 107 120 … … 121 134 box-shadow: #f08a87 0px 2px 0px 0px inset; 122 135 cursor: pointer; 123 font-size: 18px;136 font-size: 22px; 124 137 vertical-align: middle; 125 138 } 126 139 127 140 .cpt-x-btn.padded { 128 padding: 6px 20px;141 padding: 9px 20px; 129 142 } 130 143 -
captain-up/trunk/captainup.php
r692935 r708989 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. 16 Version: 1.2 7 7 Author: Captain Up Team 8 8 License: GPL2 … … 56 56 </div> 57 57 58 <script src='http://captainup.com/assets/web-available-languages.js'></script> 59 60 <script> 61 // Add all the language options, the web-available-languages 62 // script loaded them into __cpt_available_languages. 63 (function($) { 64 // grab the selected language, default to english 65 var selected_language = "<?php echo get_option('captain-locale', 'en'); ?>"; 66 $(function() { 67 // Grab the language <select> options and empty it 68 var $select = $('select#captain-locale').empty(); 69 // Run on all the languages 70 for (code in __cpt_available_languages) { 71 var lang = __cpt_available_languages[code]; 72 // Add an option for each language, its value 73 // is the key of __cpt_available languages and 74 // its text is the value of it. 75 var $option = "<option value='" + code + "'"; 76 // Add a 'selected' attribute if needed 77 if (selected_language === code) { 78 $option += " selected"; 79 } 80 $option += ">" + lang + "</option>"; 81 // Append it to the select box 82 $select.append($option); 83 } 84 }); 85 })(jQuery); 86 </script> 87 58 88 <div id="cpt-language"> 59 89 <label for="captain-language">Language:</label> 60 90 <select id='captain-locale' name='captain-locale'> 61 91 <option value='en'>English</option> 62 <option value='he' <?php if ($captain_locale == 'he') echo 'selected';?>>Hebrew</option>63 <option value='it' <?php if ($captain_locale == 'it') echo 'selected';?>>Italian</option>64 <option value='ru' <?php if ($captain_locale == 'ru') echo 'selected';?>>Russian</option>65 92 </select> 66 93 </div> … … 163 190 <div id='cptup-ready'></div> 164 191 <script type='text/javascript'> 192 window.captain = {up: function(fn) { captain.topics.push(fn) }, topics: []}; 193 captain.up({ 194 api_key: '<?php echo $captain_api; ?>' 195 }); 196 </script> 197 <script type='text/javascript'> 165 198 (function() { 166 199 var cpt = document.createElement('script'); cpt.type = 'text/javascript'; cpt.async = true; … … 168 201 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(cpt); 169 202 })(); 170 </script>171 172 <script type='text/javascript'>173 window.captain = {up: function(fn) { captain.topics.push(fn) }, topics: []};174 captain.up({175 api_key: '<?php echo $captain_api; ?>'176 });177 203 </script> 178 204 -
captain-up/trunk/readme.txt
r692934 r708989 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 English, Hebrew, Italian and Russian. Awesome shortcodes for adding the activity widget, the leaderboard widget and a sign up link inside your posts.20 **NEW**: Localization support for French, German, Portuguese and Thai. Awesome shortcodes for adding the activity widget, the leaderboard widget and a sign up link inside your posts. 21 21 22 22 **Features**: … … 116 116 == Changelog == 117 117 118 = 1.2 = 119 120 * Fixed a caching bug with Internet Explorer 10 121 122 * We no longer to release new WordPress versions for additional languages 123 124 * Added French, German, Portuguese (Brazil) and Thai support. 125 118 126 = 1.1 = 119 127
Note: See TracChangeset
for help on using the changeset viewer.