/**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return array
  */
 function getOptions($form_id, $index = '')
 {
     $defaults = array('text' => "");
     $options = TDOMF_Widget::getOptions($form_id, $index);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('name-enable' => true, 'name-required' => true, 'email-enable' => true, 'email-required' => true, 'webpage-enable' => true, 'webpage-required' => false);
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return array
  */
 function getOptions($form_id, $postfix = '')
 {
     $defaults = array('question' => __("What year is it?", "tdomf"), 'answer' => __("2009", "tdomf"));
     $options = TDOMF_Widget::getOptions($form_id, $postfix);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return array
  */
 function getOptions($form_id, $postfix = '')
 {
     $defaults = array('message' => "");
     $options = TDOMF_Widget::getOptions($form_id, $postfix);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return array
  */
 function getOptions($form_id)
 {
     $defaults = array('text' => __("I agree with the <a href='#'>posting policy</a>.", "tdomf"), 'error-text' => __("You must agree with <a href='#'>posting policy</a> policy before submission!", "tdomf"));
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('excerpt-title' => __('Excerpt Text', 'tdomf'), 'excerpt-use-filter' => 'preview', 'excerpt-filter' => 'the_excerpt', 'excerpt-kses' => false, 'excerpt-default_text' => "");
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     # convert previous textarea options to new utility textarea options
     if (isset($options['text-required'])) {
         $options['excerpt-required'] = $options['text-required'];
         unset($options['text-required']);
     }
     if (isset($options['text-cols'])) {
         $options['excerpt-cols'] = $options['text-cols'];
         unset($options['text-cols']);
     }
     if (isset($options['text-rows'])) {
         $options['excerpt-rows'] = $options['text-rows'];
         unset($options['text-rows']);
     }
     if (isset($options['quicktags'])) {
         $options['excerpt-quicktags'] = $options['quicktags'];
         unset($options['quicktags']);
     }
     if (isset($options['restrict-tags'])) {
         $options['excerpt-restrict-tags'] = $options['restrict-tags'];
         unset($options['restrict-tags']);
     }
     if (isset($options['allowable-tags'])) {
         $options['excerpt-allowable-tags'] = $options['allowable-tags'];
         unset($options['allowable-tags']);
     }
     if (isset($options['char-limit'])) {
         $options['excerpt-char-limit'] = $options['char-limit'];
         unset($options['char-limit']);
     }
     if (isset($options['word-limit'])) {
         $options['excerpt-word-limit'] = $options['word-limit'];
         unset($options['word-limit']);
     }
     # now grab defaults for textarea
     $options = $this->textarea->getOptions($options);
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('publickey' => '', 'privatekey' => '', 'theme' => 'red', 'language' => 'en', 'xhtml' => false, 'plugin' => false, 'text-rows' => 10, 'quicktags' => false, 'restrict-tags' => true, 'allowable-tags' => "<p><b><em><u><strong><a><img><table><tr><td><blockquote><ul><ol><li><br><sup>", 'char-limit' => 0, 'word-limit' => 0);
     $recaptcha_options = get_option('recaptcha');
     if ($recaptcha_options != false) {
         $defaults['publickey'] = $recaptcha_options['pubkey'];
         $defaults['privatekey'] = $recaptcha_options['privkey'];
         $defaults['theme'] = $recaptcha_options['re_theme'];
         $defaults['language'] = $recaptcha_options['re_lang'];
         $defaults['xhtml'] = $recaptcha_options['re_xhtml'];
     }
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     if ($options['plugin'] && $recaptcha_options != false) {
         $options['publickey'] = $recaptcha_options['pubkey'];
         $options['privatekey'] = $recaptcha_options['privkey'];
         $options['theme'] = $recaptcha_options['re_theme'];
         $options['language'] = $recaptcha_options['re_lang'];
         $options['xhtml'] = $recaptcha_options['re_xhtml'];
     }
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('required' => false, 'default' => 'http://', 'test' => false);
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 function getOptions($form_id, $postfix = '')
 {
     $defaults = array('path' => ABSPATH . DIRECTORY_SEPARATOR . 'wp-content' . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . 'tdomf', 'types' => ".jpg .gif", 'size' => 2097152, 'min' => 0, 'max' => 1, 'cmd' => '', 'attach' => true, 'a' => true, 'img' => false, 'custom' => true, 'custom-key' => __("Download Link", "tdomf"), 'post-title' => false, 'attach-a' => false, 'post-thumb-a' => false, 'thumb-a' => false, 'url' => trailingslashit(get_bloginfo('wpurl')) . 'wp-content/uploads/tdomf/', 'nohandler' => true);
     $options = TDOMF_Widget::getOptions($form_id, $postfix);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('title-enable' => true, 'text-enable' => true, 'content-title-title' => __('Post Title', 'tdomf'), 'content-title-default_text' => "", 'content-title-use-filter' => 'preview', 'content-title-filter' => 'the_title', 'content-text-title' => __('Post Text', 'tdomf'), 'content-text-use-filter' => 'preview', 'content-text-filter' => 'the_content', 'content-text-kses' => true, 'content-text-default_text' => "");
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     # convert previous textfield options to new utility textfield options
     if (isset($options['title-required'])) {
         $options['content-title-required'] = $options['title-required'];
         unset($options['title-required']);
     }
     if (isset($options['title-size'])) {
         $options['content-title-size'] = $options['title-size'];
         unset($options['title-size']);
     }
     # convert previous textarea options to new utility textarea options
     if (isset($options['text-required'])) {
         $options['content-text-required'] = $options['text-required'];
         unset($options['text-required']);
     }
     if (isset($options['text-cols'])) {
         $options['content-text-cols'] = $options['text-cols'];
         unset($options['text-cols']);
     }
     if (isset($options['text-rows'])) {
         $options['content-text-rows'] = $options['text-rows'];
         unset($options['text-rows']);
     }
     if (isset($options['quicktags'])) {
         $options['content-text-quicktags'] = $options['quicktags'];
         unset($options['quicktags']);
     }
     if (isset($options['restrict-tags'])) {
         $options['content-text-restrict-tags'] = $options['restrict-tags'];
         unset($options['restrict-tags']);
     }
     if (isset($options['allowable-tags'])) {
         $options['content-text-allowable-tags'] = $options['allowable-tags'];
         unset($options['allowable-tags']);
     }
     if (isset($options['char-limit'])) {
         $options['content-text-char-limit'] = $options['char-limit'];
         unset($options['char-limit']);
     }
     if (isset($options['word-limit'])) {
         $options['content-text-word-limit'] = $options['word-limit'];
         unset($options['word-limit']);
     }
     # now grab defaults for textarea and textfield
     $options = $this->textarea->getOptions($options);
     $options = $this->textfield->getOptions($options);
     # unconfigurable by user
     $options['content-text-use-filter'] = 'preview';
     $options['content-text-filter'] = 'the_content';
     $options['content-text-kses'] = true;
     $options['content-title-use-filter'] = 'preview';
     $options['content-title-filter'] = 'the_title';
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('subject' => sprintf(__("Your submission '%s' has been recieved!", "tdomf"), TDOMF_MACRO_SUBMISSIONTITLE), 'body' => sprintf(__("Hi %s,\n\nYour submission %s has been recieved and will be online shortly\nThank you for using this service\nBest Regards\n%s", "tdomf"), TDOMF_MACRO_USERNAME, TDOMF_MACRO_SUBMISSIONTITLE, "<?php echo get_bloginfo('title'); ?>"), 'link' => false);
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('required' => false, 'append' => true);
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     return $options;
 }
 function getOptions($form_id, $index)
 {
     $defaults = array('key' => "TDOMF Form #{$form_id} Custom Field #{$index}", 'title' => "", 'type' => 'textfield', 'append' => false, 'format' => "<p><b>%%TITLE%%</b>: %%VALUE%%</p>", 'preview' => true, 'append' => false, 'format' => "<p><b>%%TITLE%%</b>: %%VALUE%%</p>");
     $options = TDOMF_Widget::getOptions($form_id, $index);
     $options = wp_parse_args($options, $defaults);
     // try to update the custom field settings
     $title = $options['title'];
     if (empty($title)) {
         $title = sprintf(__('Custom Field (\'%s\')', 'tdomf'), $options['key']);
     }
     $this->setCustomFields(array($options['key'] => $title));
     return $options;
 }