textdomain = 'wp-picasaOptions';
$this->args = array(
'page_title' => __('Picasa Albums Option', $this->textdomain),
'menu_title' => __('Picasa Albums', $this->textdomain),
'parent string'=>'edit.php'
);
}
function validate($options) {
return $options;
}
function page_content() {
$new = (empty($this->options->username)) ? ' ref="new"':' ref="saved"';
$rows = array(
array(
'title' => __('Picasa User Name', $this->textdomain),
'type' => 'text',
'name' => 'username',
'extra' => 'size="50" '.$new,
'desc' => 'Save options before importing albums!
Picasa\'s API does not need password to access your public RSS feed.',
),
);
$out =
html('h3', __('Picasa Settings', $this->textdomain))
.html('p', __('', $this->textdomain))
.$this->table($rows);
$rows = array(
array(
'title' => __('Import Albums', $this->textdomain),
'type' => 'button',
'name' => 'import_albums',
'id'=>'import_albums',
'value'=>'Import',
'extra'=>'class="button"',
'desc' => 'Loading