Hi
Add this to your child theme’s functions.php file:
/* PORTFOLIO ITEM DETAILS
================================================== */
if ( ! function_exists( 'sf_portfolio_item_details' ) ) {
function sf_portfolio_item_details() {
global $post;
$item_sidebar_content = sf_get_post_meta( $post->ID, 'sf_item_sidebar_content', true );
$client = sf_get_post_meta( $post->ID, 'sf_portfolio_client', true );
$item_link = sf_get_post_meta( $post->ID, 'sf_portfolio_external_link', true );
$item_categories = get_the_term_list( $post->ID, 'portfolio-category', '<li>', '</li><li>', '</li>' );
$fw_media_display = sf_get_post_meta( $post->ID, 'sf_fw_media_display', true );
$image = wp_get_attachment_url( get_post_thumbnail_id() );
$pb_active = sf_get_post_meta( $post->ID, '_spb_js_status', true );
$link_icon = apply_filters( 'sf_link_icon', '<i class="ss-link"></i>' );
?>
<?php if ($fw_media_display == "split") { ?>
<section class="item-details">
<?php } else if ($pb_active == "true") { ?>
<section class="item-details container">
<?php } else { ?>
<section class="item-details col-sm-3">
<?php } ?>
<?php if ( $item_sidebar_content != "" ) { ?>
<div class="sidebar-content">
<?php echo do_shortcode( $item_sidebar_content ); ?>
</div>
<?php } ?>
<?php if ( $client != "" ) { ?>
<div class="client"><span><?php _e( "Client:", "swiftframework" ); ?></span><?php echo esc_attr($client); ?></div>
<?php } ?>
<time class="date updated" itemprop="datePublished" datetime="<?php echo get_the_date( 'Y-m-d' ); ?>">
<span><?php _e( "Date:", "swiftframework" ); ?></span><?php echo get_the_date(); ?></time>
<?php if ( $item_link != "" ) { ?>
<a class="item-link" href="<?php echo esc_url($item_link); ?>" target="_blank"><?php echo $link_icon; ?><?php _e( "View Website", "swiftframework" ); ?></a>
<?php } ?>
<?php if ( $item_categories != "" ) { ?>
<ul class="portfolio-categories">
<?php echo $item_categories; ?>
</ul>
<?php } ?>
<?php if ( sf_theme_opts_name() == "sf_atelier_options" ) { ?>
<?php echo do_shortcode('[sf_social_share]'); ?>
<?php } else { ?>
<div class="article-share" data-buttontext="<?php _e( "Share this", "swiftframework" ); ?>"
data-image="<?php echo esc_url($image); ?>"></div>
<?php } ?>
</section>
<?php
}
add_action( 'sf_after_portfolio_content', 'sf_portfolio_item_details', 0 );
}
– Kyle