'; $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 '
';