<?php get_header(); ?> <div class="main-content-area"> <?php if (have_posts()) { ?> <h2 class="the-title"><?php printf(__('Search Results for: “%s”', OP_SN), '<span>' . get_search_query() . '</span>'); ?> </h2> <?php op_mod('advertising')->display(array('advertising', 'pages', 'top')); op_theme_file('loop'); ?> <?php } else { ?> <h2 class="the-title"><?php _e('Nothing Found', OP_SN); ?> </h2> <?php op_mod('advertising')->display(array('advertising', 'pages', 'top')); ?> <p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', OP_SN); ?> </p>
function op_init_theme($load_modules = true) { op_theme_file('functions'); $tpl_dir = op_get_option('theme', 'dir'); if ($tpl_dir) { define('OP_THEME_DIR', OP_THEMES . $tpl_dir . '/'); define('OP_THEME_URL', OP_URL . 'themes/' . $tpl_dir . '/'); } if ($load_modules) { $modules = op_theme_config('modules'); $modules = is_array($modules) ? $modules : array(); foreach ($modules as $mod) { op_mod($mod); } } do_action('op_init_theme'); }
<?php op_theme_file('footer');
function op_init_theme($load_modules = true) { op_theme_file('functions'); $tpl_dir = op_get_option('theme', 'dir'); // fixing the dreaded 4.0.1 issue with encoded quotes in sc attributes on normal pages/posts //add_filter( 'run_wptexturize', '__return_false' ); if ($tpl_dir) { define('OP_THEME_DIR', OP_THEMES . $tpl_dir . '/'); define('OP_THEME_URL', OP_URL . 'themes/' . $tpl_dir . '/'); } if ($load_modules) { $modules = op_theme_config('modules'); $modules = is_array($modules) ? $modules : array(); foreach ($modules as $mod) { op_mod($mod); } } do_action('op_init_theme'); }
<?php op_theme_file('header');