当前位置: 首页>>代码示例>>PHP>>正文


PHP ninja_forms_get_field_class函数代码示例

本文整理汇总了PHP中ninja_forms_get_field_class函数的典型用法代码示例。如果您正苦于以下问题:PHP ninja_forms_get_field_class函数的具体用法?PHP ninja_forms_get_field_class怎么用?PHP ninja_forms_get_field_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ninja_forms_get_field_class函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ninja_forms_field_timed_submit_display

function ninja_forms_field_timed_submit_display($field_id, $data, $form_id = '')
{
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    if (isset($data['timer-text']) and $data['timer-text'] != '') {
        $label = $data['timer-text'];
    } else {
        $label = __('Please wait %n seconds', 'ninja-forms');
    }
    if (isset($data['countdown']) and $data['countdown'] != '') {
        $countdown = $data['countdown'];
    } else {
        $countdown = '10';
    }
    if (isset($data['label']) and $data['label'] != '') {
        $submit_text = $data['label'];
    } else {
        $submit_text = __('Submit', 'ninja-forms');
    }
    $label = preg_replace("/%n/", "<span>" . $countdown . "</span>", $label);
    ?>

	<input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
_js" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
[no-js]" type="hidden" value="1" rel="<?php 
    echo $field_id;
    ?>
_js" class="no-js" />

	<button type="submit" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
[timer]" class="<?php 
    echo $field_class;
    ?>
 countdown-timer" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" value="<?php 
    echo $countdown;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" data-countdown="<?php 
    echo $countdown;
    ?>
" data-text="<?php 
    esc_attr_e($submit_text);
    ?>
"><?php 
    echo $label;
    ?>
</button>

	<?php 
}
开发者ID:ramiy,项目名称:ninja-forms,代码行数:60,代码来源:timed-submit.php

示例2: ninja_forms_field_submit_display

function ninja_forms_field_submit_display($field_id, $data)
{
    if (isset($data['show_field'])) {
        $show_field = $data['show_field'];
    } else {
        $show_field = true;
    }
    $field_class = ninja_forms_get_field_class($field_id);
    if (isset($data['label']) and $data['label'] != '') {
        $label = $data['label'];
    } else {
        $label = 'Submit';
    }
    ?>
	<input type="submit" name="_ninja_forms_field_<?php 
    echo $field_id;
    ?>
" class="<?php 
    echo $field_class;
    ?>
" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" value="<?php 
    echo $label;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" >
	<?php 
}
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:32,代码来源:submit.php

示例3: ninja_forms_field_checkbox_display

function ninja_forms_field_checkbox_display($field_id, $data)
{
    $field_class = ninja_forms_get_field_class($field_id);
    $default_value = $data['default_value'];
    if ($default_value == 'checked' or $default_value == 1) {
        $checked = 'checked = "checked"';
    } else {
        $checked = '';
    }
    ?>
<input id="" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" type="hidden" value="unchecked" /><input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" type="checkbox" class="<?php 
    echo $field_class;
    ?>
" value="checked" <?php 
    echo $checked;
    ?>
 rel="<?php 
    echo $field_id;
    ?>
"/><?php 
}
开发者ID:HeliWang,项目名称:EngSoc-Website,代码行数:30,代码来源:checkbox.php

示例4: ninja_forms_field_country_display

