Fix File
•
/
home
/
sportsfe...
/
public_h...
/
wp-conte...
/
plugins
/
network-...
/
views
/
post
•
File:
thumbnail.php
•
Content:
<?php /** * Created by PhpStorm. * User: Admin * Date: 04.04.2017 * Time: 8:13 */ use NetworkPosts\Components\NetsPostsHtmlHelper; if ( ! defined( 'POST_VIEWS_PATH' ) ) { die(); } $html .= htmlspecialchars_decode( $shortcode_mgr->get( 'wrap_image_start' ) ); $size = $shortcode_mgr->get( 'size' ); if( $size === 'parent theme' ){ $size = 'post-thumbnail'; } $image_class = $shortcode_mgr->get( 'image_class' ); if ( $the_post['post_type'] != 'estore' ) { $thumbnail = netsposts_get_thumbnail( $the_post['ID'], $size, $image_class ); } else { $thumbnail = netsposts_create_estore_product_thumbnail( $the_post['thumbnail_url'], $the_post['post_title'], $size, $image_class ); } if( $thumbnail ){ if( $modify_image_url ){ $post_blog_details = get_blog_details(); restore_current_blog(); $current_blog = get_blog_details(); switch_to_blog( $the_post['blog_id'] ); $thumbnail = str_replace( $current_blog->siteurl, $post_blog_details->siteurl, $thumbnail ); } } elseif( $shortcode_mgr->has_value( 'default_thumbnail' ) ){ $thumbnail = '<img alt="' . $the_post['post_title'] . '" src="' . $shortcode_mgr->get( 'default_thumbnail' ) . '" class="post-thumbnail wp-post-image" width="150">'; } $html .= NetsPostsHtmlHelper::create_link( $the_post['guid'], $thumbnail, $shortcode_mgr->get_boolean( 'img_link_open_new_window' ), 'link-img-wrapper' ); $html .= htmlspecialchars_decode( $shortcode_mgr->get( 'wrap_image_end' ) );
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List