コード例 #1
0
ファイル: search.php プロジェクト: JalpMi/v2contact
<?php

get_header();
?>

            <div class="main-content-area">
            <?php 
if (have_posts()) {
    ?>
                <h2 class="the-title"><?php 
    printf(__('Search Results for: &ldquo;%s&rdquo;', 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>
コード例 #2
0
ファイル: general.php プロジェクト: JalpMi/v2contact
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');
}
コード例 #3
0
ファイル: footer.php プロジェクト: JalpMi/v2contact
<?php

op_theme_file('footer');
コード例 #4
0
ファイル: general.php プロジェクト: kyscastellanos/arepa
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');
}
コード例 #5
0
ファイル: header.php プロジェクト: JalpMi/v2contact
<?php

op_theme_file('header');