Error
[] operator not supported for strings Error thrown with message "[] operator not supported for strings" Stacktrace: #51 Error in /home/wearerip/snarled.com/public_html/wp-content/themes/g5_helium/vc_templates/thb_postvideogrid.php:126 #50 thb_postvideogrid in /home/wearerip/snarled.com/public_html/wp-includes/shortcodes.php:319 #49 do_shortcode_tag in [internal]:0 #48 preg_replace_callback in /home/wearerip/snarled.com/public_html/wp-includes/shortcodes.php:197 #47 do_shortcode in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php:234 #46 wpb_js_remove_wpautop in /home/wearerip/snarled.com/public_html/wp-content/themes/g5_helium/vc_templates/vc_column.php:48 #45 include in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php:473 #44 WPBakeryShortCode:loadTemplate in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php:453 #43 WPBakeryShortCode:content in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php:565 #42 WPBakeryShortCode:output in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php:1378 #41 vc_do_shortcode in /home/wearerip/snarled.com/public_html/wp-includes/shortcodes.php:319 #40 do_shortcode_tag in [internal]:0 #39 preg_replace_callback in /home/wearerip/snarled.com/public_html/wp-includes/shortcodes.php:197 #38 do_shortcode in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php:234 #37 wpb_js_remove_wpautop in /home/wearerip/snarled.com/public_html/wp-content/themes/g5_helium/vc_templates/vc_row.php:145 #36 include in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php:473 #35 WPBakeryShortCode:loadTemplate in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php:35 #34 WPBakeryShortCode_VC_Row:content in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php:565 #33 WPBakeryShortCode:output in /home/wearerip/snarled.com/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php:1378 #32 vc_do_shortcode in /home/wearerip/snarled.com/public_html/wp-includes/shortcodes.php:319 #31 do_shortcode_tag in [internal]:0 #30 preg_replace_callback in /home/wearerip/snarled.com/public_html/wp-includes/shortcodes.php:197 #29 do_shortcode in /home/wearerip/snarled.com/public_html/wp-includes/class-wp-hook.php:286 #28 WP_Hook:apply_filters in /home/wearerip/snarled.com/public_html/wp-includes/plugin.php:203 #27 apply_filters in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Post.php:1038 #26 Timber\Post:content in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:675 #25 Twig_Template:getAttribute in /home/wearerip/snarled.com/public_html/wp-content/cache/gantry5/g5_helium/twig/57/57e5cef93a960caf294bef61483ea30402d67fd144fac70ce2b0eeb8ad2f7a27.php:137 #24 __TwigTemplate_cc8d74697985c98ccca8b8424fe1d746f62bad4e0633e8786abf9090f236cf07:block_content in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:215 #23 Twig_Template:displayBlock in /home/wearerip/snarled.com/public_html/wp-content/cache/gantry5/g5_helium/twig/57/57e5cef93a960caf294bef61483ea30402d67fd144fac70ce2b0eeb8ad2f7a27.php:30 #22 __TwigTemplate_cc8d74697985c98ccca8b8424fe1d746f62bad4e0633e8786abf9090f236cf07:doDisplay in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #21 Twig_Template:displayWithErrorHandling in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #20 Twig_Template:display in /home/wearerip/snarled.com/public_html/wp-content/cache/gantry5/g5_helium/twig/e8/e826a2cf1059524a3dafbfad08ebaebb559e82a1cdac00246e7aecb457fd9073.php:43 #19 __TwigTemplate_fd7157894d45e8a6de6297576c6a362c802c381b4aafa5222c57ce48c46acd8c:block_content in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:215 #18 Twig_Template:displayBlock in /home/wearerip/snarled.com/public_html/wp-content/cache/gantry5/g5_helium/twig/ad/ad30a6d10272d8611d523cfdb0859874a12582a134eac528c9fa46bfa9cb62e8.php:44 #17 __TwigTemplate_f1f48b1535a0af1047c57d9049e22c8cd45136429791d8e362f858b72fd03524:doDisplay in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #16 Twig_Template:displayWithErrorHandling in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #15 Twig_Template:display in /home/wearerip/snarled.com/public_html/wp-content/cache/gantry5/g5_helium/twig/bf/bfe2aa88ead474ff77a0cc6b6dcb25ed4e52d2679791f727d9b4c1995ff007d7.php:25 #14 __TwigTemplate_4b66de3834b365c6426f008f69a5b0635fca72b1fe71de005919dccfe56131f0:doDisplay in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #13 Twig_Template:displayWithErrorHandling in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #12 Twig_Template:display in /home/wearerip/snarled.com/public_html/wp-content/cache/gantry5/g5_helium/twig/e8/e826a2cf1059524a3dafbfad08ebaebb559e82a1cdac00246e7aecb457fd9073.php:29 #11 __TwigTemplate_fd7157894d45e8a6de6297576c6a362c802c381b4aafa5222c57ce48c46acd8c:doDisplay in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:432 #10 Twig_Template:displayWithErrorHandling in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:403 #9 Twig_Template:display in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Template.php:411 #8 Twig_Template:render in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/twig/twig/lib/Twig/Environment.php:362 #7 Twig_Environment:render in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Loader.php:74 #6 Timber\Loader:render in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:318 #5 Timber\Timber:compile in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:362 #4 Timber\Timber:fetch in /home/wearerip/snarled.com/public_html/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:389 #3 Timber\Timber:render in /home/wearerip/snarled.com/public_html/wp-content/themes/g5_helium/page.php:41 #2 include in /home/wearerip/snarled.com/public_html/wp-includes/template-loader.php:74 #1 require_once in /home/wearerip/snarled.com/public_html/wp-blog-header.php:19 #0 require in /home/wearerip/snarled.com/public_html/index.php:17
Stack frames (52)
51
Error
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
themes
/
g5_helium
/
vc_templates
/
thb_postvideogrid.php
126
50
thb_postvideogrid
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
shortcodes.php
319
49
do_shortcode_tag
[internal]
0
48
preg_replace_callback
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
shortcodes.php
197
47
do_shortcode
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
helpers
/
helpers.php
234
46
wpb_js_remove_wpautop
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
themes
/
g5_helium
/
vc_templates
/
vc_column.php
48
45
include
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
/
shortcodes.php
473
44
WPBakeryShortCode
loadTemplate
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
/
shortcodes.php
453
43
WPBakeryShortCode
content
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
/
shortcodes.php
565
42
WPBakeryShortCode
output
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
helpers
/
helpers.php
1378
41
vc_do_shortcode
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
shortcodes.php
319
40
do_shortcode_tag
[internal]
0
39
preg_replace_callback
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
shortcodes.php
197
38
do_shortcode
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
helpers
/
helpers.php
234
37
wpb_js_remove_wpautop
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
themes
/
g5_helium
/
vc_templates
/
vc_row.php
145
36
include
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
/
shortcodes.php
473
35
WPBakeryShortCode
loadTemplate
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
/
vc-row.php
35
34
WPBakeryShortCode_VC_Row
content
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
shortcodes
/
shortcodes.php
565
33
WPBakeryShortCode
output
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
plugins
/
js_composer
/
include
/
helpers
/
helpers.php
1378
32
vc_do_shortcode
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
shortcodes.php
319
31
do_shortcode_tag
[internal]
0
30
preg_replace_callback
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
shortcodes.php
197
29
do_shortcode
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
class-wp-hook.php
286
28
WP_Hook
apply_filters
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
plugin.php
203
27
apply_filters
/
vendor
/
timber
/
timber
/
lib
/
Post.php
1038
26
Timber
\
Post
content
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
675
25
Twig_Template
getAttribute
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
cache
/
gantry5
/
g5_helium
/
twig
/
57
/
57e5cef93a960caf294bef61483ea30402d67fd144fac70ce2b0eeb8ad2f7a27.php
137
24
__TwigTemplate_cc8d74697985c98ccca8b8424fe1d746f62bad4e0633e8786abf9090f236cf07
block_content
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
215
23
Twig_Template
displayBlock
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
cache
/
gantry5
/
g5_helium
/
twig
/
57
/
57e5cef93a960caf294bef61483ea30402d67fd144fac70ce2b0eeb8ad2f7a27.php
30
22
__TwigTemplate_cc8d74697985c98ccca8b8424fe1d746f62bad4e0633e8786abf9090f236cf07
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
21
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
20
Twig_Template
display
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
cache
/
gantry5
/
g5_helium
/
twig
/
e8
/
e826a2cf1059524a3dafbfad08ebaebb559e82a1cdac00246e7aecb457fd9073.php
43
19
__TwigTemplate_fd7157894d45e8a6de6297576c6a362c802c381b4aafa5222c57ce48c46acd8c
block_content
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
215
18
Twig_Template
displayBlock
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
cache
/
gantry5
/
g5_helium
/
twig
/
ad
/
ad30a6d10272d8611d523cfdb0859874a12582a134eac528c9fa46bfa9cb62e8.php
44
17
__TwigTemplate_f1f48b1535a0af1047c57d9049e22c8cd45136429791d8e362f858b72fd03524
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
16
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
15
Twig_Template
display
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
cache
/
gantry5
/
g5_helium
/
twig
/
bf
/
bfe2aa88ead474ff77a0cc6b6dcb25ed4e52d2679791f727d9b4c1995ff007d7.php
25
14
__TwigTemplate_4b66de3834b365c6426f008f69a5b0635fca72b1fe71de005919dccfe56131f0
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
13
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
12
Twig_Template
display
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
cache
/
gantry5
/
g5_helium
/
twig
/
e8
/
e826a2cf1059524a3dafbfad08ebaebb559e82a1cdac00246e7aecb457fd9073.php
29
11
__TwigTemplate_fd7157894d45e8a6de6297576c6a362c802c381b4aafa5222c57ce48c46acd8c
doDisplay
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
432
10
Twig_Template
displayWithErrorHandling
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
9
Twig_Template
display
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
411
8
Twig_Template
render
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
362
7
Twig_Environment
render
/
vendor
/
timber
/
timber
/
lib
/
Loader.php
74
6
Timber
\
Loader
render
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
318
5
Timber
\
Timber
compile
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
362
4
Timber
\
Timber
fetch
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
389
3
Timber
\
Timber
render
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-content
/
themes
/
g5_helium
/
page.php
41
2
include
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-includes
/
template-loader.php
74
1
require_once
/
home
/
wearerip
/
snarled.com
/
public_html
/
wp-blog-header.php
19
0
require
/
home
/
wearerip
/
snarled.com
/
public_html
/
index.php
17
            array(
                'paged' => 1
            )
        , $args );
        
        $posts_additional = new WP_Query( $args );
        // print_r($random_videos);
        
        $posts->posts = array_merge( $posts->posts, $posts_additional->posts );
        //populate post_count count for the loop to work correctly
        $posts->post_count = $posts->post_count + $posts_additional->post_count;
        
        if($posts->post_count < $items_per_page) {
            return;
        }
    }
    
    if($show_sponsored){
            
        $post_tag_array[] = "Sponsored";
        unset($args);
        $args = array(
            'cat'                 => $cat,
            'post_type'            =>'post', 
            'max_num_pages'         => $max_items,
            'post_status'             => 'publish', 
            'ignore_sticky_posts'     => 1,
            'tag_slug__in'         => $post_tag_array,
            'posts_per_page'        => 1
            
        );    
        $args     = wp_parse_args( 
            array(
                'paged' => $paged
            )
        , $args );
        if ($offset) {
            if ( $pagination !== 'true') {
                $args = wp_parse_args( 
                    array(
     * Filters whether to call a shortcode callback.
     *
     * Passing a truthy value to the filter will effectively short-circuit the
     * shortcode generation process, returning that value instead.
     *
     * @since 4.7.0
     *
     * @param bool|string $return      Short-circuit return value. Either false or the value to replace the shortcode with.
     * @param string       $tag         Shortcode name.
     * @param array|string $attr        Shortcode attributes array or empty string.
     * @param array        $m           Regular expression match array.
     */
    $return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
    if ( false !== $return ) {
        return $return;
    }
 
    $content = isset( $m[5] ) ? $m[5] : null;
 
    $output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6];
 
    /**
     * Filters the output created by a shortcode callback.
     *
     * @since 4.7.0
     *
     * @param string       $output Shortcode output.
     * @param string       $tag    Shortcode name.
     * @param array|string $attr   Shortcode attributes array or empty string.
     * @param array        $m      Regular expression match array.
     */
    return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
}
 
/**
 * Search only inside HTML elements for shortcodes and process them.
 *
 * Any [ or ] characters remaining inside elements will be HTML encoded
 * to prevent interference with shortcodes that are outside the elements.
 * Assumes $content processed by KSES already.  Users with unfiltered_html
 
    if ( false === strpos( $content, '[' ) ) {
        return $content;
    }
 
    if (empty($shortcode_tags) || !is_array($shortcode_tags))
        return $content;
 
    // Find all registered tag names in $content.
    preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
    $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
 
    if ( empty( $tagnames ) ) {
        return $content;
    }
 
    $content = do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames );
 
    $pattern = get_shortcode_regex( $tagnames );
    $content = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $content );
 
    // Always restore square braces so we don't break things like <!--[if IE ]>
    $content = unescape_invalid_shortcodes( $content );
 
    return $content;
}
 
/**
 * Retrieve the shortcode regular expression for searching.
 *
 * The regular expression combines the shortcode tags in the regular expression
 * in a regex class.
 *
 * The regular expression contains 6 different sub matches to help with parsing.
 *
 * 1 - An extra [ to allow for escaping shortcodes with double [[]]
 * 2 - The shortcode name
 * 3 - The shortcode argument list
 * 4 - The self closing /
 * 5 - The content of a shortcode when it wraps some content.
        }
    }
 
    return $width;
}
 
/**
 * @param $content
 * @param bool $autop
 *
 * @since 4.2
 * @return string
 */
function wpb_js_remove_wpautop( $content, $autop = false ) {
 
    if ( $autop ) { // Possible to use !preg_match('('.WPBMap::getTagsRegexp().')', $content)
        $content = wpautop( preg_replace( '/<\/?p\>/', "\n", $content ) . "\n" );
    }
 
    return do_shortcode( shortcode_unautop( $content ) );
}
 
if ( ! function_exists( 'shortcode_exists' ) ) {
    /**
     * Check if a shortcode is registered in WordPress.
     *
     * Examples: shortcode_exists( 'caption' ) - will return true.
     * shortcode_exists( 'blah' ) - will return false.
     *
     * @param bool $shortcode
     *
     * @since 4.2
     * @return bool
     */
    function shortcode_exists( $shortcode = false ) {
        global $shortcode_tags;
 
        if ( ! $shortcode ) {
            return false;
        }
$el_class .= ' '.$animation;
$style = $this->buildStyle( $font_color );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $width . $el_class . vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
 
$data_skrollr = ($skrollr ? ' data-top-bottom="transform: translateY(-'.$skrollr_speed.'px);" data-bottom-top="transform: translateY('.$skrollr_speed.'px);"' : '');
 
// Parallax
if ( $enable_parallax ) {
    if ( $parallax_speed == '' ) {
        $parallax_speed = 0.2;
    }
    $parallax_class = ' parallax_bg';
    $data = ' data-stellar-background-ratio="'.$parallax_speed.'"';
}
$output .= "\n\t".'<div class="'.$css_class. $parallax_class. $height.'"'.$style.$data_skrollr.' '.$data.'>';
if($fixed == 'true') {
    $output .= "\n\t".'<div class="fixed-me">';
}
//$output .= "\n\t\t".'<div class="wpb_wrapper">';
$output .= "\n\t\t\t".wpb_js_remove_wpautop($content);
//$output .= "\n\t\t".'</div> '.$this->endBlockComment('.wpb_wrapper');
if($fixed == 'true') {
    $output .= "\n\t".'</div>';
}
$output .= "\n\t".'</div> '.$this->endBlockComment($el_class) . "\n";
 
echo $output;
        }
 
        /**
         * @param $atts
         * @param null $content
         *
         * vc_filter: vc_shortcode_content_filter - hook to edit template content
         * vc_filter: vc_shortcode_content_filter_after - hook after template is loaded to override output
         *
         * @return mixed|void
         */
        protected function loadTemplate( $atts, $content = null ) {
            $output = '';
            if ( ! is_null( $content ) ) {
                $content = apply_filters( 'vc_shortcode_content_filter', $content, $this->shortcode );
            }
            $this->findShortcodeTemplate();
            if ( $this->html_template ) {
                ob_start();
                include( $this->html_template );
                $output = ob_get_contents();
                ob_end_clean();
            } else {
                trigger_error( sprintf( __( 'Template file is missing for `%s` shortcode. Make sure you have `%s` file in your theme folder.', 'js_composer' ), $this->shortcode, 'wp-content/themes/your_theme/vc_templates/' . $this->shortcode . '.php' ) );
            }
 
            return apply_filters( 'vc_shortcode_content_filter_after', $output, $this->shortcode );
        }
 
        /**
         * @param $atts
         * @param $content
         *
         * @return string
         */
        public function contentAdmin( $atts, $content = null ) {
            $output = $custom_markup = $width = $el_position = '';
            if ( null !== $content ) {
                $content = wpautop( stripslashes( $content ) );
            }
                return $this->setTemplate( $user_template );
            }
 
            // Check default place
            $default_dir = vc_manager()->getDefaultShortcodesTemplatesDir() . '/';
            if ( is_file( $default_dir . $this->getFileName() . '.php' ) ) {
                return $this->setTemplate( $default_dir . $this->getFileName() . '.php' );
            }
 
            return '';
        }
 
        /**
         * @param $atts
         * @param null $content
         *
         * @return mixed|void
         */
        protected function content( $atts, $content = null ) {
            return $this->loadTemplate( $atts, $content );
        }
 
        /**
         * @param $atts
         * @param null $content
         *
         * vc_filter: vc_shortcode_content_filter - hook to edit template content
         * vc_filter: vc_shortcode_content_filter_after - hook after template is loaded to override output
         *
         * @return mixed|void
         */
        protected function loadTemplate( $atts, $content = null ) {
            $output = '';
            if ( ! is_null( $content ) ) {
                $content = apply_filters( 'vc_shortcode_content_filter', $content, $this->shortcode );
            }
            $this->findShortcodeTemplate();
            if ( $this->html_template ) {
                ob_start();
                include( $this->html_template );
            $content = empty( $content ) && ! empty( $atts['content'] ) ? $atts['content'] : $content;
            if ( ( $this->isInline() || vc_is_page_editable() ) && method_exists( $this, 'contentInline' ) ) {
                $output .= $this->contentInline( $this->atts, $content );
            } else {
                $this->enqueueDefaultScripts();
                $custom_output = VC_SHORTCODE_CUSTOMIZE_PREFIX . $this->shortcode;
                $custom_output_before = VC_SHORTCODE_BEFORE_CUSTOMIZE_PREFIX . $this->shortcode; // before shortcode function hook
                $custom_output_after = VC_SHORTCODE_AFTER_CUSTOMIZE_PREFIX . $this->shortcode; // after shortcode function hook
 
                // Before shortcode
                if ( function_exists( $custom_output_before ) ) {
                    $output .= $custom_output_before( $this->atts, $content );
                } else {
                    $output .= $this->beforeShortcode( $this->atts, $content );
                }
                // Shortcode content
                if ( function_exists( $custom_output ) ) {
                    $output .= $custom_output( $this->atts, $content );
                } else {
                    $output .= $this->content( $this->atts, $content );
                }
                // After shortcode
                if ( function_exists( $custom_output_after ) ) {
                    $output .= $custom_output_after( $this->atts, $content );
                } else {
                    $output .= $this->afterShortcode( $this->atts, $content );
                }
            }
            // Filter for overriding outputs
            $output = apply_filters( 'vc_shortcode_output', $output, $this, $this->atts );
 
            return $output;
        }
 
        public function enqueueDefaultScripts() {
            if ( false === self::$default_scripts_enqueued ) {
                wp_enqueue_script( 'wpb_composer_front_js' );
                wp_enqueue_style( 'js_composer_front' );
                self::$default_scripts_enqueued = true;
            }
 * @since 4.2
 * @return int
 */
function vc_get_initerface_version() {
    _deprecated_function( 'vc_get_initerface_version', '4.2 (will be removed in 5.1)' );
 
    return vc_get_interface_version();
}
 
/**
 * Do shortcode single render point
 *
 * @param $atts
 * @param null $content
 * @param null $tag
 *
 * @return string
 */
function vc_do_shortcode( $atts, $content = null, $tag = null ) {
    return Vc_Shortcodes_Manager::getInstance()->getElementClass( $tag )->output( $atts, $content );
}
 
/**
 * Return random string
 *
 * @param int $length
 *
 * @return string
 */
function vc_random_string( $length = 10 ) {
    $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    $len = strlen( $characters );
    $str = '';
    for ( $i = 0; $i < $length; $i ++ ) {
        $str .= $characters[ rand( 0, $len - 1 ) ];
    }
 
    return $str;
}
 
     * Filters whether to call a shortcode callback.
     *
     * Passing a truthy value to the filter will effectively short-circuit the
     * shortcode generation process, returning that value instead.
     *
     * @since 4.7.0
     *
     * @param bool|string $return      Short-circuit return value. Either false or the value to replace the shortcode with.
     * @param string       $tag         Shortcode name.
     * @param array|string $attr        Shortcode attributes array or empty string.
     * @param array        $m           Regular expression match array.
     */
    $return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
    if ( false !== $return ) {
        return $return;
    }
 
    $content = isset( $m[5] ) ? $m[5] : null;
 
    $output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6];
 
    /**
     * Filters the output created by a shortcode callback.
     *
     * @since 4.7.0
     *
     * @param string       $output Shortcode output.
     * @param string       $tag    Shortcode name.
     * @param array|string $attr   Shortcode attributes array or empty string.
     * @param array        $m      Regular expression match array.
     */
    return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
}
 
/**
 * Search only inside HTML elements for shortcodes and process them.
 *
 * Any [ or ] characters remaining inside elements will be HTML encoded
 * to prevent interference with shortcodes that are outside the elements.
 * Assumes $content processed by KSES already.  Users with unfiltered_html
 
    if ( false === strpos( $content, '[' ) ) {
        return $content;
    }
 
    if (empty($shortcode_tags) || !is_array($shortcode_tags))
        return $content;
 
    // Find all registered tag names in $content.
    preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
    $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
 
    if ( empty( $tagnames ) ) {
        return $content;
    }
 
    $content = do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames );
 
    $pattern = get_shortcode_regex( $tagnames );
    $content = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $content );
 
    // Always restore square braces so we don't break things like <!--[if IE ]>
    $content = unescape_invalid_shortcodes( $content );
 
    return $content;
}
 
/**
 * Retrieve the shortcode regular expression for searching.
 *
 * The regular expression combines the shortcode tags in the regular expression
 * in a regex class.
 *
 * The regular expression contains 6 different sub matches to help with parsing.
 *
 * 1 - An extra [ to allow for escaping shortcodes with double [[]]
 * 2 - The shortcode name
 * 3 - The shortcode argument list
 * 4 - The self closing /
 * 5 - The content of a shortcode when it wraps some content.
        }
    }
 
    return $width;
}
 
/**
 * @param $content
 * @param bool $autop
 *
 * @since 4.2
 * @return string
 */
function wpb_js_remove_wpautop( $content, $autop = false ) {
 
    if ( $autop ) { // Possible to use !preg_match('('.WPBMap::getTagsRegexp().')', $content)
        $content = wpautop( preg_replace( '/<\/?p\>/', "\n", $content ) . "\n" );
    }
 
    return do_shortcode( shortcode_unautop( $content ) );
}
 
if ( ! function_exists( 'shortcode_exists' ) ) {
    /**
     * Check if a shortcode is registered in WordPress.
     *
     * Examples: shortcode_exists( 'caption' ) - will return true.
     * shortcode_exists( 'blah' ) - will return false.
     *
     * @param bool $shortcode
     *
     * @since 4.2
     * @return bool
     */
    function shortcode_exists( $shortcode = false ) {
        global $shortcode_tags;
 
        if ( ! $shortcode ) {
            return false;
        }
    if ( $has_video_bg ) {
        $parallax_image_src = $parallax_image;
    } else {
        $parallax_image_id = preg_replace( '/[^\d]/', '', $parallax_image );
        $parallax_image_src = wp_get_attachment_image_src( $parallax_image_id, 'full' );
        if ( ! empty( $parallax_image_src[0] ) ) {
            $parallax_image_src = $parallax_image_src[0];
        }
    }
    $wrapper_attributes[] = 'data-vc-parallax-image="' . esc_attr( $parallax_image_src ) . '"';
}
if ( ! $parallax && $has_video_bg ) {
    $wrapper_attributes[] = 'data-vc-video-bg="' . esc_attr( $video_bg_url ) . '"';
}
$css_classes[] = 'g-grid';
$css_class = preg_replace( '/\s+/', ' ', apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode( ' ', array_filter( $css_classes ) ), $this->settings['base'], $atts ) );
$wrapper_attributes[] = 'class="' . esc_attr( trim( $css_class ) ) . '"';
 
$output .= '<div ' . implode( ' ', $wrapper_attributes ) . '>';
$output .= wpb_js_remove_wpautop( $content );
$output .= '</div>';
$output .= $after_output;
 
echo $output;
        }
 
        /**
         * @param $atts
         * @param null $content
         *
         * vc_filter: vc_shortcode_content_filter - hook to edit template content
         * vc_filter: vc_shortcode_content_filter_after - hook after template is loaded to override output
         *
         * @return mixed|void
         */
        protected function loadTemplate( $atts, $content = null ) {
            $output = '';
            if ( ! is_null( $content ) ) {
                $content = apply_filters( 'vc_shortcode_content_filter', $content, $this->shortcode );
            }
            $this->findShortcodeTemplate();
            if ( $this->html_template ) {
                ob_start();
                include( $this->html_template );
                $output = ob_get_contents();
                ob_end_clean();
            } else {
                trigger_error( sprintf( __( 'Template file is missing for `%s` shortcode. Make sure you have `%s` file in your theme folder.', 'js_composer' ), $this->shortcode, 'wp-content/themes/your_theme/vc_templates/' . $this->shortcode . '.php' ) );
            }
 
            return apply_filters( 'vc_shortcode_content_filter_after', $output, $this->shortcode );
        }
 
        /**
         * @param $atts
         * @param $content
         *
         * @return string
         */
        public function contentAdmin( $atts, $content = null ) {
            $output = $custom_markup = $width = $el_position = '';
            if ( null !== $content ) {
                $content = wpautop( stripslashes( $content ) );
            }
 
    public $nonDraggableClass = 'vc-non-draggable-row';
 
    /**
     * @param $settings
     */
    public function __construct( $settings ) {
        parent::__construct( $settings );
        $this->shortcodeScripts();
    }
 
    protected function shortcodeScripts() {
        wp_register_script( 'vc_jquery_skrollr_js', vc_asset_url( 'lib/bower/skrollr/dist/skrollr.min.js' ), array( 'jquery' ), WPB_VC_VERSION, true );
        wp_register_script( 'vc_youtube_iframe_api_js', '//www.youtube.com/iframe_api', array(), WPB_VC_VERSION, true );
    }
 
    protected function content( $atts, $content = null ) {
        $prefix = '';
 
        return $prefix . $this->loadTemplate( $atts, $content );
    }
 
    /**
     * This returs block controls
     */
    public function getLayoutsControl() {
        global $vc_row_layouts;
        $controls_layout = '<span class="vc_row_layouts vc_control">';
        foreach ( $vc_row_layouts as $layout ) {
            $controls_layout .= '<a class="vc_control-set-column set_columns" data-cells="' . $layout['cells'] . '" data-cells-mask="' . $layout['mask'] . '" title="' . $layout['title'] . '"><i class="vc-composer-icon vc-c-icon-' . $layout['icon_class'] . '"></i></a> ';
        }
        $controls_layout .= '<br/><a class="vc_control-set-column set_columns custom_columns" data-cells="custom" data-cells-mask="custom" title="' . __( 'Custom layout', 'js_composer' ) . '">' . __( 'Custom', 'js_composer' ) . '</a> ';
        $controls_layout .= '</span>';
 
        return $controls_layout;
    }
 
    public function getColumnControls( $controls, $extended_css = '' ) {
        $output = '<div class="vc_controls vc_controls-row controls_row vc_clearfix">';
        $controls_end = '</div>';
            $content = empty( $content ) && ! empty( $atts['content'] ) ? $atts['content'] : $content;
            if ( ( $this->isInline() || vc_is_page_editable() ) && method_exists( $this, 'contentInline' ) ) {
                $output .= $this->contentInline( $this->atts, $content );
            } else {
                $this->enqueueDefaultScripts();
                $custom_output = VC_SHORTCODE_CUSTOMIZE_PREFIX . $this->shortcode;
                $custom_output_before = VC_SHORTCODE_BEFORE_CUSTOMIZE_PREFIX . $this->shortcode; // before shortcode function hook
                $custom_output_after = VC_SHORTCODE_AFTER_CUSTOMIZE_PREFIX . $this->shortcode; // after shortcode function hook
 
                // Before shortcode
                if ( function_exists( $custom_output_before ) ) {
                    $output .= $custom_output_before( $this->atts, $content );
                } else {
                    $output .= $this->beforeShortcode( $this->atts, $content );
                }
                // Shortcode content
                if ( function_exists( $custom_output ) ) {
                    $output .= $custom_output( $this->atts, $content );
                } else {
                    $output .= $this->content( $this->atts, $content );
                }
                // After shortcode
                if ( function_exists( $custom_output_after ) ) {
                    $output .= $custom_output_after( $this->atts, $content );
                } else {
                    $output .= $this->afterShortcode( $this->atts, $content );
                }
            }
            // Filter for overriding outputs
            $output = apply_filters( 'vc_shortcode_output', $output, $this, $this->atts );
 
            return $output;
        }
 
        public function enqueueDefaultScripts() {
            if ( false === self::$default_scripts_enqueued ) {
                wp_enqueue_script( 'wpb_composer_front_js' );
                wp_enqueue_style( 'js_composer_front' );
                self::$default_scripts_enqueued = true;
            }
 * @since 4.2
 * @return int
 */
function vc_get_initerface_version() {
    _deprecated_function( 'vc_get_initerface_version', '4.2 (will be removed in 5.1)' );
 
    return vc_get_interface_version();
}
 
/**
 * Do shortcode single render point
 *
 * @param $atts
 * @param null $content
 * @param null $tag
 *
 * @return string
 */
function vc_do_shortcode( $atts, $content = null, $tag = null ) {
    return Vc_Shortcodes_Manager::getInstance()->getElementClass( $tag )->output( $atts, $content );
}
 
/**
 * Return random string
 *
 * @param int $length
 *
 * @return string
 */
function vc_random_string( $length = 10 ) {
    $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    $len = strlen( $characters );
    $str = '';
    for ( $i = 0; $i < $length; $i ++ ) {
        $str .= $characters[ rand( 0, $len - 1 ) ];
    }
 
    return $str;
}
 
     * Filters whether to call a shortcode callback.
     *
     * Passing a truthy value to the filter will effectively short-circuit the
     * shortcode generation process, returning that value instead.
     *
     * @since 4.7.0
     *
     * @param bool|string $return      Short-circuit return value. Either false or the value to replace the shortcode with.
     * @param string       $tag         Shortcode name.
     * @param array|string $attr        Shortcode attributes array or empty string.
     * @param array        $m           Regular expression match array.
     */
    $return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
    if ( false !== $return ) {
        return $return;
    }
 
    $content = isset( $m[5] ) ? $m[5] : null;
 
    $output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6];
 
    /**
     * Filters the output created by a shortcode callback.
     *
     * @since 4.7.0
     *
     * @param string       $output Shortcode output.
     * @param string       $tag    Shortcode name.
     * @param array|string $attr   Shortcode attributes array or empty string.
     * @param array        $m      Regular expression match array.
     */
    return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
}
 
/**
 * Search only inside HTML elements for shortcodes and process them.
 *
 * Any [ or ] characters remaining inside elements will be HTML encoded
 * to prevent interference with shortcodes that are outside the elements.
 * Assumes $content processed by KSES already.  Users with unfiltered_html
 
    if ( false === strpos( $content, '[' ) ) {
        return $content;
    }
 
    if (empty($shortcode_tags) || !is_array($shortcode_tags))
        return $content;
 
    // Find all registered tag names in $content.
    preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
    $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
 
    if ( empty( $tagnames ) ) {
        return $content;
    }
 
    $content = do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames );
 
    $pattern = get_shortcode_regex( $tagnames );
    $content = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $content );
 
    // Always restore square braces so we don't break things like <!--[if IE ]>
    $content = unescape_invalid_shortcodes( $content );
 
    return $content;
}
 
/**
 * Retrieve the shortcode regular expression for searching.
 *
 * The regular expression combines the shortcode tags in the regular expression
 * in a regex class.
 *
 * The regular expression contains 6 different sub matches to help with parsing.
 *
 * 1 - An extra [ to allow for escaping shortcodes with double [[]]
 * 2 - The shortcode name
 * 3 - The shortcode argument list
 * 4 - The self closing /
 * 5 - The content of a shortcode when it wraps some content.
        }
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if( ! $this->doing_action ) {
                    $args[ 0 ] = $value;
                }
 
                // Avoid the array_slice if possible.
                if ( $the_['accepted_args'] == 0 ) {
                    $value = call_user_func_array( $the_['function'], array() );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
        $args = func_get_args();
        _wp_call_all_hook($args);
    }
 
    if ( !isset($wp_filter[$tag]) ) {
        if ( isset($wp_filter['all']) )
            array_pop($wp_current_filter);
        return $value;
    }
 
    if ( !isset($wp_filter['all']) )
        $wp_current_filter[] = $tag;
 
    if ( empty($args) )
        $args = func_get_args();
 
    // don't pass the tag name to WP_Hook
    array_shift( $args );
 
    $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Execute functions hooked on a specific filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 * functions hooked to `$tag` are supplied using an array.
 *
 * @global array $wp_filter         Stores all of the filters
 * @global array $wp_current_filter Stores the list of current filters with the current one last
 *
 * @param string $tag  The name of the filter hook.
 * @param array  $args The arguments supplied to the functions hooked to $tag.
 * @return mixed The filtered value after all hooked functions are applied to it.
     */
    public function content( $page = 0, $len = -1 ) {
        if ( $form = $this->maybe_show_password_form() ) {
            return $form;
        }
        if ( $len == -1 && $page == 0 && $this->_content ) {
            return $this->_content;
        }
        $content = $this->post_content;
        if ( $len > 0 ) {
            $content = wp_trim_words($content, $len);
        }
        if ( $page ) {
            $contents = explode('<!--nextpage-->', $content);
            $page--;
            if ( count($contents) > $page ) {
                $content = $contents[$page];
            }
        }
        $content = apply_filters('the_content', ($content));
        if ( $len == -1 && $page == 0 ) {
            $this->_content = $content;
        }
        return $content;
    }
 
    /**
     * @return string
     */
    public function paged_content() {
        global $page;
        return $this->content($page, -1);
    }
 
    /**
     * Get the date to use in your template!
     * @api
     * @example
     * ```twig
     * Published on {{ post.date }} // Uses WP's formatting set in Admin
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            throw new Twig_Error_Runtime(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
        }
 
        if ($isDefinedTest) {
            return true;
        }
 
        if ($this->env->hasExtension('Twig_Extension_Sandbox')) {
            $this->env->getExtension('Twig_Extension_Sandbox')->checkMethodAllowed($object, $method);
        }
 
        // Some objects throw exceptions when they have __call, and the method we try
        // to call is not supported. If ignoreStrictCheck is true, we should return null.
        try {
            if (!$arguments) {
                $ret = $object->$method();
            } else {
                $ret = call_user_func_array(array($object, $method), $arguments);
            }
        } catch (BadMethodCallException $e) {
            if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
                return;
            }
            throw $e;
        }
 
        // @deprecated in 1.28
        if ($object instanceof Twig_TemplateInterface) {
            $self = $object->getTemplateName() === $this->getTemplateName();
            $message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
            if ('renderBlock' === $method || 'displayBlock' === $method) {
                $message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('hasBlock' === $method) {
                $message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('render' === $method || 'display' === $method) {
                $message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
                echo "\" class=\"post-thumbnail\" aria-hidden=\"true\">
                        <img src=\"";
                // line 39
                echo Timber\ImageHelper::resize($this->getAttribute($this->getAttribute(($context["post"] ?? null), "thumbnail", array()), "src", array()), $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array()), "get", array(0 => (("content." . ($context["scope"] ?? null)) . ".featured-image.width"), 1 => "1200"), "method"), $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array()), "get", array(0 => (("content." . ($context["scope"] ?? null)) . ".featured-image.height"), 1 => "350"), "method"));
                echo "\" class=\"featured-image tease-featured-image ";
                echo ($context["position"] ?? null);
                echo "\" alt=\"";
                echo $this->getAttribute(($context["post"] ?? null), "title", array());
                echo "\" />
                    </a>
                ";
            }
            // line 42
            echo "                ";
            // line 43
            echo "
                ";
            // line 45
            echo "                ";
            echo $this->getAttribute(($context["post"] ?? null), "content", array());
            echo "
 
                ";
            // line 47
            echo call_user_func_array($this->env->getFunction('function')->getCallable(), array("wp_link_pages", array("before" => "<div class=\"page-links\" itemprop=\"pagination\">", "after" => "</div>", "link_before" => "<span class=\"page-number page-numbers\">", "link_after" => "</span>", "echo" => 0)));
            echo "
                ";
            // line 49
            echo "
                ";
            // line 51
            echo "                ";
            echo call_user_func_array($this->env->getFunction('function')->getCallable(), array("edit_post_link", call_user_func_array($this->env->getFunction('__')->getCallable(), array("Edit", "g5_helium")), "<span class=\"edit-link\">", "</span>"));
            echo "
                ";
            // line 53
            echo "
            </section>
            ";
            // line 56
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new LogicException('A block must be a method on a Twig_Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for Twig_Error_Loader exceptions
                // see Twig_Error_Loader
                if (false === $e->getTemplateLine()) {
                    $e->setTemplateLine(-1);
                    $e->guess();
                }
 
                throw $e;
            } catch (Exception $e) {
                throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
        } else {
            @trigger_error(sprintf('Silent display of undefined block "%s" in template "%s" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block(\'%s\') is defined" expression to test for block existence.', $name, $this->getTemplateName(), $name), E_USER_DEPRECATED);
 
        $this->blocks = array(
            'content' => array($this, 'block_content'),
        );
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<article class=\"post-type-";
        echo $this->getAttribute(($context["post"] ?? null), "post_type", array());
        echo " ";
        echo $this->getAttribute(($context["post"] ?? null), "class", array());
        echo "\" id=\"post-";
        echo $this->getAttribute(($context["post"] ?? null), "ID", array());
        echo "\">
 
    ";
        // line 3
        $this->displayBlock('content', $context, $blocks);
        // line 71
        echo "
</article>
";
    }
 
    // line 3
    public function block_content($context, array $blocks = array())
    {
        // line 4
        echo "
        ";
        // line 6
        echo "        <section class=\"entry-header\">
 
            ";
        // line 8
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array()), "get", array(0 => (("content." . ($context["scope"] ?? null)) . ".title.enabled"), 1 => "1"), "method")) {
            // line 9
            echo "                ";
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        // line 2
        $context["twigTemplate"] = "page.html.twig";
        // line 3
        $context["scope"] = "page";
        // line 1
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = array())
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate(array(0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"), "page.html.twig", 11)->display($context);
        // line 12
        echo "
            </section>
        </div> <!-- /content-wrapper -->
    </div>
 
";
    }
 
    public function getTemplateName()
    {
        return "page.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
    }
 
    public function getDebugInfo()
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new LogicException('A block must be a method on a Twig_Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for Twig_Error_Loader exceptions
                // see Twig_Error_Loader
                if (false === $e->getTemplateLine()) {
                    $e->setTemplateLine(-1);
                    $e->guess();
                }
 
                throw $e;
            } catch (Exception $e) {
                throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
        } else {
            @trigger_error(sprintf('Silent display of undefined block "%s" in template "%s" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block(\'%s\') is defined" expression to test for block existence.', $name, $this->getTemplateName(), $name), E_USER_DEPRECATED);
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", array()), "startTimer", array(0 => "render", 1 => "Rendering page"), "method");
        // line 2
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", array()), "setLayout", array(), "method");
        // line 3
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", array()), "loadAtoms", array(), "method");
        // line 4
        $context["segments"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", array()), "segments", array(), "method");
        // line 6
        ob_start();
        // line 7
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", array()), "hasContent", array(), "method")) {
            // line 8
            echo "        ";
            $this->displayBlock('content', $context, $blocks);
            // line 10
            echo "    ";
        }
        $context["content"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
        // line 13
        $context["offcanvas"] = null;
        // line 14
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            if (($this->getAttribute($context["segment"], "type", array()) == "offcanvas")) {
                // line 15
                $context["offcanvas"] = $context["segment"];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 18
        ob_start();
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);
 
        // line 1
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->blocks = array(
            'page_head' => array($this, 'block_page_head'),
            'page_footer' => array($this, 'block_page_footer'),
        );
    }
 
    protected function doGetParent(array $context)
    {
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_page_head($context, array $blocks = array())
    {
        // line 4
        if (($context["page_head"] ?? null)) {
            // line 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "page.html.twig", 1);
        $this->blocks = array(
            'content' => array($this, 'block_content'),
        );
    }
 
    protected function doGetParent(array $context)
    {
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 2
        $context["twigTemplate"] = "page.html.twig";
        // line 3
        $context["scope"] = "page";
        // line 1
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = array())
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate(array(0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"), "page.html.twig", 11)->display($context);
        // line 12
        echo "
            </section>
        </div> <!-- /content-wrapper -->
    </div>
 
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function render($name, array $context = array())
    {
        return $this->loadTemplate($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function display($name, array $context = array())
    {
        $this->loadTemplate($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
        }
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $output = $twig->render($file, $data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * $welcome = Timber::compile_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   Optional. An array of data to use in Twig template.
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::get_context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::get_context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
 *
 * To generate specific templates for your pages you can use:
 * /mytheme/views/page-mypage.html.twig
 * (which will still route through this PHP file)
 * OR
 * /mytheme/page-mypage.php
 * (in which case you'll want to duplicate this file and save to the above path)
 */
 
$gantry = Gantry\Framework\Gantry::instance();
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
 
$post            = Timber::query_post();
$context['post'] = $post;
 
Timber::render(['page-' . $post->post_name . '.html.twig', 'page.html.twig'], $context);
 
    elseif ( is_single()         && $template = get_single_template()         ) :
    elseif ( is_page()           && $template = get_page_template()           ) :
    elseif ( is_singular()       && $template = get_singular_template()       ) :
    elseif ( is_category()       && $template = get_category_template()       ) :
    elseif ( is_tag()            && $template = get_tag_template()            ) :
    elseif ( is_author()         && $template = get_author_template()         ) :
    elseif ( is_date()           && $template = get_date_template()           ) :
    elseif ( is_archive()        && $template = get_archive_template()        ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( !isset($wp_did_header) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname(__FILE__) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);
 
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache/2.4.39 (Unix) mod_hive/6.27 OpenSSL/1.0.1e-fips mod_fastcgi/2.4.6
REQUEST_URI /
PATH /usr/local/bin:/usr/bin:/bin
UNIQUE_ID [email protected]
SCRIPT_URL /
SCRIPT_URI https://snarled.com/
HTTPS on
PHPHANDLER /usr/local/php73/bin/php
HTTP_HOST snarled.com
HTTP_X_REAL_IP 146.66.76.75
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_CF_IPCOUNTRY US
HTTP_CF_RAY 57db48bc2ada73c9-IAD
HTTP_CF_VISITOR {\"scheme\":\"https\"}
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_CF_CONNECTING_IP 3.223.3.101
HTTP_CDN_LOOP cloudflare
HTTP_X_HTTPS 1
SERVER_NAME snarled.com
SERVER_ADDR 35.208.58.51
SERVER_PORT 443
REMOTE_ADDR 146.66.76.75
DOCUMENT_ROOT /home/wearerip/snarled.com/public_html
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /home/wearerip/snarled.com/public_html/index.php
REMOTE_PORT 60500
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1585838207.611
REQUEST_TIME 1585838207
empty
0. Whoops\Handler\PrettyPageHandler