Changeset 2001002
- Timestamp:
- 12/24/2018 12:24:35 PM (7 years ago)
- Location:
- captain-up/trunk
- Files:
-
- 3 edited
-
README.md (modified) (3 diffs)
-
captainup.php (modified) (11 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
captain-up/trunk/README.md
r1998656 r2001002 3 3 Captain Up is an engagement platform for your WordPress blog. Quickly add badges, levels and leaderboards to your site and start rewarding your users. 4 4 5 5  6 6 7 7 --- … … 90 90 91 91 ## Changelog 92 93 ###### 3.0.4 94 95 * Support for PHP 7.3 92 96 93 97 ###### 3.0.3 … … 103 107 * Documentation updates 104 108 * Security improvements 105 109 106 110 ###### 3.0.0 107 111 -
captain-up/trunk/captainup.php
r1998656 r2001002 1 1 <?php 2 2 /* 3 Plugin Name: Captain Up 3 Plugin Name: Captain Up 4 4 Plugin URI: https://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: 3.0. 36 Version: 3.0.4 7 7 Author: Captain Up Team 8 8 License: GPL2 … … 53 53 54 54 // Add Captain Up to the main menu of the WordPress admin panel 55 add_action('admin_menu', 'cptup_config'); 55 add_action('admin_menu', 'cptup_config'); 56 56 57 57 … … 156 156 $height = $instance['height']; 157 157 $default_leaderboard = $instance['default_leaderboard']; 158 158 159 159 echo $before_widget; 160 160 ?> … … 162 162 <div class='captain-<?php echo $type; ?>-widget' <?php if($type=='leaderboard') echo 'data-cpt-leaderboard='.$default_leaderboard ?> style='width: auto; height: <?php echo $height; ?>px; display: none;'> 163 163 </div> 164 165 <?php 164 165 <?php 166 166 echo $after_widget; 167 167 } … … 187 187 if (!isset($height)) $height = '350'; 188 188 if (!isset($default_leaderboard)) $default_leaderboard = 'monthly_ranking'; 189 189 190 190 ?> 191 191 … … 209 209 <label for="<?php echo $this->get_field_id('height'); ?>"> 210 210 <?php _e('Height:'); ?> 211 </label> 211 </label> 212 212 <input size="4" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="text" value="<?php echo $height; ?>" />px 213 213 </p> … … 219 219 220 220 <select id="<?php echo $this->get_field_id('default_leaderboard'); ?>" name="<?php echo $this->get_field_name('default_leaderboard'); ?>"> 221 221 222 222 <option value="all-time-ranking" <?php if($default_leaderboard == 'all-time-ranking') echo 'selected'?>> 223 223 All Time … … 251 251 }); 252 252 </script> 253 253 254 254 <?php 255 255 } … … 257 257 258 258 // Initialize the Widget 259 add_action('widgets_init', create_function('', 'register_widget("CaptainUp_Widget");') ); 259 function cptup_init_widget(){ 260 return register_widget('CaptainUp_Widget'); 261 } 262 add_action('widgets_init', 'cptup_init_widget' ); 260 263 261 264 … … 306 309 // Sign Up Link Shortcode 307 310 // [captain-sign-up text="Hello"] 308 // 311 // 309 312 // Options: 310 313 // - text - the text of the link, by default "Sign Up Now" 311 // 314 // 312 315 function cptup_sign_up_link_shortcode($atts) { 313 316 extract(shortcode_atts( … … 323 326 // WordPress Comments Integration 324 327 // ----------------------------------------------------------------------------- 325 // 328 // 326 329 // The flow for detecting a new WordPress comment and sending 327 330 // to Captain Up goes like this: First, we add an action hook to -
captain-up/trunk/readme.txt
r1998656 r2001002 18 18 **NEW**: Rewards: Give your loyal users badges, trophies, coupons, and rewards. 19 19 20 **NEW**: Messaging: Communicate with your users, send them welcome messages, updates, and promotions. 20 **NEW**: Messaging: Communicate with your users, send them welcome messages, updates, and promotions. 21 21 22 22 **Features**: … … 118 118 == Changelog == 119 119 120 = 3.0.4 = 121 122 * Support for PHP 7.3 123 120 124 = 3.0.3 = 121 125 … … 130 134 * Documentation updates. 131 135 * Security improvements. 132 136 133 137 = 3.0.0 = 134 138
Note: See TracChangeset
for help on using the changeset viewer.