element_before(); echo $this->shortcode_generator(); echo ''; echo $this->element_after(); } public function shortcode_generator() { if( isset( $this->field['shortcode'] ) && CS_ACTIVE_SHORTCODE ) { echo ''. __( 'Add Shortcode', CS_TEXTDOMAIN ) .''; } } }