function rambo_setup()
{
    //content width
    if (!isset($content_width)) {
        $content_width = 770;
    }
    // Load text domain for translation-ready
    load_theme_textdomain('rambo', WEBRITI_THEME_FUNCTIONS_PATH . '/lang');
    add_theme_support('woocommerce');
    add_theme_support('post-thumbnails');
    //supports featured image
    add_theme_support('automatic-feed-links');
    //feed links enabled
    add_image_size('blog1_section_img', 270, 260, true);
    add_image_size('blog2_section_img', 770, 300, true);
    // This theme uses wp_nav_menu() in one location.
    //register_nav_menu( 'primary', __( 'Primary Menu', 'rambo' ) );
    register_nav_menus(array('primary' => __('Primary Menu', 'rambo')));
    //do_action('busiprof_init');//load admin pannal file
    require_once 'theme_setup_data.php';
    require WEBRITI_THEME_FUNCTIONS_PATH . '/theme_options/option_pannel.php';
    // for Custom Menus
    // setup admin pannel defual data for index page
    $rambo_theme_options = theme_data_setup();
    add_option('rambo_theme_options', $rambo_theme_options);
}
function appointment_setup()
{
    // Load text domain for translation-ready
    load_theme_textdomain('appointment', WEBRITI_THEME_FUNCTIONS_PATH . '/lang');
    add_theme_support('post-thumbnails');
    //supports featured image
    // Register primary menu
    register_nav_menu('primary', __('Primary Menu', 'appointment'));
    // Add default posts and comments RSS feed links to head.
    add_theme_support('automatic-feed-links');
    // Set the content_width with 900
    if (!isset($content_width)) {
        $content_width = 900;
    }
    require_once 'theme_setup_data.php';
    // setup admin pannel defual data for index page
    $appointment_options = theme_data_setup();
    $current_theme_options = get_option('appointment_options');
    // get existing option data
    if ($current_theme_options) {
        $appointment_options = array_merge($appointment_options, $current_theme_options);
        update_option('appointment_options', $appointment_options);
        // Set existing and new option data
    } else {
        add_option('appointment_options', $appointment_options);
    }
    require WEBRITI_THEME_FUNCTIONS_PATH . '/theme_options/option_pannel.php';
    // for Option Panel Settings
}
function custom_scripts()
{
    $current_options = wp_parse_args(get_option('elitepress_lite_options', array()), theme_data_setup());
    ?>
	<style>
	<?php 
    echo $current_options['webrit_custom_css'];
    ?>
	</style>
	<?php 
}
function head_enqueue_custom_css()
{
    $quality_pro_options = theme_data_setup();
    $current_options = wp_parse_args(get_option('quality_pro_options', array()), $quality_pro_options);
    if ($current_options['webrit_custom_css'] != '') {
        ?>
	<style>
	<?php 
        echo $current_options['webrit_custom_css'];
        ?>
	</style>
<?php 
    }
}
Beispiel #5
0
function quality_setup()
{
    //content width
    if (!isset($content_width)) {
        $content_width = 700;
    }
    //In PX
    // Load text domain for translation-ready
    load_theme_textdomain('quality', QUALITY_THEME_FUNCTIONS_PATH . '/lang');
    add_theme_support('post-thumbnails');
    //supports featured image
    // This theme uses wp_nav_menu() in one location.
    register_nav_menu('primary', __('Primary Menu', 'quality'));
    //Navigation
    // theme support
    add_theme_support('automatic-feed-links');
    require_once 'theme_setup_data.php';
    // setup admin pannel defual data for index page
    $quality_pro_options = theme_data_setup();
}
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    ``
    <![endif]-->
    <meta charset="<?php 
bloginfo('charset');
?>
" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title><?php 
wp_title('|', true, 'right');
?>
</title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <!-- Theme Css -->
	<?php 
$quality_pro_options = theme_data_setup();
$current_options = wp_parse_args(get_option('quality_pro_options', array()), $quality_pro_options);
?>
    <?php 
if ($current_options['upload_image_favicon'] != '') {
    ?>
    <link rel="shortcut icon" href="<?php 
    echo esc_url($current_options['upload_image_favicon']);
    ?>
" />
    <?php 
}
wp_head();
?>
  </head>
  <body <?php 
<div class="block ui-tabs-panel deactive" id="option-ui-id-3" >	
	<?php 
