<{if $openid_login!="3"}>

<{if $openid_login=="0" or $openid_login=="1"}>
- <{$smarty.const.TF_USER_ENTER}>
  <{$smarty.const.TF_USER_S_ID}>
  <{$smarty.const.TF_USER_S_PASS}>
  <{$smarty.const.TF_USER_REGIST}>
  <{$smarty.const.TF_USER_FORGET_PASS}>
<{/if}> <{if $openid_login=="1" or $openid_login=="2"}> <{php}> global $xoopsConfig,$xoopsTpl; $modhandler = &xoops_gethandler('module'); $config_handler =& xoops_gethandler('config'); $TadLoginXoopsModule = &$modhandler->getByDirname("tad_login"); if($TadLoginXoopsModule){ include_once XOOPS_ROOT_PATH."/modules/tad_login/function.php"; include_once XOOPS_ROOT_PATH."/modules/tad_login/language/{$xoopsConfig['language']}/county.php"; $tad_login['facebook'] =facebook_login('return'); $tad_login['google'] =google_login('return'); $config_handler =& xoops_gethandler('config'); $modConfig= & $config_handler->getConfigsByCat(0, $TadLoginXoopsModule->getVar('mid')); $auth_method=$modConfig['auth_method']; $i=0; foreach($auth_method as $method){ $method_const="_".strtoupper($method); $loginTitle=sprintf(_TAD_LOGIN_BY,constant($method_const)); if($method=="facebook"){ $tlogin[$i]['link']=$tad_login['facebook']; }elseif($method=="google"){ $tlogin[$i]['link']=$tad_login['google']; }else{ $tlogin[$i]['link']=XOOPS_URL."/modules/tad_login/index.php?login&op={$method}"; } $tlogin[$i]['img']=XOOPS_URL."/modules/tad_login/images/{$method}.png"; $tlogin[$i]['text']=$loginTitle; $i++; } $xoopsTpl->assign('tlogin',$tlogin); } <{/php}> <{assign var="i" value=0}> <{assign var="total" value=1}> <{foreach from=$tlogin item=login}> <{if $i==0}>
- <{/if}> style="display:inline-block;width:32px;height:32px;padding:2px;margin:2px;background-color:transparent;"<{/if}>> style="width:32px;height:32px;"<{/if}>> <{if $openid_logo==1}><{$login.text}><{/if}> <{assign var="i" value=$i+1}> <{assign var="total" value=$total+1}> <{if $i == $openid_logo || $total==$count}>
<{assign var="i" value=0}> <{/if}> <{/foreach}> <{/if}>

<{/if}>