Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Trying to access array offset on value of type bool").
Previous exceptions
  • Trying to access array offset on value of type bool (2)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Trying to access array offset on value of type bool")." Stacktrace: #42 Twig\Error\RuntimeError in /home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/views/partials/content-single.html.twig:45 #41 Whoops\Exception\ErrorException in /home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/job_manager/content-single-job_listing-meta.php:46 #40 Gantry\Component\Whoops\SystemFacade:handleError in /home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/job_manager/content-single-job_listing-meta.php:46 #39 include in /home/ststechnicaljobs/public_html/wp-content/plugins/wp-job-manager/wp-job-manager-template.php:27 #38 get_job_manager_template in /home/ststechnicaljobs/public_html/wp-content/plugins/wp-job-manager/wp-job-manager-template.php:1265 #37 job_listing_meta_display in /home/ststechnicaljobs/public_html/wp-includes/class-wp-hook.php:324 #36 WP_Hook:apply_filters in /home/ststechnicaljobs/public_html/wp-includes/class-wp-hook.php:348 #35 WP_Hook:do_action in /home/ststechnicaljobs/public_html/wp-includes/plugin.php:517 #34 do_action in /home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/job_manager/content-single-job_listing.php:107 #33 require in /home/ststechnicaljobs/public_html/wp-includes/template.php:812 #32 load_template in /home/ststechnicaljobs/public_html/wp-content/plugins/wp-job-manager/wp-job-manager-template.php:88 #31 get_job_manager_template_part in /home/ststechnicaljobs/public_html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php:697 #30 WP_Job_Manager_Post_Types:job_content in /home/ststechnicaljobs/public_html/wp-includes/class-wp-hook.php:324 #29 WP_Hook:apply_filters in /home/ststechnicaljobs/public_html/wp-includes/plugin.php:205 #28 apply_filters in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Post.php:1228 #27 Timber\Post:content in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Post.php:1256 #26 Timber\Post:paged_content in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:700 #25 Twig\Template:getAttribute in /home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/c8/c8b7eed50b3e8c705b9f8f716d7987cf1578f6e08b835f2404451bc3713e32d4.php:135 #24 __TwigTemplate_b3cb3cc4a835dbd68fd4fac173ffddaf45d5a2de450ccbe2ec5acec8bf997817:block_content in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:214 #23 Twig\Template:displayBlock in /home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/c8/c8b7eed50b3e8c705b9f8f716d7987cf1578f6e08b835f2404451bc3713e32d4.php:107 #22 __TwigTemplate_b3cb3cc4a835dbd68fd4fac173ffddaf45d5a2de450ccbe2ec5acec8bf997817:doDisplay in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #21 Twig\Template:displayWithErrorHandling in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #20 Twig\Template:display in /home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/d0/d0af71d74f57d2fbffb6d45adc43e5a1d93166bce010a7acc3826e2c1f31e38e.php:54 #19 __TwigTemplate_f800f43cef0b0d7dbd9ac3fd50c4dcf7bf2d2cf3509cbd493984492ff504d21c:block_content in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:214 #18 Twig\Template:displayBlock in /home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/b1/b1a40e82bd575097903b6ad7dbf99578ac166653026145c2653ef6de7b5b5a42.php:55 #17 __TwigTemplate_b249a025ebbd98dd47294080d6b36b03a1e712deaa2ded355bd250cdfe8b942e:doDisplay in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #16 Twig\Template:displayWithErrorHandling in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #15 Twig\Template:display in /home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/08/08d8b2b7debe21d5de995ae634cb63b1d86146dbb1c28cd63037a7f834244341.php:36 #14 __TwigTemplate_a25cac9422157095fcfe300de1a1cdec3cbc390f2423808e34da2734e8049fd9:doDisplay in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #13 Twig\Template:displayWithErrorHandling in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #12 Twig\Template:display in /home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/d0/d0af71d74f57d2fbffb6d45adc43e5a1d93166bce010a7acc3826e2c1f31e38e.php:40 #11 __TwigTemplate_f800f43cef0b0d7dbd9ac3fd50c4dcf7bf2d2cf3509cbd493984492ff504d21c:doDisplay in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #10 Twig\Template:displayWithErrorHandling in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #9 Twig\Template:display in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:432 #8 Twig\Template:render in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #7 Twig\TemplateWrapper:render in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Loader.php:79 #6 Timber\Loader:render in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:334 #5 Timber\Timber:compile in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:383 #4 Timber\Timber:fetch in /home/ststechnicaljobs/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:410 #3 Timber\Timber:render in /home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/single.php:30 #2 include in /home/ststechnicaljobs/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/ststechnicaljobs/public_html/wp-blog-header.php:19 #0 require in /home/ststechnicaljobs/public_html/index.php:17
