<header> <h1 class="G2 GS"> <a href="<?php echo defined('WP_SITEURL') ? WP_SITEURL : get_bloginfo('url'); ?> "><img alt="iA" src="<?php echo ia3_helpers::get_option('Logo', 'http://www.placeholder-image.com/image/142x55'); ?> " /></a> </h1><!-- .G2.GS --> <nav> <ul class="containsGrid G3" id="headerOne"> <li class="G1 GS"> <h2 class="HSC"><?php echo ia3_helpers::get_nav_cell('Header-1-1', ''); ?> </h2> <ul> <li><?php echo ia3_helpers::get_nav_cell('Header-1-2', ''); ?> </li> <li><?php echo ia3_helpers::get_nav_cell('Header-1-3', ''); ?> </li> <li><?php echo ia3_helpers::get_nav_cell('Header-1-4', ''); ?> </li> </ul>
<!-- Custom Colours --> <style> a, a:hover, label, .HSC, .index #content section.G6 h1 { color:<?php echo ia3_helpers::get_option('Colours-1', '#CC0000'); ?> ; } a:visited { color:<?php echo ia3_helpers::get_option('Colours-2', '#AA0000'); ?> ; } </style> <?php wp_head(); ?> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script src="<?php echo get_bloginfo('template_directory'); ?> /assets/js/extras.js"></script>
?> " /> </div> </th> <th> <div style="margin-right:38px"> <input class="isInputText" name="I-Contact-3-1" value="<?php echo htmlentities(stripslashes(ia3_helpers::get_option('Contact-3-1', __('Section Title', 'ia3')))); ?> " /> </div> </th> <th> <div style="margin-right:38px"> <input class="isInputText" name="I-Contact-4-1" value="<?php echo htmlentities(stripslashes(ia3_helpers::get_option('Contact-4-1', __('Section Title', 'ia3')))); ?> " /> </div> </th> </tr> <tr> <td> <?php ia3_helpers::put_nav_cell('Contact-1-2'); ?> </td> <td> <?php ia3_helpers::put_nav_cell('Contact-2-2'); ?>
/** * @access static * @param string * @return void * */ static function put_nav_cell($key = '') { $cs = get_categories(); $ps = get_pages(); $selected = FALSE; ?> <div style="margin-bottom:6px;margin-right:24px"> <select name="S-<?php echo $key; ?> "> <option value="-1"></option> <optgroup label="<?php _e('Categories'); ?> "> <?php foreach ($cs as $c) { if (ia3_helpers::get_option($key) == "c-" . $c->term_id) { $selected = TRUE; ?> <option value="c-<?php echo $c->term_id; ?> " selected="selected"><?php echo $c->name; ?> </option> <?php } else { ?> <option value="c-<?php echo $c->term_id; ?> "><?php echo $c->name; ?> </option> <?php } } ?> </optgroup> <optgroup label="<?php _e('Pages'); ?> "> <?php foreach ($ps as $p) { if (ia3_helpers::get_option($key) == "p-" . $p->ID) { $selected = TRUE; ?> <option value="p-<?php echo $p->ID; ?> " selected="selected"><?php echo $p->post_title; ?> </option> <?php } else { ?> <option value="p-<?php echo $p->ID; ?> "><?php echo $p->post_title; ?> </option> <?php } } ?> </optgroup> </select> </div> <div style="margin-right:38px"> <?php if ($selected == TRUE) { ?> <input class="isInputText isInputMono" name="I-<?php echo $key; ?> " value="" /> <?php } else { ?> <input class="isInputText isInputMono" name="I-<?php echo $key; ?> " value="<?php echo htmlspecialchars(stripslashes(ia3_helpers::get_option($key, '<a href="#">' . __('Page Name') . '</a>'))); ?> " /> <?php } ?> </div> <?php return; }