$current_options = wp_parse_args(get_option('appointment_options', array()), theme_data_setup());
if (isset($_POST['webriti_settings_save_3'])) {
    if ($_POST['webriti_settings_save_3'] == 1) {
        if (empty($_POST) || !wp_verify_nonce($_POST['webriti_gernalsetting_nonce_customization'], 'webriti_customization_nonce_gernalsetting')) {
            printf(__('Sorry, your nonce did not verify.', 'appointment'));
            exit;
        } else {
            $current_options['service_title'] = sanitize_text_field($_POST['service_title']);
            $current_options['service_description'] = sanitize_text_field($_POST['service_description']);
            $current_options['service_one_title'] = sanitize_text_field($_POST['service_one_title']);
            $current_options['service_one_description'] = sanitize_text_field($_POST['service_one_description']);
            $current_options['service_one_icon'] = sanitize_text_field($_POST['service_one_icon']);
            $current_options['service_two_title'] = sanitize_text_field($_POST['service_two_title']);
            $current_options['service_two_description'] = sanitize_text_field($_POST['service_two_description']);
            $current_options['service_two_icon'] = sanitize_text_field($_POST['service_two_icon']);
            $current_options['service_three_title'] = sanitize_text_field($_POST['service_three_title']);
            $current_options['service_three_description'] = sanitize_text_field($_POST['service_three_description']);
            $current_options['service_three_icon'] = sanitize_text_field($_POST['service_three_icon']);
            $current_options['service_four_title'] = sanitize_text_field($_POST['service_four_title']);
            $current_options['service_four_description'] = sanitize_text_field($_POST['service_four_description']);
            $current_options['service_four_icon'] = sanitize_text_field($_POST['service_four_icon']);
            $current_options['service_five_title'] = sanitize_text_field($_POST['service_five_title']);
            $current_options['service_five_description'] = sanitize_text_field($_POST['service_five_description']);
            $current_options['service_five_icon'] = sanitize_text_field($_POST['service_five_icon']);
            $current_options['service_six_title'] = sanitize_text_field($_POST['service_six_title']);
            $current_options['service_six_description'] = sanitize_text_field($_POST['service_six_description']);
            $current_options['service_six_icon'] = sanitize_text_field($_POST['service_six_icon']);
            // service section enabled yes ya on
            if (isset($_POST['service_section_enabled'])) {
<?php

$elitepress_lite_options = theme_data_setup();
$current_options = wp_parse_args(get_option('elitepress_lite_options', array()), $elitepress_lite_options);
if ($current_options['header_call_out_area_enabled'] == true) {
    ?>
<!-- Top Callout Section -->
<div class="top-callout-section">
	<div class="container">
		<div class="row">
			<div class="col-md-9">
				<?php 
    if ($current_options['header_call_out_title']) {
        ?>
				<h2><?php 
        echo $current_options['header_call_out_title'];
        ?>
</h2>
				<?php 
    }
    if ($current_options['header_call_out_description']) {
        ?>
				<p><?php 
        echo $current_options['header_call_out_description'];
        ?>
</p>
				<?php 
    }
    ?>
			</div>
			<?php 
<div class="block ui-tabs-panel active" id="option-ui-id-1" >
<?php 
$current_options = wp_parse_args(get_option('elitepress_lite_options', array()), theme_data_setup());
if (isset($_POST['webriti_settings_save_1'])) {
    if ($_POST['webriti_settings_save_1'] == 1) {
        if (empty($_POST) || !wp_verify_nonce($_POST['webriti_gernalsetting_nonce_customization'], 'webriti_customization_nonce_gernalsetting')) {
            print 'Sorry, your nonce did not verify.';
            exit;
        } else {
            $current_options['upload_image_favicon'] = esc_url($_POST['upload_image_favicon']);
            $current_options['webrit_custom_css'] = wp_strip_all_tags($_POST['webrit_custom_css']);
            if (isset($_POST['text_title'])) {
                echo $current_options['text_title'] = sanitize_text_field($_POST['text_title']);
            } else {
                echo $current_options['text_title'] = "off";
            }
            update_option('elitepress_lite_options', stripslashes_deep($current_options));
        }
    }
    if ($_POST['webriti_settings_save_1'] == 2) {
        $current_options['upload_image_favicon'] = "";
        $current_options['text_title'] = "on";
        $current_options['webrit_custom_css'] = "";
        update_option('elitepress_lite_options', $current_options);
    }
}
?>
	
	<form method="post" id="webriti_theme_options_1">
		<div id="heading">
			<table style="width:100%;"><tr>
<!-- AddThis Button END -->
<?php 
$wallstreet_pro_options = theme_data_setup();
$current_options = wp_parse_args(get_option('wallstreet_pro_options', array()), $wallstreet_pro_options);
if ($current_options['portfolio_section_enabled'] == true) {
    ?>
<div class="portfolio-section">
	<div class="container">

		<div class="row">
			<div class="section_heading_title">
				<?php 
    if ($current_options['portfolio_title']) {
        ?>
				<h1><?php 
        echo esc_html($current_options['portfolio_title']);
        ?>
</h1>
				<div class="pagetitle-separator">
					<div class="pagetitle-separator-border">
						<div class="pagetitle-separator-box"></div>
					</div>
				</div>
			<?php 
    }
    ?>
			<?php 
    if ($current_options['portfolio_description']) {
        ?>
				<p><?php 
        echo esc_html($current_options['portfolio_description']);
				<?php 
require_once 'pages/footer_customization_settings.php';
?>
				
				<!--most 7 tabs home_page_settings --> 
				<?php 
require_once 'pages/footer_social_media_settings.php';
?>
			
				<!--most 8 tabs home_page_settings --> 
				<?php 
require_once 'pages/UpgradeToPro.php';
?>
			</div>		
        </div>
		<div class="webriti-submenu" id="webriti_submenu">			
            <div class="webriti-submenu-links" id="webriti_submenu_links">
			<form method="POST">
				<input type="submit" onclick="return confirm( 'Click OK to reset. Any theme settings will be lost!' );" value="Restore All Defaults" name="restore_all_defaults" id="restore_all_defaults" class="reset-button btn">
			<form>
            </div><!-- webriti-submenu-links -->
        </div>
		<div class="clear"></div>
    </div>
</div>
<?php 
// Restore all defaults
if (isset($_POST['restore_all_defaults'])) {
    $rambo_theme_options = theme_data_setup();
    update_option('rambo_theme_options', $rambo_theme_options);
}
<?php

$current_options = get_option('appointment_options', theme_data_setup());
if ($current_options['service_section_enabled'] == 'on') {
    $service_one_title = $current_options['service_one_title'];
    $service_one_description = $current_options['service_one_description'];
    $service_two_title = $current_options['service_two_title'];
    $service_two_description = $current_options['service_two_description'];
    $service_three_title = $current_options['service_three_title'];
    $service_three_description = $current_options['service_three_description'];
    $service_four_title = $current_options['service_four_title'];
    $service_four_description = $current_options['service_four_description'];
    $service_five_title = $current_options['service_five_title'];
    $service_five_description = $current_options['service_five_description'];
    $service_six_title = $current_options['service_six_title'];
    $service_six_description = $current_options['service_six_description'];
    ?>
<div class="Service-section">
	<div class="container">
	
		<div class="row">
			<div class="col-md-12">
				<div class="welcome">
				<?php 
    if ($current_options['service_title']) {
        ?>
					<div class="section-heading-title">
						<h1><?php 
        echo esc_html($current_options['service_title']);
        ?>
</h1>
<!-- Logo and buttons go here -->
	<div class="container-fluid">
		<div class="row">
	<?php 
$current_options = get_option('elitepress_lite_options', theme_data_setup());
if ($current_options['logo_section_settings'] == 'on') {
    ?>
			<div class="col-md-8">
				<div class="site-logo">
					<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
" title="The Arches Project">
					<?php 
    if ($current_options['text_title'] == "on") {
        echo "<div class=elitepress_title_head>" . get_bloginfo() . "</div>";
    } else {
        if ($current_options['upload_image_logo'] != '') {
            ?>
						<img src="<?php 
            echo esc_url($current_options['upload_image_logo']);
            ?>
" class="img-responsive" style="height:<?php 
            if ($current_options['height'] != '') {
                echo esc_html($current_options['height']);
            }
            ?>
px; width:<?php 
            if ($current_options['width'] != '') {
                echo esc_html($current_options['width']);
            }
                <div class="format-setting-wrap">
                    <div class="format-setting-label">
					<?php 
load_template(dirname(__FILE__) . '/pages/footer_copyright_settings.php');
?>
					</div>
				</div>
            </div>
        </div>
    </div>
		</div>
    </div>
    </div>
	<div class="webriti-submenu" style="height:35px;">			
            <div class="webriti-submenu-links" style="margin-top:5px;">
			<form method="POST">
				<input type="submit" onclick="return confirm( 'Click OK to reset theme data. Theme settings will be lost!' );" value="Restore All Defaults" name="restore_all_defaults" id="restore_all_defaults" class="reset-button btn">
			<form>
            </div><!-- webriti-submenu-links -->
        </div>
        <div class="clear"></div>
        </div>
    </div>
</div>

<?php 
// Restore all defaults
if (isset($_POST['restore_all_defaults'])) {
    $appointment_lite_theme_options = theme_data_setup();
    update_option('appointment_options', $appointment_lite_theme_options);
}