Stack frames (43)
42
Twig\Error\RuntimeError
/home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/views/partials/content-single.html.twig45
41
Whoops\Exception\ErrorException
/home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/job_manager/content-single-job_listing-meta.php46
40
Gantry\Component\Whoops\SystemFacade handleError
/home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/job_manager/content-single-job_listing-meta.php46
39
include
/home/ststechnicaljobs/public_html/wp-content/plugins/wp-job-manager/wp-job-manager-template.php27
38
get_job_manager_template
/home/ststechnicaljobs/public_html/wp-content/plugins/wp-job-manager/wp-job-manager-template.php1265
37
job_listing_meta_display
/home/ststechnicaljobs/public_html/wp-includes/class-wp-hook.php324
36
WP_Hook apply_filters
/home/ststechnicaljobs/public_html/wp-includes/class-wp-hook.php348
35
WP_Hook do_action
/home/ststechnicaljobs/public_html/wp-includes/plugin.php517
34
do_action
/home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/job_manager/content-single-job_listing.php107
33
require
/home/ststechnicaljobs/public_html/wp-includes/template.php812
32
load_template
/home/ststechnicaljobs/public_html/wp-content/plugins/wp-job-manager/wp-job-manager-template.php88
31
get_job_manager_template_part
/home/ststechnicaljobs/public_html/wp-content/plugins/wp-job-manager/includes/class-wp-job-manager-post-types.php697
30
WP_Job_Manager_Post_Types job_content
/home/ststechnicaljobs/public_html/wp-includes/class-wp-hook.php324
29
WP_Hook apply_filters
/home/ststechnicaljobs/public_html/wp-includes/plugin.php205
28
apply_filters
/vendor/timber/timber/lib/Post.php1228
27
Timber\Post content
/vendor/timber/timber/lib/Post.php1256
26
Timber\Post paged_content
/compat/vendor/twig/twig/src/Template.php700
25
Twig\Template getAttribute
/home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/c8/c8b7eed50b3e8c705b9f8f716d7987cf1578f6e08b835f2404451bc3713e32d4.php135
24
__TwigTemplate_b3cb3cc4a835dbd68fd4fac173ffddaf45d5a2de450ccbe2ec5acec8bf997817 block_content
/compat/vendor/twig/twig/src/Template.php214
23
Twig\Template displayBlock
/home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/c8/c8b7eed50b3e8c705b9f8f716d7987cf1578f6e08b835f2404451bc3713e32d4.php107
22
__TwigTemplate_b3cb3cc4a835dbd68fd4fac173ffddaf45d5a2de450ccbe2ec5acec8bf997817 doDisplay
/compat/vendor/twig/twig/src/Template.php453
21
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
20
Twig\Template display
/home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/d0/d0af71d74f57d2fbffb6d45adc43e5a1d93166bce010a7acc3826e2c1f31e38e.php54
19
__TwigTemplate_f800f43cef0b0d7dbd9ac3fd50c4dcf7bf2d2cf3509cbd493984492ff504d21c block_content
/compat/vendor/twig/twig/src/Template.php214
18
Twig\Template displayBlock
/home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/b1/b1a40e82bd575097903b6ad7dbf99578ac166653026145c2653ef6de7b5b5a42.php55
17
__TwigTemplate_b249a025ebbd98dd47294080d6b36b03a1e712deaa2ded355bd250cdfe8b942e doDisplay
/compat/vendor/twig/twig/src/Template.php453
16
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
15
Twig\Template display
/home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/08/08d8b2b7debe21d5de995ae634cb63b1d86146dbb1c28cd63037a7f834244341.php36
14
__TwigTemplate_a25cac9422157095fcfe300de1a1cdec3cbc390f2423808e34da2734e8049fd9 doDisplay
/compat/vendor/twig/twig/src/Template.php453
13
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
12
Twig\Template display
/home/ststechnicaljobs/public_html/wp-content/cache/gantry5/g5_helium/twig/d0/d0af71d74f57d2fbffb6d45adc43e5a1d93166bce010a7acc3826e2c1f31e38e.php40
11
__TwigTemplate_f800f43cef0b0d7dbd9ac3fd50c4dcf7bf2d2cf3509cbd493984492ff504d21c doDisplay
/compat/vendor/twig/twig/src/Template.php453
10
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
9
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
8
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
7
Twig\TemplateWrapper render
/vendor/timber/timber/lib/Loader.php79
6
Timber\Loader render
/vendor/timber/timber/lib/Timber.php334
5
Timber\Timber compile
/vendor/timber/timber/lib/Timber.php383
4
Timber\Timber fetch
/vendor/timber/timber/lib/Timber.php410
3
Timber\Timber render
/home/ststechnicaljobs/public_html/wp-content/themes/g5_helium/single.php30
2
include
/home/ststechnicaljobs/public_html/wp-includes/template-loader.php106
1
require_once
/home/ststechnicaljobs/public_html/wp-blog-header.php19
0
require
/home/ststechnicaljobs/public_html/index.php17
        </section>
        {# End Entry Header #}
 
<div class="g-container">
<div class="uk-grid" style="margin-top:50px;">
<div class="uk-width-1-1 singlejob">
<article class="thin post-type-{{ post.post_type }} {{ post.class }}" id="post-{{ post.ID }}">
 
    {% block content %}
 
        
 
        {# Check if post is password protected #}
        {% if not function( 'post_password_required', post.ID ) %}
 
            {# Begin Entry Content #}
            <section class="entry-content">
 
                {# Begin Page Content #}
                {{ post.paged_content|raw }}
 
                {{ function('wp_link_pages', {'before': '<div class="page-links" itemprop="pagination"><ul class="pagination-list">', 'after': '</ul></div>', 'link_before': '<span class="page-number page-numbers">', 'link_after': '</span>', 'echo': 0}) }}
                {# End Page Content #}
 
                {# Begin Edit Link #}
                {{ function('edit_post_link', __('Edit', 'g5_helium'), '<span class="edit-link">', '</span>') }}
                {# End Edit Link #}
 
                <!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_inline_share_toolbox_kv7w addthis"></div>
 
 
 
            </section>
            {# End Entry Content #}
 
            {# Begin Comments #}
            {% if (post.comment_status == 'open' or post.comment_count > 0) and post.post_type != 'product' %}
                {{ function('comments_template')|raw }}
            {% endif %}
            {# End Comments #}
$bhid = get_post_meta($post->ID, '_matador_source_id', true);
$id = ($bhid)? $bhid : get_post_meta($post->ID, '_job_id', true);
 
?>
 
<div class="uk-grid job_meta">
 
<div class="uk-width-1-1 uk-width-small-1-4" itemprop="jobLocation" itemscope itemtype="http://schema.org/Place"><h4>Location</h4><span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
    <span style="display: none" itemprop="addressCountry">-</span>
    <span style="display: none" itemprop="postalCode">-</span>
    <span style="display: none" itemprop="addressRegion">-</span>
    <span style="display: none" itemprop="streetAddress">-</span>
    <span itemprop="addressLocality"><?php the_job_location(); ?></span></span></div>
<div class="uk-width-1-1 uk-width-small-1-4" itemprop="employmentType"><h4>Job type</h4><?php if ( get_option( 'job_manager_enable_types' ) ) { ?>
        <?php $types = wpjm_get_the_job_types(); ?>
        <?php if ( ! empty( $types ) ) : foreach ( $types as $type ) : ?>
            <?php echo esc_html( $type->name ); ?>
        <?php endforeach; endif; ?><?php } ?>
</div>
<div class="uk-width-1-1 uk-width-small-1-4" itemprop="occupationalCategory"><h4>Category</h4><?php echo esc_html ($terms[0]->name);?></div>
<div class="uk-width-1-1 uk-width-small-1-4"><h4>Job ID</h4><?php echo $id;?></div>
 
</div>
 
<hr>
 
<ul class="job-listing-meta meta hide">
    <?php do_action( 'single_job_listing_meta_start' ); ?>
 
 
    <li class="location"><?php the_job_location(); ?></li>
 
    <li class="datePosted"><?php the_job_publish_date(); ?></li>
 
    <?php if ( is_position_filled() ) : ?>
        <li class="position-filled"><?php _e( 'This position has been filled', 'wp-job-manager' ); ?></li>
    <?php elseif ( ! candidates_can_apply() && 'preview' !== $post->post_status ) : ?>
        <li class="listing-expired"><?php _e( 'Applications have closed', 'wp-job-manager' ); ?></li>
    <?php endif; ?>
 
Exception message: Trying to access array offset on value of type bool
$bhid = get_post_meta($post->ID, '_matador_source_id', true);
$id = ($bhid)? $bhid : get_post_meta($post->ID, '_job_id', true);
 
?>
 
<div class="uk-grid job_meta">
 
<div class="uk-width-1-1 uk-width-small-1-4" itemprop="jobLocation" itemscope itemtype="http://schema.org/Place"><h4>Location</h4><span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
    <span style="display: none" itemprop="addressCountry">-</span>
    <span style="display: none" itemprop="postalCode">-</span>
    <span style="display: none" itemprop="addressRegion">-</span>
    <span style="display: none" itemprop="streetAddress">-</span>
    <span itemprop="addressLocality"><?php the_job_location(); ?></span></span></div>
<div class="uk-width-1-1 uk-width-small-1-4" itemprop="employmentType"><h4>Job type</h4><?php if ( get_option( 'job_manager_enable_types' ) ) { ?>
        <?php $types = wpjm_get_the_job_types(); ?>
        <?php if ( ! empty( $types ) ) : foreach ( $types as $type ) : ?>
            <?php echo esc_html( $type->name ); ?>
        <?php endforeach; endif; ?><?php } ?>
</div>
<div class="uk-width-1-1 uk-width-small-1-4" itemprop="occupationalCategory"><h4>Category</h4><?php echo esc_html ($terms[0]->name);?></div>
<div class="uk-width-1-1 uk-width-small-1-4"><h4>Job ID</h4><?php echo $id;?></div>
 
</div>
 
<hr>
 
<ul class="job-listing-meta meta hide">
    <?php do_action( 'single_job_listing_meta_start' ); ?>
 
 
    <li class="location"><?php the_job_location(); ?></li>
 
    <li class="datePosted"><?php the_job_publish_date(); ?></li>
 
    <?php if ( is_position_filled() ) : ?>
        <li class="position-filled"><?php _e( 'This position has been filled', 'wp-job-manager' ); ?></li>
    <?php elseif ( ! candidates_can_apply() && 'preview' !== $post->post_status ) : ?>
        <li class="listing-expired"><?php _e( 'Applications have closed', 'wp-job-manager' ); ?></li>
    <?php endif; ?>
 
 * @category    Core
 * @package     wp-job-manager
 * @version     1.25.3
 */
 
/**
 * Gets and includes template files.
 *
 * @since 1.0.0
 * @param mixed  $template_name
 * @param array  $args (default: array()).
 * @param string $template_path (default: '').
 * @param string $default_path (default: '').
 */
function get_job_manager_template( $template_name, $args = [], $template_path = 'job_manager', $default_path = '' ) {
    if ( $args && is_array( $args ) ) {
        // phpcs:ignore WordPress.PHP.DontExtract.extract_extract -- Please, forgive us.
        extract( $args );
    }
    include locate_job_manager_template( $template_name, $template_path, $default_path );
}
 
/**
 * Locates a template and return the path for inclusion.
 *
 * This is the load order:
 *
 *      yourtheme       /   $template_path  /   $template_name
 *      yourtheme       /   $template_name
 *      $default_path   /   $template_name
 *
 * @since 1.0.0
 * @param string      $template_name
 * @param string      $template_path (default: 'job_manager').
 * @param string|bool $default_path (default: '') False to not load a default.
 * @return string
 */
function locate_job_manager_template( $template_name, $template_path = 'job_manager', $default_path = '' ) {
    // Look within passed path within the theme - this is priority.
    $template = locate_template(
 
    if ( is_position_filled( $post ) ) {
        $classes[] = 'job_position_filled';
    }
 
    if ( is_position_featured( $post ) ) {
        $classes[] = 'job_position_featured';
    }
 
    return $classes;
}
add_action( 'post_class', 'wpjm_add_post_class', 10, 3 );
 
/**
 * Displays job meta data on the single job page.
 *
 * @since 1.14.0
 */
function job_listing_meta_display() {
    get_job_manager_template( 'content-single-job_listing-meta.php', [] );
}
add_action( 'single_job_listing_start', 'job_listing_meta_display', 20 );
 
/**
 * Displays job company data on the single job page.
 *
 * @since 1.14.0
 */
function job_listing_company_display() {
    get_job_manager_template( 'content-single-job_listing-company.php', [] );
}
add_action( 'single_job_listing_start', 'job_listing_company_display', 30 );
 
/**
 * Gets the job salary.
 *
 * @since 1.36.0
 * @param int|WP_Post|null $post (default: null).
 * @return string|null
 */
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } 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, $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;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
<div class="uk-width-medium-3-4 uk-pull-1-4">
<div class="box white">
<div class="single_job_listing" itemscope itemtype="http://schema.org/JobPosting">
    <span style="display: none" itemprop="datePosted"><?php the_date(); ?></span>
    <span style="display: none" itemprop="validThrough"><?php echo get_the_date(); ?></span>
    <span style="display: none" itemprop="baseSalary" itemscope itemtype="http://schema.org/MonetaryAmount"><span style="display: none" itemprop="currency">USD</span><span style="display: none" itemprop="value" itemscope itemtype="http://schema.org/QuantitativeValue"><span style="display: none" itemprop="value">00.00</span><span style="display: none" itemprop="unitText">HOUR</span></span></span>
<div class="datePosted"><?php the_job_publish_date(); ?></div>
<h2 itemprop="title"><?php echo esc_html( get_the_title() ); ?></h2>
<span itemprop="hiringOrganization" itemscope itemtype="http://schema.org/Organization" class="hide"><span itemprop="name">STS Technincal Services</span></span>
    <?php if ( get_option( 'job_manager_hide_expired_content', 1 ) && 'expired' === $post->post_status ) : ?>
        <div class="job-manager-info"><?php _e( 'This listing has expired.', 'wp-job-manager' ); ?></div>
    <?php else : ?>
        <?php
            /**
             * single_job_listing_start hook
             *
             * @hooked job_listing_meta_display - 20
             * @hooked job_listing_company_display - 30
             */
            do_action( 'single_job_listing_start' );
        ?>
 
        <div class="job_description grey" itemprop="description">
            <?php wpjm_the_job_description(); ?>
            <!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_inline_share_toolbox_kv7w"></div>
        </div>
 
 
 
 
    <?php endif; ?>
</div>
</div>
</div>
</div>
 
<div id="applyemail" class="uk-modal">
    <div class="uk-modal-dialog">
        <a class="uk-modal-close uk-close"></a>
        <h3 class="editprofile">Apply via Email</h3>
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
 
    if ( $load_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
 
 * @since 1.0.0
 * @param string      $slug
 * @param string      $name (default: '').
 * @param string      $template_path (default: 'job_manager').
 * @param string|bool $default_path (default: '') False to not load a default.
 */
function get_job_manager_template_part( $slug, $name = '', $template_path = 'job_manager', $default_path = '' ) {
    $template = '';
 
    if ( $name ) {
        $template = locate_job_manager_template( "{$slug}-{$name}.php", $template_path, $default_path );
    }
 
    // If template file doesn't exist, look in yourtheme/slug.php and yourtheme/job_manager/slug.php.
    if ( ! $template ) {
        $template = locate_job_manager_template( "{$slug}.php", $template_path, $default_path );
    }
 
    if ( $template ) {
        load_template( $template, false );
    }
}
 
/**
 * Adds custom body classes.
 *
 * @since 1.16.0
 * @param  array $classes
 * @return array
 */
function job_manager_body_class( $classes ) {
    $classes   = (array) $classes;
    $classes[] = sanitize_title( wp_get_theme() );
 
    return array_unique( $classes );
}
 
add_filter( 'body_class', 'job_manager_body_class' );
 
/**
     */
    public function job_content( $content ) {
        global $post;
 
        if (
            ! is_singular( self::PT_LISTING ) ||
            ! in_the_loop() ||
            self::PT_LISTING !== $post->post_type ||
            ( post_password_required() && ! is_super_admin() )
        ) {
            return $content;
        }
 
        ob_start();
 
        $this->job_content_filter( false );
 
        do_action( 'job_content_start' );
 
        get_job_manager_template_part( 'content-single', self::PT_LISTING );
 
        do_action( 'job_content_end' );
 
        $this->job_content_filter( true );
 
        return apply_filters( 'job_manager_single_job_content', ob_get_clean(), $post );
    }
 
    /**
     * Generates the RSS feed for Job Listings.
     */
    public function job_feed() {
        global $job_manager_keyword;
 
        // phpcs:disable WordPress.Security.NonceVerification.Recommended -- Input used to filter public data in feed.
        $input_posts_per_page  = isset( $_GET['posts_per_page'] ) ? absint( $_GET['posts_per_page'] ) : 10;
        $input_search_location = isset( $_GET['search_location'] ) ? sanitize_text_field( wp_unslash( $_GET['search_location'] ) ) : false;
 
        if ( isset( $_GET['job_types'] ) ) {
            $sanitized_job_types = sanitize_text_field( wp_unslash( $_GET['job_types'] ) );
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } 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, $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;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a 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 `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
        }
        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 = $this->content_handle_no_teaser_block( $content );
        $content = apply_filters('the_content', ($content));
        if ( $len == -1 && $page == 0 ) {
            $this->___content = $content;
        }
        return $content;
    }
 
    /**
     * Handles for an circumstance with the Block editor where a "more" block has an option to
     * "Hide the excerpt on the full content page" which hides everything prior to the inserted
     * "more" block
     * @ticket #2218
     * @param string $content
     * @return string
     */
    protected function content_handle_no_teaser_block( $content ) {
        if ( (strpos($content, 'noTeaser:true') !== false || strpos($content, '"noTeaser":true') !== false) && strpos($content, '<!-- /wp:more -->') !== false) {
            $arr = explode('<!-- /wp:more -->', $content);
            return trim($arr[1]);
        }
        return $content;
     * "Hide the excerpt on the full content page" which hides everything prior to the inserted
     * "more" block
     * @ticket #2218
     * @param string $content
     * @return string
     */
    protected function content_handle_no_teaser_block( $content ) {
        if ( (strpos($content, 'noTeaser:true') !== false || strpos($content, '"noTeaser":true') !== false) && strpos($content, '<!-- /wp:more -->') !== false) {
            $arr = explode('<!-- /wp:more -->', $content);
            return trim($arr[1]);
        }
        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
     * OR
     * Published on {{ post.date('F jS') }} // Jan 12th
     * ```
     *
     * ```html
     * Published on January 12, 2015
     * OR
     * Published on Jan 12th
     * ```
     * @param string $date_format
     * @return string
     */
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            throw new RuntimeError(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\SandboxExtension')) {
            $this->env->getExtension('\Twig\Extension\SandboxExtension')->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([$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());
    public function block_content($context, array $blocks = [])
    {
        // line 35
        echo "
        
 
        ";
        // line 39
        echo "        ";
        if ( !call_user_func_array($this->env->getFunction('function')->getCallable(), ["post_password_required", $this->getAttribute(($context["post"] ?? null), "ID", [])])) {
            // line 40
            echo "
            ";
            // line 42
            echo "            <section class=\"entry-content\">
 
                ";
            // line 45
            echo "                ";
            echo $this->getAttribute(($context["post"] ?? null), "paged_content", []);
            echo "
 
                ";
            // line 47
            echo call_user_func_array($this->env->getFunction('function')->getCallable(), ["wp_link_pages", ["before" => "<div class=\"page-links\" itemprop=\"pagination\"><ul class=\"pagination-list\">", "after" => "</ul></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(), ["edit_post_link", __("Edit", "g5_helium"), "<span class=\"edit-link\">", "</span>"]);
            echo "
                ";
            // line 53
            echo "
                <!-- Go to www.addthis.com/dashboard to customize your tools --> <div class=\"addthis_inline_share_toolbox_kv7w addthis\"></div>
 
 
 
        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 (Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for \Twig\Error\LoaderError exceptions
                // see \Twig\Error\LoaderError
                if (-1 === $e->getTemplateLine()) {
                    $e->guess();
                }
 
                throw $e;
            } catch (\Exception $e) {
                $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
                $e->guess();
 
                throw $e;
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
 
        </section>
        ";
        // line 28
        echo "
<div class=\"g-container\">
<div class=\"uk-grid\" style=\"margin-top:50px;\">
<div class=\"uk-width-1-1 singlejob\">
<article class=\"thin post-type-";
        // line 32
        echo $this->getAttribute(($context["post"] ?? null), "post_type", []);
        echo " ";
        echo $this->getAttribute(($context["post"] ?? null), "class", []);
        echo "\" id=\"post-";
        echo $this->getAttribute(($context["post"] ?? null), "ID", []);
        echo "\">
 
    ";
        // line 34
        $this->displayBlock('content', $context, $blocks);
        // line 81
        echo "
</article>
</div>
</div>";
    }
 
    // line 34
    public function block_content($context, array $blocks = [])
    {
        // line 35
        echo "
        
 
        ";
        // line 39
        echo "        ";
        if ( !call_user_func_array($this->env->getFunction('function')->getCallable(), ["post_password_required", $this->getAttribute(($context["post"] ?? null), "ID", [])])) {
            // line 40
            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 = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        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) {
        $context["twigTemplate"] = "single.html.twig";
        // line 3
        $context["scope"] = "single";
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "single.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = [])
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate([0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"], "single.html.twig", 11)->display($context);
        // line 12
        echo "
            </section>
        </div> <!-- /content-wrapper -->
    </div>
 
";
    }
 
    public function getTemplateName()
    {
        return "single.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 (Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for \Twig\Error\LoaderError exceptions
                // see \Twig\Error\LoaderError
                if (-1 === $e->getTemplateLine()) {
                    $e->guess();
                }
 
                throw $e;
            } catch (\Exception $e) {
                $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
                $e->guess();
 
                throw $e;
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "startTimer", [0 => "render", 1 => "Rendering page"], "method");
        // line 2
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "setLayout", [], "method");
        // line 3
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "loadAtoms", [], "method");
        // line 4
        $context["segments"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "segments", [], "method");
        // line 6
        ob_start(function () { return ''; });
        // line 7
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "hasContent", [], "method")) {
            // line 8
            echo "        ";
            $this->displayBlock('content', $context, $blocks);
            // line 10
            echo "    ";
        }
        $context["content"] = ('' === $tmp = ob_get_clean()) ? '' : new 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"]) {
            // line 15
            echo "    ";
            if (($this->getAttribute($context["segment"], "type", []) == "offcanvas")) {
                // line 16
                $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;
            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 = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        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) {
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->blocks = [
            'page_head' => [$this, 'block_page_head'],
            'page_footer' => [$this, 'block_page_footer'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_page_head($context, array $blocks = [])
    {
        // 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 = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        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) {
        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 2
        $context["twigTemplate"] = "single.html.twig";
        // line 3
        $context["scope"] = "single";
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "single.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 5
    public function block_content($context, array $blocks = [])
    {
        // line 6
        echo "
    <div class=\"platform-content\">
        <div class=\"content-wrapper\">
            <section class=\"entry\">
 
                ";
        // line 11
        $this->loadTemplate([0 => (("partials/content-" . ($context["scope"] ?? null)) . ".html.twig"), 1 => "partials/content.html.twig"], "single.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 = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        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) {
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        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 = [])
    {
        try {
     * @internal
     */
    public function __construct(Environment $env, Template $template)
    {
        $this->env = $env;
        $this->template = $template;
    }
 
    /**
     * Renders the template.
     *
     * @param array $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     */
    public function render($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Displays the template.
     *
     * @param array $context An array of parameters to pass to the template
     */
    public function display($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        $this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Checks if a block is defined.
     *
     * @param string $name    The block name
     * @param array  $context An array of parameters to pass to the 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);
            $template = $twig->load($file);
            $output = $template->render($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);
        } else {
            if ( is_array($filenames) ) {
                $filenames = implode(", ", $filenames);
            }
            Helper::error_log( 'Error loading your template files: '.$filenames.'. Make sure one of these files exists.' );
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
        $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::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::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
     */
defined('ABSPATH') or die;
 
use Timber\Timber;
 
/*
 * The Template for displaying all single posts
 */
 
$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;
$context['wp_title'] .= ' - ' . $post->title();
 
Timber::render(['single-' . $post->ID . '.html.twig', 'single-' . $post->post_type . '.html.twig', 'single.html.twig'], $context);
 
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/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 __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /job/quality-assurance-manager-in-birmingham-uk-sts-aviation-services-hiring-now/
USER ststechnicaljobs
HOME /home/ststechnicaljobs
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /job/quality-assurance-manager-in-birmingham-uk-sts-aviation-services-hiring-now/
REMOTE_PORT 46464
SCRIPT_FILENAME /home/ststechnicaljobs/public_html/index.php
SERVER_ADMIN webmaster@ststechnicaljobs.com
CONTEXT_DOCUMENT_ROOT /home/ststechnicaljobs/public_html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/ststechnicaljobs/public_html
REMOTE_ADDR 18.97.14.80
SERVER_PORT 443
SERVER_ADDR 23.235.197.116
SERVER_NAME www.ststechnicaljobs.com
SERVER_SIGNATURE
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
HTTP_X_HTTPS 1
HTTP_CONNECTION Keep-Alive
HTTP_HOST www.ststechnicaljobs.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
proxy-nokeepalive 1
SSL_TLS_SNI www.ststechnicaljobs.com
HTTPS on
HTTP_AUTHORIZATION
SCRIPT_URI https://www.ststechnicaljobs.com/job/quality-assurance-manager-in-birmingham-uk-sts-aviation-services-hiring-now/
SCRIPT_URL /job/quality-assurance-manager-in-birmingham-uk-sts-aviation-services-hiring-now/
UNIQUE_ID Z1QDzwIs0YhlCRB_p_Vg8wAAAIw
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.ststechnicaljobs.com
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://www.ststechnicaljobs.com/job/quality-assurance-manager-in-birmingham-uk-sts-aviation-services-hiring-now/
REDIRECT_SCRIPT_URL /job/quality-assurance-manager-in-birmingham-uk-sts-aviation-services-hiring-now/
REDIRECT_UNIQUE_ID Z1QDzwIs0YhlCRB_p_Vg8wAAAIw
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1733559247.6634
REQUEST_TIME 1733559247
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler