Pastoid

The page you are looking at now is at this URL: http://pastoid.com/a0z

This paste was last updated on June 15, 2009 at 9:15 pm.

Pasted Coderaw

/**
* Alter the default comment form layout
*/
public function action_form_comment($form){
 
	//Add some custom template.
	//These files are customized and placed in theme dir.
	$this->add_template('formcontrol_text', Site::get_dir( 'theme' ).'/custom_formcontrol_text.php', true);
	$this->add_template('formcontrol_textarea', Site::get_dir( 'theme' ).'/custom_formcontrol_textarea.php', true);
	$this->add_template('formcontrol_submit', Site::get_dir( 'theme' ).'/custom_formcontrol_submit.php', true);
 
	//Now do some hacking to the form. 
	$form->commenter->caption="<strong>Name</strong>";
	$form->commenter->size="30";
	$form->email->caption="<strong>E-Mail</strong>";
	$form->email->size="30";
	$form->url->caption="<strong>URL</strong>";
	$form->url->size="30";
 
	//The following is just to bring the comment content field to the top. grrr.
	$content=$form->controls['content'];
	unset ($form->controls['content']);
	array_unshift( $form->controls, $content );
 
	// Utils::debug($form->controls);
}
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 5
Is this paste spam?
<Hide