7.7 ユーザーのプロフィール編集とプロフィール画像の表示
P.672
<mt:if name="userpic_type" eq="author">
<div class="userpic">
<mt:if tag="authorUserpicURL">
<mt:authorUserpicAsset>
<img src="<mt:assetThumbnailURL width="$userpic_size" />" width="<mt:getVar name="userpic_size" />" height="<mt:getVar name="userpic_size" />" alt="" />
</mt:authorUserpicAsset>
<mt:else>
<img src="<mt:staticWebPath />images/default-userpic-90.jpg" width="<mt:getVar name="userpic_size" />" height="<mt:getVar name="userpic_size" />" alt="" />
</mt:if>
</div>
<mt:elseIf name="userpic_type" eq="commenter">
<div class="userpic">
<mt:if tag="commenterUserpic">
<mt:commenterUserpicAsset>
<img src="<mt:assetThumbnailURL width="$userpic_size">" width="<mt:getVar name="userpic_size">" height="<mt:getVar name="userpic_size">" alt="" />
</mt:commenterUserpicAsset>
<mt:else>
<mt:if tag="commenterAuthIconURL">
<img src="<mt:commenterAuthIconURL size="logo_small">" alt="" />
<img src="<mt:staticWebPath />images/default-userpic-90.jpg" width="<mt:getVar name="userpic_size">" height="<mt:getVar name="userpic_size">" alt="" />
<mt:else>
<img src="<mt:staticWebPath />images/default-userpic-90.jpg" width="<mt:getVar name="userpic_size">" height="<mt:getVar name="userpic_size">" alt="" />
</mt:if>
</mt:if>
</div>
<mt:else>
<div class="userpic">
<mt:if tag="entryAuthorUserpicURL">
<mt:entryAuthorUserpicAsset>
<img src="<mt:assetThumbnailURL width="$userpic_size">" width="<mt:getVar name="userpic_size">" height="<mt:getVar name="userpic_size">" alt="" />
</mt:entryAuthorUserpicAsset>
<mt:else>
<img src="<mt:staticWebPath />images/default-userpic-90.jpg" width="<mt:getVar name="userpic_size">" height="<mt:getVar name="userpic_size">" alt="" />
</mt:if>
</div>
</mt:if>
P.673
...前略...
<mt:authors>
...中略...
<mt:include module="プロフィール画像" userpic_type="author" userpic_size="50" />
...中略...
</mt:authors>
...後略...
...前略...
<mt:comments>
...中略...
<mt:include module="プロフィール画像" userpic_type="commenter" userpic_size="35" />
...中略...
</mt:comments>
...後略...
P.674
...前略...
<mt:entries>
...中略...
<mt:include module="プロフィール画像" userpic_size="50" />
...中略...
</mt:entries>
...後略...