PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
woocommerce
/
widgets
<?php namespace ElementorPro\Modules\Woocommerce\Widgets; use Elementor\Controls_Manager; use Elementor\Group_Control_Typography; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Product_Additional_Information extends Base_Widget { public function get_name() { return 'woocommerce-product-additional-information'; } public function get_title() { return esc_html__( 'Additional Information', 'elementor-pro' ); } public function get_icon() { return ' eicon-product-info'; } protected function register_controls() { $this->start_controls_section( 'section_additional_info_style', [ 'label' => esc_html__( 'General', 'elementor-pro' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'show_heading', [ 'label' => esc_html__( 'Heading', 'elementor-pro' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'elementor-pro' ), 'label_off' => esc_html__( 'Hide', 'elementor-pro' ), 'render_type' => 'ui', 'return_value' => 'yes', 'default' => 'yes', 'prefix_class' => 'elementor-show-heading-', ] ); $this->add_control( 'heading_color', [ 'label' => esc_html__( 'Color', 'elementor-pro' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '.woocommerce {{WRAPPER}} h2' => 'color: {{VALUE}}', ], 'condition' => [ 'show_heading!' => '', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'heading_typography', 'label' => esc_html__( 'Typography', 'elementor-pro' ), 'selector' => '.woocommerce {{WRAPPER}} h2', 'condition' => [ 'show_heading!' => '', ], ] ); $this->add_control( 'content_color', [ 'label' => esc_html__( 'Color', 'elementor-pro' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '.woocommerce {{WRAPPER}} .shop_attributes' => 'color: {{VALUE}}', ], 'separator' => 'before', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'content_typography', 'label' => esc_html__( 'Typography', 'elementor-pro' ), 'selector' => '.woocommerce {{WRAPPER}} .shop_attributes', ] ); $this->end_controls_section(); } protected function render() { global $product; $product = wc_get_product(); if ( empty( $product ) ) { return; } wc_get_template( 'single-product/tabs/additional-information.php' ); } public function render_plain_content() {} public function get_group_name() { return 'woocommerce'; } }
[-] archive-products-deprecated.php
[edit]
[-] menu-cart.php
[edit]
[-] elements.php
[edit]
[-] product-stock.php
[edit]
[-] notices.php
[edit]
[-] add-to-cart.php
[edit]
[-] product-rating.php
[edit]
[-] product-content.php
[edit]
[-] product-add-to-cart.php
[edit]
[-] product-additional-information.php
[edit]
[+]
..
[-] purchase-summary.php
[edit]
[-] product-meta.php
[edit]
[-] product-upsell.php
[edit]
[-] products-base.php
[edit]
[-] checkout.php
[edit]
[-] breadcrumb.php
[edit]
[-] product-related.php
[edit]
[-] categories.php
[edit]
[-] cart.php
[edit]
[-] products.php
[edit]
[-] product-images.php
[edit]
[-] single-elements.php
[edit]
[-] product-data-tabs.php
[edit]
[-] product-title.php
[edit]
[-] category-image.php
[edit]
[-] my-account.php
[edit]
[-] product-short-description.php
[edit]
[-] base-widget.php
[edit]
[-] product-price.php
[edit]
[-] products-deprecated.php
[edit]
[-] archive-description.php
[edit]
[-] archive-products.php
[edit]