Plugin Directory

Changeset 482403


Ignore:
Timestamp:
12/30/2011 03:50:26 PM (14 years ago)
Author:
createyourleague
Message:

updated api

Location:
create-a-league
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • create-a-league/tags/0.4/create-your-league.php

    r482361 r482403  
    33Plugin Name: Create Your League
    44Plugin URI: http://www.createyourleague.com/
    5 Version: 0.3
     5Version: 0.4
    66Author: createyourleague, http://www.risultatieclassifiche.net/
    77Author URI: http://www.risultatieclassifiche.net/
     
    5454    $id = $atts['id'];
    5555    $lang = $atts['lang'];
     56    $order = $atts['order'];
     57    $limit = $atts['limit'];
     58    $day = $atts['day'];
     59    $two_columns = $atts['two_columns'];
     60   
    5661    $host = createyourleague_host($lang);
    5762
    58     return file_get_contents('http://' . $host . '/api/php-days/' . $id, false, createyourleague_context());
     63    return file_get_contents('http://' . $host . '/api/php-days/' . $id . '?order=' . urlencode($order) . '&limit=' . urlencode($limit) . '&day=' . urlencode($day) . '&two_columns=' . urlencode($two_columns), false, createyourleague_context());
    5964}
    6065
     
    6368    $lang = $atts['lang'];
    6469    $host = createyourleague_host($lang);
    65 
     70   
    6671    return file_get_contents('http://' . $host . '/api/php-lastday/' . $id, false, createyourleague_context());
    6772}
  • create-a-league/tags/0.4/readme.txt

    r482361 r482403  
    22Contributors: createyourleague
    33Donate link: http://www.createyourleague.com/donations
    4 Tags: fixtures, ranking, league, championship, code, plugin, shortcode, risultati, classifica, genera calendario, classifica marcatori, top scorers, football, soccer, calcio, basket, gestione campionato
     4Tags: fixtures, ranking, league, championship, code, plugin, shortcode, risultati, classifica, genera calendario, classifica marcatori, top scorers, football, soccer, calcio, basket, gestione campionato, risultatieclassifiche, createyourleague
    55Requires at least: 2.5
    66Tested up to: 3.3
    7 Stable tag: 0.3
     7Stable tag: 0.4
    88
    99Create Your League is a completely FREE service that allows you to publish the ranking table of your league directly to your WordPress web site.
     
    2525    `[createyourleague id=xxx lang="it"]`
    2626
    27     You can get the codes easily on our website control panel.
     27You can get the codes easily on our website control panel.
     28   
     29`[createyourleague_days id=xxx]` accepts also the following parameters:
     30*   two_columns: if set to 1 will render fixtures in two columns. (example `[createyourleague_days id=xxx two_columns=1]`)
     31*   order: "a" for ascending order or "d" for descending order. (example `[createyourleague_days id=xxx order="a"]`)
     32*   limit: limits the number of days to show. (example `[createyourleague_days id=xxx limit=5]`)
     33*   day: shows only the day selected (example `[createyourleague_days id=xxx day=3]`)
    2834
    2935== Installation ==
     
    5157== Changelog ==
    5258
     59= 0.4 =
     60* added new parameters to createyourleague_days
     61
    5362= 0.3 =
    5463* fixes readme
     
    6271== Upgrade Notice ==
    6372
     73= 0.4 =
     74No notices
     75
    6476= 0.3 =
    6577No notices
     78
  • create-a-league/trunk/create-your-league.php

    r482361 r482403  
    33Plugin Name: Create Your League
    44Plugin URI: http://www.createyourleague.com/
    5 Version: 0.3
     5Version: 0.4
    66Author: createyourleague, http://www.risultatieclassifiche.net/
    77Author URI: http://www.risultatieclassifiche.net/
     
    5454    $id = $atts['id'];
    5555    $lang = $atts['lang'];
     56    $order = $atts['order'];
     57    $limit = $atts['limit'];
     58    $day = $atts['day'];
     59    $two_columns = $atts['two_columns'];
     60   
    5661    $host = createyourleague_host($lang);
    5762
    58     return file_get_contents('http://' . $host . '/api/php-days/' . $id, false, createyourleague_context());
     63    return file_get_contents('http://' . $host . '/api/php-days/' . $id . '?order=' . urlencode($order) . '&limit=' . urlencode($limit) . '&day=' . urlencode($day) . '&two_columns=' . urlencode($two_columns), false, createyourleague_context());
    5964}
    6065
     
    6368    $lang = $atts['lang'];
    6469    $host = createyourleague_host($lang);
    65 
     70   
    6671    return file_get_contents('http://' . $host . '/api/php-lastday/' . $id, false, createyourleague_context());
    6772}
  • create-a-league/trunk/readme.txt

    r482361 r482403  
    22Contributors: createyourleague
    33Donate link: http://www.createyourleague.com/donations
    4 Tags: fixtures, ranking, league, championship, code, plugin, shortcode, risultati, classifica, genera calendario, classifica marcatori, top scorers, football, soccer, calcio, basket, gestione campionato
     4Tags: fixtures, ranking, league, championship, code, plugin, shortcode, risultati, classifica, genera calendario, classifica marcatori, top scorers, football, soccer, calcio, basket, gestione campionato, risultatieclassifiche, createyourleague
    55Requires at least: 2.5
    66Tested up to: 3.3
    7 Stable tag: 0.3
     7Stable tag: 0.4
    88
    99Create Your League is a completely FREE service that allows you to publish the ranking table of your league directly to your WordPress web site.
     
    2525    `[createyourleague id=xxx lang="it"]`
    2626
    27     You can get the codes easily on our website control panel.
     27You can get the codes easily on our website control panel.
     28   
     29`[createyourleague_days id=xxx]` accepts also the following parameters:
     30*   two_columns: if set to 1 will render fixtures in two columns. (example `[createyourleague_days id=xxx two_columns=1]`)
     31*   order: "a" for ascending order or "d" for descending order. (example `[createyourleague_days id=xxx order="a"]`)
     32*   limit: limits the number of days to show. (example `[createyourleague_days id=xxx limit=5]`)
     33*   day: shows only the day selected (example `[createyourleague_days id=xxx day=3]`)
    2834
    2935== Installation ==
     
    5157== Changelog ==
    5258
     59= 0.4 =
     60* added new parameters to createyourleague_days
     61
    5362= 0.3 =
    5463* fixes readme
     
    6271== Upgrade Notice ==
    6372
     73= 0.4 =
     74No notices
     75
    6476= 0.3 =
    6577No notices
     78
Note: See TracChangeset for help on using the changeset viewer.