<?php /* Template Name: Home */ $options = load_theme_options(); global $options; get_header(); ?> <!-- slider --> <!-- Start Banner --> <section id="banner"> <?php get_template_part('template-parts/home-slider'); ?> <div class="css-table"> <div class="css-table-cell"> <!-- Start Banner-Search --> <?php get_template_part('template-parts/reservation-form'); ?> <!-- End Banner-Search --> </div> </div> </section> <!-- End Banner -->
function import_theme_options() { if (empty($this->options['file_with_options'])) { return; } echo '<br><b>' . __('Import Theme Options ...', 'themerex') . '</b><br>'; flush(); $theme_options_txt = themerex_fgc(themerex_get_file_dir('/admin/tools/importer/data/' . $this->options['file_with_options'])); $data = unserialize(base64_decode($theme_options_txt)); // Replace upload url in options foreach ($data as $k => $v) { foreach ($v as $k1 => $v1) { $v[$k1] = $this->replace_uploads($v1); } update_option($k, $v); } load_theme_options(); }