function op_font_shadow_dropdown($name, $value, $id = '', $extra = '') { return _op_fonts('font_shadow_dropdown', $name, $value, $id, $extra); }
</div> <div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar"> <label for="op_sections_color_scheme_fields_top_nav_font" class="form-title"><?php _e('Select Navigation Bar Font (optional)', OP_SN); ?> </label> <p class="micro-copy">If you would like to change the font for this navigation menu, you may change these settings below.</p> <?php $font_family = !empty($color_scheme['top_nav_font']['font_family']) ? $color_scheme['top_nav_font']['font_family'] : op_default_option('color_scheme_fields', 'top_nav_font', 'font_family'); $font_weight = !empty($color_scheme['top_nav_font']['font_weight']) ? $color_scheme['top_nav_font']['font_weight'] : op_default_option('color_scheme_fields', 'top_nav_font', 'font_weight'); $font_size = !empty($color_scheme['top_nav_font']['font_size']) ? $color_scheme['top_nav_font']['font_size'] : op_default_option('color_scheme_fields', 'top_nav_font', 'font_size'); $font_shadow = !empty($color_scheme['top_nav_font']['font_shadow']) ? $color_scheme['top_nav_font']['font_shadow'] : op_default_option('color_scheme_fields', 'top_nav_font', 'font_shadow'); echo _op_fonts('font_dropdown', 'op[sections][color_scheme_fields][top_nav_font][font_family]', $font_family, 'op_sections_color_scheme_fields_top_nav_font_font_family', ''); echo _op_fonts('font_size_dropdown', 'op[sections][color_scheme_fields][top_nav_font][font_size]', $font_size, 'op_sections_color_scheme_fields_top_nav_font_font_size', ''); echo _op_fonts('font_style_dropdown', 'op[sections][color_scheme_fields][top_nav_font][font_weight]', $font_weight, 'op_sections_color_scheme_fields_top_nav_font_font_weight', ''); echo _op_fonts('font_shadow_dropdown', 'op[sections][color_scheme_fields][top_nav_font][font_shadow]', $font_shadow, 'op_sections_color_scheme_fields_top_nav_font_font_shadow', ''); ?> <br style="clear: left;" /> <label for="op_sections_color_scheme_fields_top_nav_color" class="form-title"><?php _e('Top Navigation Background Color', OP_SN); ?> </label> <p class="micro-copy">Select or enter a colour for the top navigation bar background colour</p> <?php op_color_picker('op[sections][color_scheme_fields][top_nav_color]', op_default_option('color_scheme_fields', 'top_nav_color'), 'op_sections_color_scheme_fields_top_nav_color'); ?> <br style="clear: left;" /> <label for="op_sections_color_scheme_fields_link_color" class="form-title"><?php _e('Top Navigation Link Color', OP_SN); ?> </label>
function print_dialogs() { echo op_tpl('live_editor/index') . op_tpl('live_editor/toolbar'); //_WP_Editors::editor_js(); //$this->wp_editors(); do_action('admin_footer'); do_action('admin_print_footer_scripts'); $fonts = _op_fonts('google_fonts'); $fonts_array = array(); foreach ($fonts as $name => $varient) { $fonts_array[] = $name . $varient['properties']; } echo ' <script type="text/javascript" src="http' . (is_ssl() ? 's' : '') . '://www.google.com/jsapi"></script> <script type="text/javascript"> google.load(\'webfont\',\'1\'); google.setOnLoadCallback(function() { WebFont.load({ google: { families: ' . json_encode($fonts_array) . ' } }); }); </script>'; }
function print_dialogs() { echo op_tpl('live_editor/index') . op_tpl('live_editor/toolbar'); do_action('admin_footer'); do_action('admin_print_footer_scripts'); $fonts_array = _op_fonts('fonts_array'); if (count($fonts_array) > 0) { echo ' <script type="text/javascript" src="http' . (is_ssl() ? 's' : '') . '://www.google.com/jsapi"></script> <script type="text/javascript"> google.load(\'webfont\',\'1\'); google.setOnLoadCallback(function() { WebFont.load({ google: { families: ' . json_encode($fonts_array) . ' } }); }); </script>'; } }
</div> <div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar"> <label for="op_sections_color_scheme_fields_top_nav_font" class="form-title"><?php _e('Select Navigation Bar Font (optional)', 'optimizepress'); ?> </label> <p class="micro-copy">If you would like to change the font for this navigation menu, you may change these settings below.</p> <?php $font_family = !empty($color_scheme['top_nav_font']['font_family']) ? $color_scheme['top_nav_font']['font_family'] : op_default_option('color_scheme_fields', 'top_nav_font', 'font_family'); $font_weight = !empty($color_scheme['top_nav_font']['font_weight']) ? $color_scheme['top_nav_font']['font_weight'] : op_default_option('color_scheme_fields', 'top_nav_font', 'font_weight'); $font_size = !empty($color_scheme['top_nav_font']['font_size']) ? $color_scheme['top_nav_font']['font_size'] : op_default_option('color_scheme_fields', 'top_nav_font', 'font_size'); $font_shadow = !empty($color_scheme['top_nav_font']['font_shadow']) ? $color_scheme['top_nav_font']['font_shadow'] : op_default_option('color_scheme_fields', 'top_nav_font', 'font_shadow'); echo _op_fonts('font_dropdown', 'op[sections][color_scheme_fields][top_nav_font][font_family]', $font_family, 'op_sections_color_scheme_fields_top_nav_font_font_family', ''); echo _op_fonts('font_size_dropdown', 'op[sections][color_scheme_fields][top_nav_font][font_size]', $font_size, 'op_sections_color_scheme_fields_top_nav_font_font_size', 'class="op-layout-settings-select"'); echo _op_fonts('font_style_dropdown', 'op[sections][color_scheme_fields][top_nav_font][font_weight]', $font_weight, 'op_sections_color_scheme_fields_top_nav_font_font_weight', 'class="op-layout-settings-select op-layout-settings-select-style"'); echo _op_fonts('font_shadow_dropdown', 'op[sections][color_scheme_fields][top_nav_font][font_shadow]', $font_shadow, 'op_sections_color_scheme_fields_top_nav_font_font_shadow', 'class="op-layout-settings-select op-layout-settings-select-shadow"'); ?> <br style="clear: left;" /> <label for="op_sections_color_scheme_fields_top_nav_color" class="form-title"><?php _e('Top Navigation Background Color', 'optimizepress'); ?> </label> <p class="micro-copy"><?php _e('Select or enter a colour for the top navigation bar background colour', 'optimizepress'); ?> </p> <?php op_color_picker('op[sections][color_scheme_fields][top_nav_color]', op_default_option('color_scheme_fields', 'top_nav_color'), 'op_sections_color_scheme_fields_top_nav_color'); ?> <br style="clear: left;" /> <label for="op_sections_color_scheme_fields_link_color" class="form-title"><?php