function ninja_forms_field_country_display($field_id, $data, $form_id = '')
{
    $countries = array(__('Afghanistan', 'ninja-forms') => 'AF', __('Albania', 'ninja-forms') => 'AL', __('Algeria', 'ninja-forms') => 'DZ', __('American Samoa', 'ninja-forms') => 'AS', __('Andorra', 'ninja-forms') => 'AD', __('Angola', 'ninja-forms') => 'AO', __('Anguilla', 'ninja-forms') => 'AI', __('Antarctica', 'ninja-forms') => 'AQ', __('Antigua And Barbuda', 'ninja-forms') => 'AG', __('Argentina', 'ninja-forms') => 'AR', __('Armenia', 'ninja-forms') => 'AM', __('Aruba', 'ninja-forms') => 'AW', __('Australia', 'ninja-forms') => 'AU', __('Austria', 'ninja-forms') => 'AT', __('Azerbaijan', 'ninja-forms') => 'AZ', __('Bahamas', 'ninja-forms') => 'BS', __('Bahrain', 'ninja-forms') => 'BH', __('Bangladesh', 'ninja-forms') => 'BD', __('Barbados', 'ninja-forms') => 'BB', __('Belarus', 'ninja-forms') => 'BY', __('Belgium', 'ninja-forms') => 'BE', __('Belize', 'ninja-forms') => 'BZ', __('Benin', 'ninja-forms') => 'BJ', __('Bermuda', 'ninja-forms') => 'BM', __('Bhutan', 'ninja-forms') => 'BT', __('Bolivia', 'ninja-forms') => 'BO', __('Bosnia And Herzegowina', 'ninja-forms') => 'BA', __('Botswana', 'ninja-forms') => 'BW', __('Bouvet Island', 'ninja-forms') => 'BV', __('Brazil', 'ninja-forms') => 'BR', __('British Indian Ocean Territory', 'ninja-forms') => 'IO', __('Brunei Darussalam', 'ninja-forms') => 'BN', __('Bulgaria', 'ninja-forms') => 'BG', __('Burkina Faso', 'ninja-forms') => 'BF', __('Burundi', 'ninja-forms') => 'BI', __('Cambodia', 'ninja-forms') => 'KH', __('Cameroon', 'ninja-forms') => 'CM', __('Canada', 'ninja-forms') => 'CA', __('Cape Verde', 'ninja-forms') => 'CV', __('Cayman Islands', 'ninja-forms') => 'KY', __('Central African Republic', 'ninja-forms') => 'CF', __('Chad', 'ninja-forms') => 'TD', __('Chile', 'ninja-forms') => 'CL', __('China', 'ninja-forms') => 'CN', __('Christmas Island', 'ninja-forms') => 'CX', __('Cocos (Keeling) Islands', 'ninja-forms') => 'CC', __('Colombia', 'ninja-forms') => 'CO', __('Comoros', 'ninja-forms') => 'KM', __('Congo', 'ninja-forms') => 'CG', __('Congo, The Democratic Republic Of The', 'ninja-forms') => 'CD', __('Cook Islands', 'ninja-forms') => 'CK', __('Costa Rica', 'ninja-forms') => 'CR', __('Cote D\'Ivoire', 'ninja-forms') => 'CI', __('Croatia (Local Name: Hrvatska)', 'ninja-forms') => 'HR', __('Cuba', 'ninja-forms') => 'CU', __('Cyprus', 'ninja-forms') => 'CY', __('Czech Republic', 'ninja-forms') => 'CZ', __('Denmark', 'ninja-forms') => 'DK', __('Djibouti', 'ninja-forms') => 'DJ', __('Dominica', 'ninja-forms') => 'DM', __('Dominican Republic', 'ninja-forms') => 'DO', __('Timor-Leste (East Timor)', 'ninja-forms') => 'TL', __('Ecuador', 'ninja-forms') => 'EC', __('Egypt', 'ninja-forms') => 'EG', __('El Salvador', 'ninja-forms') => 'SV', __('Equatorial Guinea', 'ninja-forms') => 'GQ', __('Eritrea', 'ninja-forms') => 'ER', __('Estonia', 'ninja-forms') => 'EE', __('Ethiopia', 'ninja-forms') => 'ET', __('Falkland Islands (Malvinas)', 'ninja-forms') => 'FK', __('Faroe Islands', 'ninja-forms') => 'FO', __('Fiji', 'ninja-forms') => 'FJ', __('Finland', 'ninja-forms') => 'FI', __('France', 'ninja-forms') => 'FR', __('France, Metropolitan', 'ninja-forms') => 'FX', __('French Guiana', 'ninja-forms') => 'GF', __('French Polynesia', 'ninja-forms') => 'PF', __('French Southern Territories', 'ninja-forms') => 'TF', __('Gabon', 'ninja-forms') => 'GA', __('Gambia', 'ninja-forms') => 'GM', __('Georgia', 'ninja-forms') => 'GE', __('Germany', 'ninja-forms') => 'DE', __('Ghana', 'ninja-forms') => 'GH', __('Gibraltar', 'ninja-forms') => 'GI', __('Greece', 'ninja-forms') => 'GR', __('Greenland', 'ninja-forms') => 'GL', __('Grenada', 'ninja-forms') => 'GD', __('Guadeloupe', 'ninja-forms') => 'GP', __('Guam', 'ninja-forms') => 'GU', __('Guatemala', 'ninja-forms') => 'GT', __('Guinea', 'ninja-forms') => 'GN', __('Guinea-Bissau', 'ninja-forms') => 'GW', __('Guyana', 'ninja-forms') => 'GY', __('Haiti', 'ninja-forms') => 'HT', __('Heard And Mc Donald Islands', 'ninja-forms') => 'HM', __('Holy See (Vatican City State)', 'ninja-forms') => 'VA', __('Honduras', 'ninja-forms') => 'HN', __('Hong Kong', 'ninja-forms') => 'HK', __('Hungary', 'ninja-forms') => 'HU', __('Iceland', 'ninja-forms') => 'IS', __('India', 'ninja-forms') => 'IN', __('Indonesia', 'ninja-forms') => 'ID', __('Iran (Islamic Republic Of)', 'ninja-forms') => 'IR', __('Iraq', 'ninja-forms') => 'IQ', __('Ireland', 'ninja-forms') => 'IE', __('Israel', 'ninja-forms') => 'IL', __('Italy', 'ninja-forms') => 'IT', __('Jamaica', 'ninja-forms') => 'JM', __('Japan', 'ninja-forms') => 'JP', __('Jordan', 'ninja-forms') => 'JO', __('Kazakhstan', 'ninja-forms') => 'KZ', __('Kenya', 'ninja-forms') => 'KE', __('Kiribati', 'ninja-forms') => 'KI', __('Korea, Democratic People\'s Republic Of', 'ninja-forms') => 'KP', __('Korea, Republic Of', 'ninja-forms') => 'KR', __('Kuwait', 'ninja-forms') => 'KW', __('Kyrgyzstan', 'ninja-forms') => 'KG', __('Lao People\'s Democratic Republic', 'ninja-forms') => 'LA', __('Latvia', 'ninja-forms') => 'LV', __('Lebanon', 'ninja-forms') => 'LB', __('Lesotho', 'ninja-forms') => 'LS', __('Liberia', 'ninja-forms') => 'LR', __('Libyan Arab Jamahiriya', 'ninja-forms') => 'LY', __('Liechtenstein', 'ninja-forms') => 'LI', __('Lithuania', 'ninja-forms') => 'LT', __('Luxembourg', 'ninja-forms') => 'LU', __('Macau', 'ninja-forms') => 'MO', __('Macedonia, Former Yugoslav Republic Of', 'ninja-forms') => 'MK', __('Madagascar', 'ninja-forms') => 'MG', __('Malawi', 'ninja-forms') => 'MW', __('Malaysia', 'ninja-forms') => 'MY', __('Maldives', 'ninja-forms') => 'MV', __('Mali', 'ninja-forms') => 'ML', __('Malta', 'ninja-forms') => 'MT', __('Marshall Islands', 'ninja-forms') => 'MH', __('Martinique', 'ninja-forms') => 'MQ', __('Mauritania', 'ninja-forms') => 'MR', __('Mauritius', 'ninja-forms') => 'MU', __('Mayotte', 'ninja-forms') => 'YT', __('Mexico', 'ninja-forms') => 'MX', __('Micronesia, Federated States Of', 'ninja-forms') => 'FM', __('Moldova, Republic Of', 'ninja-forms') => 'MD', __('Monaco', 'ninja-forms') => 'MC', __('Mongolia', 'ninja-forms') => 'MN', __('Montenegro', 'ninja-forms') => 'ME', __('Montserrat', 'ninja-forms') => 'MS', __('Morocco', 'ninja-forms') => 'MA', __('Mozambique', 'ninja-forms') => 'MZ', __('Myanmar', 'ninja-forms') => 'MM', __('Namibia', 'ninja-forms') => 'NA', __('Nauru', 'ninja-forms') => 'NR', __('Nepal', 'ninja-forms') => 'NP', __('Netherlands', 'ninja-forms') => 'NL', __('Netherlands Antilles', 'ninja-forms') => 'AN', __('New Caledonia', 'ninja-forms') => 'NC', __('New Zealand', 'ninja-forms') => 'NZ', __('Nicaragua', 'ninja-forms') => 'NI', __('Niger', 'ninja-forms') => 'NE', __('Nigeria', 'ninja-forms') => 'NG', __('Niue', 'ninja-forms') => 'NU', __('Norfolk Island', 'ninja-forms') => 'NF', __('Northern Mariana Islands', 'ninja-forms') => 'MP', __('Norway', 'ninja-forms') => 'NO', __('Oman', 'ninja-forms') => 'OM', __('Pakistan', 'ninja-forms') => 'PK', __('Palau', 'ninja-forms') => 'PW', __('Panama', 'ninja-forms') => 'PA', __('Papua New Guinea', 'ninja-forms') => 'PG', __('Paraguay', 'ninja-forms') => 'PY', __('Peru', 'ninja-forms') => 'PE', __('Philippines', 'ninja-forms') => 'PH', __('Pitcairn', 'ninja-forms') => 'PN', __('Poland', 'ninja-forms') => 'PL', __('Portugal', 'ninja-forms') => 'PT', __('Puerto Rico', 'ninja-forms') => 'PR', __('Qatar', 'ninja-forms') => 'QA', __('Reunion', 'ninja-forms') => 'RE', __('Romania', 'ninja-forms') => 'RO', __('Russian Federation', 'ninja-forms') => 'RU', __('Rwanda', 'ninja-forms') => 'RW', __('Saint Kitts And Nevis', 'ninja-forms') => 'KN', __('Saint Lucia', 'ninja-forms') => 'LC', __('Saint Vincent And The Grenadines', 'ninja-forms') => 'VC', __('Samoa', 'ninja-forms') => 'WS', __('San Marino', 'ninja-forms') => 'SM', __('Sao Tome And Principe', 'ninja-forms') => 'ST', __('Saudi Arabia', 'ninja-forms') => 'SA', __('Senegal', 'ninja-forms') => 'SN', __('Serbia', 'ninja-forms') => 'SR', __('Seychelles', 'ninja-forms') => 'SC', __('Sierra Leone', 'ninja-forms') => 'SL', __('Singapore', 'ninja-forms') => 'SG', __('Slovakia (Slovak Republic)', 'ninja-forms') => 'SK', __('Slovenia', 'ninja-forms') => 'SI', __('Solomon Islands', 'ninja-forms') => 'SB', __('Somalia', 'ninja-forms') => 'SO', __('South Africa', 'ninja-forms') => 'ZA', __('South Georgia, South Sandwich Islands', 'ninja-forms') => 'GS', __('Spain', 'ninja-forms') => 'ES', __('Sri Lanka', 'ninja-forms') => 'LK', __('St. Helena', 'ninja-forms') => 'SH', __('St. Pierre And Miquelon', 'ninja-forms') => 'PM', __('Sudan', 'ninja-forms') => 'SD', __('Suriname', 'ninja-forms') => 'SR', __('Svalbard And Jan Mayen Islands', 'ninja-forms') => 'SJ', __('Swaziland', 'ninja-forms') => 'SZ', __('Sweden', 'ninja-forms') => 'SE', __('Switzerland', 'ninja-forms') => 'CH', __('Syrian Arab Republic', 'ninja-forms') => 'SY', __('Taiwan', 'ninja-forms') => 'TW', __('Tajikistan', 'ninja-forms') => 'TJ', __('Tanzania, United Republic Of', 'ninja-forms') => 'TZ', __('Thailand', 'ninja-forms') => 'TH', __('Togo', 'ninja-forms') => 'TG', __('Tokelau', 'ninja-forms') => 'TK', __('Tonga', 'ninja-forms') => 'TO', __('Trinidad And Tobago', 'ninja-forms') => 'TT', __('Tunisia', 'ninja-forms') => 'TN', __('Turkey', 'ninja-forms') => 'TR', __('Turkmenistan', 'ninja-forms') => 'TM', __('Turks And Caicos Islands', 'ninja-forms') => 'TC', __('Tuvalu', 'ninja-forms') => 'TV', __('Uganda', 'ninja-forms') => 'UG', __('Ukraine', 'ninja-forms') => 'UA', __('United Arab Emirates', 'ninja-forms') => 'AE', __('United Kingdom', 'ninja-forms') => 'GB', __('United States', 'ninja-forms') => 'US', __('United States Minor Outlying Islands', 'ninja-forms') => 'UM', __('Uruguay', 'ninja-forms') => 'UY', __('Uzbekistan', 'ninja-forms') => 'UZ', __('Vanuatu', 'ninja-forms') => 'VU', __('Venezuela', 'ninja-forms') => 'VE', __('Viet Nam', 'ninja-forms') => 'VN', __('Virgin Islands (British)', 'ninja-forms') => 'VG', __('Virgin Islands (U.S.)', 'ninja-forms') => 'VI', __('Wallis And Futuna Islands', 'ninja-forms') => 'WF', __('Western Sahara', 'ninja-forms') => 'EH', __('Yemen', 'ninja-forms') => 'YE', __('Yugoslavia', 'ninja-forms') => 'YU', __('Zambia', 'ninja-forms') => 'ZM', __('Zimbabwe', 'ninja-forms') => 'ZW');
    if (isset($data['default_value'])) {
        $default_value = $data['default_value'];
    } else {
        $default_value = '';
    }
    if (isset($data['country_custom_first'])) {
        $country_custom_first = $data['country_custom_first'];
    } else {
        $country_custom_first = '';
    }
    if (isset($data['country_use_custom_first']) and $data['country_use_custom_first'] == 1) {
        $countries = array_merge(array($country_custom_first => ''), $countries);
    }
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    ?>

	<input type="hidden" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
_list_type" value="dropdown">
	<select name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" class="<?php 
    echo $field_class;
    ?>
">
		<?php 
    foreach ($countries as $country => $abbr) {
        ?>
			<option value="<?php 
        echo $abbr;
        ?>
" <?php 
        selected($abbr, $default_value);
        ?>
><?php 
        echo $country;
        ?>
</option>
			<?php 
    }
    ?>
	</select>

	<?php 
}
开发者ID:Natedaug,项目名称:WordPressSites,代码行数:56,代码来源:country.php

