GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gvlogic-shortcode.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Shortcode to handle showing/hiding content in merge tags. Works great with GravityView Custom Content fields
4  *
5  * @deprecated
6  * @since develop
7  * @see \GV\Shortcodes\gvlogic
8  */
10  public static $instance = null;
11 
12  public static function get_instance() {
13  if ( is_null( self::$instance ) ) {
14  return self::$instance = new self(); // Nothing
15  }
16 
17  return self::$instance;
18  }
19 
20  public function shortcode( $atts, $content = '', $tag = '') {
21  $shortcode = new \GV\Shortcodes\gvlogic();
22  return $shortcode->callback( $atts, $content, $tag );
23  }
24 }
if(empty( $field_settings['content'])) $content
Definition: custom.php:37
shortcode( $atts, $content='', $tag='')
Shortcode to handle showing/hiding content in merge tags.