'.do_shortcode($portheading).''; $portfbnum = 5; if($portfbnum && is_numeric($portfbnum)): $portfitem = ''; foreach (range(1, $portfbnum ) as $portfbnumn) { $portimg = ''; $portfautomatic = ''; $portfpostid = ''; $getattpost = ''; $portitemlink = ''; $portitemlinkt = ''; $portft = ''; $portftdes= ''; $portimg = esc_url(associationx_get_option('portfb-image' . $portfbnumn, '')); $portfautomatic = esc_html(associationx_get_option('portfb-image-automatic' . $portfbnumn, '0')); if($portimg && $portfautomatic ): $portfpostid = attachment_url_to_postid($portimg); $getattpost = get_post( $portfpostid ); $portitemlink = get_permalink( $getattpost->ID ); $portitemlinkt = 1; $portft = $getattpost->post_title; $portftdes = $getattpost->post_excerpt; endif; if($portimg) $portimg = '
'.$portft.'
'; if($portft) $portft = '

'.do_shortcode($portft).'

'; if($portftdes) $portftdes = ''.do_shortcode($portftdes).''; if($portft || $portftdes ) $portft = '
'.$portft.$portftdes.'
'; if($portimg) $portimg = associationx_linkandtarget($portimg.$portft, $portitemlink, $portitemlinkt, '', 'portfitemandlink' ); if($portimg) $portfitem .= '
  • '.$portimg.'
  • '; } endif; if( !$portheading && !$portfitem ) return; ?>
    '; ?>