?> </label> </th> <td> <input name="menuname" id="menuname" type="text" value="<?php echo attribute_escape($wpm_menu->name); ?> " size="10" /> </td> </tr> <tr id="select6" > <th scope="row" valign="top"> <label for="template"> <?php _e('Template:', 'wpm'); ?> </label> </th> <td> <?php wpm_template_dropdown(wpm_2to1($wpm_menu->selection, $wpm_menu->cssclass)); ?> <?php _e('(select a menu template and stylesheet)', 'wpm'); ?> </td> </tr> </table> <p class="submit"> <input type="submit" name="submit" value="<?php echo $submit_text; ?> " /> </p> </form> </div>
function wpm_check_templates() { global $wpm_options; $root = $wpm_options->templates_dir; if (!file_exists("{$root}")) { return 1; } $tpfound = wpm_template_dropdown('', false); if (!$tpfound) { return 2; } return 0; }