. * * @category Form * @package StatusNet * @author Evan Prodromou * @copyright 2011 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ if (!defined('STATUSNET')) { // This check helps protect against security problems; // your code file can't be executed directly from the web. exit(1); } /** * First bookmark form, with just the URL * * @category General * @package StatusNet * @author Evan Prodromou * @copyright 2011 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ class InitialBookmarkForm extends Form { function __construct($out=null) { parent::__construct($out); } function id() { return 'form_initial_bookmark'; } function formClass() { return 'form_settings ajax'; } function action() { return common_local_url('bookmarkforurl'); } function formData() { $this->out->elementStart('fieldset', array('id' => 'initial_bookmark_data')); $this->out->elementStart('ul', 'form_data'); $this->li(); $this->out->input('initial-bookmark-url', // TRANS: Field label on form for adding a new bookmark. _m('LABEL','URL'), null, null, 'url'); $this->unli(); $this->out->elementEnd('ul'); $this->out->elementEnd('fieldset'); } function formActions() { // TRANS: Button text for action to save a new bookmark. $this->out->submit('submit', _m('BUTTON', 'Add')); } }