New Landing How can we help? Atelier Portfolio

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Atelier
  • #168886
    iamlucy
    Member
    Post count: 25

    Hi there,

    How do I edit the Portfolio details from
    Client – to Store; and
    > View Project – Take Me There??

    #168894
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    If you’re using a child theme, 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( "Store:", "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( "Take Me There", "swiftframework" ); ?></a>
    		        <?php } ?>
    		        <?php if ( $item_categories != "" ) { ?>
    		            <ul class="portfolio-categories">
    		                <?php echo $item_categories; ?>
    		            </ul>
    		        <?php } ?>
    		        <div class="article-share" data-buttontext="<?php _e( "Share this", "swiftframework" ); ?>"
    		             data-image="<?php echo esc_url($image); ?>"></div>
    		    </section>
    		
    		<?php
    		}
    	    add_action( 'sf_after_portfolio_content', 'sf_portfolio_item_details', 0 );
    	}

    – Kyle

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register