Plugin Directory

Changeset 708989


Ignore:
Timestamp:
05/07/2013 02:38:24 AM (13 years ago)
Author:
cptup
Message:

version 1.2

Location:
captain-up/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • captain-up/trunk/README.md

    r692934 r708989  
    9595## Changelog
    9696
     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
    97105###### 1.1
    98106
  • captain-up/trunk/captainup.css

    r673835 r708989  
    8787}
    8888
    89 #cpt-wrap #cpt-api label {
     89#cpt-wrap label {
    9090    font-size: 18px;
    9191    line-height: 40px;
     
    9797
    9898#cpt-wrap #cpt-api input[type="text"] {
    99     font-size: 15px;
     99    font-size: 16px;
    100100    padding: 5px 10px;
    101101    height: 35px;
     
    104104    margin-right: 5px;
    105105}
     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
    106119
    107120
     
    121134  box-shadow: #f08a87 0px 2px 0px 0px inset;
    122135  cursor: pointer;
    123   font-size: 18px;
     136  font-size: 22px;
    124137  vertical-align: middle;
    125138}
    126139
    127140.cpt-x-btn.padded {
    128   padding: 6px 20px;
     141  padding: 9px 20px;
    129142}
    130143
  • captain-up/trunk/captainup.php

    r692935 r708989  
    44Plugin URI: http://www.captainup.com
    55Description: 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.1
     6Version: 1.2
    77Author: Captain Up Team
    88License: GPL2
     
    5656                                </div>
    5757
     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
    5888                                <div id="cpt-language">
    5989                                    <label for="captain-language">Language:</label>
    6090                                    <select id='captain-locale' name='captain-locale'>
    6191                                        <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>
    6592                                    </select>
    6693                                </div>
     
    163190    <div id='cptup-ready'></div>
    164191    <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'>
    165198      (function() {
    166199          var cpt = document.createElement('script'); cpt.type = 'text/javascript'; cpt.async = true;
     
    168201          (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(cpt);
    169202       })();
    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       });
    177203    </script>
    178204
  • captain-up/trunk/readme.txt

    r692934 r708989  
    1818You 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/).
    1919
    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.
    2121
    2222**Features**:
     
    116116== Changelog ==
    117117
     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
    118126= 1.1 =
    119127
Note: See TracChangeset for help on using the changeset viewer.