Editing reland-core/include/elementor/hero-banner.php (active)
start_controls_section(
'tp_layout',
[
'label' => esc_html__('Design Layout', 'tpcore'),
]
);
$this->add_control(
'tg_design_style',
[
'label' => esc_html__('Select Layout', 'tpcore'),
'type' => Controls_Manager::SELECT,
'options' => [
'layout-1' => esc_html__('Layout 1', 'tpcore'),
'layout-2' => esc_html__('Layout 2', 'tpcore'),
'layout-3' => esc_html__('Layout 3', 'tpcore'),
'layout-4' => esc_html__('Layout 4', 'tpcore'),
'layout-5' => esc_html__('Layout 5', 'tpcore'),
'layout-6' => esc_html__('Layout 6', 'tpcore'),
'layout-7' => esc_html__('Layout 7', 'tpcore'),
'layout-8' => esc_html__('Layout 8', 'tpcore'),
],
'default' => 'layout-1',
]
);
$this->end_controls_section();
// _tg_slider
$this->start_controls_section(
'_tg_slider_section',
[
'label' => esc_html__('Slider Area', 'tpcore'),
'condition' => [
'tg_design_style' => 'layout-1'
]
]
);
$repeater = new Repeater();
$repeater->add_control(
'tg_slider_bg',
[
'type' => Controls_Manager::MEDIA,
'label' => __( 'Choose Background', 'tpcore' ),
'default' => [
'url' => Utils::get_placeholder_image_src(),
],
'dynamic' => [
'active' => true,
]
]
);
$repeater->add_control(
'tg_slider_bg2',
[
'type' => Controls_Manager::MEDIA,
'label' => __( 'Choose Right Image', 'tpcore' ),
'default' => [
'url' => Utils::get_placeholder_image_src(),
],
'dynamic' => [
'active' => true,
]
]
);
$repeater->add_group_control(
Group_Control_Image_Size::get_type(),
[
'name' => 'tg_slider_bg_size',
'default' => 'full',
'exclude' => [
'custom'
]
]
);
$repeater->add_control(
'tg_slider_title_show',
[
'label' => esc_html__( 'Section Title & Content', 'tpcore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'tpcore' ),
'label_off' => esc_html__( 'Hide', 'tpcore' ),
'return_value' => 'yes',
'default' => 'yes',
]
);
$repeater->add_control(
'tg_slider_title',
[
'label' => esc_html__('Title', 'tpcore'),
'type' => Controls_Manager::TEXT,
'default' => esc_html__('New future', 'tpcore'),
'placeholder' => esc_html__('Type Heading Text', 'tpcore'),
'label_block' => true,
]
);
$repeater->add_control(
'tg_slider_title_tag',
[
'label' => esc_html__('Title HTML Tag', 'tpcore'),
'type' => Controls_Manager::CHOOSE,
'options' => [
'h1' => [
'title' => esc_html__('H1', 'tpcore'),
'icon' => 'eicon-editor-h1'
],
'h2' => [
'title' => esc_html__('H2', 'tpcore'),
'icon' => 'eicon-editor-h2'
],
'h3' => [
'title' => esc_html__('H3', 'tpcore'),
'icon' => 'eicon-editor-h3'
],
'h4' => [
'title' => esc_html__('H4', 'tpcore'),
'icon' => 'eicon-editor-h4'
],
'h5' => [
'title' => esc_html__('H5', 'tpcore'),
'icon' => 'eicon-editor-h5'
],
'h6' => [
'title' => esc_html__('H6', 'tpcore'),
'icon' => 'eicon-editor-h6'
]
],
'default' => 'h2',
'toggle' => false,
]
);
$repeater->add_control(
'tg_slider_description',
[
'label' => esc_html__('Description', 'tpcore'),
'description' => tp_get_allowed_html_desc( 'intermediate' ),
'type' => Controls_Manager::TEXTAREA,
'default' => esc_html__('Dictum varius duis at consectetur lorem donec massa sapien faucibus. Tincidunt arcu non sodales neque sodales ut etiam sit amet', 'tpcore'),
'placeholder' => esc_html__('Type section description here', 'tpcore'),
]
);
$repeater->add_control(
'tg_slider_btn_show',
[
'label' => esc_html__( 'Show Button', 'tpcore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'tpcore' ),
'label_off' => esc_html__( 'Hide', 'tpcore' ),
'return_value' => 'yes',
'default' => 'yes',
]
);
$repeater->add_control(
'tg_slider_btn_text',
[
'label' => esc_html__('Button Text', 'tpcore'),
'type' => Controls_Manager::TEXT,
'default' => esc_html__('learn more', 'tpcore'),
'title' => esc_html__('Enter button text', 'tpcore'),
'label_block' => true,
'condition' => [
'tg_slider_btn_show' => 'yes'
],
]
);
$repeater->add_control(
'tg_slider_btn_link_type',
[
'label' => esc_html__('Button Link Type', 'tpcore'),
'type' => Controls_Manager::SELECT,
'options' => [
'1' => 'Custom Link',
'2' => 'Internal Page',
],
'default' => '1',
'label_block' => true,
'condition' => [
'tg_slider_btn_show' => 'yes'
],
]
);
$repeater->add_control(
'tg_slider_btn_link',
[
'label' => esc_html__('Button link', 'tpcore'),
'type' => Controls_Manager::URL,
'dynamic' => [
'active' => true,
],
'placeholder' => esc_html__('https://your-link.com', 'tpcore'),
'show_external' => false,
'default' => [
'url' => '#',
'is_external' => true,
'nofollow' => true,
'custom_attributes' => '',
],
'condition' => [
'tg_slider_btn_link_type' => '1',
'tg_slider_btn_show' => 'yes'
],
'label_block' => true,
]
);
$repeater->add_control(
'tg_slider_btn_page_link',
[
'label' => esc_html__('Select Button Page', 'tpcore'),
'type' => Controls_Manager::SELECT2,
'label_block' => true,
'options' => tp_get_all_pages(),
'condition' => [
'tg_slider_btn_link_type' => '2',
'tg_slider_btn_show' => 'yes'
]
]
);
$this->add_control(
'tg_slider_items',
[
'label' => esc_html__( 'Slider Lists', 'tpcore' ),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'default' => [
[
'tg_slider_title' => esc_html__( 'New future', 'tpcore' ),
],
[
'tg_slider_title' => esc_html__( 'Ready Home', 'tpcore' ),
],
],
]
);
$this->end_controls_section();
// _tg_image
$this->start_controls_section(
'_tg_bg_section',
[
'label' => esc_html__('Section Background', 'tpcore'),
'condition' => [
'tg_design_style!' => ['layout-1', 'layout-3', 'layout-6', 'layout-8'],
]
]
);
$this->add_control(
'tg_bg',
[
'label' => esc_html__( 'Choose Background Image', 'tpcore' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->add_group_control(
Group_Control_Image_Size::get_type(),
[
'name' => 'tg_bg_size',
'default' => 'full',
'exclude' => [
'custom'
]
]
);
$this->end_controls_section();
// tg_section_title
$this->start_controls_section(
'tg_section_title',
[
'label' => esc_html__('Title & Content', 'tpcore'),
'condition' => [
'tg_design_style!' => ['layout-1', 'layout-8'],
]
]
);
$this->add_control(
'tg_section_title_show',
[
'label' => esc_html__( 'Section Title & Content', 'tpcore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'tpcore' ),
'label_off' => esc_html__( 'Hide', 'tpcore' ),
'return_value' => 'yes',
'default' => 'yes',
]
);
$this->add_control(
'tg_title',
[
'label' => esc_html__('Title', 'tpcore'),
'description' => tp_get_allowed_html_desc( 'intermediate' ),
'type' => Controls_Manager::TEXTAREA,
'default' => esc_html__('Responsible leadership from how we build to how we work', 'tpcore'),
'placeholder' => esc_html__('Type Heading Text', 'tpcore'),
'label_block' => true,
]
);
$this->add_control(
'tg_description',
[
'label' => esc_html__('Description', 'tpcore'),
'description' => tp_get_allowed_html_desc( 'intermediate' ),
'type' => Controls_Manager::TEXTAREA,
'default' => esc_html__('Dictum varius duis at consectetur lorem donec massa sapien faucibus. Tincidunt arcu non sodales neque sodales ut etiam sit amet', 'tpcore'),
'placeholder' => esc_html__('Type section description here', 'tpcore'),
'condition' => [
'tg_design_style!' => 'layout-5',
]
]
);
$this->add_control(
'tg_title_tag',
[
'label' => esc_html__('Title HTML Tag', 'tpcore'),
'type' => Controls_Manager::CHOOSE,
'options' => [
'h1' => [
'title' => esc_html__('H1', 'tpcore'),
'icon' => 'eicon-editor-h1'
],
'h2' => [
'title' => esc_html__('H2', 'tpcore'),
'icon' => 'eicon-editor-h2'
],
'h3' => [
'title' => esc_html__('H3', 'tpcore'),
'icon' => 'eicon-editor-h3'
],
'h4' => [
'title' => esc_html__('H4', 'tpcore'),
'icon' => 'eicon-editor-h4'
],
'h5' => [
'title' => esc_html__('H5', 'tpcore'),
'icon' => 'eicon-editor-h5'
],
'h6' => [
'title' => esc_html__('H6', 'tpcore'),
'icon' => 'eicon-editor-h6'
]
],
'default' => 'h2',
'toggle' => false,
]
);
$this->add_responsive_control(
'tg_align',
[
'label' => esc_html__('Alignment', 'tpcore'),
'type' => Controls_Manager::CHOOSE,
'options' => [
'text-left' => [
'title' => esc_html__('Left', 'tpcore'),
'icon' => 'eicon-text-align-left',
],
'text-center' => [
'title' => esc_html__('Center', 'tpcore'),
'icon' => 'eicon-text-align-center',
],
'text-right' => [
'title' => esc_html__('Right', 'tpcore'),
'icon' => 'eicon-text-align-right',
],
],
'default' => 'left',
'toggle' => false,
]
);
$this->end_controls_section();
// tg_btn_button_group
$this->start_controls_section(
'tg_btn_button_group',
[
'label' => esc_html__('Button', 'tpcore'),
'condition' => [
'tg_design_style!' => ['layout-1', 'layout-8'],
]
]
);
$this->add_control(
'tg_btn_show',
[
'label' => esc_html__( 'Show Button', 'tpcore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'tpcore' ),
'label_off' => esc_html__( 'Hide', 'tpcore' ),
'return_value' => 'yes',
'default' => 'yes',
]
);
$this->add_control(
'tg_btn_text',
[
'label' => esc_html__('Button Text', 'tpcore'),
'type' => Controls_Manager::TEXT,
'default' => esc_html__('Learn More', 'tpcore'),
'title' => esc_html__('Enter button text', 'tpcore'),
'label_block' => true,
'condition' => [
'tg_btn_show' => 'yes'
],
]
);
$this->add_control(
'tg_btn_link_type',
[
'label' => esc_html__('Button Link Type', 'tpcore'),
'type' => Controls_Manager::SELECT,
'options' => [
'1' => 'Custom Link',
'2' => 'Internal Page',
],
'default' => '1',
'label_block' => true,
'condition' => [
'tg_btn_show' => 'yes'
],
]
);
$this->add_control(
'tg_btn_link',
[
'label' => esc_html__('Button link', 'tpcore'),
'type' => Controls_Manager::URL,
'dynamic' => [
'active' => true,
],
'placeholder' => esc_html__('https://your-link.com', 'tpcore'),
'show_external' => false,
'default' => [
'url' => '#',
'is_external' => true,
'nofollow' => true,
'custom_attributes' => '',
],
'condition' => [
'tg_btn_link_type' => '1',
'tg_btn_show' => 'yes'
],
'label_block' => true,
]
);
$this->add_control(
'tg_btn_page_link',
[
'label' => esc_html__('Select Button Page', 'tpcore'),
'type' => Controls_Manager::SELECT2,
'label_block' => true,
'options' => tp_get_all_pages(),
'condition' => [
'tg_btn_link_type' => '2',
'tg_btn_show' => 'yes'
]
]
);
$this->end_controls_section();
// _banner_arrow
$this->start_controls_section(
'_tg_banner_section_arrow',
[
'label' => esc_html__('Banner Arrow', 'tpcore'),
'condition' => [
'tg_design_style!' => ['layout-3', 'layout-7', 'layout-8'],
]
]
);
$this->add_control(
'tg_content_arrow_show',
[
'label' => esc_html__( 'Hide Down Arrow', 'tpcore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'tpcore' ),
'label_off' => esc_html__( 'Hide', 'tpcore' ),
'return_value' => 'yes',
'default' => 'yes',
]
);
$this->add_control(
'tg_content_arrow_id',
[
'label' => esc_html__('Section ID', 'tpcore'),
'type' => Controls_Manager::TEXT,
'description' => esc_html__('Enter the ID of the section you want to go to after clicking on the arrow', 'tpcore'),
'default' => esc_html__('#about', 'tpcore'),
]
);
$this->end_controls_section();
// _tg_image
$this->start_controls_section(
'_tg_image_section',
[
'label' => esc_html__('Thumbnail', 'tpcore'),
'condition' => [
'tg_design_style' => ['layout-3', 'layout-6'],
]
]
);
$this->add_control(
'tg_banner_image',
[
'label' => esc_html__( 'Choose Image', 'tpcore' ),
'description' => esc_html__( 'Image size 400 x 440 would be better', 'tpcore' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
'condition' => [
'tg_design_style' => 'layout-3',
]
]
);
$this->add_control(
'tg_banner_left_image',
[
'label' => esc_html__( 'Choose Left Image', 'tpcore' ),
'description' => esc_html__( 'Image size 420 x 580 would be better', 'tpcore' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
'condition' => [
'tg_design_style' => 'layout-6',
]
],
]
);
$this->add_control(
'tg_banner_right_image',
[
'label' => esc_html__( 'Choose Right Image', 'tpcore' ),
'description' => esc_html__( 'Image size 420 x 580 would be better', 'tpcore' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
'condition' => [
'tg_design_style' => 'layout-6',
]
],
]
);
$this->add_group_control(
Group_Control_Image_Size::get_type(),
[
'name' => 'tg_image_size',
'default' => 'full',
'exclude' => [
'custom'
]
]
);
$this->end_controls_section();
// _tg_social
$this->start_controls_section(
'_tg_social_section',
[
'label' => esc_html__('Banner Social', 'tpcore'),
'condition' => [
'tg_design_style' => 'layout-3',
]
]
);
$repeater = new Repeater();
if (tp_is_elementor_version('<', '2.6.0')) {
$repeater->add_control(
'tg_banner_icon',
[
'show_label' => false,
'type' => Controls_Manager::ICON,
'label_block' => true,
'default' => 'fab fa-facebook-f',
]
);
} else {
$repeater->add_control(
'tg_selected_icon',
[
'show_label' => false,
'type' => Controls_Manager::ICONS,
'fa4compatibility' => 'icon',
'label_block' => true,
'default' => [
'value' => 'fab fa-facebook-f',
'library' => 'solid',
],
]
);
}
$repeater->add_control(
'social_link',
[
'label' => esc_html__('Social URL', 'tpcore'),
'type' => Controls_Manager::TEXT,
'label_block' => true,
'default' => esc_html__('#', 'tpcore'),
]
);
$this->add_control(
'tg_social_items',
[
'label' => esc_html__( 'Social Lists', 'tpcore' ),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'default' => [
[
'social_link' => esc_html__( '#', 'tpcore' ),
],
],
]
);
$this->end_controls_section();
// Project group
$this->start_controls_section(
'__tg_project',
[
'label' => esc_html__('Project Slider', 'tpcore'),
'description' => esc_html__( 'Control all the style settings from Style tab', 'tpcore' ),
'condition' => [
'tg_design_style' => 'layout-8'
]
]
);
$repeater2 = new \Elementor\Repeater();
$repeater2->add_control(
'tg_post_img',
[
'label' => __( 'Choose Image', 'tpcore' ),
'type' => Controls_Manager::MEDIA,
'default' => [
'url' => Utils::get_placeholder_image_src(),
],
'dynamic' => [
'active' => true,
]
]
);
$repeater2->add_control(
'select_post',
[
'label' => __( 'Select a Post', 'tpcore' ),
'type' => \Elementor\Controls_Manager::SELECT2,
'label_block' => true,
'default' => 'none',
'options' => $this->get_all_project(),
]
);
$repeater2->add_control(
'tg_post_desc',
[
'label' => esc_html__('Description', 'tpcore'),
'type' => Controls_Manager::TEXTAREA,
'default' => esc_html__('Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui', 'tpcore'),
'title' => esc_html__('Enter description text', 'tpcore'),
]
);
$repeater2->add_control(
'tg_post_btn_text',
[
'label' => esc_html__('Button Text', 'tpcore'),
'type' => Controls_Manager::TEXT,
'default' => esc_html__('View Details', 'tpcore'),
'title' => esc_html__('Enter button text', 'tpcore'),
'label_block' => true,
]
);
$this->add_control(
'tg_project_list',
[
'label' => esc_html__('Project List', 'tpcore'),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $repeater2->get_controls(),
]
);
$this->end_controls_section();
// TAB_STYLE
$this->start_controls_section(
'section_style',
[
'label' => __( 'Style', 'tpcore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_control(
'text_transform',
[
'label' => __( 'Text Transform', 'tpcore' ),
'type' => Controls_Manager::SELECT,
'default' => '',
'options' => [
'' => __( 'None', 'tpcore' ),
'uppercase' => __( 'UPPERCASE', 'tpcore' ),
'lowercase' => __( 'lowercase', 'tpcore' ),
'capitalize' => __( 'Capitalize', 'tpcore' ),
],
'selectors' => [
'{{WRAPPER}} .title' => 'text-transform: {{VALUE}};',
],
]
);
$this->end_controls_section();
// Typography here
$this->start_controls_section(
'_section_style_content',
[
'label' => esc_html__('Content Typography', 'tpcore'),
'tab' => Controls_Manager::TAB_STYLE,
]
);
// Title
$this->add_control(
'_heading_title',
[
'type' => Controls_Manager::HEADING,
'label' => esc_html__('Title', 'tpcore'),
'separator' => 'before'
]
);
$this->add_responsive_control(
'title_spacing',
[
'label' => esc_html__('Bottom Spacing', 'tpcore'),
'type' => Controls_Manager::SLIDER,
'size_units' => ['px'],
'selectors' => [
'{{WRAPPER}} .title' => 'margin-bottom: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_control(
'title_color',
[
'label' => esc_html__('Text Color', 'tpcore'),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .title' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
Group_Control_Typography::get_type(),
[
'name' => 'title',
'selector' => '{{WRAPPER}} .title',
]
);
$this->end_controls_section();
}
// Get All Project
public function get_all_project() {
$wp_query = get_posts([
'post_type' => 'project',
'orderby' => 'date',
'posts_per_page' => -1,
]);
$options = ['none' => 'None'];
foreach( $wp_query as $projects ){
$options[$projects->ID] = $projects->post_name;
}
return $options;
}
/**
* Render the 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();
if ( !empty($settings['tg_bg']['url']) ) {
$tg_bg_url = !empty($settings['tg_bg']['id']) ? wp_get_attachment_image_url( $settings['tg_bg']['id'], $settings['tg_bg_size_size']) : $settings['tg_bg']['url'];
$tg_bg_alt = get_post_meta($settings["tg_bg"]["id"], "_wp_attachment_image_alt", true);
}
$reland_rtl_check = is_rtl() ? 'true' : 'false';
?>
add_render_attribute('tg-button-arg', 'href', get_permalink($settings['tg_btn_page_link']));
$this->add_render_attribute('tg-button-arg', 'target', '_self');
$this->add_render_attribute('tg-button-arg', 'rel', 'nofollow');
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
} else {
if ( ! empty( $settings['tg_btn_link']['url'] ) ) {
$this->add_link_attributes( 'tg-button-arg', $settings['tg_btn_link'] );
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
}
}
$this->add_render_attribute('title_args', 'class', 'title wow fadeInUp');
$this->add_render_attribute('title_args', 'data-wow-delay', '.2s');
?>
add_render_attribute('tg-button-arg', 'href', get_permalink($settings['tg_btn_page_link']));
$this->add_render_attribute('tg-button-arg', 'target', '_self');
$this->add_render_attribute('tg-button-arg', 'rel', 'nofollow');
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
} else {
if ( ! empty( $settings['tg_btn_link']['url'] ) ) {
$this->add_link_attributes( 'tg-button-arg', $settings['tg_btn_link'] );
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
}
}
$this->add_render_attribute('title_args', 'class', 'title wow fadeInUp');
$this->add_render_attribute('title_args', 'data-wow-delay', '.2s');
?>
add_render_attribute('tg-button-arg', 'href', get_permalink($settings['tg_btn_page_link']));
$this->add_render_attribute('tg-button-arg', 'target', '_self');
$this->add_render_attribute('tg-button-arg', 'rel', 'nofollow');
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
} else {
if ( ! empty( $settings['tg_btn_link']['url'] ) ) {
$this->add_link_attributes( 'tg-button-arg', $settings['tg_btn_link'] );
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
}
}
$this->add_render_attribute('title_args', 'class', 'title wow fadeInUp');
$this->add_render_attribute('title_args', 'data-wow-delay', '.2s');
?>
add_render_attribute('tg-button-arg', 'href', get_permalink($settings['tg_btn_page_link']));
$this->add_render_attribute('tg-button-arg', 'target', '_self');
$this->add_render_attribute('tg-button-arg', 'rel', 'nofollow');
$this->add_render_attribute('tg-button-arg', 'class', 'btn transparent-btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.4s');
} else {
if ( ! empty( $settings['tg_btn_link']['url'] ) ) {
$this->add_link_attributes( 'tg-button-arg', $settings['tg_btn_link'] );
$this->add_render_attribute('tg-button-arg', 'class', 'btn transparent-btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.4s');
}
}
$this->add_render_attribute('title_args', 'class', 'title wow fadeInUp');
$this->add_render_attribute('title_args', 'data-wow-delay', '.2s');
?>
add_render_attribute('tg-button-arg', 'href', get_permalink($settings['tg_btn_page_link']));
$this->add_render_attribute('tg-button-arg', 'target', '_self');
$this->add_render_attribute('tg-button-arg', 'rel', 'nofollow');
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
} else {
if ( ! empty( $settings['tg_btn_link']['url'] ) ) {
$this->add_link_attributes( 'tg-button-arg', $settings['tg_btn_link'] );
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
}
}
$this->add_render_attribute('title_args', 'class', 'title wow fadeInUp');
$this->add_render_attribute('title_args', 'data-wow-delay', '.2s');
?>
add_render_attribute('tg-button-arg', 'href', get_permalink($settings['tg_btn_page_link']));
$this->add_render_attribute('tg-button-arg', 'target', '_self');
$this->add_render_attribute('tg-button-arg', 'rel', 'nofollow');
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
} else {
if ( ! empty( $settings['tg_btn_link']['url'] ) ) {
$this->add_link_attributes( 'tg-button-arg', $settings['tg_btn_link'] );
$this->add_render_attribute('tg-button-arg', 'class', 'btn wow fadeInUp');
$this->add_render_attribute('tg-button-arg', 'data-wow-delay', '.6s');
}
}
$this->add_render_attribute('title_args', 'class', 'title wow fadeInUp');
$this->add_render_attribute('title_args', 'data-wow-delay', '.2s');
?>
register( new TG_Hero_Banner() );