mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
681 B
37 lines
681 B
<?php
|
|
|
|
/**
|
|
* @package Widgets
|
|
*
|
|
* @file Pods.php
|
|
* This file is part of Movim.
|
|
*
|
|
* @brief The Pods widget
|
|
*
|
|
* @author Jaussoin Timothée <edhelas@movim.eu>
|
|
|
|
* Copyright (C)2014 Movim project
|
|
*
|
|
* See COPYING for licensing information.
|
|
*/
|
|
|
|
class Pods extends WidgetBase
|
|
{
|
|
function load() {
|
|
|
|
}
|
|
|
|
function flagPath($country) {
|
|
return BASE_URI.'themes/movim/img/flags/'.strtolower($country).'.png';
|
|
}
|
|
|
|
function display()
|
|
{
|
|
$json = requestURL(MOVIM_API.'pods', 1);
|
|
$json = json_decode($json);
|
|
|
|
if(is_object($json) && $json->status == 200) {
|
|
$this->view->assign('pods', $json);
|
|
}
|
|
}
|
|
}
|