CFDBShortcodeHtml

The Contact Form DB CFDBShortcodeHtml class.

Defined (1)

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

/CFDBShortcodeHtml.php  
  1. class CFDBShortcodeHtml extends ShortCodeLoader { 
  2.  
  3. /** 
  4. * @param $atts array of short code attributes 
  5. * @param $content string contents inside the shortcode tag 
  6. * @return string value submitted to a form field as selected by $atts. See ExportToValue.php 
  7. */ 
  8. public function handleShortcode($atts, $content = null) { 
  9. if ($content && isset($atts['form'])) { 
  10. $atts = $this->decodeAttributes($atts); 
  11. $atts['fromshortcode'] = true; 
  12. $atts['content'] = $content; 
  13. require_once('ExportToHtmlTemplate.php'); 
  14. $export = new ExportToHtmlTemplate(); 
  15. return $export->export($atts['form'], $atts); 
  16. return ''; 
  17.