<td>
            <input type="text" id="limit" name="options[page_size]" value="<?php 
echo esc_attr($values['page_size']);
?>
" size="4" />
        </td>
    </tr>
    
    <tr class="form-field">
        <th valign="top" scope="row"><?php 
_e('Message if nothing to display', 'formidable');
?>
</th>
        <td>
            <textarea id="empty_msg" name="options[empty_msg]" style="width:98%"><?php 
echo FrmAppHelper::esc_textarea($values['empty_msg']);
?>
</textarea>
        </td>
    </tr>
    
    <?php 
if (IS_WPMU) {
    if (FrmAppHelper::is_super_admin()) {
        ?>
    
        <tr class="form-field">
            <th valign="top" scope="row"><?php 
        _e('Copy', 'formidable');
        ?>
</th>
Exemple #2
0
    if ($field['type'] == 'textarea') {
        ?>
    <textarea name="<?php 
        echo esc_attr($field_name);
        ?>
" <?php 
        echo FrmField::is_option_true($field, 'size') ? esc_attr('style="width:' . $field['size'] . (is_numeric($field['size']) ? 'px' : '') . ';"') : '';
        ?>
 rows="<?php 
        echo esc_attr($field['max']);
        ?>
" id="<?php 
        echo esc_attr($html_id);
        ?>
" class="dyn_default_value"><?php 
        echo FrmAppHelper::esc_textarea(force_balance_tags($field['default_value']));
        ?>
</textarea>

<?php 
    } else {
        if ($field['type'] == 'radio' || $field['type'] == 'checkbox') {
            $field['default_value'] = maybe_unserialize($field['default_value']);
            if (isset($field['post_field']) && $field['post_field'] == 'post_category') {
                do_action('frm_after_checkbox', array('field' => $field, 'field_name' => $field_name, 'type' => $field['type']));
            } else {
                do_action('frm_add_multiple_opts_labels', $field);
                ?>
        <ul id="frm_field_<?php 
                echo esc_attr($field['id']);
                ?>
Exemple #3
0
<?php 
                            } else {
                                if ($field['type'] == 'html') {
                                    ?>
<tr><td colspan="2"><?php 
                                    _e('Content', 'formidable');
                                    ?>
<br/>
<textarea name="field_options[description_<?php 
                                    echo $field['id'];
                                    ?>
]" style="width:98%;" rows="8"><?php 
                                    if (FrmField::is_option_true($field, 'stop_filter')) {
                                        echo $field['description'];
                                    } else {
                                        echo FrmAppHelper::esc_textarea($field['description']);
                                    }
                                    ?>
</textarea>
</td>
</tr>
<?php 
                                } else {
                                    if ($field['type'] == 'form') {
                                        ?>
<tr><td><?php 
                                        _e('Insert Form', 'formidable');
                                        ?>
</td>
<td><?php 
                                        FrmFormsHelper::forms_dropdown('field_options[form_select_' . $field['id'] . ']', $field['form_select'], array('exclude' => $field['form_id']));
Exemple #4
0
?>
" />
        <input type="hidden" name="style_name" value="frm_style_<?php 
echo esc_attr($style->post_name);
?>
" />
		<input type="hidden" name="frm_action" value="save_css" />
        <?php 
wp_nonce_field('frm_custom_css_nonce', 'frm_custom_css');
?>

        <textarea name="<?php 
echo esc_attr($frm_style->get_field_name('custom_css'));
?>
" id="frm_custom_css_box" class="hide-if-js"><?php 
echo FrmAppHelper::esc_textarea($style->post_content['custom_css']);
?>
</textarea>

        <?php 
foreach ($style->post_content as $k => $v) {
    if ($k == 'custom_css') {
        continue;
    }
    ?>
        <input type="hidden" value="<?php 
    echo esc_attr($v);
    ?>
" name="<?php 
    echo esc_attr($frm_style->get_field_name($k));
    ?>
Exemple #5
0
    FrmProFieldsHelper::get_shortcode_select($values['id'], 'frm_dyncontent');
}
?>
<br/>
                <?php 
if ($display) {
    ?>
                <input type="hidden" value="<?php 
    echo $display->id;
    ?>
" name="frm_display_id" />
                <textarea id="frm_dyncontent" name="frm_<?php 
    echo $display->show_count == 'single' ? 'single_' : 'dyn';
    ?>
content" rows="10" style="width:98%"><?php 
    echo stripslashes(FrmAppHelper::esc_textarea($display->show_count == 'single' ? $display->content : $display->dyncontent));
    ?>
</textarea>
                <?php 
} else {
    ?>
                <textarea id="frm_dyncontent" name="frm_dyncontent" rows="10" style="width:98%"></textarea>
                <?php 
}
?>
 
            </td>
        </tr>
        
        <tr class="frm_hide_post" <?php 
echo $hide_post;
Exemple #6
0
    }
}
?>
                </div>
            </div>
        </td>
    </tr>

    <tr class="form-field">
        <td><?php 
_e('No Entries Message', 'formidable');
?>
</td>
        <td>
            <textarea id="empty_msg" name="options[empty_msg]" style="width:98%"><?php 
echo FrmAppHelper::esc_textarea($post->frm_empty_msg);
?>
</textarea>
        </td>
    </tr>
</table>

<h3><?php 
_e('Advanced', 'formidable');
?>
</h3>
<table class="form-table frm-no-margin">
    <tr class="hide_dyncontent <?php 
echo in_array($post->frm_show_count, array('dynamic', 'calendar')) ? '' : 'frm_hidden';
?>
">
Exemple #7
0
echo esc_attr($notification['email_subject']);
?>
" /></p>

    <p><label><?php 
_e('Message', 'formidable');
?>
 </label><br/>
    <textarea name="notification[<?php 
echo $email_key;
?>
][email_message]" class="frm_not_email_message frm_long_input" id="email_message_<?php 
echo $email_key;
?>
" cols="50" rows="5"><?php 
echo FrmAppHelper::esc_textarea($notification['email_message']);
?>
</textarea></p>

    <h4><?php 
_e('Options', 'formidable');
?>
 </h4>
        <label for="inc_user_info_<?php 
echo $email_key;
?>
"><input type="checkbox" name="notification[<?php 
echo $email_key;
?>
][inc_user_info]" class="frm_not_inc_user_info" id="inc_user_info_<?php 
echo $email_key;
Exemple #8
0
                            </div>
                            */
                            ?>
    <div class="frm_rte">
        <p class="howto"><?php 
                            _e('These buttons are for illustrative purposes only. They will be functional in your form.', 'formidable');
                            ?>
</p>
        <textarea name="<?php 
                            echo $field_name;
                            ?>
" rows="<?php 
                            echo $field['max'];
                            ?>
"><?php 
                            echo FrmAppHelper::esc_textarea($field['default_value']);
                            ?>
</textarea> 
    </div>
<?php 
                        } else {
                            if ($field['type'] == 'html') {
                                global $frmpro_settings;
                                ?>
<div style="width:<?php 
                                echo $frmpro_settings->field_width;
                                ?>
;margin-bottom:10px;text-align:center;">
<div class="howto button-secondary frm_html_field"><?php 
                                _e('This is a placeholder for your custom HTML.', 'formidable');
                                ?>
Exemple #9
0
" style="width:98%"/></td>
</tr>

<tr valign="top" class="hide_ar">
    <td><label><?php 
_e('Message', 'formidable');
?>
</label></td>
    <td><?php 
if (isset($values['id'])) {
    FrmProFieldsHelper::get_shortcode_select($values['id'], 'ar_email_message', 'email');
}
?>
<br/>
        <textarea name="options[ar_email_message]" id="ar_email_message" cols="50" rows="5" style="width:98%"><?php 
echo FrmAppHelper::esc_textarea($values['ar_email_message']);
?>
</textarea>
    </td>
</tr>

<tr valign="top" class="hide_ar">
    <td><label><?php 
_e('Email Format', 'formidable');
?>
</label></td>
    <td><input type="checkbox" name="options[ar_plain_text]" id="ar_plain_text" value="1" <?php 
checked($values['ar_plain_text'], 1);
?>
 /> <?php 
_e('Send Emails in Plain Text', 'formidable');
            ?>
</textarea></p>
                            <?php 
        }
        unset($field);
    }
}
?>
                </div>

                <p><label class="frm_primary_label"><?php 
_e('After Fields', 'formidable');
?>
</label>
                <textarea name="options[after_html]" rows="3" class="frm_long_input"><?php 
echo FrmAppHelper::esc_textarea($values['after_html']);
?>
</textarea></p> 
            </div>
        </div>
        <div id="post_settings" class="post_settings tabs-panel" style="display:none;">
            <?php 
if ($frmpro_is_installed) {
    FrmProFormsController::post_options($values);
} else {
    FrmAppController::update_message('create and edit posts, pages, and custom post types through your forms');
}
?>
        </div>
        
        <?php 
Exemple #11
0
">
            <td colspan="2">
				<label><?php 
_e('Customize Content', 'formidable');
?>
</label>
				<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php 
esc_attr_e('The content shown on your single post page. If nothing is entered here, the regular post content will be used.', 'formidable');
?>
" ></span><br/>
				<textarea id="frm_dyncontent" placeholder="<?php 
esc_attr_e('Add text, HTML, and fields from your form to build your post content.', 'formidable');
?>
" name="dyncontent" rows="10" class="frm_not_email_message large-text"><?php 
if ($display) {
    echo FrmAppHelper::esc_textarea($display->frm_show_count == 'one' ? $display->post_content : $display->frm_dyncontent);
}
?>
</textarea>
                <p class="howto"><?php 
_e('Editing this box will update your existing view or create a new one.', 'formidable');
?>
</p>
            </td>
        </tr>

        <tr>
            <th>
                <label><?php 
_e('Excerpt', 'formidable');
?>
echo FrmAppHelper::esc_textarea($values['edit_msg']);
?>
</textarea>
    </td>
</tr>
<tr class="hide_save_draft <?php 
echo $values['save_draft'] ? '' : ' frm_hidden';
?>
">
    <td>
        <div><?php 
_e('Saved Draft', 'formidable');
?>
</div>
        <textarea name="options[draft_msg]" id="draft_msg" cols="50" rows="2" class="frm_long_input"><?php 
echo FrmAppHelper::esc_textarea($values['draft_msg']);
?>
</textarea>
        <!--
        <select name="options[save_draft]" id="save_draft" class="hide_save_draft">
            <option value="0"><?php 
_e('No one', 'formidable');
?>
</option>
            <option value="1" <?php 
echo $values['save_draft'] == 1 ? ' selected="selected"' : '';
?>
><?php 
_e('Logged-in Users', 'formidable');
?>
</option>
echo esc_attr($form_action->post_content['email_subject']);
?>
" /></p>

        <p><label><?php 
_e('Message', 'formidable');
?>
 </label><br/>
        <textarea name="<?php 
echo esc_attr($this->get_field_name('email_message'));
?>
" class="frm_not_email_message large-text" id="<?php 
echo esc_attr($this->get_field_id('email_message'));
?>
" cols="50" rows="5"><?php 
echo FrmAppHelper::esc_textarea($form_action->post_content['email_message']);
?>
</textarea></p>

        <h4><?php 
_e('Options', 'formidable');
?>
 </h4>
            <label for="<?php 
echo esc_attr($this->get_field_id('inc_user_info'));
?>
"><input type="checkbox" name="<?php 
echo esc_attr($this->get_field_name('inc_user_info'));
?>
" class="frm_not_inc_user_info" id="<?php 
echo esc_attr($this->get_field_id('inc_user_info'));
Exemple #14
0
                <p><label><?php 
_e('After Fields', 'formidable');
?>
</label>
                <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php 
echo FrmAppHelper::esc_textarea($values['after_html']);
?>
</textarea></p>

                <p><label><?php 
_e('Submit Button', 'formidable');
?>
</label>
                <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php 
echo FrmAppHelper::esc_textarea($values['submit_html']);
?>
</textarea></p>
            </div>
        </div>

		<?php 
foreach ($sections as $key => $section) {
    if (isset($section['anchor'])) {
        $sec_anchor = $section['anchor'];
    } else {
        $sec_anchor = $key;
    }
    ?>
            <div id="<?php 
    echo esc_attr($sec_anchor);
Exemple #15
0
<textarea id="excerpt" name="excerpt" style="width:98%;"><?php 
echo FrmAppHelper::esc_textarea($post->post_excerpt);
?>
</textarea>
<p class="howto"><?php 
_e('This is not displayed anywhere, but is just for your reference. (optional)', 'formidable');
?>
</p>
Exemple #16
0
</div>
    

<p>
<label><?php 
_e('After Content', 'formidable');
?>
 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php 
_e('This content will not be repeated. This would be a good place to close any HTML tags from the Before Content field.', 'formidable');
?>
" ></span> (<?php 
_e('optional', 'formidable');
?>
)
<textarea id="after_content" name="options[after_content]" rows="3" style="width:98%"><?php 
echo FrmAppHelper::esc_textarea($post->frm_after_content);
?>
</textarea>
</label>
</p>

    
<div class="hide_dyncontent <?php 
echo in_array($post->frm_show_count, array('dynamic', 'calendar')) ? '' : 'frm_hidden';
?>
">
    <label><?php 
_e('Dynamic Content', 'formidable');
?>
 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php 
printf(__('The HTML for the entry on the dynamic page. This content will NOT be repeated, and will only show when the %1$s is clicked.', 'formidable'), '[detaillink]');
Exemple #17
0
				</div>
				<div class="clear"></div>
			</div>
		</div>
		
		<div class="widget clearfix">
			<div class="widget-top">
				<div class="widget-title-action"><a class="widget-action"></a></div>
				<div class="widget-title"><h4><?php 
_e('Custom CSS', 'formidable');
?>
</h4></div>
			</div>
			<div class="widget-inside">
                <textarea name="frm_custom_css" style="width:100%;height:150px;margin:5px 0;"><?php 
echo FrmAppHelper::esc_textarea($frmpro_settings->custom_css);
?>
</textarea>
                <p><em><?php 
_e('You can add custom css here or in your theme style.css', 'formidable');
?>
</em></p>
			</div>
		</div>
	</fieldset>
</div>

<style type="text/css">
#frm_show_cal{
vertical-align:bottom; height:27px; width:30px;
background:url(<?php 
Exemple #18
0
                                ?>
 style="height:<?php 
                                echo $field['max'] ? (int) $field['max'] * 17 : 125;
                                ?>
px;<?php 
                                if (!$field['size']) {
                                    ?>
width:<?php 
                                    echo $frmpro_settings->field_width;
                                }
                                ?>
" <?php 
                                do_action('frm_field_input_html', $field);
                                ?>
><?php 
                                echo FrmAppHelper::esc_textarea($field['value']);
                                ?>
</textarea>
<?php 
                                if (!FrmProFieldsHelper::mobile_check()) {
                                    if (!isset($frm_vars['rte_loaded'])) {
                                        $frm_vars['rte_loaded'] = array();
                                    }
                                    $frm_vars['rte_loaded'][] = 'field_' . $field['field_key'];
                                }
                            }
                        } else {
                            if ($field['type'] == 'file') {
                                if (isset($field['read_only']) && $field['read_only'] && (!isset($frm_vars['readonly']) || $frm_vars['readonly'] != 'disabled')) {
                                    foreach ((array) maybe_unserialize($field['value']) as $media_id) {
                                        if (!is_numeric($media_id)) {
Exemple #19
0
            _e('Complete', 'formidable');
            ?>
</label>
        </td>
        <?php 
        }
        ?>
        <td>
            <?php 
        if (strlen($string->value) > 80) {
            ?>
            <textarea name="frm_wpml[<?php 
            echo $trans->id;
            ?>
][value]" style="width:100%"><?php 
            echo FrmAppHelper::esc_textarea(stripslashes($trans->value));
            ?>
</textarea>
            <?php 
        } else {
            ?>
            <input type="text" value="<?php 
            echo esc_attr(stripslashes($trans->value));
            ?>
" name="frm_wpml[<?php 
            echo $trans->id;
            ?>
][value]" style="width:100%" />
            <?php 
        }
        ?>