Pastoid

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

This paste was last updated on April 19, 2010 at 1:26 am.

Pasted Coderaw

	public function action_theme_ui()
	{
 		$form = new FormUI( 'elegantbox_theme' );
 
		$form->append( 'fieldset', 'twitter_fs', _t( 'Twitter', 'elegantbox' ) );
		$form->twitter_fs->append( 'checkbox', 'twitter', 'elegantbox__twitter', _t( 'Add Twitter button', 'elegantbox' ) );
		$form->twitter_fs->append( 'text', 'twitter_username', 'elegantbox__twitter_username', _t( 'Twitter username: ','elegantbox' ) );
 
		$form->append( 'fieldset', 'search_fs', _t( 'Search', 'elegantbox' ) );
 
		$summary_options = array( true => _t( 'post summaries', 'elegantbox' ) , false => _t( 'entire posts', 'elegantbox' ) );
		$form->search_fs->append( 'select', 'summaries', 'elegantbox__summaries', _t( 'Display search results as ', 'elegantbox' ), $summary_options );
 
		$form->search_fs->append( 'checkbox', 'google_cse', 'elegantbox__google', _t( 'Use Google custom search engine', 'elegantbox' ) );
 
		$form->search_fs->append( 'text', 'google_cse_cx', 'elegantbox__google_cx', _t( 'CX: (Find <code>name="cx"</code> in the <strong>Search box code</strong> of <a href="http://www.google.com/coop/cse/">Google Custom Search Engine</a>, and type the <code>value</code> here.<br/>For example: <code>014782006753236413342:1ltfrybsbz4</code>)', 'elegantbox') );
		$form->google_cse_cx->size = 40;
 
		$form->append( 'submit', 'save', _t( 'Save', 'elegantbox' ) );
 
		$form->set_option( 'success_message', _t( 'Configuration saved', 'elegantbox' ) );
		$form->out();
	}

Toggle wordwrap

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