Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/wp-content/plugins/foxiz-core/elementor/newsletter-3.php
Arrière
<?php namespace foxizElementor\Widgets; use Elementor\Widget_Base; use Elementor\Controls_Manager; use foxizElementorControl\Options; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class * @package foxizElementor\Widgets */ class Newsletter_3 extends Widget_Base { public function get_name() { return 'foxiz-newsletter-3'; } public function get_title() { return esc_html__( 'Foxiz - Sidebar Newsletter', 'foxiz-core' ); } public function get_icon() { return 'eicon-favorite'; } public function get_categories() { return array( 'foxiz' ); } protected function register_controls() { $this->start_controls_section( 'general', array( 'label' => esc_html__( 'General', 'foxiz-core' ), 'tab' => Controls_Manager::TAB_CONTENT, ) ); $this->add_control( 'layout_info', array( 'type' => Controls_Manager::RAW_HTML, 'raw' => esc_html__( 'This layout is best suited for putting to a sidebar.', 'foxiz-core' ), 'content_classes' => 'elementor-panel-alert elementor-panel-alert-success', ) ); $this->add_control( 'title', array( 'label' => esc_html__( 'Heading', 'foxiz-core' ), 'description' => esc_html__( 'Input a heading for the newsletter box.', 'foxiz-core' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Subscribe Newsletter', 'foxiz-core' ), ) ); $this->add_control( 'description', array( 'label' => esc_html__( 'Description', 'foxiz-core' ), 'type' => Controls_Manager::TEXTAREA, 'rows' => 2, 'description' => esc_html__( 'Input a description for the newsletter box.', 'foxiz-core' ), 'default' => esc_html__( 'Subscribe to our newsletter to get our newest articles instantly!', 'foxiz-core' ), ) ); $this->add_control( 'shortcode', array( 'label' => esc_html__( 'Form Shortcode', 'foxiz-core' ), 'type' => Controls_Manager::TEXT, 'description' => esc_html__( 'Input your newsletter form shortcode.', 'foxiz-core' ), 'placeholder' => esc_html__( '[mc4wp_form]', 'foxiz-core' ), 'default' => '[mc4wp_form]' ) ); $this->add_control( 'featured', array( 'label' => esc_html__( 'Featured Image', 'foxiz-core' ), 'description' => esc_html__( 'Input a featured image attachment URL for the newsletter box.', 'foxiz-core' ), 'type' => Controls_Manager::MEDIA ) ); $this->add_control( 'dark_featured', array( 'label' => esc_html__( 'Dark Mode - Featured Image', 'foxiz-core' ), 'description' => esc_html__( 'Input a featured attachment URL for the newsletter box in the dark mode.', 'foxiz-core' ), 'type' => Controls_Manager::MEDIA ) ); $this->end_controls_section(); $this->start_controls_section( 'design', array( 'label' => esc_html__( 'Block Design', 'foxiz-core' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); $this->add_control( 'title_tag', array( 'label' => esc_html__( 'Title HTML Tag', 'foxiz-core' ), 'type' => Controls_Manager::SELECT, 'description' => Options::heading_html_description(), 'options' => Options::heading_html_dropdown(), 'default' => '0', ) ); $this->add_responsive_control( 'title_tag_size', array( 'label' => esc_html__( 'Title Font Size', 'foxiz-core' ), 'type' => Controls_Manager::NUMBER, 'description' => Options::title_size_description(), 'devices' => array( 'desktop', 'tablet', 'mobile' ), 'selectors' => array( '{{WRAPPER}} .newsletter-title' => 'font-size: {{VALUE}}px;' ), ) ); $this->add_responsive_control( 'description_size', array( 'label' => esc_html__( 'Description Font Size', 'foxiz-core' ), 'type' => Controls_Manager::NUMBER, 'description' => Options::title_size_description(), 'devices' => array( 'desktop', 'tablet', 'mobile' ), 'selectors' => array( '{{WRAPPER}} .newsletter-description' => 'font-size: {{VALUE}}px;' ), ) ); $this->add_control( 'feat_size', array( 'label' => esc_html__( 'Featured Image Width', 'foxiz-core' ), 'description' => esc_html__( 'Input a max width value (in px) for the featured image.', 'foxiz-core' ), 'type' => Controls_Manager::NUMBER, 'selectors' => array( '{{WRAPPER}} .newsletter-sb-featured img' => 'max-width: {{VALUE}}px;' ) ) ); $this->end_controls_section(); $this->start_controls_section( 'color_section', array( 'label' => esc_html__( 'Text Color Scheme', 'foxiz-core' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); $this->add_control( 'color_scheme_info', array( 'type' => Controls_Manager::RAW_HTML, 'raw' => Options::color_scheme_info_description(), 'content_classes' => 'elementor-panel-alert elementor-panel-alert-success', ) ); $this->add_control( 'color_scheme', array( 'label' => esc_html__( 'Text Color Scheme', 'foxiz-core' ), 'type' => Controls_Manager::SELECT, 'description' => Options::color_scheme_description(), 'options' => array( '0' => esc_html__( 'Default (Dark Text)', 'foxiz-core' ), '1' => esc_html__( 'Light Text', 'foxiz-core' ) ), 'default' => '0', ) ); $this->end_controls_section(); $this->start_controls_section( 'font_section', array( 'label' => esc_html__( 'Custom Font', 'foxiz-core' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); $this->add_control( 'custom_font_info', array( 'type' => Controls_Manager::RAW_HTML, 'raw' => Options::custom_font_info_description(), 'content_classes' => 'elementor-panel-alert elementor-panel-alert-success', ) ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), array( 'label' => esc_html__( 'Title Font', 'foxiz-core' ), 'name' => 'title_font', 'selector' => '{{WRAPPER}} .newsletter-title', ) ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), array( 'label' => esc_html__( 'Description Font', 'foxiz-core' ), 'name' => 'description_font', 'selector' => '{{WRAPPER}} .newsletter-description', ) ); $this->end_controls_section(); } /** * render layout */ protected function render() { if ( function_exists( 'foxiz_get_sidebar_newsletter' ) ) { $settings = $this->get_settings(); $settings['uuid'] = 'uid_' . $this->get_id(); echo \foxiz_get_sidebar_newsletter( $settings ); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.01 |
proxy
|
phpinfo
|
Réglages