function add_static()
 {
     @wp_enqueue_script('jquery-ui-sortable');
     $this->include->register_type('ext_slider_css', TFUSE_EXT_DIR . '/' . strtolower($this->_the_class_name) . '/static/css');
     $this->include->register_type('ext_slider_js', TFUSE_EXT_DIR . '/' . strtolower($this->_the_class_name) . '/static/js');
     $this->include->css('slider', 'ext_slider_css');
     $this->include->js('slider', 'ext_slider_js', 'tf_footer', 10, '1.2');
     $this->include->js_enq('media_image', tf_extimage($this->_the_class_name, 'media.jpg'));
 }
Exemple #2
0
 function add_static()
 {
     $this->include->register_type('ext_shortcodes_css', TFUSE_EXT_DIR . '/' . strtolower($this->_the_class_name) . '/static/css');
     $this->include->register_type('ext_shortcodes_js', TFUSE_EXT_DIR . '/' . strtolower($this->_the_class_name) . '/static/js');
     $this->include->register_type('ext_config_shortcodes_js', TFUSE_EXT_CONFIG . '/' . strtolower($this->_the_class_name) . '/static/js');
     $this->include->register_type('framework_css', TFUSE . '/static/css');
     $this->include->register_type('framework_js', TFUSE . '/static/javascript');
     $this->include->css('shortcodes', 'ext_shortcodes_css', 'tf_head', '1.1');
     if (is_admin()) {
         $this->include->js('shortcodes', 'ext_shortcodes_js', 'tf_footer', 10, '1.2');
         $this->include->js('shortcodes_custom_generators', 'ext_config_shortcodes_js', 'tf_footer');
         $this->include->css('lionbars', 'framework_css', 'tf_head', '1.0');
         $this->include->js('jquery.lionbars.0.3', 'framework_js', 'tf_footer');
     }
     $this->include->js_enq('shortcode_button_icon', tf_extimage($this->_the_class_name, 'framework-icon.png'));
 }
Exemple #3
0
                    <div class="explain_icons">
                        <img src="<?php 
echo tf_extimage($this->ext->sidebars->_the_class_name, 'sidebar_set.png');
?>
" /> <?php 
_e('Was set', 'tfuse');
?>
&nbsp;
                        <img src="<?php 
echo tf_extimage($this->ext->sidebars->_the_class_name, 'delete.png');
?>
" /> <?php 
_e('Remove settings', 'tfuse');
?>
&nbsp;
                        <img src="<?php 
echo tf_extimage($this->ext->sidebars->_the_class_name, 'sidebar_not_set.png');
?>
" /> S<?php 
_e('idebar not set yet', 'tfuse');
?>

                    </div>
                    <div style="clear:both"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php 
$this->include->js_enq('sidebars_saved_names', $saved_names);
" method="post" target="tf_shortcode_preview_iframe" id="tf_shc_form">
        <input id="tf_shc_form_value" type="hidden" name="preview_shortcode" value="" />
        <input id="tf_shc_form_type" type="hidden" name="preview_shortcode_type" value="" />
        <input id="tf_shc_form_post_id" type="hidden" name="preview_shortcode_post_id" value="<?php 
echo $_POST['post_id'];
?>
" />
    </form>
    <div id="tf_shortcode_controls">
        <div id="tf_shortcode_control_buttons">
            <a id="tf_shortcode_back" href="#" class="tf_ctrl_button"><img border="0" src="<?php 
echo tf_extimage('SHORTCODES', 'back_button.png');
?>
"/></a>
            <a id="tf_shortcode_insert" href="#" class="tf_ctrl_button"><img border="0" src="<?php 
echo tf_extimage('SHORTCODES', 'add_shortcode_button.png');
?>
"/></a>
        </div>
        <div id="tf_shortcode_control_filters">
            <div class="tf_shc_category_filter">
                <strong><?php 
_e('Categories', 'tfuse');
?>
</strong> <?php 
echo $this->optigen->_auto($category_option);
?>
            </div>
            <div class="tf_shc_name_filter">
                <strong><?php 
_e('Filter', 'tfuse');
<?php