示例5: ninja_forms_field_desc_display

function ninja_forms_field_desc_display($field_id, $data, $form_id = '')
{
    if (isset($data['desc_el'])) {
        $desc_el = $data['desc_el'];
    } else {
        $desc_el = "p";
    }
    if (isset($data['default_value'])) {
        $default_value = $data['default_value'];
    } else {
        $default_value = '';
    }
    $default_value = html_entity_decode($default_value, ENT_COMPAT, "UTF-8");
    if ($desc_el == "div") {
        $default_value = wpautop($default_value);
    } else {
        $default_value = nl2br($default_value);
    }
    if (isset($data['display_style'])) {
        $display_style = $data['display_style'];
    } else {
        $display_style = '';
    }
    $default_value = do_shortcode($default_value);
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    $field_class .= ' nf-desc';
    ?>
	<<?php 
    echo $desc_el;
    ?>
 class="<?php 
    echo $field_class;
    ?>
" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
_div_wrap" style="<?php 
    echo $display_style;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
"><?php 
    echo $default_value;
    ?>
</<?php 
    echo $desc_el;
    ?>
>
	<?php 
}
开发者ID:se7ven214,项目名称:Kungfuphp.local,代码行数:51,代码来源:desc.php

示例6: ninja_forms_field_div_start

