'; $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 '
'; // Watermark Text echo '
' . elgg_echo('tidypics:settings:watermark'); echo elgg_view("input/text", array( 'name' => 'params[watermark_text]', 'value' => $plugin->watermark_text, )); echo '
';