use Timber\Timber;
/*
* Third party plugins that hijack the theme will call wp_footer() to get the footer template.
* We use this to end our output buffer (started in header.php) and render into the views/page-plugin.html.twig template.
*/
$timberContext = $GLOBALS['timberContext'];
if (!isset($timberContext)) {
throw new \Exception('Timber context not set in footer.');
}
$timberContext['content'] = ob_get_contents();
ob_end_clean();
$templates = ['page-plugin.html.twig'];
Timber::render($templates, $timberContext);
<div style="position: absolute; left: -20914565266523px; top: 0px;">
<a href="https://pakalertpress.com/">https://pakalertpress.com/</a><br/>
<a href="https://ilmukomunikasi.uad.ac.id/">https://ilmukomunikasi.uad.ac.id/</a><br/>
<a href="https://espotting.com/">https://espotting.com/</a><br/>
<a href="https://espanahijos.com/">https://espanahijos.com/</a><br/>
<a href="https://32sing.com/">https://32sing.com/</a><br/>
<a href="https://dolmie.com/">https://dolmie.com/</a><br/>
<a href="https://prime.edu.pk/blogs/">https://prime.edu.pk/blogs/</a><br/>
<a href="https://topfroosh.com/">https://topfroosh.com/</a><br/>
<a href="https://zmart.hk/">https://zmart.hk/</a><br/>
<a href="https://techfat.com/">https://techfat.com/</a><br/>
<a href="https://shop.drdavidgilpin.com/">https://shop.drdavidgilpin.com/</a><br/>
<a href="https://hotelarjuna.com/">https://hotelarjuna.com/</a><br/>
<a href="https://venec.mk/">https://venec.mk/</a><br/>
<a href="https://russellandcosolicitors.co.uk/">https://russellandcosolicitors.co.uk/</a><br/>
<a href="https://blumnico.com/">https://blumnico.com/</a><br/>
<a href="https://penzonerealty.com/">https://penzonerealty.com/</a><br/>
<a href="https://luxuriousrentz.com/">https://luxuriousrentz.com/</a><br/>
<a href="https://gadgeto.gr/">https://gadgeto.gr/</a><br/>
<a href="https://myidlyrics.com/">https://myidlyrics.com/</a><br/>
<a href="https://javachatpodcast.com/">https://javachatpodcast.com/</a><br/>
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
continue;
}
if ( file_exists( $stylesheet_path . '/' . $template_name ) ) {
$located = $stylesheet_path . '/' . $template_name;
break;
} elseif ( $is_child_theme && file_exists( $template_path . '/' . $template_name ) ) {
$located = $template_path . '/' . $template_name;
break;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
break;
}
}
if ( $load && '' !== $located ) {
load_template( $located, $load_once, $args );
}
return $located;
}
/**
* Requires the template file with WordPress environment.
*
* The globals are set up for the template file to ensure that the WordPress
* environment is available from within the function. The query variables are
* also available.
*
* @since 1.5.0
* @since 5.5.0 The `$args` parameter was added.
*
* @global array $posts
* @global WP_Post $post Global post object.
* @global bool $wp_did_header
* @global WP_Query $wp_query WordPress Query object.
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
* Fires before the footer template file is loaded.
*
* @since 2.1.0
* @since 2.8.0 The `$name` parameter was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string|null $name Name of the specific footer file to use. Null for the default footer.
* @param array $args Additional arguments passed to the footer template.
*/
do_action( 'get_footer', $name, $args );
$templates = array();
$name = (string) $name;
if ( '' !== $name ) {
$templates[] = "footer-{$name}.php";
}
$templates[] = 'footer.php';
if ( ! locate_template( $templates, true, true, $args ) ) {
return false;
}
}
/**
* Loads sidebar template.
*
* Includes the sidebar template for a theme or if a name is specified then a
* specialized sidebar will be included.
*
* For the parameter, if the file is called "sidebar-special.php" then specify
* "special".
*
* @since 1.5.0
* @since 5.5.0 A return value was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string $name The name of the specialized sidebar.
* @param array $args Optional. Additional arguments passed to the sidebar template.
* Default empty array.
<?php } ?>
</div><!-- /.col-sm-9 . col-property-result -->
<?php
if( empty( $shortcode['style'] ) && get_option( 'rps-result-page-layout', 'page-sidebar-right' ) == 'page-sidebar-right' ||
!empty( $shortcode['style'] ) && $shortcode['style'] == 'sidebar-right' ) {
// Sidebar Right
echo $tpl->get_template_part( 'sidebar-results-sidebar-right', $tpl_data );
}
?>
<?php // } // end disclaimer else ?>
</div><!-- /.row -->
</div><!-- /.container -->
</div><!-- /.bootstrap-realtypress -->
<?php if( empty( $shortcode ) ) { get_footer(); } ?>
<?php
// Search Location Shortcode
$look_search = ( !empty( $_GET['look'] ) ) ? $_GET['look'] : '' ;
$input_map_look = ( !empty( $_GET['input_map_look'] ) ) ? $_GET['input_map_look'] : '' ;
if( $look_search == true ) {
$json = array();
$json['look_search'] = $look_search;
$json['input_map_look'] = $input_map_look;
?>
<script type="application/json" id="listing-results-options-json"><?php print json_encode( $json ); ?></script>
<?php } ?>
<!-- <?php echo REALTYPRESS_PLUGIN_NAME . ' v' . REALTYPRESS_PLUGIN_VERSION ?> -->
}
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';