Submit
Path:
~
/
home
/
getwphos
/
public_html
/
techniquetechs
/
wp-content
/
themes
/
plexify
/
elements
/
templates
/
pxl_heading
/
File Content:
layout-1.php
<?php $html_id = pxl_get_element_id($settings); $editor_title = $widget->get_settings_for_display( 'title' ); $editor_title = $widget->parse_text_editor( $editor_title ); $widget->add_render_attribute( 'wrap-heading', 'class', 'pxl-heading-wrap d-flex'); $widget->add_render_attribute( 'heading-inner', 'class', 'pxl-heading-inner'); if(!empty($settings['sub_title_on_top']) && $settings['sub_title_on_top'] == 'yes'){ $widget->add_render_attribute( 'heading-inner', 'class', 'd-flex flex-column flex-column-reverse'); } $list_array = []; $hightlight_list = $widget->get_settings('text_list'); if(count($hightlight_list) > 0){ foreach ($hightlight_list as $key => $list) { $list_array[] = $list['highlight_text']; } } $widget->add_render_attribute( 'large-title', 'class', 'heading-title'); if(!empty($settings['title_sp_type'])){ $widget->add_render_attribute( 'large-title', 'class', 'pxl-split-text pxl_title_split_text '.$settings['title_sp_type']); } if ( $settings['title_animation'] ) { $widget->add_render_attribute( 'large-title', 'class', 'pxl-animate pxl-invisible'); $widget->add_render_attribute( 'large-title', 'data-settings', json_encode([ 'animation' => $settings['title_animation'], 'animation_delay' => !empty($settings['title_animation_delay']) ? $settings['title_animation_delay'] : 0 ]) ); } $widget->add_render_attribute( 'sub-title', 'class', 'heading-subtitle'); /*if(!empty($settings['sub_img_before']['url'])){ $widget->add_render_attribute( 'sub-title', 'class', 'has-img pxl-draw-from-left'); }*/ if(!empty($settings['sub_img_before']['url'])){ $widget->add_render_attribute( 'sub-title', 'class', 'has-img pxl-draw-from-left'); } if ( $settings['sub_title_animation'] ) { $widget->add_render_attribute( 'sub-title', 'class', 'pxl-animate pxl-invisible'); $widget->add_render_attribute( 'sub-title', 'data-settings', json_encode([ 'animation' => $settings['sub_title_animation'], 'animation_delay' => !empty($settings['sub_title_animation_delay']) ? $settings['sub_title_animation_delay'] : 0 ]) ); } $widget->add_render_attribute( 'sub-title-text', 'class', 'subtitle-text '); if(!empty($settings['subtitle_sp_type'])){ $widget->add_render_attribute( 'sub-title-text', 'class', 'pxl-split-text pxl_subtitle_split_text '.$settings['subtitle_sp_type']); } //$text_align = $widget->get_settings( 'text_align', '' ); //$sub_title_on_top = $widget->get_settings( 'sub_title_on_top', 'false' ); /*$title_typed_text = $widget->get_settings( 'title_typed_text', 'no' ); $typed_list = []; if( $title_typed_text == 'yes'){ $typed_list = !empty($settings['typed_list']) ? $settings['typed_list'] : []; if( count($typed_list) > 0){ $typed_texts = []; foreach ($typed_list as $values) { $typed_texts[] = $values['typed_item_text']; } $widget->add_render_attribute( 'large-title', 'class', 'typed-text'); $widget->add_render_attribute( 'large-title', 'data-typed-text', json_encode($typed_texts) ); } }*/ $title_cliptext = $widget->get_settings( 'title_cliptext', 'no' ); if( $title_cliptext == 'yes'){ $widget->add_render_attribute( 'large-title', 'class', 'clip-text '.$settings['title_cliptext_bg_img_anm'] ); } ?> <div id="pxl-<?php echo esc_attr($html_id) ?>" <?php pxl_print_html($widget->get_render_attribute_string( 'wrap-heading' )); ?>> <div <?php pxl_print_html($widget->get_render_attribute_string( 'heading-inner' )); ?> > <<?php echo esc_attr($settings['title_tag']); ?> <?php pxl_print_html($widget->get_render_attribute_string( 'large-title' )); ?>> <?php echo wp_kses_post($editor_title); ?> <?php if (!empty($list_array)) { ?> <span class="heading-highlight typewrite"> <?php foreach ($list_array as $highlight) { ?> <span class="pxl-item--text"><?php echo esc_html($highlight); ?></span> <?php } ?> </span> <?php } ?> </<?php echo esc_attr($settings['title_tag']); ?>> <?php if(!empty($settings['sub_title']) ): ?> <div <?php pxl_print_html($widget->get_render_attribute_string( 'sub-title' )); ?>> <div <?php pxl_print_html($widget->get_render_attribute_string( 'sub-title-text' )); ?>><?php pxl_print_html(nl2br($settings['sub_title'])); ?></div> </div> <?php endif; ?> </div> </div>
Submit
FILE
FOLDER
Name
Size
Permission
Action
layout-1.php
4589 bytes
0644
N4ST4R_ID | Naxtarrr