'', 'betilu_new_text' => '', 'top_backgrnd' => '', 'phonenumber' => '', 'betilu_email' => '', 'facebook' => '', 'twitter' => '' ); add_action( 'admin_menu', 'betilu_options_add_page' ); function betilu_options_add_page() { add_theme_page( 'BetiLu Options', 'Theme Options', 'edit_theme_options', 'betilu-options', 'betilu_options_page' ); } // connect stylesheet to options page function betilu_add_init() { wp_enqueue_style( 'betilu-admin-style', get_template_directory_uri() . '/include/admin-style.css', false, '1.1' ); } add_action( 'admin_enqueue_scripts', 'betilu_add_init' ); function betilu_register_settings() { register_setting( 'betilu-options', 'betilu_theme_options', ''); } add_action( 'admin_init', 'betilu_register_settings' ); /* * color picker add on */ add_action( 'admin_enqueue_scripts', 'threeby_add_color_picker' ); function threeby_add_color_picker() { // Add the color picker css file wp_enqueue_style( 'wp-color-picker' ); // Include our custom jQuery file with WordPress Color Picker dependency wp_enqueue_script( 'wp-color-picker-script', get_template_directory_uri() . '/js/custom-script.js', array( 'wp-color-picker' ), false, true ); } function betilu_options_page() { global $betilu_theme_options; if ( ! isset( $_REQUEST['settings-updated'] ) ) $_REQUEST['settings-updated'] = false; ?>

Options Page

BetiLu Theme Settings


Top Right Logo - Square or Circular

Square = carré, Platz | Circular = circulaire, kreisförmig


Add middle bar banner text here

Add mid-section banner text here. Same text will appear on lower banner.

You can add HTML4 tags such as <h1> <h2> <h3> <p> <b>


Sidebar-Top-Right, Middle-Bar and Bottom-Bar Background set here

Selected color will appear on all mid-sections, Sticky posts and the Sidebar


Add your Phone and eMail plus social media links here

Appears under Single Post Ariticles. Type only id for Twitter and url without the https:// for facebook.


'', 'border_radius' => '' ); global $betilu_theme_options; $options = get_option( 'betilu_theme_options', $betilu_theme_options ); wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/include/custom.css' ); // insert border-radius to logo $custom_css = " #logo-right img, #logo-right { border-radius: {$options['border_radius']}; }"; wp_add_inline_style( 'custom-style', $custom_css ); // insert background color various selectors $custom_css = " .post-right, #right-sidebar { background: {$options['top_backgrnd']}; opacity: 0.9; }"; wp_add_inline_style( 'custom-style', $custom_css ); $custom_css = " .midbar { background: {$options['top_backgrnd']}; opacity: 0.9; }"; wp_add_inline_style( 'custom-style', $custom_css ); $custom_css = " .content-area-lead, .content-area-left { background: {$options['top_backgrnd']}; opacity: 0.9; }"; wp_add_inline_style( 'custom-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'betilu_styles_method' ); ?>