GFPDFViewView_Shortcodes

Controls the Gravity PDF Shortcode View / Display.

Defined (1)

The class is defined in the following location(s).

/src/view/View_Shortcodes.php  
  1. class View_Shortcodes extends Helper_Abstract_View { 
  2.  
  3. /** 
  4. * Set the view's name 
  5. * @var string 
  6. * @since 4.0 
  7. */ 
  8. protected $view_type = 'Shortcodes'; 
  9.  
  10. /** 
  11. * Shortcode Error: Entry ID not passed through the shortcode - directly or through the URL. 
  12. * @return string The error message 
  13. * @since 4.0 
  14. */ 
  15. public function no_entry_id() { 
  16. return $this->load( 'no_entry_id', [], false ); 
  17.  
  18. /** 
  19. * Shortcode Error: Entry ID, Form ID or PDF ID mismatch. Cannot get PDF configuration. 
  20. * @return string The error message 
  21. * @since 4.0 
  22. */ 
  23. public function invalid_pdf_config() { 
  24. return $this->load( 'invalid_pdf_config', [], false ); 
  25.  
  26. /** 
  27. * Shortcode Error: PDF configuration not active 
  28. * @return string The error message 
  29. * @since 4.0 
  30. */ 
  31. public function pdf_not_active() { 
  32. return $this->load( 'pdf_not_active', [], false ); 
  33.  
  34. /** 
  35. * Shortcode Error: PDF Conditional Logic not met 
  36. * @return string The error message 
  37. * @since 4.0 
  38. */ 
  39. public function conditional_logic_not_met() { 
  40. return $this->load( 'conditional_logic_not_met', [], false ); 
  41.  
  42. /** 
  43. * Generate the Gravity PDF link 
  44. * @param array $attr The parameters 
  45. * @return string The Shortcode Markup 
  46. * @since 4.0 
  47. */ 
  48. public function display_gravitypdf_shortcode( $attr ) { 
  49. return $this->load( 'gravitypdf', $attr, false );