function ninja_forms_field_div_start($field_id, $data)
{
    $field_class = ninja_forms_get_field_class($field_id);
    ?>
    <div class="<?php 
    echo $field_class;
    ?>
" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
_div_wrap" rel="<?php 
    echo $field_id;
    ?>
">
<?php 
}
开发者ID:VLabsInc,项目名称:WordPressPlatforms,代码行数:16,代码来源:ninja-form-layout.php

示例7: ninja_forms_field_textarea_display

function ninja_forms_field_textarea_display($field_id, $data)
{
    if (isset($data['default_value'])) {
        $default_value = $data['default_value'];
    } else {
        $default_value = '';
    }
    if (isset($data['textarea_rte'])) {
        $textarea_rte = $data['textarea_rte'];
    } else {
        $textarea_rte = 0;
    }
    if (isset($data['textarea_media']) and $data['textarea_media'] == 1) {
        $textarea_media = true;
    } else {
        $textarea_media = false;
    }
    if (isset($data['disable_rte_mobile']) and 1 == $data['disable_rte_mobile'] and wp_is_mobile()) {
        $textarea_rte = 0;
    }
    $field_class = ninja_forms_get_field_class($field_id);
    if ($textarea_rte == 1) {
        $settings = array('media_buttons' => $textarea_media);
        $args = apply_filters('ninja_forms_textarea_rte', $settings);
        wp_editor($default_value, 'ninja_forms_field_' . $field_id, $args);
    } else {
        ?>
		<textarea name="ninja_forms_field_<?php 
        echo $field_id;
        ?>
" id="ninja_forms_field_<?php 
        echo $field_id;
        ?>
" class="<?php 
        echo $field_class;
        ?>
" rel="<?php 
        echo $field_id;
        ?>
"><?php 
        echo $default_value;
        ?>
</textarea>
		<?php 
    }
}
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:46,代码来源:textarea.php

