<?php
   if (!defined('ABSPATH')){ exit; }

   global $sominx_post;
   if( !$sominx_post || $sominx_post->post_type != 'product' ||  !$sominx_post->post_excerpt ){ return; }
   
   $post_id = $sominx_post->ID;
   $this->add_render_attribute('block', 'class', [ 'cf-item-social-share' ]);
?>

<div <?php echo $this->get_render_attribute_string( 'block' ) ?>>
   <?php wpcf_function()->template('include/social-share'); ?>
</div>