Fix File
•
/
home
/
sportsfe...
/
public_h...
/
wp-conte...
/
plugins
/
themify-...
/
template...
•
File:
template-archive-title.php
•
Content:
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly /** * Template Archive Title * * Access original fields: $args['mod_settings'] * @author Themify */ $fields_default = array( 'html_tag' => 'h2', 'css' => '', 'animation_effect' => '' ); $fields_args = wp_parse_args($args['mod_settings'], $fields_default); unset($args['mod_settings']); $fields_default=null; $mod_name = $args['mod_name']; $element_id =$args['module_ID']; $builder_id = $args['builder_id']; $container_class = apply_filters('themify_builder_module_classes', array( 'module', 'module-' . $mod_name, $element_id, $fields_args['css'] ), $mod_name,$element_id, $fields_args); if(!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active===false){ $container_class[] = $fields_args['global_styles']; } $container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args,array( 'class' => implode(' ', $container_class), )), $fields_args, $mod_name,$element_id); $args=null; if(Themify_Builder::$frontedit_active===false){ $container_props['data-lazy']=1; } ?> <!-- Archive Title module --> <div <?php echo self::get_element_attributes(self::sticky_element_props($container_props, $fields_args)); ?>> <?php $container_props=$container_class=null; do_action('themify_builder_background_styling',$builder_id,array('styling'=>$fields_args,'mod_name'=>$mod_name),$element_id,'module'); $the_query = Tbp_Utils::get_actual_query();// for live preview if (is_search()) { $title = sprintf(__('Search Results for: %s', 'tbp'), esc_html(get_search_query(false))); } elseif (is_date()) { $title = get_the_archive_title(); } elseif (is_home()) { $title = __('Latest Posts', 'tbp'); } else { $title = ''; if ($the_query===null || $the_query->have_posts() ){ if($the_query!==null){ $the_query->the_post(); } if (is_author()) { $title = '<span class="vcard">' . get_the_author() . '</span>'; } elseif (themify_is_shop()) { $title = woocommerce_page_title(false); } elseif (is_post_type_archive()) { $title = post_type_archive_title('', false); } else { $title = single_term_title('', false); } if($the_query!==null){ wp_reset_postdata(); } } } $isEmpty=empty($title) && (Tbp_Utils::$isActive===true || Themify_Builder::$frontedit_active===true || Tbp_Public::$isTemplatePage===true); ?> <<?php echo $fields_args['html_tag'] ?><?php if($isEmpty===true):?> class="tbp_empty_module"<?php endif;?>><?php echo $isEmpty===true?Themify_Builder_Model::get_module_name($mod_name):$title ?></<?php echo $fields_args['html_tag'] ?>> </div> <!-- /Archive Title module -->
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List