示例8: ninja_forms_field_spam_display

function ninja_forms_field_spam_display($field_id, $data)
{
    if (isset($data['default_value'])) {
        $default_value = $data['default_value'];
    } else {
        $default_value = '';
    }
    if (isset($data['show_field'])) {
        $show_field = $data['show_field'];
    } else {
        $show_field = true;
    }
    $field_class = ninja_forms_get_field_class($field_id);
    if (isset($data['label_pos'])) {
        $label_pos = $data['label_pos'];
    } else {
        $label_pos = "left";
    }
    if (isset($data['label'])) {
        $label = $data['label'];
    } else {
        $label = '';
    }
    if ($label_pos == 'inside') {
        $default_value = $label;
    }
    ?>
	<input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" type="text" class="<?php 
    echo $field_class;
    ?>
" value="<?php 
    echo $default_value;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" />
	<?php 
}
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:45,代码来源:spam.php

示例9: ninja_forms_field_desc_display

function ninja_forms_field_desc_display($field_id, $data)
{
    if (isset($data['desc_el'])) {
        $desc_el = $data['desc_el'];
    } else {
        $desc_el = "p";
    }
    if (isset($data['default_value'])) {
        $default_value = $data['default_value'];
    } else {
        $default_value = '';
    }
    $default_value = wpautop($default_value);
    if (isset($data['display_style'])) {
        $display_style = $data['display_style'];
    } else {
        $display_style = '';
    }
    $default_value = do_shortcode($default_value);
    $field_class = ninja_forms_get_field_class($field_id);
    ?>
	<<?php 
    echo $desc_el;
    ?>
 class="<?php 
    echo $field_class;
    ?>
" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
_div_wrap" style="<?php 
    echo $display_style;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
"><?php 
    echo $default_value;
    ?>
</<?php 
    echo $desc_el;
    ?>
>
	<?php 
}
开发者ID:brunolampada,项目名称:foss4g2014-wordpress,代码行数:45,代码来源:desc.php

