createThemeCustomizerSection( array( 'name' => __( 'Theme Options', 'blogio' ), ) ); $section->createOption( array( 'name' => __( 'Background Color', 'blogio' ), 'id' => 'sample_color1', 'type' => 'color', 'desc' => __( 'This color changes the background of your theme', 'blogio' ), 'default' => '#FFFFFF', 'css' => 'body { background-color: value }', ) ); $section->createOption( array( 'name' => __( 'Headings Font', 'blogio' ), 'id' => 'headings_font', 'type' => 'font', 'desc' => __( 'Select the font for all headings in the site', 'blogio' ), 'show_color' => false, 'show_font_size' => false, 'show_font_weight' => false, 'show_font_style' => false, 'show_line_height' => false, 'show_letter_spacing' => false, 'show_text_transform' => false, 'show_font_variant' => false, 'show_text_shadow' => false, 'default' => array( 'font-family' => 'Fauna One', ), 'css' => 'h1, h2, h3, h4, h5, h6 { value }', ) ); /** * Create an admin panel & tabs * You should put options here that do not change the look of your theme */ $adminPanel = $titan->createAdminPanel( array( 'name' => __( 'Theme Settings', 'blogio' ), ) ); $generalTab = $adminPanel->createTab( array( 'name' => __( 'General', 'blogio' ), ) ); $generalTab->createOption( array( 'name' => 'Nav Logo', 'id' => 'nav_logo', 'type' => 'upload', 'desc' => 'Upload your logo' ) ); $generalTab->createOption( array( 'name' => 'Select a Layout', 'id' => 'blogio_layout', 'type' => 'radio-image', 'options' => array( 'layout1' => get_template_directory_uri() . '/img/layout1.png', 'layout2' => get_template_directory_uri() . '/img/layout2.png', ), 'default' => 'layout1', ) ); $generalTab->createOption( array( 'name' => __( 'Custom Javascript Code', 'blogio' ), 'id' => 'custom_js', 'type' => 'code', 'desc' => __( 'If you want to add some additional Javascript code into your site, add them here and it will be included in the frontend header. No need to add script tags', 'blogio' ), 'lang' => 'javascript', ) ); $generalTab->createOption( array( 'type' => 'save', ) ); $footerTab = $adminPanel->createTab( array( 'name' => __( 'Footer', 'blogio' ), ) ); $footerTab->createOption( array( 'name' => __( 'Copyright Text', 'blogio' ), 'id' => 'copyright', 'type' => 'text', 'desc' => __( 'Enter your copyright text here (sample only)', 'blogio' ), ) ); $footerTab->createOption( array( 'type' => 'save', ) ); }