<?php
/**
 * @link      http://www.u-bo.com
 * @copyright 南京友博网络科技有限公司 
 * @license   http://www.u-bo.com/license/
 */

namespace home\widgets\portlet;

use yii\helpers\Html;
use home\models\MessageLink;
use yii\base\InvalidConfigException;

/**
 * 天气组件
 * 
 * 调用方法如下：
 *
 * ```php
 * <?= WeatherPortlet::widget([
 *     'title' => '测试组件',
 *     'x' => 0,
 *     'y' => 0,
 * ]) ?>
 * ```
 * 
 * @author legendjw http://blog.u-bo.com
 * @since 0.1
 */
class WeatherPortlet extends BasePortlet 
{
	/**
     * @inheritdoc
     */
    public function getContent()
    {
        $content = <<<CODE
<iframe allowtransparency="true" frameborder="0" width="360" height="96" scrolling="no" src="http://tianqi.2345.com/plugin/widget/index.htm?s=2&z=1&t=0&v=0&d=2&bd=0&k=&f=808080&q=1&e=1&a=1&c=58238&w=360&h=96&align=center"></iframe>
CODE;
        return $content;
    }
}
