__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace ElementorPro\Modules\Woocommerce\Widgets;
use Elementor\Widget_Heading;
use ElementorPro\Base\Base_Widget_Trait;
use ElementorPro\Plugin;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Product_Title extends Widget_Heading {
use Base_Widget_Trait;
public function get_name() {
return 'woocommerce-product-title';
}
public function get_title() {
return esc_html__( 'Product Title', 'elementor-pro' );
}
public function get_icon() {
return 'eicon-product-title';
}
public function get_categories() {
return [ 'woocommerce-elements-single' ];
}
public function get_keywords() {
return [ 'woocommerce', 'shop', 'store', 'title', 'heading', 'product' ];
}
public function has_widget_inner_wrapper(): bool {
return ! Plugin::elementor()->experiments->is_feature_active( 'e_optimized_markup' );
}
protected function register_controls() {
parent::register_controls();
$this->update_control(
'title',
[
'dynamic' => [
'default' => Plugin::elementor()->dynamic_tags->tag_data_to_tag_text( null, 'woocommerce-product-title-tag' ),
],
],
[
'recursive' => true,
]
);
$this->update_control(
'header_size',
[
'default' => 'h1',
]
);
}
protected function get_html_wrapper_class() {
return parent::get_html_wrapper_class() . ' elementor-page-title elementor-widget-' . parent::get_name();
}
protected function render() {
$this->add_render_attribute( 'title', 'class', [ 'product_title', 'entry-title' ] );
parent::render();
}
/**
* Render Woocommerce Product Title output in the editor.
*
* Written as a Backbone JavaScript template and used to generate the live preview.
*
* @since 2.9.0
* @access protected
*/
protected function content_template() {
?>
<# view.addRenderAttribute( 'title', 'class', [ 'product_title', 'entry-title' ] ); #>
<?php
parent::content_template();
}
public function render_plain_content() {}
public function get_group_name() {
return 'woocommerce';
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| add-to-cart.php | File | 8.32 KB | 0664 |
|
| archive-description.php | File | 3.02 KB | 0664 |
|
| archive-products-deprecated.php | File | 3.61 KB | 0664 |
|
| archive-products.php | File | 4.57 KB | 0664 |
|
| base-widget.php | File | 4.37 KB | 0664 |
|
| breadcrumb.php | File | 3.11 KB | 0664 |
|
| cart.php | File | 72.49 KB | 0664 |
|
| categories.php | File | 10.56 KB | 0664 |
|
| category-image.php | File | 1.36 KB | 0664 |
|
| checkout.php | File | 120.99 KB | 0664 |
|
| elements.php | File | 3.92 KB | 0664 |
|
| menu-cart.php | File | 58.3 KB | 0664 |
|
| my-account.php | File | 67.54 KB | 0664 |
|
| notices.php | File | 3.52 KB | 0664 |
|
| product-add-to-cart.php | File | 21.17 KB | 0664 |
|
| product-additional-information.php | File | 2.88 KB | 0664 |
|
| product-content.php | File | 804 B | 0664 |
|
| product-data-tabs.php | File | 7.99 KB | 0664 |
|
| product-images.php | File | 6.15 KB | 0664 |
|
| product-meta.php | File | 13.31 KB | 0664 |
|
| product-price.php | File | 4.89 KB | 0664 |
|
| product-rating.php | File | 4.78 KB | 0664 |
|
| product-related.php | File | 7.29 KB | 0664 |
|
| product-short-description.php | File | 3.08 KB | 0664 |
|
| product-stock.php | File | 2.12 KB | 0664 |
|
| product-title.php | File | 2 KB | 0664 |
|
| product-upsell.php | File | 6.45 KB | 0664 |
|
| products-base.php | File | 28.36 KB | 0664 |
|
| products-deprecated.php | File | 6.97 KB | 0664 |
|
| products.php | File | 10.17 KB | 0664 |
|
| purchase-summary.php | File | 42.61 KB | 0664 |
|
| single-elements.php | File | 4.12 KB | 0664 |
|