PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.12.3
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.12.3
3.13.4 3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 All 262 releases
wpfunnels / includes / core / page-templates / templates / template-default.php

template-default.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 3.12.3, at includes/core/page-templates/templates/template-default.php

56 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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