| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template Name: WPFunnel - Default |
| 4 |
* |
| 5 |
* @package WPFunnels |
| 6 |
*/ |
| 7 |
|
| 8 |
use WPFunnels\Wpfnl; |
| 9 |
use WPFunnels\Wpfnl_functions; |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; // Exit if accessed directly. |
| 13 |
} |
| 14 |
|
| 15 |
$is_divi_active = Wpfnl_functions::wpfnl_is_theme_active( 'Divi' ); |
| 16 |
if(!$is_divi_active){ |
| 17 |
?> |
| 18 |
<!DOCTYPE html> |
| 19 |
<html <?php language_attributes(); ?> class="no-js wpfnl-template-default"> |
| 20 |
<head> |
| 21 |
<meta charset="<?php bloginfo( 'charset' ); ?>"> |
| 22 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 23 |
<?php |
| 24 |
wp_head(); |
| 25 |
?> |
| 26 |
</head> |
| 27 |
<?php }else get_header(); ?> |
| 28 |
|
| 29 |
<body <?php body_class(); ?>> |
| 30 |
|
| 31 |
<?php |
| 32 |
if ( function_exists( 'wp_body_open' ) ) { |
| 33 |
wp_body_open(); |
| 34 |
} |
| 35 |
do_action( 'wpfunnels/template_body_top' ); |
| 36 |
$atts_string = Wpfnl_functions::get_template_container_atts(); |
| 37 |
?> |
| 38 |
<div class="wpfnl-template-wrap wpfnl-template-container" <?php echo trim( $atts_string ); ?>> |
| 39 |
<?php do_action( 'wpfunnels/template_container_top' ); ?> |
| 40 |
<div class="wpfnl-primary" id="wpfnl-primary"> |
| 41 |
<?php Wpfnl::$instance->page_templates->print_content(); ?> |
| 42 |
</div> |
| 43 |
<?php do_action( 'wpfunnels/template_container_bottom' ); ?> |
| 44 |
</div> |
| 45 |
<?php do_action( 'wpfunnels/template_wp_footer' ); ?> |
| 46 |
<?php |
| 47 |
$is_divi_active ? get_footer() : wp_footer() |
| 48 |
?> |
| 49 |
</body> |
| 50 |
<?php |
| 51 |
$is_divi_active ? '' : '</html>' |
| 52 |
?> |
| 53 |
|
| 54 |
|
| 55 |
<?php |
| 56 |
|