Plugin Directory

Changeset 1541488


Ignore:
Timestamp:
11/27/2016 07:21:54 PM (9 years ago)
Author:
sericson
Message:

Switched to https

Location:
bettings-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bettings-widget/trunk/bettings-widget.php

    r1152946 r1541488  
    22/**
    33 * Plugin Name: Bettin.gs widget
    4  * Plugin URI: http://bettin.gs/about
     4 * Plugin URI: https://bettin.gs/about
    55 * Description: Show your stats from Bettin.gs
    6  * Version: 1.0
     6 * Version: 1.1
    77 * Author: Samuel Ericson
    88 * Author URI: http://samuelericson.com
     
    1010 * Based on Justin Tadlock's widget tutorial
    1111 * (http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28)
    12  * 
     12 *
    1313 */
    1414
     
    7373        if ( $alias ) {
    7474            $ch = curl_init();
    75             curl_setopt($ch, CURLOPT_URL, 'http://bettin.gs/api/alltimestats/'.$alias);
     75            curl_setopt($ch, CURLOPT_URL, 'https://bettin.gs/api/alltimestats/'.$alias);
    7676            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    7777            $body = curl_exec($ch);
    7878            $stats = json_decode($body, true);
    79            
     79
    8080            echo __('<table width="100%">', 'bettings');
    8181            echo __('<tbody>', 'bettings_widget_domain');
     
    9292        /* If show link was selected, display the link to Bettin.gs. */
    9393        if ( $show_link )
    94             printf( '<p>Full stats &rarr; <a href="http://bettin.gs/'.$alias.'">Bettin.gs/'.$alias.'</a></p>', 'bettings' );
     94            printf( '<p>Full stats &rarr; <a href="https://bettin.gs/'.$alias.'">Bettin.gs/'.$alias.'</a></p>', 'bettings' );
    9595
    9696        /* After widget (defined by themes). */
     
    139139        <!-- Show Link? Checkbox -->
    140140        <p>
    141             <input class="checkbox" type="checkbox" <?php checked( $instance['show_link'], 'on' ); ?> id="<?php echo $this->get_field_id( 'show_link' ); ?>" name="<?php echo $this->get_field_name( 'show_link' ); ?>" /> 
     141            <input class="checkbox" type="checkbox" <?php checked( $instance['show_link'], 'on' ); ?> id="<?php echo $this->get_field_id( 'show_link' ); ?>" name="<?php echo $this->get_field_name( 'show_link' ); ?>" />
    142142            <label for="<?php echo $this->get_field_id( 'show_link' ); ?>"><?php _e('Show link to Bettin.gs', 'bettings'); ?></label>
    143143        </p>
  • bettings-widget/trunk/readme.txt

    r1152946 r1541488  
    44Tags: betting, statistics, sport
    55Requires at least: 3.0.1
    6 Tested up to: 4.2.1
    7 Stable tag: 1.0
     6Tested up to: 4.6.1
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2828By registering the bets you place, you get access to automatically generated stats based on those bets. Statistics like ROI, top tipsters, sports, tags and much much more.
    2929
    30 Read more at [http://bettin.gs](bettin.gs "Bettin.gs")
     30Read more at [https://bettin.gs](bettin.gs "Bettin.gs")
    3131
    3232= What do I need to get started? =
     
    3939
    4040== Changelog ==
     41
     42= 1.1 =
     43* Switched to https
    4144
    4245= 1.0 =
Note: See TracChangeset for help on using the changeset viewer.