9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
18 if ( $gravityview->entry->is_multi() ) {
22 $entry = $gravityview->entry->as_entry();
26 if ( ! class_exists(
'GFFormDisplay' ) ) {
27 include_once GFCommon::get_base_path() .
'/form_display.php';
46 $form = apply_filters(
'gravityview/fields/custom/form',
$form,
$entry, $gravityview );
58 $content = apply_filters(
'gravityview/fields/custom/content_before', $gravityview->field->content, $gravityview );
78 if ( apply_filters(
'gravityview/fields/custom/decode_shortcodes',
false,
$content, $gravityview ) ) {
83 if ( ! empty( $gravityview->field->oembed ) ) {
88 if ( ! empty( $gravityview->field->wpautop ) ) {
100 $content = apply_filters(
'gravityview/fields/custom/content_after',
$content, $gravityview );
104 echo GFCommon::gform_do_shortcode(
$content );
static decode_shortcodes( $string)
Inspired on ::encode_shortcodes, reverse the encoding by replacing the ascii characters by the shortc...
if(! class_exists( 'GFFormDisplay')) $entry
static replace_variables( $text, $form=array(), $entry=array(), $url_encode=false, $esc_html=true, $nl2br=true, $format='html', $aux_data=array())
Alias for GravityView_Merge_Tags::replace_variables()
gravityview()
The main GravityView wrapper function.