'; $checked = $plugin->$checkbox ? 'checked' : false; echo elgg_view('input/checkbox', array( 'name' => "params[$checkbox]", 'value' => true, 'checked' => (bool)$plugin->$checkbox, )); echo ' ' . elgg_echo("tidypics:settings:$checkbox"); echo ''; } // max image size echo '
'; echo elgg_echo('tidypics:settings:maxfilesize'); echo elgg_view('input/text', array( 'name' => 'params[maxfilesize]', 'value' => $plugin->maxfilesize, )); echo '
'; // image library echo '

' . elgg_echo('tidypics:settings:heading:img_lib') . '

'; echo'
'; echo elgg_echo('tidypics:settings:image_lib') . ': '; echo elgg_view('input/dropdown', array( 'name' => 'params[image_lib]', 'options_values' => tidypics_get_image_libraries(), 'value' => $plugin->image_lib, )); echo '
'; echo '
'; echo elgg_echo('tidypics:settings:im_path') . ' '; echo elgg_view("input/text", array('name' => 'params[im_path]', 'value' => $$plugin->im_path)); echo '
'; // river integration echo '

' . elgg_echo('tidypics:settings:heading:river') . '

'; echo '
'; echo elgg_echo('tidypics:settings:img_river_view') . ': '; echo elgg_view('input/dropdown', array( 'name' => 'params[img_river_view]', 'options_values' => array( 'all' => elgg_echo('tidypics:option:all'), 'batch' => '1', 'none' => elgg_echo('tidypics:option:none'), ), 'value' => $plugin->img_river_view, )); echo '
'; echo '
'; echo elgg_echo('tidypics:settings:album_river_view') . ': '; echo elgg_view('input/dropdown', array( 'name' => 'params[album_river_view]', 'options_values' => array( 'cover' => elgg_echo('tidypics:option:cover'), 'set' => elgg_echo('tidypics:option:set'), ), 'value' => $plugin->album_river_view, )); echo '
'; // thumbnail sizes echo '
'; echo '

' . elgg_echo('tidypics:settings:heading:sizes') . '

'; echo '
' . elgg_echo('tidypics:settings:sizes:instructs') . '
'; $image_sizes = unserialize($plugin->image_sizes); echo ''; $sizes = array('large', 'small', 'tiny'); foreach ($sizes as $size) { echo ''; echo ''; echo ''; } echo '
'; echo elgg_echo("tidypics:settings:{$size}size"); echo ''; echo 'width: '; echo elgg_view('input/text', array( 'name' => "{$size}_image_width", 'value' => $image_sizes["{$size}_image_width"], 'class' => 'tidypics-input-thin', )); echo ''; echo 'height: '; echo elgg_view('input/text', array( 'name' => "{$size}_image_height", 'value' => $image_sizes["{$size}_image_height"], 'class' => 'tidypics-input-thin', )); echo '
'; echo '
'; echo elgg_view('input/submit', array('value' => elgg_echo("save"))); return true; // Watermark Text $form_body .= "

" . elgg_echo('tidypics:settings:watermark') . "
"; $form_body .= elgg_view("input/text",array('internalname' => 'params[watermark_text]', 'value' => $plugin->watermark_text)) . "

"; // Quota Size $quota = $plugin->quota; if (!$quota) { $quota = 0; } $form_body .= "

" . elgg_echo('tidypics:settings:quota') . "
"; $form_body .= elgg_view("input/text",array('internalname' => 'params[quota]', 'value' => $quota)) . "

";