PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
besa
/
inc
/
vendors
/
elementor
/
abstract
<?php if (!defined('ABSPATH') || function_exists('Besa_Elementor_Widget_Image') ) { exit; // Exit if accessed directly. } use Elementor\Widget_Image; abstract class Besa_Elementor_Widget_Image extends Widget_Image { public function get_name_template() { return str_replace('besa-', '', $this->get_name()); } public function get_categories() { return [ 'besa-elements' ]; } public function get_name() { return 'besa-base'; } /** * Get view template * * @param string $tpl_name */ protected function get_view_template( $tpl_slug, $tpl_name, $settings = [] ) { $located = ''; $templates = []; if ( ! $settings ) { $settings = $this->get_settings_for_display(); } if ( !empty($tpl_name) ) { $tpl_name = trim( str_replace( '.php', '', $tpl_name ), DIRECTORY_SEPARATOR ); $templates[] = 'elementor_templates/' . $tpl_slug . '-' . $tpl_name . '.php'; $templates[] = 'elementor_templates/' . $tpl_slug . '/' . $tpl_name . '.php'; } $templates[] = 'elementor_templates/' . $tpl_slug . '.php'; foreach ( $templates as $template ) { if ( file_exists( BESA_THEMEROOT . '/' . $template ) ) { $located = BESA_THEMEROOT . '/' . $template; break; } else { $located = false; } } if ( $located ) { include $located; } else { echo sprintf( __( 'Failed to load template with slug "%s" and name "%s".', 'besa' ), $tpl_slug, $tpl_name ); } } protected function render() { $settings = $this->get_settings_for_display(); $this->add_render_attribute('wrapper', 'class', 'tbay-element tbay-element-'. $this->get_name_template() ); $this->get_view_template($this->get_name_template(), '', $settings); } }
[+]
..
[-] image.php
[edit]
[-] .abstract.php
[edit]
[-] responsive.php
[edit]
[-] base.php
[edit]
[-] carousel.php
[edit]