Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
clone
/
wp-conte...
/
plugins
/
themify-...
/
template...
•
File:
template-site-logo.php
•
Content:
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly /** * Template Site Logo * * Access original fields: $args['mod_settings'] * @author Themify */ $fields_default = array( 'display' => 'text', 'url_image' => '', 'width_image' => 100, 'height_image' => 100, 'link' => 'siteurl', 'custom_url' => '', 'html_tag' => '', '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 ('image' === $fields_args['display'] && '' !== $fields_args['url_image']) { $width_image = $fields_args['width_image'] !== '' ? $fields_args['width_image'] : get_option($preset . '_size_w'); $height_image = $fields_args['height_image'] !== '' ? $fields_args['height_image'] : get_option($preset . '_size_h'); if (Themify_Builder_Model::is_img_php_disabled()) { $attachment_id = themify_get_attachment_id_from_url($fields_args['url_image']); $image =!empty($attachment_id)?wp_get_attachment_image($attachment_id, $preset):apply_filters('themify_image_make_responsive_image', '<img src="' . esc_url($fields_args['url_image']) . '" alt="" width="' . $width_image. '" height="' . $height_image. '"/>'); } else { $image = themify_get_image('src=' . esc_url($fields_args['url_image']) . '&w=' . $width_image . '&h=' . $height_image. '&alt='); } } else { $image = get_bloginfo('name'); } $url = 'siteurl' === $fields_args['link'] ? home_url() : ( 'custom' === $fields_args['link'] && '' !== $fields_args['custom_url'] ? esc_url($fields_args['custom_url']) : false); if(Themify_Builder::$frontedit_active===false){ $container_props['data-lazy']=1; } ?> <!-- Site Logo module --> <div <?php echo self::get_element_attributes(self::sticky_element_props($container_props, $fields_args));?>> <div class="site-logo-inner"> <?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'); ?> <?php if (!empty($fields_args['html_tag'])): ?> <<?php echo $fields_args['html_tag'] ?>> <?php endif; ?> <?php if ($url !== false): ?> <a href="<?php echo $url ?>"> <?php endif; ?> <?php echo $image; ?> <?php if ($url !== false): ?> </a> <?php endif; ?> <?php if (!empty($fields_args['html_tag'])): ?> </<?php echo $fields_args['html_tag'] ?>> <?php endif; ?> </div> </div> <!-- /Site Logo module -->
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List