The page you are looking at now is at this URL: http://pastoid.com/ayu
This paste was last updated on May 29, 2009 at 2:43 pm.
public function theme_comment_form( $theme )
{
$ui = new FormUI( 'comments_form' );
$ui->set_option( 'form_action', URL::get( 'submit_feedback', array( 'id' => $theme->post->id ) ) );
$comment_fieldset = $ui->append( 'fieldset', 'content_box', _t( 'Add to the Discussion.' ) );
$commentContent = $comment_fieldset->append( 'textarea', 'commentContent', 'null:null', _t( 'Comment' ) . " (<span class='required'>" . _t( 'Required' ) . "</span>)" );
$commentContent->value = $theme->commenter_content;
$commentContent->id = 'content';
$comment_info_fieldset = $ui->append('fieldset', 'commenter_info', _t( 'A Little Info About You' ) );
$name = $comment_info_fieldset->append( 'text', 'ename', 'null:null', _t( 'Name' ) . " (<span class='required'>" . _t( 'Required' ) . "</span>)" );
$name->value = $theme->commenter_name;
$name->id = 'name';
$name->title = 'Your name. Required';
$email = $comment_info_fieldset->append( 'text', 'email', 'null:null', _t('Email' ) . " (<span class='required'>" . _t( 'Required - not published' ) . "</span>)" );
$email->value = $theme->commenter_email;
$email->id = $email->name;
$email->title = "Your email address. Required, but not published"
$url = $comment_info_fieldset->append( 'text', 'url', 'null:null', _t( 'Web Address' ) );
$url->value = $theme->commenter_url;
$url->id = $url->name;
$url->title = 'Enter your homepage.'
$submit = $ui->append( 'submit', 'submit', _t( 'Say It' ) );
$submit->id = $submit->name;
$ui->out();
}
// The below are changes to form controls
// text input
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<label <?php echo isset( $title ) ? " title=\"$title\"" : ''; ?>><?php echo $this->caption; ?></label>
<input <?php echo isset( $title ) ? " title=\"$title\"" : ''; ?> type="text" name="<?php echo $field; ?>" value="<?php echo htmlspecialchars($value); ?>" >
<?php $control->errors_out('<li>%s</li>', '<ul class="error">%s</ul>'); ?>
</div>
// textarea
<label <?php echo isset( $title ) ? " title=\"$title\"" : ''; ?>><?php echo $this->caption; ?><textarea name="<?php echo $field; ?>"<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' :
''?><?php echo isset( $rows ) ? " rows=\"$rows\"" : ''; ?><?php echo isset( $cols ) ? " cols=\"$cols\"" : ''; ?> <?php echo isset( $title ) ? " title=\"$title\"" : ''; ?>><?php echo htmlspecialchars($value); ?></textarea></label>
<?php if($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
| Referring Domain | Hits |
|---|---|
| Unknown Referer | 127 |
| www.mibbit.com | 13 |
| search.live.com | 1 |
| drunkenmonkey.org | 1 |
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This