Created
October 3, 2016 05:08
-
-
Save steelydylan/bf28bbc244906d03eb79a401089f537b to your computer and use it in GitHub Desktop.
ユニットをGET_Renderedを使って配置してみる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="acms-admin-table-admin-edit"> | |
<tr> | |
<th>エントリーの表示位置</th> | |
<td> | |
<label class="acms-admin-form-radio"><input type="radio" name="display" value="right"{display:checked#right} /><i class="acms-admin-ico-radio"></i>右</label> | |
<label class="acms-admin-form-radio"><input type="radio" name="display" value="left"{display:checked#left} /><i class="acms-admin-ico-radio"></i>左</label> | |
<input type="hidden" name="field[]" value="display" /> | |
</td> | |
</tr> | |
<tr> | |
<th>サイドに表示する画像</th> | |
<td> | |
<!-- BEGIN image@path:veil --> | |
<img src="%{ARCHIVES_DIR}{image@path}"/> | |
<input type="hidden" name="image@old" value="{image@path}" /><br /> | |
<label class="acms-admin-form-checkbox"> | |
<input type="checkbox" name="image@edit" value="delete" /> | |
<i class="acms-admin-ico-checkbox"></i> 削除 | |
</label> | |
<!-- END image@path:veil --> | |
<input type="file" name="image" size="20" /><br /> | |
<input type="hidden" name="field[]" value="image" /> | |
<input type="hidden" name="image:extension" value="image" /> | |
<input type="hidden" name="image@filename" value="" /> | |
</td> | |
</tr> | |
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="acms-grid-r"> | |
<!-- BEGIN entry:loop --> | |
<!-- BEGIN_SetRendered id="entry-{entry:loop.eid}" --> | |
<!--#include file="/include/unit.html" --> | |
<!-- END_SetRendered --> | |
<!-- BEGIN_IF [{display}/eq/left] --> | |
<div class="acms-col-6"> | |
<!-- GET_Rendered id="entry-{entry:loop.eid}" --> | |
</div> | |
<div class="acms-col-6"> | |
<img src="%{ARCHIVES_DIR}{image@path}" class="acms-img-responsive"/> | |
</div> | |
<!-- END_IF --> | |
<!-- BEGIN_IF [{display}/eq/right] --> | |
<div class="acms-col-6"> | |
<img src="%{ARCHIVES_DIR}{image@path}" class="acms-img-responsive"/> | |
</div> | |
<div class="acms-col-6"> | |
<!-- GET_Rendered id="entry-{entry:loop.eid}" --> | |
</div> | |
<!-- END_IF --> | |
<!--#include file="/admin/entry/action.html"--> | |
<!-- END entry:loop --> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment