PATH:
home
/
centosnipponia
/
public_html
/
BAK_doohannl
/
wp-content
/
themes
/
sydney-pro-ii
/
inc
/
elementor
<?php namespace Elementor; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Elementor icon list widget. * * Elementor widget that displays a bullet list with any chosen icons and texts. * * @since 1.0.0 */ class aThemes_Elementor_Dual_Heading extends Widget_Base { /** * Get widget name. * * Retrieve icon list widget name. * * @since 1.0.0 * @access public * * @return string Widget name. */ public function get_name() { return 'athemes-elementor-dual-heading'; } /** * Get widget title. * * Retrieve icon list widget title. * * @since 1.0.0 * @access public * * @return string Widget title. */ public function get_title() { return __( 'aThemes: Dual heading', 'sydney' ); } /** * Get widget icon. * * Retrieve icon list widget icon. * * @since 1.0.0 * @access public * * @return string Widget icon. */ public function get_icon() { return 'eicon-heading'; } /** * Get widget categories. * * Retrieve the list of categories the icon list widget belongs to. * * Used to determine where to display the widget in the editor. * * @since 1.0.0 * @access public * * @return array Widget categories. */ public function get_categories() { return [ 'sydney-elements' ]; } /** * Register icon list widget controls. * * Adds different input fields to allow the user to change and customize the widget settings. * * @since 1.0.0 * @access protected */ protected function register_controls() { $this->start_controls_section( 'section_food_menu', [ 'label' => __( 'Dual heading', 'sydney' ), ] ); $this->add_control( 'first_text', [ 'label' => __( 'First part', 'sydney' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'placeholder' => '', 'default' => __( 'Dual', 'sydney' ), ] ); $this->add_control( 'second_text', [ 'label' => __( 'Second part', 'sydney' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'placeholder' => '', 'default' => __( 'Heading', 'sydney' ), ] ); $this->add_control( 'title_tag', [ 'label' => __('HTML Tag', 'sydney'), 'type' => Controls_Manager::SELECT, 'default' => 'h2', 'options' => [ 'h1' => __('H1', 'sydney'), 'h2' => __('H2', 'sydney'), 'h3' => __('H3', 'sydney'), 'h4' => __('H4', 'sydney'), 'h5' => __('H5', 'sydney'), 'h6' => __('H6', 'sydney'), 'span' => __('Span', 'sydney'), 'p' => __('P', 'sydney'), 'div' => __('Div', 'sydney'), ], 'separator' => 'before', ] ); $this->add_control( 'block_display', [ 'label' => __('Display on separate lines', 'sydney'), 'type' => Controls_Manager::SWITCHER, 'label_on' => __('Yes', 'sydney'), 'label_off' => __('No', 'sydney'), 'return_value' => 'true', 'selectors_dictionary' => [ 'false' => 'inline', 'true' => 'block', ], 'default' => '', 'selectors' => [ '{{WRAPPER}} span' => 'display: {{VALUE}};', ], ] ); $this->add_control( 'link', [ 'label' => esc_html__( 'Link', 'sydney' ), 'type' => Controls_Manager::URL, 'dynamic' => [ 'active' => true, ], 'default' => [ 'url' => '', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'align', [ 'label' => esc_html__( 'Alignment', 'sydney' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'sydney' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'sydney' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'sydney' ), 'icon' => 'eicon-text-align-right', ], 'justify' => [ 'title' => esc_html__( 'Justified', 'sydney' ), 'icon' => 'eicon-text-align-justify', ], ], 'default' => '', 'selectors' => [ '{{WRAPPER}}' => 'text-align: {{VALUE}};', ], ] ); $this->end_controls_section(); //First part styles $this->start_controls_section( 'section_first_part_style', [ 'label' => __( 'First part', 'sydney' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'first_part_bg_color', [ 'label' => __( 'Background color', 'sydney' ), 'default' => '', 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .h-first-part' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'first_part_color', [ 'label' => __( 'Color', 'sydney' ), 'default' => '#c687ff', 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .h-first-part' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'first_part_typography', 'selector' => '{{WRAPPER}} .h-first-part', 'scheme' => Core\Schemes\Typography::TYPOGRAPHY_3, ] ); $this->end_controls_section(); //End first part styles //Second part styles $this->start_controls_section( 'section_second_part_style', [ 'label' => __( 'Second part', 'sydney' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'second_part_bg_color', [ 'label' => __( 'Background color', 'sydney' ), 'default' => '', 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .h-second-part' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'second_part_color', [ 'label' => __( 'Color', 'sydney' ), 'default' => '', 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .h-second-part' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'second_part_typography', 'selector' => '{{WRAPPER}} .h-second-part', 'scheme' => Core\Schemes\Typography::TYPOGRAPHY_3, ] ); $this->end_controls_section(); //End first part styles } /** * Render icon list widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.0 * @access protected */ protected function render() { $settings = $this->get_settings_for_display(); ?> <div class="athemes-ele-block-dual-heading"> <<?php echo esc_attr( $settings['title_tag'] ); ?> class="athemes-dual-heading"> <?php if ( ! empty( $settings['link']['url'] ) ) { $this->add_link_attributes( 'url', $settings['link'] ); echo '<a ' . $this->get_render_attribute_string( 'url' ) . '>'; } ?> <span class="h-first-part"><?php echo wp_kses_post( $settings['first_text'] ); ?></span> <span class="h-second-part"><?php echo wp_kses_post( $settings['second_text'] ); ?></span> <?php if ( ! empty( $settings['link']['url'] ) ) { echo '</a>'; } ?> </<?php echo esc_attr( $settings['title_tag'] ); ?>> </div> <?php } /** * Render icon list widget output in the editor. * * Written as a Backbone JavaScript template and used to generate the live preview. * * @since 1.0.0 * @access protected */ protected function content_template() { } } Plugin::instance()->widgets_manager->register_widget_type( new aThemes_Elementor_Dual_Heading() );
[+]
..
[-] block-animated-heading.php
[edit]
[-] block-contact-form7.php
[edit]
[-] block-dual-buttons.php
[edit]
[-] block-dual-heading.php
[edit]
[-] block-food-menu.php
[edit]
[-] block-hotspots.php
[edit]
[-] block-ninjaforms.php
[edit]
[-] block-wpforms.php
[edit]
[-] .htaccess.disabled
[edit]