/var/www/html_us/wp-content/plugins/revslider/public/views/revslider-page-template.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
 * Template Name: Slider Revolution Blank Template
 * Template Post Type: post, page
 * The template for displaying RevSlider on a blank page
 */
 
if(!defined('ABSPATH')) exit();
$page_bg get_post_meta(get_the_ID(), 'rs_page_bg_color'true);
$page_bg = ($page_bg == '' || $page_bg == 'transparent') ? 'transparent' $page_bg.";";
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
    <head>
    
        <meta charset="<?php bloginfo('charset'); ?>">
        <meta name="viewport" content="width=device-width">
        <link rel="profile" href="http://gmpg.org/xfn/11">
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
        <?php wp_head(); ?>
        <style>
            body:before { display:none !important}
            body:after { display:none !important}
            body, body.page-template-revslider-page-template, body.page-template---publicviewsrevslider-page-template-php { background:<?php echo $page_bg;?>}
        </style>
    </head>

    <body <?php body_class(); ?>>
        <?php do_action('rs_page_template_pre_content'); ?>
        <div>
            <?php
            
// Start the loop.
            
while(have_posts()) : the_post();

                
// Include the page content template.
                
if(!isset($SR_GLOBALS['preview_mode']) || $SR_GLOBALS['preview_mode'] === false){
                    
the_content();
                }else{
                    echo 
do_shortcode(get_the_content());
                }

            
// End the loop.
            
endwhile;
            
?>
        </div>
        <?php do_action('rs_page_template_post_content'); ?>
        <?php wp_footer(); ?>
        
    </body>
</html>