Server IP : 192.64.118.117 / Your IP : 3.141.38.5 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/www/wp-content/themes/creditrepairII/inc/ |
Upload File : |
<?php /** * Initialize the custom Theme Options. */ add_action( 'init', 'custom_theme_options' ); /** * Build the custom settings & update OptionTree. * * @return void * @since 2.0 */ function custom_theme_options() { /* OptionTree is not loaded yet, or this is not an admin request */ if ( ! function_exists( 'ot_settings_id' ) || ! is_admin() ) return false; /** * Get a copy of the saved settings array. */ $saved_settings = get_option( ot_settings_id(), array() ); /** * Custom settings array that will eventually be * passes to the OptionTree Settings API Class. */ $custom_settings = array( 'contextual_help' => array( 'content' => array( array( 'id' => 'option_types_help', 'title' => __( 'Option Types', 'theme-text-domain' ), 'content' => '<p>' . __( 'Help content goes here!', 'theme-text-domain' ) . '</p>' ) ), 'sidebar' => '<p>' . __( 'Sidebar content goes here!', 'theme-text-domain' ) . '</p>' ), 'sections' => array( array( 'id' => 'general', 'title' => __( 'General', 'crii' ) ), array( 'id' => 'leadform', 'title' => __( 'Lead Form', 'theme-text-domain' ) ), array( 'id' => 'style', 'title' => __( 'Style', 'crii' ) ), array( 'id' => 'home-slider', 'title' => __( 'Home Slider', 'crii' ) ), array( 'id' => 'home-icon-1', 'title' => __( 'Home 1st icon boxes', 'crii' ) ), array( 'id' => 'home-icon-2', 'title' => __( 'Home 2nd icon boxes', 'crii' ) ), array( 'id' => 'home-blog', 'title' => __( 'Home Blog', 'crii' ) ), array( 'id' => 'page-testimonials', 'title' => __( 'Testimonials', 'crii' ) ), array( 'id' => 'header', 'title' => __( 'Header', 'crii' ) ), array( 'id' => 'footer', 'title' => __( 'Footer', 'crii' ) ), ), 'settings' => array( // General: Logo array( 'id' => 'logo_upload', 'label' => __( 'Upload Logo', 'crii' ), 'desc' => __( 'Upload your custom logo', 'crii' ), 'std' => '', 'type' => 'upload', 'section' => 'general', ), array( 'id' => 'logo_size', 'label' => __( 'Logo height', 'option-tree-theme' ), 'desc' => sprintf( __( '', 'bolllo' )), 'std' => '', 'type' => 'numeric-slider', 'min_max_step'=> '40,60,1', 'rows' => '', 'section' => 'general' ), // General: Favicon array( 'id' => 'favicon', 'label' => __( 'Upload favicon', 'crii' ), 'desc' => __( 'Upload your favicon', 'crii' ), 'std' => '', 'type' => 'upload', 'section' => 'general', ), // leadform: leadform array( 'id' => 'leadformcode', 'label' => __( 'Lead Form Iframe', 'tmbd' ), 'desc' => __( 'If you are a software member and have Lead form iframe please past it here', 'tmbd' ), 'type' => 'textarea-simple', 'section' => 'leadform', ), //Style array( 'id' => 'primary_color', 'label' => __( 'Primary Color', 'theme-text-domain' ), 'desc' => __( '', 'theme-text-domain' ), 'std' => '#2c4c61', 'type' => 'colorpicker', 'section' => 'style', ), //Style array( 'id' => 'secondary_color', 'label' => __( 'Secondary Color', 'theme-text-domain' ), 'desc' => __( '', 'theme-text-domain' ), 'std' => '#7198ab', 'type' => 'colorpicker', 'section' => 'style', ), array( 'id' => 'footer_color', 'label' => __( 'Footer Color', 'theme-text-domain' ), 'desc' => __( '', 'theme-text-domain' ), 'std' => '#446a7d', 'type' => 'colorpicker', 'section' => 'style', ), //Slider : Slider for top array( 'id' => 'slider_for_home', 'label' => __( 'Select a Slider', 'option-tree-theme' ), 'desc' => sprintf( __( 'Select a slider for your Home Page', 'crii' )), 'std' => '', 'type' => 'custom-post-type-select', 'section' => 'home-slider', 'rows' => '', 'post_type' => 'ml-slider', 'taxonomy' => '', 'min_max_step'=> '', 'class' => '', 'condition' => '', 'operator' => 'and' ), array( 'id' => 'home-section-one', 'label' => __( 'Show Home Icon Section one', 'crii' ), 'desc' => __( 'Show Home Icon Section one on or off', 'crii' ), 'std' => 'on', 'type' => 'on-off', 'section' => 'home-icon-1' ), // home: Logo array( 'id' => 'demo_textblock_titled1', 'label' => __( 'Icon Box 1', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-1', ), array( 'id' => 'icon_name_1', 'label' => __( 'Upload', 'theme-text-domain' ), 'desc' => __( 'Upload image' ), 'std' => '', 'type' => 'upload', 'section' => 'home-icon-1', ), array( 'id' => 'icon_title_1', 'label' => __( 'Title', 'theme-text-domain' ), 'desc' => __( 'Inter the Title' ), 'std' => 'Lorem ipsum dolor sit amet', 'type' => 'text', 'section' => 'home-icon-1', ), array( 'id' => 'icon_text_1', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-1', ), // home-icon-1: Logo array( 'id' => 'demo_textblock_titled2', 'label' => __( 'Icon Box 2', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-1', ), array( 'id' => 'icon_name_2', 'label' => __( 'Upload', 'theme-text-domain' ), 'desc' => __( 'Upload image' ), 'std' => '', 'type' => 'upload', 'section' => 'home-icon-1', ), array( 'id' => 'icon_title_2', 'label' => __( 'Title', 'theme-text-domain' ), 'desc' => __( 'Inter the Title' ), 'std' => 'Lorem ipsum dolor sit amet', 'type' => 'text', 'section' => 'home-icon-1', ), array( 'id' => 'icon_text_2', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-1', ), // home-icon-1: Logo array( 'id' => 'demo_textblock_titled3', 'label' => __( 'Icon Box 3', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-1', ), array( 'id' => 'icon_name_3', 'label' => __( 'Upload', 'theme-text-domain' ), 'desc' => __( 'Upload image' ), 'std' => '', 'type' => 'upload', 'section' => 'home-icon-1', ), array( 'id' => 'icon_title_3', 'label' => __( 'Title', 'theme-text-domain' ), 'desc' => __( 'Inter the Title' ), 'std' => 'Lorem ipsum dolor sit amet', 'type' => 'text', 'section' => 'home-icon-1', ), array( 'id' => 'icon_text_3', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-1', ), array( 'id' => 'demo_textblock_titled4', 'label' => __( 'Icon Box 4', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-1', ), array( 'id' => 'icon_name_4', 'label' => __( 'Upload', 'theme-text-domain' ), 'desc' => __( 'Upload image' ), 'std' => '', 'type' => 'upload', 'section' => 'home-icon-1', ), array( 'id' => 'icon_title_4', 'label' => __( 'Title', 'theme-text-domain' ), 'desc' => __( 'Inter the Title' ), 'std' => 'Lorem ipsum dolor sit amet', 'type' => 'text', 'section' => 'home-icon-1', ), array( 'id' => 'icon_text_4', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-1', ), // home icon block 2 array( 'id' => 'home-section-two', 'label' => __( 'Show Home Icon Section Two', 'crii' ), 'desc' => __( 'Show Home Icon Section Two on or off', 'crii' ), 'std' => 'on', 'type' => 'on-off', 'section' => 'home-icon-2' ), // home: Icon Block 1 array( 'id' => 'demo_iconblock_titled1', 'label' => __( 'Icon Block 1', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-2', ), array( 'id' => 'icon_name_block1', 'label' => __( 'Icon name', 'theme-text-domain' ), 'desc' => __( 'Inter the icon' ), 'std' => 'fa-cloud-upload', 'type' => 'text', 'section' => 'home-icon-2', ), array( 'id' => 'icon_text_block1', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-2', ), array( 'id' => 'demo_iconblock_titled2', 'label' => __( 'Icon Block 2', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-2', ), array( 'id' => 'icon_name_block2', 'label' => __( 'Icon name', 'theme-text-domain' ), 'desc' => __( 'Inter the icon' ), 'std' => 'fa-file-text-o', 'type' => 'text', 'section' => 'home-icon-2', ), array( 'id' => 'icon_text_block2', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-2', ), array( 'id' => 'demo_iconblock_titled3', 'label' => __( 'Icon Block 3', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-2', ), array( 'id' => 'icon_name_block3', 'label' => __( 'Icon name', 'theme-text-domain' ), 'desc' => __( 'Inter the icon' ), 'std' => 'fa-upload', 'type' => 'text', 'section' => 'home-icon-2', ), array( 'id' => 'icon_text_block3', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-2', ), array( 'id' => 'demo_iconblock_titled4', 'label' => __( 'Icon Block 4', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-2', ), array( 'id' => 'icon_name_block4', 'label' => __( 'Icon name', 'theme-text-domain' ), 'desc' => __( 'Inter the icon' ), 'std' => 'fa-print', 'type' => 'text', 'section' => 'home-icon-2', ), array( 'id' => 'icon_text_block4', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-2', ), array( 'id' => 'demo_iconblock_titled5', 'label' => __( 'Icon Block 5', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-2', ), array( 'id' => 'icon_name_block5', 'label' => __( 'Icon name', 'theme-text-domain' ), 'desc' => __( 'Inter the icon' ), 'std' => 'fa-money', 'type' => 'text', 'section' => 'home-icon-2', ), array( 'id' => 'icon_text_block5', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-2', ), array( 'id' => 'demo_iconblock_titled6', 'label' => __( 'Icon Block 6', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textblock-titled', 'section' => 'home-icon-2', ), array( 'id' => 'icon_name_block6', 'label' => __( 'Icon name', 'theme-text-domain' ), 'desc' => __( 'Inter the icon' ), 'std' => 'fa-bar-chart-o', 'type' => 'text', 'section' => 'home-icon-2', ), array( 'id' => 'icon_text_block6', 'label' => __( 'Text', 'theme-text-domain' ), 'desc' => __( 'Inter the Text' ), 'std' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'home-icon-2', ), // Home Blog array( 'id' => 'home-section-blog', 'label' => __( 'Show Home Blog Section', 'crii' ), 'desc' => __( 'Show Home Blog Section on or off', 'crii' ), 'std' => 'off', 'type' => 'on-off', 'section' => 'home-blog' ), array( 'id' => 'home_video1', 'label' => __( 'Home Video 1', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textarea-simple', 'section' => 'home-blog', 'condition' => 'home-section-blog:is(off)', ), array( 'id' => 'home_video2', 'label' => __( 'Home Video 2', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textarea-simple', 'section' => 'home-blog', 'condition' => 'home-section-blog:is(off)', ), array( 'id' => 'home_video3', 'label' => __( 'Home Video 3', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textarea-simple', 'section' => 'home-blog', 'condition' => 'home-section-blog:is(off)', ), array( 'id' => 'home-blog-title', 'label' => __( 'Blog Title', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => 'From Our Blog', 'type' => 'text', 'section' => 'home-blog', 'condition' => 'home-section-blog:is(on)', ), array( 'id' => 'home-blog-subtitle', 'label' => __( 'Blog Sub Title', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'text', 'section' => 'home-blog', 'condition' => 'home-section-blog:is(on)', ), array( 'id' => 'home-blog-order-by', 'label' => __( 'Select Blog order by', 'theme-text-domain' ), 'desc' => __( '', 'theme-text-domain' ), 'std' => '', 'type' => 'select', 'section' => 'home-blog', 'operator' => 'and', 'condition' => 'home-section-blog:is(on)', 'choices' => array( array( 'value' => '', 'label' => __( '-- Choose One --', 'theme-text-domain' ), 'src' => '' ), array( 'value' => 'date', 'label' => __( 'Date', 'theme-text-domain' ), 'src' => '' ), array( 'value' => 'menu_order', 'label' => __( 'Menu Order', 'theme-text-domain' ), 'src' => '' ), ) ), array( 'id' => 'home-blog-order', 'label' => __( 'Select Blog order', 'theme-text-domain' ), 'desc' => __( '', 'theme-text-domain' ), 'std' => '', 'type' => 'select', 'section' => 'home-blog', 'operator' => 'and', 'condition' => 'home-section-blog:is(on)', 'choices' => array( array( 'value' => '', 'label' => __( '-- Choose One --', 'theme-text-domain' ), 'src' => '' ), array( 'value' => 'asc', 'label' => __( 'ASC', 'theme-text-domain' ), 'src' => '' ), array( 'value' => 'desc', 'label' => __( 'DESC', 'theme-text-domain' ), 'src' => '' ), ) ), //testimonials part array( 'id' => 'page-section-testimonials', 'label' => __( 'Show testimonials Section', 'crii' ), 'desc' => __( 'Show testimonials Section on or off', 'crii' ), 'std' => 'off', 'type' => 'on-off', 'section' => 'page-testimonials' ), array( 'id' => 'testimonials-title', 'label' => __( 'testimonials Title', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => 'What\'s Our Client Say', 'type' => 'text', 'section' => 'page-testimonials', 'condition' => 'page-section-testimonials:is(on)' ), array( 'id' => 'call_to_action', 'label' => __( 'Call To Action', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textarea', 'section' => 'page-testimonials', 'condition' => 'page-section-testimonials:is(off)' ), // phone array( 'id' => 'header_phone', 'label' => __( 'Top Phone Numder', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'header', ), array( 'id' => 'footer_text', 'label' => __( 'Footer Text', 'theme-text-domain' ), 'desc' => __( '' ), 'std' => '', 'type' => 'textarea-simple', 'rows' => '10', 'section' => 'footer', ), ) ); /* allow settings to be filtered before saving */ $custom_settings = apply_filters( ot_settings_id() . '_args', $custom_settings ); /* settings are not the same update the DB */ if ( $saved_settings !== $custom_settings ) { update_option( ot_settings_id(), $custom_settings ); } /* Lets OptionTree know the UI Builder is being overridden */ global $ot_has_custom_theme_options; $ot_has_custom_theme_options = true; }