// TRANS: Field label on form for adding a new bookmark.
_m('LABEL','URL'),
$this->_url,
+ null,
'url');
$this->unli();
- list($width, $height) = $this->scaleImage($this->_thumbnail->width,
- $this->_thumbnail->height);
-
if (!empty($this->_thumbnail)) {
+
+ list($width, $height) = $this->scaleImage($this->_thumbnail->width,
+ $this->_thumbnail->height);
+
$this->out->element('img',
array('src' => $this->_thumbnail->url,
+ 'class' => 'bookmarkform-thumbnail',
'width' => $width,
'height' => $height));
}
// TRANS: Field label on form for adding a new bookmark.
_m('LABEL','Title'),
$this->_title,
+ null,
'title');
$this->unli();
// TRANS: Field label on form for adding a new bookmark.
_m('LABEL','Notes'),
$this->_description,
+ null,
'description');
$this->unli();
function formActions()
{
// TRANS: Button text for action to save a new bookmark.
- $this->out->submit('submit', _m('BUTTON', 'Save'));
+ $this->out->submit('bookmark-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
}
function scaleImage($width, $height)