<?php
/* SVN FILE: $Id: plugin.php 621 2008-07-20 03:49:24Z bb_yujiro $ */
/**
 * Pluginクラス
 *
 * PHP versions 5
 *
 *      hitSuji : Social Network Service <http://rakuto.net/rktSNS/>
 *      Copyright (c) 2008 Yujiro Takahashi
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @package         hitSuji
 * @copyright       Copyright (c) 2008 Yujiro Takahashi
 * @link            http://rakuto.net/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @version         $Revision: 621 $
 * @modifiedby      $LastChangedBy: bb_yujiro $
 * @lastmodified    $Date: 2008-07-20 12:49:24 +0900 (日, 20 7 2008) $
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Pluginクラス
 *
 * @category        Plugin
 * @package         hitSuji
 * @copyright       Copyright (c) 2008 Yujiro Takahashi
 * @link            http://rakuto.net/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @version         $Revision: 621 $
 * @modifiedby      $LastChangedBy: bb_yujiro $
 * @lastmodified    $Date: 2008-07-20 12:49:24 +0900 (日, 20 7 2008) $
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */
class hitsuji_OpenID extends RKT_plugin
{
    /**
     * 登録済み
     * @var array
     */
    public $registered = null;

    /**
     * ログインメニュー
     *
     * @access public
     * @parmas integer $ref_account
     * @parmas integer $ref_member
     * @return void
     */
    public function loginMenu()
    {
?>
					<form name="oid" method="get" action="<?php e(HTTP_ACTION); ?>plugin/hitsuji/OpenID/entrance/">
					<img src="<?php Theme::Path(); ?>menuTop.png" width="188" height="10" alt="+--+" align="absbottom" />
					<ul class="sideList">
						<li style="text-align:center;"><a href="<?php e(HTTP_ACTION); ?>plugin/hitsuji/OpenID/entrance/request/<?php e(US); ?>identifier=<?php e(urlencode('yahoo.co.jp')); ?>"><img src="http://i.yimg.jp/images/login/btn/btnSLogin.gif" width="131" height="31"alt="Yahoo! JAPAN IDでログイン" border="0"></a></li>
						<li><br /></li>
						<li><label><?php e('OpenID');?>:</label></li>
						<li><input type="text" name="identifier" value="" style="background: url('http://www.openidenabled.com/favicon.ico') no-repeat; padding-left: 16px;" /></li>
						<li><input type="submit" value="<?php _e('Sign In');?>" /></li>
					</ul><img src="<?php Theme::Path(); ?>menuBottom.png" width="188" height="10" alt="+__+" align="top" /></form>
<?php
    }

    /**
     * プロフィールメニュー
     *
     * @access public
     * @parmas integer $ref_account
     * @parmas integer $ref_member
     * @return void
     */
    public function profileMenu($ref_account, $ref_member)
    {
?>
<li><a href="<?php e(HTTP_ACTION); ?>plugin/hitsuji/OpenID/entry/"><img src="<?php e(BASE_URL); ?>resource/img/icons/lock.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Entry OpenID'); ?></a></li>
<?php
    }
} // RKT_plugin
?>
