Files
carpseeds.pl/wp-content/plugins/jet-woo-builder/includes/widgets/single-product/jet-woo-builder-single-sharing.php
2024-07-15 11:28:08 +02:00

70 lines
1.5 KiB
PHP

<?php
/**
* Class: Jet_Woo_Builder_Single_Sharing
* Name: Single Sharing
* Slug: jet-single-sharing
*/
namespace Elementor;
use Elementor\Controls_Manager;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Box_Shadow;
use Elementor\Group_Control_Typography;
use Elementor\Repeater;
use Elementor\Scheme_Color;
use Elementor\Scheme_Typography;
use Elementor\Widget_Base;
use Elementor\Utils;
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
class Jet_Woo_Builder_Single_Sharing extends Jet_Woo_Builder_Base {
public function get_name() {
return 'jet-single-sharing';
}
public function get_title() {
return esc_html__( 'Single Sharing', 'jet-woo-builder' );
}
public function get_icon() {
return 'jetwoobuilder-icon-12';
}
public function get_script_depends() {
return array();
}
public function get_jet_help_url() {
return 'https://crocoblock.com/knowledge-base/articles/jetwoobuilder-how-to-create-and-set-a-single-product-page-template/';
}
public function get_categories() {
return array( 'jet-woo-builder' );
}
public function show_in_panel() {
return jet_woo_builder()->documents->is_document_type( 'single' );
}
protected function _register_controls() {
}
protected function render() {
$this->__context = 'render';
if ( true === $this->__set_editor_product() ) {
$this->__open_wrap();
include $this->__get_global_template( 'index' );
$this->__close_wrap();
$this->__reset_editor_product();
}
}
}