field_before();
echo $this->shortcoder();
echo '';
echo $this->field_after();
}
public function shortcoder() {
if( ! empty( $this->field['shortcoder'] ) ) {
$shortcoders = ( is_array( $this->field['shortcoder'] ) ) ? $this->field['shortcoder'] : array_filter( (array) $this->field['shortcoder'] );
foreach( $shortcoders as $shortcode_id ) {
if( isset( CSF::$args['shortcoders'][$shortcode_id] ) ) {
$setup_args = CSF::$args['shortcoders'][$shortcode_id];
$button_title = ( ! empty( $setup_args['button_title'] ) ) ? $setup_args['button_title'] : esc_html__( 'Add Shortcode', 'bittumb' );
echo ''. $button_title .'';
}
}
}
}
}
}