Skip to content

Instantly share code, notes, and snippets.

@kimarx
Created February 17, 2012 13:39
Show Gist options
  • Save kimarx/1853492 to your computer and use it in GitHub Desktop.
Save kimarx/1853492 to your computer and use it in GitHub Desktop.
4chan clone comment.tx
<div class="reply" style="
: if ( $image == 1 ) {
min-height: <: $min_height :>px;
: }
width: <: $width :>px; margin-left: <: $margin :>px" id = "<: $id :>">
: if ( $image == 1 ) {
<a class="image_link" target="_blank"
href="<: $img_path :>">
<img style="float: left; padding-right: <: $padding :>px;"
src="<: $thumb_path :>">
</a>
: }
<div class="reply_header">
<span class="reply_title">
<: mark_raw( $subject ) :>
</span>
<span class="comment_poster_name">
<: mark_raw( $name ) :>
</span>&nbsp;&nbsp;
<: $date :> No.<: $id :>&nbsp;
<a name="<: $id :>">#</a>
: if ( $image == 1 ) {
<br>
<span class="image_info">
File&#58;
<a target="_blank" href="<: $img_path :>">
<: $file_name :>
</a>
( <: $img_size :>, <: $img_geometry :> )
</span>
: }
<a class="del" href=""
onclick="document.del_<: $id :>.submit(); return false;">
DEL
</a>
<form class="del" style="display: inline;" method="POST"
name="del_<: $id :>"
action="<: $base_uri :><: $register :>">
PASS&#58;
<input type="text" maxlength="8" size="8" name="del_pass">
<input type="hidden" name="request" value="DEL">
<input type="hidden" name="id" value="<: $id :>">
</form>
</div>
<div class="reply_body">
<: mark_raw( $message ) :>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment