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 name="cx" in the Search box code of Google Custom Search Engine, and type the value here.
For example: 014782006753236413342:1ltfrybsbz4)', '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(); }