コード例 #1
0
/*
 Template Name: Home Page TPl
*/
/**
 * theme page functions
 * just made more sense putting it here to me...
 * other options - use wp conditionals or load on every page
 * i try to avoid conditionals where ever i can
 * i dont have to go through a function file with 100s line of code
 * ...
 */
$cwpt_sample_data = 'Competently build parallel partnerships before interactive metrics. Synergistically productivate virtual meta-services rather than exceptional scenarios. Objectively fashion backend imperatives via client-based users. Intrinsicly exploit future-proof.';
$cwpt_library = get_post_meta(cwp_theme::default_id(), 'cwpt_library', true);
$cwpt_modules = get_post_meta(cwp_theme::default_id(), 'cwpt_modules', true);
$cwpt_extensions = get_post_meta(cwp_theme::default_id(), 'cwpt_extensions', true);
$cwpt_functions = get_post_meta(cwp_theme::default_id(), 'cwpt_functions', true);
add_action('wp_enqueue_scripts', 'home_page_scripts');
function home_page_scripts()
{
    wp_enqueue_script('bootstrap-tabs');
}
//add_action('wp_footer', 'home_page_footer');
function home_page_footer()
{
    ?>

    <?php 
}
get_header('tbs');
cwp_layout::the_header('tbs');
?>