function hmc_settings_page() { ?> <form method="post" action="options.php"> <div class="wrap"> <h2>Site Settings</h2> <h3>The Place of the Site Within hmc.edu Architecture</h3> <?php settings_fields('site-details-group'); ?> <?php $options = get_option('site_details'); ?> <table class="form-table"> <tr valign="top"> <th scope="row">Main Section Parent</th> <td> <select name="site_details[section_parent]"> <?php if ($options['section_parent'] != '') { ?> <option value="<?php echo $options['section_parent']; ?> "><?php section_parent_details('name', $options['section_parent'], 1); ?> </option> <?php } else { ?> <option value="99">None</option> <?php } ?> <option value="99">None</option> <option value="1"><?php section_parent_details('name', 1, 1); ?> </option> <option value="2"><?php section_parent_details('name', 2, 1); ?> </option> <option value="3"><?php section_parent_details('name', 3, 1); ?> </option> <option value="4"><?php section_parent_details('name', 4, 1); ?> </option> <option value="5"><?php section_parent_details('name', 5, 1); ?> </option> <option value="6"><?php section_parent_details('name', 6, 1); ?> </option> </select> </tr> <!-- <tr valign="top"> <th scope="row">Sub-Section Parent</th> <td> <select name="site_details[sub_section_parent]"> <?php if ($options['sub_section_parent'] != '') { ?> <option value="<?php echo $options['sub_section_parent']; ?> "><?php section_parent_details('name', $options['sub_section_parent'], 1); ?> </option> <?php } else { ?> <option value="99">None</option> <?php } ?> <option value="99">None</option> <option value="101"><?php section_parent_details('name', 101, 1); ?> </option> <option value="102"><?php section_parent_details('name', 102, 1); ?> </option> <option value="103"><?php section_parent_details('name', 103, 1); ?> </option> </select> </tr> --> </table> <h3>Analytics</h3> <table class="form-table"> <tr valign="top"> <th scope="row">Enable Google Analytics?</th> <td><input type="checkbox" name="site_details[enable_ga]" value="1"<?php isset($options['enable_ga']) ? checked('1', $options['enable_ga']) : ''; ?> /> <label for="enable_ga">If checked, Google Analytics will be enabled on the site. Should be enabled when site is live.</label></td> </tr> </table> <p class="submit"> <input type="submit" class="button-primary" value="<?php _e('Save Changes'); ?> " /> </p> </form> </div> <?php }
* The category template file. * * Used when dispaying excerpts of posts within a particular category * */ get_header(); ?> <div id="breadcrumb"> <?php get_template_part('nav', 'breadcrumb-category'); ?> </div> <h1><span><?php section_parent_details('name', $site_options['section_parent'], 1); ?> </span></h1> </header> <div id="wrapper"> <div> <?php get_template_part('nav', 'left'); ?> <section id="content" class="with-sidebar"> <div> <header> <h1>Category: "<?php