ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 4392


Ignore:
Timestamp:
Oct 15, 2007, 8:48:24 PM (13 years ago)
Author:
ebihara
Message:

#1411:年齢・誕生日が入力されてない場合でもフレンドホームに項目が表示されていたのを修正

Location:
OpenPNE/branches/stable-2.10.x
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.10.x/webapp/modules/ktai/templates/inc_f_home_h_prof.tpl

    r4382 r4392  
    6363
    6464({capture name="birth"})
    65 ({if $target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend)})<font color="#({$ktai_color_config.font_06})">年齢:</font><br>({$target_c_member.age})歳<br>
     65({if $target_c_member.age !== NULL && ($target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend))})<font color="#({$ktai_color_config.font_06})">年齢:</font><br>({$target_c_member.age})歳<br>
    6666({if $is_h_prof && $target_c_member.public_flag_birth_year == 'friend'})<font color="#({$ktai_color_config.font_09})">※({$WORD_MY_FRIEND_HALF})まで公開</font><br>({/if})
    6767({/if})
     
    7373
    7474({foreach from=$target_c_member.profile key=key item=item})
    75 ({if $item.public_flag != "private" && ($is_h_prof || ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend)))})
     75({if $item.public_flag != "private" && ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend))})
    7676({if $item.form_type != 'textarea'})
    7777
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/templates/inc_f_home_h_prof.tpl

    r4344 r4392  
    844844({capture name="birth"})
    845845<!-- ここから:主内容>年齢 -->
    846 ({if $target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend)})
     846({if $target_c_member.age !== NULL && ($target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend))})
    847847<tr>
    848848<td class="border_01 bg_09 padding_s" style="width:90px;border-right:none;border-top:none;">
     
    879879({/capture})
    880880({foreach from=$target_c_member.profile key=key item=item})
    881 ({if $item.public_flag != "private" && ($is_h_prof || ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend)))})
     881({if $item.public_flag != "private" && ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend))})
    882882({strip})
    883883
  • OpenPNE/branches/stable-2.10.x/webapp_biz/modules/ktai/templates/inc_f_home_h_prof.tpl

    r4382 r4392  
    6868
    6969({capture name="birth"})
    70 ({if $target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend)})<font color="#({$ktai_color_config.font_06})">年齢:</font><br>({$target_c_member.age})歳<br>
     70({if $target_c_member.age !== NULL && ($target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend))})<font color="#({$ktai_color_config.font_06})">年齢:</font><br>({$target_c_member.age})歳<br>
    7171({if $is_h_prof && $target_c_member.public_flag_birth_year == 'friend'})<font color="#({$ktai_color_config.font_09})">※({$WORD_MY_FRIEND_HALF})まで公開</font><br>({/if})
    7272({/if})
     
    7777
    7878({foreach from=$target_c_member.profile key=key item=item})
    79 ({if $item.public_flag != "private" && ($is_h_prof || ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend)))})
     79({if $item.public_flag != "private" && ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend))})
    8080({if $item.form_type != 'textarea'})
    8181
  • OpenPNE/branches/stable-2.10.x/webapp_biz/modules/pc/templates/inc_f_home_h_prof.tpl

    r4344 r4392  
    871871({capture name="birth"})
    872872<!-- ここから:主内容>年齢 -->
    873 ({if $target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend)})
     873({if $target_c_member.age !== NULL && ($target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend))})
    874874<tr>
    875875<td class="border_01 bg_09 padding_s" style="width:90px;border-right:none;border-top:none;">
     
    889889<!-- ここまで:主内容>年齢 -->
    890890<!-- ここから:主内容>誕生日 -->
     891({if $target_c_member.birth_month && $target_c_member.birth_day})
    891892<tr>
    892893<td class="border_01 bg_09 padding_s" style="width:90px;border-right:none;border-top:none;">
     
    901902</td>
    902903</tr>
     904({/if})
    903905<!-- ここまで:主内容>誕生日 -->
    904906({/capture})
    905907({foreach from=$target_c_member.profile key=key item=item})
    906 ({if $item.public_flag != "private" && ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend) || $is_h_prof)})
     908({if $item.public_flag != "private" && ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend))})
    907909({strip})
    908910
Note: See TracChangeset for help on using the changeset viewer.