<commit_before><?php
include_once( ABSPATH . 'wp-load.php' );
include_once( ABSPATH . 'wp-content/plugins/gravityforms/includes/api.php' );

global $proudcore;
$proudcore::$libraries->addBundleToLoad( 'iframe-resizer-child' );
do_action('wp_enqueue_scripts');
wp_deregister_script( 'angular' );

//if ( empty( $wp->query_vars['gfiframe'] ) || ( 'gfembed' != $wp->query_vars['gfiframe'] && 'gfembed.php' != $wp->query_vars['gfiframe'] ) ) {
//  return;
//}
$form_id = null;
if ( ! empty( $_GET['id'] ) ) {
  $form_id = absint( $_GET['id'] );
} else {
  // The request needs an 'f' query arg with the form id.
  wp_die( esc_html__( 'Invalid form id.', 'gravity-forms-iframe' ) );
}
global $wp;


$form = GFFormsModel::get_form_meta( $form_id );
//$settings = $this->addon->get_form_settings( $form );

// Disable the toolbar in case the form is embedded on the same domain.
show_admin_bar( false );

require_once( GFCommon::get_base_path() . '/form_display.php' );

// We use this to not show the proudbar, among other things.
global $is_iframe;
$is_iframe = true;
?>

<!doctype html>
<html class="no-js" lang="en">
  <head>
    <meta charset="utf-8">
    <title>iFrame embed</title>
    <?php wp_print_styles(); ?>
    <?php if(!empty($style)) { print $style; } ?>
    <style>
        body {
          background: none;
          padding-right: 2px;
          overflow-x: hidden;
        }
    </style>
    <?php wp_print_scripts(); ?>
  </head>
  <body class="gravityforms-iframe">

    <?php gravity_form( $form_id, true, false, false, $_GET, true ); ?>
    <div data-iframe-height="true" class="iframe-target"></div>
    <?php wp_footer(); ?>
  </body>
</html><commit_msg>Add formatting to help in payments embeds<commit_after><?php
include_once( ABSPATH . 'wp-load.php' );
include_once( ABSPATH . 'wp-content/plugins/gravityforms/includes/api.php' );

global $proudcore;
$proudcore::$libraries->addBundleToLoad( 'iframe-resizer-child' );
do_action('wp_enqueue_scripts');
wp_deregister_script( 'angular' );

//if ( empty( $wp->query_vars['gfiframe'] ) || ( 'gfembed' != $wp->query_vars['gfiframe'] && 'gfembed.php' != $wp->query_vars['gfiframe'] ) ) {
//  return;
//}
$form_id = null;
if ( ! empty( $_GET['id'] ) ) {
  $form_id = absint( $_GET['id'] );
} else {
  // The request needs an 'f' query arg with the form id.
  wp_die( esc_html__( 'Invalid form id.', 'gravity-forms-iframe' ) );
}
global $wp;


$form = GFFormsModel::get_form_meta( $form_id );
//$settings = $this->addon->get_form_settings( $form );

// Disable the toolbar in case the form is embedded on the same domain.
show_admin_bar( false );

require_once( GFCommon::get_base_path() . '/form_display.php' );

// We use this to not show the proudbar, among other things.
global $is_iframe;
$is_iframe = true;
?>

<!doctype html>
<html class="no-js" lang="en">
  <head>
    <meta charset="utf-8">
    <title>iFrame embed</title>
    <?php wp_print_styles(); ?>
    <?php if(!empty($style)) { print $style; } ?>
    <style>
        body {
          background: none;
          padding-right: 2px;
          overflow-x: hidden;
        }

      .ginput_cardinfo_right {
        position: relative;
      }
    </style>
    <?php wp_print_scripts(); ?>
  </head>
  <body class="gravityforms-iframe">

    <?php gravity_form( $form_id, true, false, false, $_GET, true ); ?>
    <div data-iframe-height="true" class="iframe-target"></div>
    <?php wp_footer(); ?>
  </body>
</html>
{'fraction_non_alphanumeric': 0.1837979094076655, 'fraction_numerical': 0.0011614401858304297, 'mean_word_length': 3.668021680216802, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3498177', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1218, 'n_words': 276}