| Server IP : 87.98.154.146 / Your IP : 216.73.216.165 Web Server : Apache System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : ohklomafyi ( 52085) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/ohklomafyi/www/wp-content/plugins/templately/includes/Builder/Types/ |
Upload File : |
<?php
namespace Templately\Builder\Types;
use Elementor\Plugin;
abstract class ThemeTemplate extends BaseTemplate {
public function get_location() {
return $this->get_property( 'location' );
}
public function print_content() {
if ( $this->is_elementor_template() && class_exists( 'Elementor\Plugin' ) ) {
$plugin = Plugin::$instance;
if ( $plugin->preview->is_preview_mode( $this->get_main_id() ) ) {
// PHPCS - the method builder_wrapper is safe.
echo $plugin->preview->builder_wrapper( '' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
} else {
// PHPCS - the method get_content is safe.
echo $this->get_content(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
return;
}
$content = $this->get_content();
echo do_blocks( $content ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
if(function_exists('wp_script_modules')){
add_action( 'wp_footer', array( wp_script_modules(), 'print_import_map' ) );
add_action( 'wp_footer', array( wp_script_modules(), 'print_enqueued_script_modules' ) );
add_action( 'wp_footer', array( wp_script_modules(), 'print_script_module_preloads' ) );
}
}
}