Changeset 1541488
- Timestamp:
- 11/27/2016 07:21:54 PM (9 years ago)
- Location:
- bettings-widget/trunk
- Files:
-
- 2 edited
-
bettings-widget.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bettings-widget/trunk/bettings-widget.php
r1152946 r1541488 2 2 /** 3 3 * Plugin Name: Bettin.gs widget 4 * Plugin URI: http ://bettin.gs/about4 * Plugin URI: https://bettin.gs/about 5 5 * Description: Show your stats from Bettin.gs 6 * Version: 1. 06 * Version: 1.1 7 7 * Author: Samuel Ericson 8 8 * Author URI: http://samuelericson.com … … 10 10 * Based on Justin Tadlock's widget tutorial 11 11 * (http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28) 12 * 12 * 13 13 */ 14 14 … … 73 73 if ( $alias ) { 74 74 $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); 76 76 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 77 77 $body = curl_exec($ch); 78 78 $stats = json_decode($body, true); 79 79 80 80 echo __('<table width="100%">', 'bettings'); 81 81 echo __('<tbody>', 'bettings_widget_domain'); … … 92 92 /* If show link was selected, display the link to Bettin.gs. */ 93 93 if ( $show_link ) 94 printf( '<p>Full stats → <a href="http ://bettin.gs/'.$alias.'">Bettin.gs/'.$alias.'</a></p>', 'bettings' );94 printf( '<p>Full stats → <a href="https://bettin.gs/'.$alias.'">Bettin.gs/'.$alias.'</a></p>', 'bettings' ); 95 95 96 96 /* After widget (defined by themes). */ … … 139 139 <!-- Show Link? Checkbox --> 140 140 <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' ); ?>" /> 142 142 <label for="<?php echo $this->get_field_id( 'show_link' ); ?>"><?php _e('Show link to Bettin.gs', 'bettings'); ?></label> 143 143 </p> -
bettings-widget/trunk/readme.txt
r1152946 r1541488 4 4 Tags: betting, statistics, sport 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 2.17 Stable tag: 1. 06 Tested up to: 4.6.1 7 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 28 28 By 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. 29 29 30 Read more at [http ://bettin.gs](bettin.gs "Bettin.gs")30 Read more at [https://bettin.gs](bettin.gs "Bettin.gs") 31 31 32 32 = What do I need to get started? = … … 39 39 40 40 == Changelog == 41 42 = 1.1 = 43 * Switched to https 41 44 42 45 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.