Plugin Directory

Changeset 2001002


Ignore:
Timestamp:
12/24/2018 12:24:35 PM (7 years ago)
Author:
cptup
Message:

version 3.0.4

Location:
captain-up/trunk
Files:
3 edited

Legend:

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

    r1998656 r2001002  
    33Captain Up is an engagement platform for your WordPress blog. Quickly add badges, levels and leaderboards to your site and start rewarding your users.
    44
    5 ![Captain Up - Engagement Platform as a Service](https://captainup.com/assets/help/nodejs/node-js-readme.png)
     5![Captain Up - Engagement Platform as a Service](https://user-images.githubusercontent.com/550061/50300165-3bfed600-048c-11e9-84d5-c14de32ac3ca.png)
    66
    77---
     
    9090
    9191## Changelog
     92
     93###### 3.0.4
     94
     95* Support for PHP 7.3
    9296
    9397###### 3.0.3
     
    103107* Documentation updates
    104108* Security improvements
    105  
     109
    106110###### 3.0.0
    107111
  • captain-up/trunk/captainup.php

    r1998656 r2001002  
    11<?php
    22/*
    3 Plugin Name: Captain Up 
     3Plugin Name: Captain Up
    44Plugin URI: https://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: 3.0.3
     6Version: 3.0.4
    77Author: Captain Up Team
    88License: GPL2
     
    5353
    5454// Add Captain Up to the main menu of the WordPress admin panel
    55 add_action('admin_menu', 'cptup_config'); 
     55add_action('admin_menu', 'cptup_config');
    5656
    5757
     
    156156        $height = $instance['height'];
    157157        $default_leaderboard = $instance['default_leaderboard'];
    158        
     158
    159159        echo $before_widget;
    160160        ?>
     
    162162        <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;'>
    163163        </div>
    164        
    165         <?php 
     164
     165        <?php
    166166        echo $after_widget;
    167167    }
     
    187187        if (!isset($height)) $height = '350';
    188188        if (!isset($default_leaderboard)) $default_leaderboard = 'monthly_ranking';
    189        
     189
    190190        ?>
    191191
     
    209209            <label for="<?php echo $this->get_field_id('height'); ?>">
    210210                <?php _e('Height:'); ?>
    211             </label> 
     211            </label>
    212212            <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
    213213        </p>
     
    219219
    220220            <select id="<?php echo $this->get_field_id('default_leaderboard'); ?>" name="<?php echo $this->get_field_name('default_leaderboard'); ?>">
    221                
     221
    222222                <option value="all-time-ranking" <?php if($default_leaderboard == 'all-time-ranking') echo 'selected'?>>
    223223                    All Time
     
    251251            });
    252252        </script>
    253        
     253
    254254        <?php
    255255    }
     
    257257
    258258// Initialize the Widget
    259 add_action('widgets_init', create_function('', 'register_widget("CaptainUp_Widget");') );
     259function cptup_init_widget(){
     260    return register_widget('CaptainUp_Widget');
     261}
     262add_action('widgets_init', 'cptup_init_widget' );
    260263
    261264
     
    306309// Sign Up Link Shortcode
    307310// [captain-sign-up text="Hello"]
    308 // 
     311//
    309312// Options:
    310313// - text - the text of the link, by default "Sign Up Now"
    311 // 
     314//
    312315function cptup_sign_up_link_shortcode($atts) {
    313316    extract(shortcode_atts(
     
    323326// WordPress Comments Integration
    324327// -----------------------------------------------------------------------------
    325 // 
     328//
    326329// The flow for detecting a new WordPress comment and sending
    327330// to Captain Up goes like this: First, we add an action hook to
  • captain-up/trunk/readme.txt

    r1998656 r2001002  
    1818**NEW**: Rewards: Give your loyal users badges, trophies, coupons, and rewards.
    1919
    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.
    2121
    2222**Features**:
     
    118118== Changelog ==
    119119
     120= 3.0.4 =
     121
     122* Support for PHP 7.3
     123
    120124= 3.0.3 =
    121125
     
    130134* Documentation updates.
    131135* Security improvements.
    132  
     136
    133137= 3.0.0 =
    134138
Note: See TracChangeset for help on using the changeset viewer.