Esempio n. 1
0
            $title = op_get_var($title, 'name');
        }
        if ($type == 'font') {
            ?>
		<li>
			<label for="op_sections_<?php 
            echo $name;
            ?>
" class="form-title"><?php 
            echo $title;
            ?>
</label>
			<?php 
            echo empty($help) ? '' : '<p class="op-micro-copy">' . $help . '</p>';
            $top_nav_font = op_default_attr('color_scheme_fields', $name);
            op_font_selector('op[sections][color_scheme_fields][' . $name . ']', array('family' => $top_nav_font['font_family'], 'style' => $top_nav_font['font_weight'], 'size' => $top_nav_font['font_size'], 'shadow' => $top_nav_font['font_shadow']), '<div class="op-micro-copy-font-selector">', '</div>', false);
            ?>
		</li>
		<?php 
        } else {
            ?>
		<li>
			<label for="op_sections_color_scheme_field_<?php 
            echo $name;
            ?>
" class="form-title"><?php 
            echo $title;
            ?>
</label>
			<?php 
            echo empty($help) ? '' : '<p class="op-micro-copy">' . $help . '</p>';
Esempio n. 2
0
</option>
            <?php 
$cur = op_page_option('header_layout', 'nav_bar_alongside', 'nav');
foreach ($nav_menus as $nav) {
    echo '<option value="' . $nav->term_id . '"' . ($cur == $nav->term_id ? ' selected="selected"' : '') . '>' . $nav->name . '</option>';
}
?>
            </select>

	    <label for="op_header_layout_nav_bar_alongside_font" class="form-title"><?php 
_e('Select Navigation Bar Font (optional)', OP_SN);
?>
</label>
            <p class="op-micro-copy"><?php 
_e('If you would like to change the font for this navigation menu, you may change these settings below.', OP_SN);
?>
</p>
			<div class="op-micro-copy-font-selector">
				<?php 
$font_family = isset($header_layout['nav_bar_alongside']['font_family']) ? $header_layout['nav_bar_alongside']['font_family'] : op_default_option($header_layout['nav_bar_alongside'], 'font_family');
$font_weight = isset($header_layout['nav_bar_alongside']['font_weight']) ? $header_layout['nav_bar_alongside']['font_weight'] : op_default_option($header_layout['nav_bar_alongside'], 'font_weight');
$font_size = isset($header_layout['nav_bar_alongside']['font_size']) ? $header_layout['nav_bar_alongside']['font_size'] : op_default_option($header_layout['nav_bar_alongside'], 'font_size');
$font_shadow = isset($header_layout['nav_bar_alongside']['font_shadow']) ? $header_layout['nav_bar_alongside']['font_shadow'] : op_default_option($header_layout['nav_bar_alongside'], 'font_shadow');
op_font_selector('op[header_layout][nav_bar_alongside]', array('family' => $font_family, 'style' => $font_weight, 'size' => $font_size, 'shadow' => $font_shadow), '<div class="op-micro-copy-font-selector">', '</div>', false);
?>
			</div>
			<div class="clear"></div><br/>
        </div>
    </div>

</div>
Esempio n. 3
0
_e('Select a default source for the menu to be assigned to the footer links (next to the copyright message). Select none to show no menu', OP_SN);
?>
</p>
    <select id="op_sections_site_footer_nav" name="op[sections][site_footer][nav]"><option value=""><?php 
_e('None', OP_SN);
?>
</option>
    <?php 
$cur = $footer_area['nav'];
foreach (wp_get_nav_menus() as $nav) {
    echo '<option value="' . $nav->term_id . '"' . ($cur == $nav->term_id ? ' selected="selected"' : '') . '>' . $nav->name . '</option>';
}
?>
    </select>
    
    <label for="op_sections_site_footer_font" class="form-title"><?php 
_e('Select Navigation Bar Font (optional)', OP_SN);
?>
</label>
    <p class="op-micro-copy"><?php 
_e('If you would like to change the default font for this navigation menu, you may change these settings below. We recommend using a menu with no more than five items on it.', OP_SN);
?>
</p>
    <?php 
$font_family = !empty($footer_area['font_family']) ? $footer_area['font_family'] : op_default_option($footer_area, 'font_family');
$font_weight = !empty($footer_area['font_weight']) ? $footer_area['font_weight'] : op_default_option($footer_area, 'font_weight');
$font_size = !empty($footer_area['font_size']) ? $footer_area['font_size'] : op_default_option($footer_area, 'font_size');
$font_shadow = !empty($footer_area['font_shadow']) ? $footer_area['font_shadow'] : op_default_option($footer_area, 'font_shadow');
op_font_selector('op[sections][site_footer]', array('family' => $font_family, 'style' => $font_weight, 'size' => $font_size, 'shadow' => $font_shadow), '<div class="op-micro-copy-font-selector">', '</div>', false);
?>
</div>