/** * HTML formatted repetitive form. * * Add this for each field processed. * * @uses hook 'wpcf_post_edit_field' * @param type $field * @return string */ function wpcf_repetitive_form($field, $post) { // Add repetitive control buttons if not copied by WPML if (isset($field['wpml_action']) && $field['wpml_action'] == 'copy') { return '<div style="clear:both;"></div>'; } $repetitive_form = ''; $repetitive_form .= '<div class="wpcf-repetitive-buttons">'; $repetitive_form .= wpcf_repetitive_add_another_button($field, $post); $repetitive_form .= '</div><div style="clear:both;"></div>'; return $repetitive_form; }
/** * HTML formatted repetitive form. * * Add this for each field processed. * * @uses hook 'wpcf_post_edit_field' * @param type $field * @return string */ function wpcf_repetitive_form($field, $post) { // TODO WPML move // Add repetitive control buttons if not copied by WPML if (wpcf_wpml_field_is_copied($field)) { return '<div style="clear:both;"></div>'; } $repetitive_form = ''; $repetitive_form .= '<div class="wpcf-repetitive-buttons">'; $repetitive_form .= wpcf_repetitive_add_another_button($field, $post); $repetitive_form .= '</div><div style="clear:both;"></div>'; return $repetitive_form; }