示例10: ninja_forms_field_honeypot_display

function ninja_forms_field_honeypot_display($field_id, $data)
{
    $field_class = ninja_forms_get_field_class($field_id);
    ?>

	<input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" type="text" class="<?php 
    echo $field_class;
    ?>
" value="" rel="<?php 
    echo $field_id;
    ?>
" />
	<?php 
}
开发者ID:hoonio,项目名称:PhoneAfrika,代码行数:20,代码来源:honeypot.php

示例11: ninja_forms_field_recaptcha_display

function ninja_forms_field_recaptcha_display($field_id, $data, $form_id = '')
{
    $settings = get_option("ninja_forms_settings");
    $lang = $settings['recaptcha_lang'];
    $siteKey = $settings['recaptcha_site_key'];
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    if (!empty($siteKey)) {
        ?>
		<input id="ninja_forms_field_<?php 
        echo $field_id;
        ?>
" name="ninja_forms_field_<?php 
        echo $field_id;
        ?>
" type="hidden" class="<?php 
        echo $field_class;
        ?>
" value="" rel="<?php 
        echo $field_id;
        ?>
" />
		<div class="g-recaptcha" data-callback="nf_recaptcha_set_field_value" data-sitekey="<?php 
        echo $siteKey;
        ?>
"></div>
        <script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=<?php 
        echo $lang;
        ?>
"> </script>
		<script type="text/javascript">
            function nf_recaptcha_set_field_value(inpval){
            	jQuery("#ninja_forms_field_<?php 
        echo $field_id;
        ?>
").val(inpval)
            }
            </script>
		<?php 
    }
}
开发者ID:ramiy,项目名称:ninja-forms,代码行数:40,代码来源:recaptcha.php

示例12: ninja_forms_field_tax_display

function ninja_forms_field_tax_display($field_id, $data, $form_id = '')
{
    if (isset($data['default_value'])) {
        $default_value = $data['default_value'];
    } else {
        $default_value = '';
    }
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    ?>
	<input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
"  type="hidden"  value="<?php 
    echo $default_value;
    ?>
">
	<input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" type="text" class="<?php 
    echo $field_class;
    ?>
" value="<?php 
    echo $default_value;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" disabled/>
	<?php 
}
开发者ID:ramiy,项目名称:ninja-forms,代码行数:37,代码来源:tax.php

示例13: ninja_forms_field_hr_display

function ninja_forms_field_hr_display($field_id, $data, $form_id = '')
{
    if (isset($data['display_style'])) {
        $display_style = $data['display_style'];
    } else {
        $display_style = '';
    }
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    ?>
	<hr class="<?php 
    echo $field_class;
    ?>
" style="<?php 
    echo $display_style;
    ?>
" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
_div_wrap" rel="<?php 
    echo $field_id;
    ?>
" />
	<?php 
}
开发者ID:Natedaug,项目名称:WordPressSites,代码行数:24,代码来源:hr.php

示例14: ninja_forms_field_submit_display

function ninja_forms_field_submit_display($field_id, $data, $form_id = '')
{
    global $ninja_forms_loading, $ninja_forms_processing;
    if (isset($ninja_forms_loading)) {
        $form_id = $ninja_forms_loading->get_form_ID();
    } else {
        $form_id = $ninja_forms_processing->get_form_ID();
    }
    if (isset($data['show_field'])) {
        $show_field = $data['show_field'];
    } else {
        $show_field = true;
    }
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    if (isset($data['label']) and $data['label'] != '') {
        $label = $data['label'];
    } else {
        $label = 'Submit';
    }
    $plugin_settings = nf_get_settings();
    if (isset($plugin_settings['process_label'])) {
        $processing_msg = $plugin_settings['process_label'];
    }
    ?>
	<div id="nf_submit_<?php 
    echo $form_id;
    ?>
" class="col-sm-offset-2 col-sm-10">
		<input type="submit" name="_ninja_forms_field_<?php 
    echo $field_id;
    ?>
" class="<?php 
    echo $field_class;
    ?>
" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" value="<?php 
    echo $label;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" >
		<a href="#" class="popup-cancel btn-cancel btn btn-link pull-right">Cancel &amp; Close</a>
	</div>
	<div id="nf_processing_<?php 
    echo $form_id;
    ?>
" style="display:none;" class="col-sm-offset-2 col-sm-10">
		<input type="submit" name="_ninja_forms_field_<?php 
    echo $field_id;
    ?>
" class="<?php 
    echo $field_class;
    ?>
" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" value="<?php 
    echo $processing_msg;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" disabled>
	</div>
	<?php 
}
开发者ID:VizualAbstract,项目名称:Marilyn,代码行数:69,代码来源:submit.php

示例15: ninja_forms_field_text_display

function ninja_forms_field_text_display($field_id, $data, $form_id = '')
{
    global $current_user;
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    if (isset($data['email']) && $data['email'] == 1) {
        $field_class .= ' email';
    }
    if (isset($data['default_value'])) {
        $default_value = $data['default_value'];
    } else {
        $default_value = '';
    }
    if (isset($data['label_pos'])) {
        $label_pos = $data['label_pos'];
    } else {
        $label_pos = "left";
    }
    if (isset($data['label'])) {
        $label = $data['label'];
    } else {
        $label = '';
    }
    if (isset($data['mask'])) {
        $mask = $data['mask'];
    } else {
        $mask = '';
    }
    if (isset($data['input_limit'])) {
        $input_limit = $data['input_limit'];
    } else {
        $input_limit = '';
    }
    if (isset($data['input_limit_type'])) {
        $input_limit_type = $data['input_limit_type'];
    } else {
        $input_limit_type = '';
    }
    if (isset($data['input_limit_msg'])) {
        $input_limit_msg = $data['input_limit_msg'];
    } else {
        $input_limit_msg = '';
    }
    $autocomplete_off = isset($data['autocomplete_off']) ? $data['autocomplete_off'] : 0;
    if (1 == $autocomplete_off) {
        $autocomplete_off = 'autocomplete="off"';
    } else {
        $autocomplete_off = '';
    }
    switch ($mask) {
        case '':
            $mask_class = '';
            break;
        case 'date':
            $mask_class = 'ninja-forms-date';
            break;
        case 'currency':
            $mask_class = 'ninja-forms-currency';
            break;
        default:
            $mask_class = 'ninja-forms-mask';
            break;
    }
    if (isset($data['datepicker']) and $data['datepicker'] == 1) {
        $mask_class = 'ninja-forms-datepicker';
    }
    $disable_input = isset($data['disable_input']) ? $data['disable_input'] : 0;
    if (1 == $disable_input) {
        $disabled = 'disabled';
    } else {
        $disabled = '';
    }
    $placeholder = isset($data['placeholder']) ? $data['placeholder'] : '';
    ?>
	<input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" data-mask="<?php 
    echo $mask;
    ?>
" data-input-limit="<?php 
    echo $input_limit;
    ?>
" data-input-limit-type="<?php 
    echo $input_limit_type;
    ?>
" data-input-limit-msg="<?php 
    echo $input_limit_msg;
    ?>
" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" type="text" placeholder="<?php 
    echo $placeholder;
    ?>
" class="<?php 
    echo $field_class;
    ?>
 <?php 
    echo $mask_class;
    ?>
//.........这里部分代码省略.........
开发者ID:se7ven214,项目名称:Kungfuphp.local,代码行数:101,代码来源:textbox.php


注:本文中的ninja_forms_get_field_class函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。