$cfg['input_types'] = array(array('name' => __('Text Input', 'tfuse'), 'type' => 'text', 'value' => '', 'id' => TF_THEME_PREFIX . '_%%name%%', 'options' => false), array('name' => __('Text area', 'tfuse'), 'type' => 'textarea', 'value' => '', 'id' => TF_THEME_PREFIX . '_%%name%%', 'options' => false), array('name' => __('Radiobox', 'tfuse'), 'type' => 'radio', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => true), array('name' => __('Checkbox', 'tfuse'), 'type' => 'checkbox', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => false), array('name' => __('SelectBox', 'tfuse'), 'type' => 'select', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => true, 'properties' => array('class' => 'select_styled')), array('name' => __('Email', 'tfuse'), 'type' => 'text', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => false), array('name' => __('Captcha', 'tfuse'), 'type' => 'captcha', 'value' => '', 'id' => TF_THEME_PREFIX . "_captcha", 'options' => false, 'file_name' => 'captcha_gen.php'));
$options_name = array();
foreach ($cfg['input_types'] as $value) {
    $options_name[] = $value['name'];
}
$form_name = $options = array('tabs' => array(array('name' => __('Add/Edit Forms', 'tfuse'), 'id' => 'add_edit_forms', 'headings' => array(array('name' => __('Form Settings', 'tfuse'), 'id' => 'form_name', 'options' => array(array('name' => __('Form shortcode', 'tfuse'), 'desc' => __('Copy this shortcode to add the form into the page/post', 'tfuse'), 'id' => 'tf_cf_shortcode', 'value' => '[tfuse_contactform tf_cf_formid="%%form_id%%"]', 'type' => 'selectable_code'), array('name' => __('Form name', 'tfuse'), 'desc' => __('The form name will not be displayed to the users. It is for internal use only', 'tfuse'), 'type' => 'text', 'id' => 'tf_cf_formname_input', 'value' => ''), array('name' => __('Email to', 'tfuse'), 'desc' => __('The form will be sent to this email address. We recommend you to use an email that you verify often', 'tfuse'), 'id' => 'tf_cf_email_to', 'value' => get_bloginfo('admin_email'), 'type' => 'text'), array('name' => __('Email subject', 'tfuse'), 'desc' => __('This text will appear in the Subject line when you receive an email from this form. Make it short and
                                                          original for easy identification', 'tfuse'), 'id' => 'tf_cf_email_subject', 'value' => '', 'type' => 'text'))), array('name' => __('Form Content', 'tfuse'), 'id' => 'form_settings', 'options' => array(array('name' => __('Input type', 'tfuse'), 'desc' => __('Input type', 'tfuse'), 'id' => 'tf_cf_select[]', 'value' => 0, 'type' => 'select', 'properties' => array('class' => 'medica_inp_select'), 'options' => $options_name), array('name' => __('Label', 'tfuse'), 'desc' => __('Input label', 'tfuse'), 'id' => 'tf_cf_input[]', 'value' => '', 'properties' => array('class' => 'cf_input_label'), 'type' => 'text'), array('name' => __('Width', 'tfuse'), 'desc' => 'fields width', 'type' => 'text', 'id' => 'tf_cf_input_width[]', 'value' => '50', 'properties' => array('class' => 'cf_input_width'), 'divider' => true), array('name' => __('Required', 'tfuse'), 'desc' => 'is this field required?', 'type' => 'checkbox', 'id' => 'tf_cf_input_required', 'value' => 'none', 'properties' => array('class' => 'cf_input_required'), 'divider' => true), array('name' => __('New Line', 'tfuse'), 'desc' => 'show this field in new line', 'type' => 'checkbox', 'id' => 'tf_cf_input_newline', 'value' => 'none', 'properties' => array('class' => 'cf_input_newline'), 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_cf_shortcode_row', 'type' => 'selectable_code', 'value' => '%%code%%', 'properties' => array('class' => 'shortcode_code'), 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_cf_delete_row', 'type' => 'raw', 'class' => 'tf_cf_delete_row', 'value' => '', 'html' => '<img src="' . tf_extimage($this->ext->contactform->_the_class_name, 'delete.png') . '" rel="is_default+default_is_default" class="contactform_delete_input" style="display: none;">', 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_cf_toggle_show', 'type' => 'raw', 'class' => 'tf_cf_toggle_show', 'value' => '', 'html' => '<span class="show_more_less">-Show less</span>', 'divider' => true), 'type' => 'custom_contactform_row'), 'options_row' => array(array('name' => __('Option', 'tfuse'), 'desc' => '', 'id' => 'tf_cf_input_options_label', 'type' => 'text', 'value' => '%%value%%', 'properties' => array('class' => 'tf_cf_input_options_label'))))), 'buttons' => array(array('type' => 'button', 'id' => 'cf_save_form_button', 'value' => __('Save Form', 'tfuse'), 'name' => 'save_form', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Cancel', 'tfuse'), 'id' => 'new_form_reset', 'subtype' => 'button', 'name' => 'cf_reset', 'properties' => array('class' => 'reset-button button')))), array('name' => __('Messages Settings', 'tfuse'), 'id' => 'tf_cf_messages_settings', 'headings' => array(array('name' => __('Messages settings', 'tfuse'), 'id' => 'message_settings', 'options' => array(array('name' => __('Form header text', 'tfuse'), 'desc' => __('The text that appears on the top of the form ', 'tfuse'), 'id' => 'tf_cf_heading_text', 'value' => 'Please fill in the form below', 'type' => 'text'), array('name' => __('Submit button text', 'tfuse'), 'desc' => __('The text that appears on the submit form button ', 'tfuse'), 'id' => 'tf_cf_mess_submit', 'value' => 'Send message', 'type' => 'text'), array('name' => __('Reset button text', 'tfuse'), 'desc' => __('The text that appears on the reset form button ', 'tfuse'), 'id' => 'tf_cf_mess_reset', 'value' => 'reset all fields', 'type' => 'text'), array('name' => __('Success message', 'tfuse'), 'desc' => __('This message will be displayed if the form is successfully submitted', 'tfuse'), 'id' => 'tf_cf_succ_mess', 'value' => 'Message sent.We`ll get back to you asap', 'type' => 'text'), array('name' => __('Failure message', 'tfuse'), 'desc' => __('This message will be displayed if the form failed to be submitted', 'tfuse'), 'id' => 'tf_cf_failure_mess', 'value' => 'Oops something went wrong.Please try again later', 'type' => 'text'), array('name' => __('Email from', 'tfuse'), 'desc' => __('The form will look like was sent from this address.', 'tfuse'), 'id' => 'tf_cf_email_from', 'value' => get_bloginfo('admin_email'), 'type' => 'text'), array('name' => __('Email template', 'tfuse'), 'desc' => __('You can use this to create a nice template for the email you receive. It supports HTML and in order to display one of your form input values you need to copy/paste their shortcode in here.', 'tfuse'), 'id' => 'tf_cf_email_template', 'value' => '', 'type' => 'textarea'), array('name' => __('Form template', 'tfuse'), 'desc' => __('This will help you change the structure of your form, control CSS on a specific input and/or add different HTML code above, in between or below your inputs. ', 'tfuse'), 'id' => 'tf_cf_form_template', 'value' => '<span>[label]</span>
<span>[input]</span>', 'type' => 'textarea'), array('name' => __('Required text', 'tfuse'), 'desc' => __('This text apears near the inputs that are mandatory to be completed by the user ', 'tfuse'), 'id' => 'tf_cf_required_text', 'value' => '(required)', 'type' => 'text')))), 'buttons' => array(array('type' => 'button', 'id' => 'cf_save_messages_button', 'value' => __('Save Messages', 'tfuse'), 'name' => 'save_messages', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Cancel', 'tfuse'), 'id' => 'messages_reset', 'subtype' => 'button', 'name' => 'cf_reset', 'properties' => array('class' => 'reset-button button')))), array('name' => __("General settings", 'tfuse'), 'id' => 'tf_cf_general_settings', 'headings' => array(array('id' => 'cf_general_settings', 'name' => __('Email sending options', 'tfuse'), 'options' => array(array('name' => __('Email sending option', 'tfuse'), 'type' => 'radio', 'id' => 'tf_cf_mail_type', 'value' => 'wpmail', 'options' => array('wpmail' => 'wp-mail', 'smtp' => 'smtp'), 'divider' => true), array('name' => __('Secure connection', 'tfuse'), 'type' => 'radio', 'id' => 'tf_cf_secure_conn', 'value' => 'no', 'options' => array('no' => __('No', 'tfuse'), 'ssl' => __('SSL', 'tfuse'), 'tls' => __('TLS', 'tfuse')), 'divider' => true), array('name' => __('SMTP server address', 'tfuse'), 'desc' => __('SMTP server address', 'tfuse'), 'id' => 'tf_cf_smtp_host', 'value' => '', 'type' => 'text'), array('name' => __('Port', 'tfuse'), 'desc' => __('SMTP server port', 'tfuse'), 'id' => 'tf_cf_smtp_port', 'value' => '25', 'type' => 'text'), array('name' => __('Username', 'tfuse'), 'desc' => __('Leave blank if authentication not needed', 'tfuse'), 'id' => 'tf_cf_smtp_user', 'value' => '', 'type' => 'text'), array('name' => __('Password', 'tfuse'), 'desc' => __('Leave blank if authentication not needed', 'tfuse'), 'id' => 'tf_cf_smtp_pwd', 'value' => '', 'type' => 'text')))), 'buttons' => array(array('type' => 'button', 'value' => __('Save general options', 'tfuse'), 'id' => 'tf_cf_save_gen_options', 'name' => 'save_gen_options', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Reset options', 'tfuse'), 'id' => 'gen_options_reset', 'name' => 'reset_gen_options', 'subtype' => 'button', 'properties' => array('class' => 'reset-button button'))))));
<?php

for ($i = 1; $i <= $placeholders; $i++) {
    ?>
    <div class="sidebars_placeholder_container">
        <div class="sidebars_placeholder_top sdb_<?php 
    echo $colors[$i];
    ?>
"></div>
        <div class="sidebars_placeholder_contents sdb_<?php 
    echo $colors[$i];
    ?>
">
            <ul class="sidebars_placeholder_box"></ul>
            <img class="sidebars_placeholder_empty" src="<?php 
    echo tf_extimage($ext_name, 'sdb_placeholder.png');
    ?>
" />
            <img class="sidebars_placeholder_empty_clicked" src="<?php 
    echo tf_extimage($ext_name, 'sdb_placeholder_clicked.png');
    ?>
" />
            <div></div>
        </div>
        <div class="sidebars_placeholder_bottom sdb_<?php 
    echo $colors[$i];
    ?>
"></div>
    </div>
<?php 
}
<?php

$cfg['input_types'] = array('text' => array('name' => __('Text Input', 'tfuse'), 'type' => 'text', 'value' => '', 'id' => TF_THEME_PREFIX . '_%%name%%', 'options' => false), 'textarea' => array('name' => __('Text area', 'tfuse'), 'type' => 'textarea', 'value' => '', 'id' => TF_THEME_PREFIX . '_%%name%%', 'options' => false), 'radio' => array('name' => __('Radiobox', 'tfuse'), 'type' => 'radio', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => true), 'checkbox' => array('name' => __('Checkbox', 'tfuse'), 'type' => 'checkbox', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => false), 'select' => array('name' => __('SelectBox', 'tfuse'), 'type' => 'select', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => true, 'properties' => array('class' => 'select_styled')), 'email' => array('name' => __('Email', 'tfuse'), 'type' => 'text', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => false), 'captcha' => array('name' => __('Captcha', 'tfuse'), 'type' => 'captcha', 'value' => '', 'id' => TF_THEME_PREFIX . "_captcha", 'options' => false, 'file_name' => 'captcha_gen.php'));
$options_name = array();
foreach ($cfg['input_types'] as $key => $value) {
    $options_name[$key] = $value['name'];
}
$form_name = $options = array('tabs' => array(array('name' => __('Add/Edit Forms', 'tfuse'), 'id' => 'add_edit_forms', 'headings' => array(array('name' => __('Form Settings', 'tfuse'), 'id' => 'form_name', 'options' => array(array('name' => __('Form shortcode', 'tfuse'), 'desc' => __('Copy this shortcode to add the form into the page/post', 'tfuse'), 'id' => 'tf_rf_shortcode', 'value' => '[tfuse_reservationform tf_rf_formid="%%form_id%%"]', 'type' => 'selectable_code'), array('name' => __('Form name', 'tfuse'), 'desc' => __('The form name will not be displayed to the users. It is for internal use only', 'tfuse'), 'type' => 'text', 'id' => 'tf_rf_formname_input', 'value' => ''), array('name' => __('Date Pickers', 'tfuse'), 'desc' => __('Does your reservation form require one calendar (only check in) or two calendards (check in & check out)', 'tfuse'), 'id' => 'tf_rf_datepickers_count', 'value' => '', 'type' => 'select', 'options' => array(1 => __('Check In', 'tfuse'), 2 => __('Check In & Check Out', 'tfuse'))), array('name' => __('User reservation title', 'tfuse'), 'desc' => __('It will appear in the user reservation table under User reservations. You can also copy shortcodes from the form content below in order to display them in the user reservation table', 'tfuse'), 'id' => 'tf_rf_res_title', 'value' => 'New reservation', 'type' => 'text'))), array('name' => __('Form Content', 'tfuse'), 'id' => 'form_settings', 'options' => array(array('name' => __('Input type', 'tfuse'), 'desc' => __('Input type', 'tfuse'), 'id' => 'tf_rf_select[]', 'value' => 0, 'type' => 'select', 'properties' => array('class' => TF_THEME_PREFIX . '_inp_select medica_inp_select'), 'options' => $options_name), array('name' => __('Label', 'tfuse'), 'desc' => __('Input label', 'tfuse'), 'id' => 'tf_rf_input[]', 'value' => '', 'properties' => array('class' => 'rf_input_label'), 'type' => 'text'), array('name' => __('Width', 'tfuse'), 'desc' => 'fields width', 'type' => 'text', 'id' => 'tf_rf_input_width[]', 'value' => '50', 'properties' => array('class' => 'rf_input_width'), 'divider' => true), array('name' => __('Required', 'tfuse'), 'desc' => 'is this field required?', 'type' => 'checkbox', 'id' => 'tf_rf_input_required', 'value' => 'none', 'properties' => array('class' => 'rf_input_required'), 'divider' => true), array('name' => __('New Line', 'tfuse'), 'desc' => 'show this field in new line', 'type' => 'checkbox', 'id' => 'tf_rf_input_newline', 'value' => 'none', 'properties' => array('class' => 'rf_input_newline'), 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_rf_shortcode_row', 'type' => 'selectable_code', 'value' => '%%code%%', 'properties' => array('class' => 'shortcode_code'), 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_rf_delete_row', 'type' => 'raw', 'class' => 'tf_rf_delete_row', 'value' => '', 'html' => '<img src="' . tf_extimage($this->ext->contactform->_the_class_name, 'delete.png') . '" rel="is_default+default_is_default" class="reservationform_delete_input" style="display: none;">', 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_rf_toggle_show', 'type' => 'raw', 'class' => 'tf_rf_toggle_show', 'value' => '', 'html' => '<span class="show_more_less">+Show more</span>', 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_rf_is_datepicker[]', 'type' => 'text', 'value' => 'false', 'divider' => true, 'properties' => array('class' => 'tfuse_is_datepicker_flag')), 'type' => 'custom_reservationform_row'), 'options_row' => array(array('name' => __('Option', 'tfuse'), 'desc' => '', 'id' => 'tf_rf_input_options_label', 'type' => 'text', 'value' => '%%value%%', 'properties' => array('class' => 'tf_rf_input_options_label'))))), 'buttons' => array(array('type' => 'button', 'id' => 'rf_save_form_button', 'value' => __('Save Form', 'tfuse'), 'name' => 'save_form', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Cancel', 'tfuse'), 'id' => 'new_form_reset', 'subtype' => 'button', 'name' => 'rf_reset', 'properties' => array('class' => 'reset-button button')))), array('name' => __('Messages Settings', 'tfuse'), 'id' => 'tf_rf_messages_settings', 'headings' => array(array('name' => __('Messages settings', 'tfuse'), 'id' => 'message_settings', 'options' => array(array('name' => __('Form header text', 'tfuse'), 'desc' => __('The text that appears on the top of the form ', 'tfuse'), 'id' => 'tf_rf_heading_text', 'value' => 'Please fill in the reservation form below', 'type' => 'text'), array('name' => __('Submit button text', 'tfuse'), 'desc' => __('The text that appears on the submit form button ', 'tfuse'), 'id' => 'tf_rf_mess_submit', 'value' => 'Submit reservation', 'type' => 'text'), array('name' => __('Reset button text', 'tfuse'), 'desc' => __('The text that appears on the reset form button ', 'tfuse'), 'id' => 'tf_rf_mess_reset', 'value' => 'reset all fields', 'type' => 'text'), array('name' => __('Reservation notice', 'tfuse'), 'desc' => __('The text that appears at the bottom of the form.', 'tfuse'), 'id' => 'tf_rf_form_notice', 'value' => 'Please note that this is not an actual appointment, but only a request for one. We will contact you for a confirmation shortly after. Thank you! By clicking the "Make an Appointment" button you agree to the Terms & Conditions below.', 'type' => 'textarea'), array('name' => __('Success message', 'tfuse'), 'desc' => __('This message will be displayed if the form is successfully submitted', 'tfuse'), 'id' => 'tf_rf_succ_mess', 'value' => 'Reservation successfully sent. We\'ll get back to you shortly.', 'type' => 'text'), array('name' => __('Failure message', 'tfuse'), 'desc' => __('This message will be displayed if the form failed to be submitted', 'tfuse'), 'id' => 'tf_rf_failure_mess', 'value' => 'Oops something went wrong. Please try again later', 'type' => 'text'), array('name' => __('Email from', 'tfuse'), 'desc' => __('The reservation confirmation, approval or rejection email will appear that was sent from this email address. Please use an email that you verify often because you will also receive users replies on this email address', 'tfuse'), 'id' => 'tf_rf_email_from', 'value' => '', 'type' => 'text'), array('name' => __('Email subject', 'tfuse'), 'desc' => __('This text will appear in the Subject line when the users receive a confirmation, approval or rejection email. Use the <strong>[resnumber]</strong> shortcode to include the reservation number in the subject line.', 'tfuse'), 'id' => 'tf_rf_email_subject', 'value' => 'Your reservation number is [resnumber]', 'type' => 'text'), array('name' => __('New reservation admin email template', 'tfuse'), 'desc' => __('This email is automatically sent to the email address provided in `Email from` field when a user makes a reservation. ', 'tfuse'), 'id' => 'tf_rf_new_res_admin_email_template', 'value' => 'Your reservation [resnumber] has entered in our system and one of our guys will process it in a short while.<br>You will receive an email if the reservation is approved or denied shortly.<br><br>For further inquires please reply to this email.', 'type' => 'textarea'), array('name' => __('Reservation approved email template', 'tfuse'), 'desc' => __('This email is received by the user after a reservation was confirmed from the User reservations page. It supports HTML and in order to display one of your form input values you need to copy/paste their shortcode in here.', 'tfuse'), 'id' => 'tf_rf_confirm_email_template', 'value' => 'Your reservation [resnumber] was approved.<br>We are waiting for you on [checkin].<br><br>For further assistance please reply to this email.', 'type' => 'textarea'), array('name' => __('Reservation rejected email template', 'tfuse'), 'desc' => __('This email is received by the user after a reservation was rejected from the User reservations page. It supports HTML and in order to display one of your form input values you need to copy/paste their shortcode in here.', 'tfuse'), 'id' => 'tf_rf_reject_email_template', 'value' => 'Your reservation [resnumber] was rejected.<br><br>For further assistance please reply to this email.', 'type' => 'textarea'), array('name' => __('Reservation confirmation email template', 'tfuse'), 'desc' => __('This email is automatically sent when a user makes a reservation. This is not an Approval or Rejection email but only a confirmation that the reservation is registered in the system with a certain unique number for easy identification which can also be attached to the email with the <strong>[resnumber]</strong> shortcode.', 'tfuse'), 'id' => 'tf_rf_new_res_email_template', 'value' => 'Your reservation [resnumber] has entered in our system and one of our guys will process it in a short while.<br>You will receive an email if the reservation is approved or denied shortly.<br><br>For further inquires please reply to this email.', 'type' => 'textarea'), array('name' => __('Form template', 'tfuse'), 'desc' => __('This will help you change the structure of your form, control CSS on a specific input and/or add different HTML code above, in between or below your inputs. ', 'tfuse'), 'id' => 'tf_rf_form_template', 'value' => '<span>[label]</span>
<span>[input]</span>', 'type' => 'textarea'), array('name' => __('Required text', 'tfuse'), 'desc' => __('This text apears near the inputs that are mandatory to be completed by the user ', 'tfuse'), 'id' => 'tf_rf_required_text', 'value' => '(required)', 'type' => 'text')))), 'buttons' => array(array('type' => 'button', 'id' => 'rf_save_messages_button', 'value' => __('Save Form', 'tfuse'), 'name' => 'save_messages', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Cancel', 'tfuse'), 'id' => 'messages_reset', 'subtype' => 'button', 'name' => 'rf_reset', 'properties' => array('class' => 'reset-button button')))), array('name' => __('Dates settings', 'tfuse'), 'id' => 'tf_rf_dates_settings', 'headings' => array(array('name' => __('Dates to exclude', 'tfuse'), 'id' => 'tf_rf_dates_toexclude', 'options' => array('type' => 'custom_reservationform_dates_row', array('id' => 'tf_rf_exclude_date[]', 'type' => 'datepicker', 'inp_name' => __('Exclude dates', 'tfuse'), 'desc' => '', 'value' => '', 'properties' => array('class' => 'tf_rf_exclude_interval'), 'popbox' => array('with_datepickers' => array('tfuse_datepicker_from', 'tfuse_datepicker_to'), 'dependancy' => array('tfuse_datepicker_from' => 'tfuse_datepicker_from', 'tfuse_datepicker_to' => 'tfuse_datepicker_to'), array('type' => 'text', 'name' => __('Date From', 'tfuse'), 'id' => 'tfuse_datepicker_from', 'value' => '', 'desc' => '', 'properties' => array('class' => 'tf_exclude_from_datepicker')), array('type' => 'text', 'name' => __('Date To', 'tfuse'), 'id' => 'tfuse_datepicker_to', 'value' => '', 'desc' => '', 'properties' => array('class' => 'tf_exclude_to_datepicker')), array('name' => __('Repeat', 'tfuse'), 'desc' => '', 'id' => 'interval_repeat', 'value' => 0, 'type' => 'select', 'properties' => array('class' => 'tf_exclude_repeat_datepicker'), 'options' => array(__('Do not repeat', 'tfuse'), __('Every week', 'tfuse'), __('Every month', 'tfuse'), __('Every year', 'tfuse'))))), array('name' => '', 'desc' => '', 'id' => 'tf_rf_delete_dates_row', 'type' => 'raw', 'class' => 'tf_rf_delete_dates_row', 'value' => '', 'html' => '<img src="' . tf_extimage($this->ext->reservationform->_the_class_name, 'delete.png') . '" rel="is_default+default_is_default" class="reservationform_delete_excludedatesinput" style="display: none;">', 'divider' => true)))), 'buttons' => array(array('type' => 'button', 'id' => 'rf_save_dates_button', 'value' => __('Save Form', 'tfuse'), 'name' => 'save_dates', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Cancel', 'tfuse'), 'id' => 'messages_reset', 'subtype' => 'button', 'name' => 'rf_reset', 'properties' => array('class' => 'reset-button button')))), array('name' => __("General settings", 'tfuse'), 'id' => 'tf_rf_general_settings', 'headings' => array(array('id' => 'rf_general_settings', 'name' => __('Email sending options', 'tfuse'), 'options' => array(array('name' => __('Email sending option', 'tfuse'), 'type' => 'radio', 'id' => 'tf_rf_mail_type', 'value' => 'wpmail', 'options' => array('wpmail' => 'wp-mail', 'smtp' => 'smtp'), 'divider' => true), array('name' => __('Secure connection', 'tfuse'), 'type' => 'radio', 'id' => 'tf_rf_secure_conn', 'value' => 'no', 'options' => array('no' => __('No', 'tfuse'), 'ssl' => __('SSL', 'tfuse'), 'tls' => __('TLS', 'tfuse')), 'divider' => true), array('name' => __('SMTP server address', 'tfuse'), 'desc' => __('SMTP server address', 'tfuse'), 'id' => 'tf_rf_smtp_host', 'value' => '', 'type' => 'text'), array('name' => __('Port', 'tfuse'), 'desc' => __('SMTP server port', 'tfuse'), 'id' => 'tf_rf_smtp_port', 'value' => '25', 'type' => 'text'), array('name' => __('Username', 'tfuse'), 'desc' => __('Leave blank if authentication not needed', 'tfuse'), 'id' => 'tf_rf_smtp_user', 'value' => '', 'type' => 'text'), array('name' => __('Password', 'tfuse'), 'desc' => __('Leave blank if authentication not needed', 'tfuse'), 'id' => 'tf_rf_smtp_pwd', 'value' => '', 'type' => 'text')))), 'buttons' => array(array('type' => 'button', 'value' => __('Save general options', 'tfuse'), 'id' => 'tf_rf_save_gen_options', 'name' => 'save_gen_options', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Reset options', 'tfuse'), 'id' => 'gen_options_reset', 'name' => 'reset_gen_options', 'subtype' => 'button', 'properties' => array('class' => 'reset-button button'))))));
<?php

$cfg['input_types'] = array('text' => array('name' => __('Text Input', 'tfuse'), 'type' => 'text', 'value' => '', 'id' => TF_THEME_PREFIX . '_%%name%%', 'options' => false), 'textarea' => array('name' => __('Text area', 'tfuse'), 'type' => 'textarea', 'value' => '', 'id' => TF_THEME_PREFIX . '_%%name%%', 'options' => false), 'radio' => array('name' => __('Radiobox', 'tfuse'), 'type' => 'radio', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => true), 'checkbox' => array('name' => __('Checkbox', 'tfuse'), 'type' => 'checkbox', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => false), 'select' => array('name' => __('SelectBox', 'tfuse'), 'type' => 'select', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => true, 'properties' => array('class' => 'select_styled')), 'email' => array('name' => __('Email', 'tfuse'), 'type' => 'text', 'value' => '', 'id' => TF_THEME_PREFIX . "_%%name%%", 'options' => false), 'captcha' => array('name' => __('Captcha', 'tfuse'), 'type' => 'captcha', 'value' => '', 'id' => TF_THEME_PREFIX . "_captcha", 'options' => false, 'file_name' => 'captcha_gen.php'));
$options_name = array();
foreach ($cfg['input_types'] as $key => $value) {
    $options_name[$key] = $value['name'];
}
$column_options_name = array('left column', 'right column');
$form_name = $options = array('tabs' => array(array('name' => __('Add/Edit Forms', 'tfuse'), 'id' => 'add_edit_forms', 'headings' => array(array('name' => __('Form Settings', 'tfuse'), 'id' => 'form_name', 'options' => array(array('name' => __('Form shortcode', 'tfuse'), 'desc' => __('Copy this shortcode to add the form into the page/post', 'tfuse'), 'id' => 'tf_rf_shortcode', 'value' => '[tfuse_reservationform tf_rf_formid="%%form_id%%"]', 'type' => 'selectable_code'), array('name' => __('Form name', 'tfuse'), 'desc' => __('The form name will not be displayed to the users. It is for internal use only', 'tfuse'), 'type' => 'text', 'id' => 'tf_rf_formname_input', 'value' => ''), array('name' => __('Date Pickers', 'tfuse'), 'desc' => __('Does your reservation form require one calendar (only check in) or two calendards (check in & check out)', 'tfuse'), 'id' => 'tf_rf_datepickers_count', 'value' => '', 'type' => 'select', 'options' => array(1 => __('Check In', 'tfuse'), 2 => __('Check In & Check Out', 'tfuse'))), array('name' => __('User reservation title', 'tfuse'), 'desc' => __('It will appear in the user reservation table under User reservations. You can also copy shortcodes from the form content below in order to display them in the user reservation table', 'tfuse'), 'id' => 'tf_rf_res_title', 'value' => __('New reservation', 'tfuse'), 'type' => 'text'), array('name' => __('Use in content', 'tfuse'), 'desc' => __('If you want to use in extra content(in before or after content) element select the specific option', 'tfuse'), 'id' => 'tf_rf_position', 'value' => 'content', 'options' => array('content' => __('Content', 'tfuse'), 'before_content' => __('Before/After Content', 'tfuse')), 'type' => 'select'))), array('name' => __('Form Content', 'tfuse'), 'id' => 'form_settings', 'options' => array(array('name' => __('Input type', 'tfuse'), 'desc' => __('Input type', 'tfuse'), 'id' => 'tf_rf_select[]', 'value' => 0, 'type' => 'select', 'properties' => array('class' => TF_THEME_PREFIX . '_inp_select medica_inp_select'), 'options' => $options_name), array('name' => __('Label', 'tfuse'), 'desc' => __('Input label', 'tfuse'), 'id' => 'tf_rf_input[]', 'value' => '', 'properties' => array('class' => 'rf_input_label'), 'type' => 'text'), array('name' => __('Width', 'tfuse'), 'desc' => __('fields width', 'tfuse'), 'type' => 'text', 'id' => 'tf_rf_input_width[]', 'value' => '50', 'properties' => array('class' => 'rf_input_width'), 'divider' => true), array('name' => __('Required', 'tfuse'), 'desc' => __('is this field required?', 'tfuse'), 'type' => 'checkbox', 'id' => 'tf_rf_input_required', 'value' => 'none', 'properties' => array('class' => 'rf_input_required'), 'divider' => true), array('name' => __('New Line', 'tfuse'), 'desc' => __('show this field in new line', 'tfuse'), 'type' => 'checkbox', 'id' => 'tf_rf_input_newline', 'value' => 'none', 'properties' => array('class' => 'rf_input_newline'), 'divider' => true), array('name' => __('Column', 'tfuse'), 'desc' => __('Column', 'tfuse'), 'id' => 'tf_rf_column[]', 'value' => 0, 'type' => 'select', 'properties' => array('class' => 'medica_inp_column'), 'options' => $column_options_name), array('name' => '', 'desc' => '', 'id' => 'tf_rf_shortcode_row', 'type' => 'selectable_code', 'value' => '%%code%%', 'properties' => array('class' => 'shortcode_code'), 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_rf_delete_row', 'type' => 'raw', 'class' => 'tf_rf_delete_row', 'value' => '', 'html' => '<img src="' . tf_extimage($this->ext->contactform->_the_class_name, 'delete.png') . '" rel="is_default+default_is_default" class="reservationform_delete_input" style="display: none;">', 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_rf_toggle_show', 'type' => 'raw', 'class' => 'tf_rf_toggle_show', 'value' => '', 'html' => '<span class="show_more_less">' . __('+Show more', 'tfuse') . '</span>', 'divider' => true), array('name' => '', 'desc' => '', 'id' => 'tf_rf_is_datepicker[]', 'type' => 'text', 'value' => 'false', 'divider' => true, 'properties' => array('class' => 'tfuse_is_datepicker_flag')), 'type' => 'custom_reservationform_row'), 'options_row' => array(array('name' => __('Option', 'tfuse'), 'desc' => '', 'id' => 'tf_rf_input_options_label', 'type' => 'text', 'value' => '%%value%%', 'properties' => array('class' => 'tf_rf_input_options_label'))))), 'buttons' => array(array('type' => 'button', 'id' => 'rf_save_form_button', 'value' => __('Save Form', 'tfuse'), 'name' => 'save_form', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Cancel', 'tfuse'), 'id' => 'new_form_reset', 'subtype' => 'button', 'name' => 'rf_reset', 'properties' => array('class' => 'reset-button button')))), array('name' => __('Messages Settings', 'tfuse'), 'id' => 'tf_rf_messages_settings', 'headings' => array(array('name' => __('Messages settings', 'tfuse'), 'id' => 'message_settings', 'options' => array(array('name' => __('Form header text', 'tfuse'), 'desc' => __('The text that appears on the top of the form', 'tfuse'), 'id' => 'tf_rf_heading_text', 'value' => 'Please fill in the reservation form bellow', 'type' => 'text'), array('name' => __('Submit button text', 'tfuse'), 'desc' => __('The text that appears on the submit form button', 'tfuse'), 'id' => 'tf_rf_mess_submit', 'value' => 'Submit reservation', 'type' => 'text'), array('name' => __('Reset button text', 'tfuse'), 'desc' => __('The text that appears on the reset form button', 'tfuse'), 'id' => 'tf_rf_mess_reset', 'value' => 'reset all fields', 'type' => 'text'), array('name' => __('Success message', 'tfuse'), 'desc' => __('This message will be displayed if the form is successfully submitted', 'tfuse'), 'id' => 'tf_rf_succ_mess', 'value' => "Reservation successfully sent. We'll get back to you shortly.", 'type' => 'text'), array('name' => __('Failure message', 'tfuse'), 'desc' => __('This message will be displayed if the form failed to be submitted', 'tfuse'), 'id' => 'tf_rf_failure_mess', 'value' => 'Oops something went wrong. Please try again later', 'type' => 'text'), array('name' => __('Email from', 'tfuse'), 'desc' => __('The reservation confirmation, approval or rejection email will appear that was sent from this email address. Please use an email that you verify often because you will also receive users replies on this email address', 'tfuse'), 'id' => 'tf_rf_email_from', 'value' => '', 'type' => 'text'), array('name' => __('Email subject', 'tfuse'), 'desc' => __('This text will appear in the Subject line when the users receive a confirmation, approval or rejection email. Use the <strong>[resnumber]</strong> shortcode to include the reservation number in the subject line.', 'tfuse'), 'id' => 'tf_rf_email_subject', 'value' => 'Your reservation number is [resnumber]', 'type' => 'text'), array('name' => __('New reservation admin email template', 'tfuse'), 'desc' => __('This email is automatically sent to the email address provided in `Email from` field when a user makes a reservation.', 'tfuse'), 'id' => 'tf_rf_new_res_admin_email_template', 'value' => 'Your reservation [resnumber] has entered in our system and one of our guys will process it in a short while.<br>You will receive an email if the reservation is approved or denied shortly.<br><br>For further inquires please reply to this email.', 'type' => 'textarea'), array('name' => __('Reservation approved email template', 'tfuse'), 'desc' => __('This email is received by the user after a reservation was confirmed from the User reservations page. It supports HTML and in order to display one of your form input values you need to copy/paste their shortcode in here.', 'tfuse'), 'id' => 'tf_rf_confirm_email_template', 'value' => 'Your reservation [resnumber] was approved.<br>We are waiting for you on [checkin].<br><br>For further assistance please reply to this email.', 'type' => 'textarea'), array('name' => __('Reservation rejected email template', 'tfuse'), 'desc' => __('This email is received by the user after a reservation was rejected from the User reservations page. It supports HTML and in order to display one of your form input values you need to copy/paste their shortcode in here.', 'tfuse'), 'id' => 'tf_rf_reject_email_template', 'value' => 'Your reservation [resnumber] was rejected.<br><br>For further assistance please reply to this email.', 'type' => 'textarea'), array('name' => __('Reservation confirmation email template', 'tfuse'), 'desc' => __('This email is automatically sent when a user makes a reservation. This is not an Approval or Rejection email but only a confirmation that the reservation is registered in the system with a certain unique number for easy identification which can also be attached to the email with the <strong>[resnumber]</strong> shortcode.', 'tfuse'), 'id' => 'tf_rf_new_res_email_template', 'value' => 'Your reservation [resnumber] has entered in our system and one of our guys will process it in a short while.<br>You will receive an email if the reservation is approved or denied shortly.<br><br>For further inquires please reply to this email.', 'type' => 'textarea'), array('name' => __('Required text', 'tfuse'), 'desc' => __('This text apears near the inputs that are mandatory to be completed by the user', 'tfuse'), 'id' => 'tf_rf_required_text', 'value' => '(required)', 'type' => 'text'), array('name' => __('Form template', 'tfuse'), 'desc' => __('This will help you change the structure of your form, control CSS on a specific input and/or add different HTML code above, in between or below your inputs.', 'tfuse'), 'id' => 'tf_rf_form_template', 'value' => '<span>[label]</span><span>[input]</span>', 'type' => 'textarea')))), 'buttons' => array(array('type' => 'button', 'id' => 'rf_save_messages_button', 'value' => __('Save Form', 'tfuse'), 'name' => 'save_messages', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Cancel', 'tfuse'), 'id' => 'messages_reset', 'subtype' => 'button', 'name' => 'rf_reset', 'properties' => array('class' => 'reset-button button')))), array('name' => __('Dates settings', 'tfuse'), 'id' => 'tf_rf_dates_settings', 'headings' => array(array('name' => __('Dates to exclude', 'tfuse'), 'id' => 'tf_rf_dates_toexclude', 'options' => array('type' => 'custom_reservationform_dates_row', array('id' => 'tf_rf_exclude_date[]', 'type' => 'datepicker', 'inp_name' => __('Exclude dates', 'tfuse'), 'desc' => '', 'value' => '', 'properties' => array('class' => 'tf_rf_exclude_interval'), 'popbox' => array('with_datepickers' => array('tfuse_datepicker_from', 'tfuse_datepicker_to'), 'dependancy' => array('tfuse_datepicker_from' => 'tfuse_datepicker_from', 'tfuse_datepicker_to' => 'tfuse_datepicker_to'), array('type' => 'text', 'name' => __('Date From', 'tfuse'), 'id' => 'tfuse_datepicker_from', 'value' => '', 'desc' => '', 'properties' => array('class' => 'tf_exclude_from_datepicker')), array('type' => 'text', 'name' => __('Date To', 'tfuse'), 'id' => 'tfuse_datepicker_to', 'value' => '', 'desc' => '', 'properties' => array('class' => 'tf_exclude_to_datepicker')), array('name' => __('Repeat', 'tfuse'), 'desc' => '', 'id' => 'interval_repeat', 'value' => 0, 'type' => 'select', 'properties' => array('class' => 'tf_exclude_repeat_datepicker'), 'options' => array(__('Do not repeat', 'tfuse'), __('Every week', 'tfuse'), __('Every month', 'tfuse'), __('Every year', 'tfuse'))))), array('name' => '', 'desc' => '', 'id' => 'tf_rf_delete_dates_row', 'type' => 'raw', 'class' => 'tf_rf_delete_dates_row', 'value' => '', 'html' => '<img src="' . tf_extimage($this->ext->reservationform->_the_class_name, 'delete.png') . '" rel="is_default+default_is_default" class="reservationform_delete_excludedatesinput" style="display: none;">', 'divider' => true)))), 'buttons' => array(array('type' => 'button', 'id' => 'rf_save_dates_button', 'value' => __('Save Form', 'tfuse'), 'name' => 'save_dates', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Cancel', 'tfuse'), 'id' => 'messages_reset', 'subtype' => 'button', 'name' => 'rf_reset', 'properties' => array('class' => 'reset-button button')))), array('name' => __("General settings", "tfuse"), 'id' => 'tf_rf_general_settings', 'headings' => array(array('id' => 'rf_general_settings', 'name' => __('Email sending options', 'tfuse'), 'options' => array(array('name' => __('Email sending option', 'tfuse'), 'type' => 'radio', 'id' => 'tf_rf_mail_type', 'value' => 'wpmail', 'options' => array('wpmail' => 'wp-mail', 'smtp' => 'smtp'), 'divider' => true), array('name' => __('Secure connection', 'tfuse'), 'type' => 'radio', 'id' => 'tf_rf_secure_conn', 'value' => 'no', 'options' => array('no' => __('No', 'tfuse'), 'ssl' => __('SSL', 'tfuse'), 'tls' => __('TLS', 'tfuse')), 'divider' => true), array('name' => __('SMTP server address', 'tfuse'), 'desc' => __('SMTP server address', 'tfuse'), 'id' => 'tf_rf_smtp_host', 'value' => '', 'type' => 'text'), array('name' => __('Port', 'tfuse'), 'desc' => __('SMTP server port', 'tfuse'), 'id' => 'tf_rf_smtp_port', 'value' => '25', 'type' => 'text'), array('name' => __('Username', 'tfuse'), 'desc' => __('Leave blank if authentication not needed', 'tfuse'), 'id' => 'tf_rf_smtp_user', 'value' => '', 'type' => 'text'), array('name' => __('Password', 'tfuse'), 'desc' => __('Leave blank if authentication not needed', 'tfuse'), 'id' => 'tf_rf_smtp_pwd', 'value' => '', 'type' => 'text')))), 'buttons' => array(array('type' => 'button', 'value' => __('Save general options', 'tfuse'), 'id' => 'tf_rf_save_gen_options', 'name' => 'save_gen_options', 'subtype' => 'submit', 'properties' => array('class' => 'button')), array('type' => 'button', 'value' => __('Reset options', 'tfuse'), 'id' => 'gen_options_reset', 'name' => 'reset_gen_options', 'subtype' => 'button', 'properties' => array('class' => 'reset-button button'))))));