This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* this part of the code adds two columns to desktop */ | |
@media only screen and (min-width: 767px) { | |
.c-custom-contact-form-7 .c-grid { | |
display: grid; | |
gap: 5px; | |
grid-template-columns: 50% 50%; | |
} | |
} | |
/* this part of the code adds two columns to desktop */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="c-custom-contact-form-7"> | |
<div class="c-grid"> | |
<label> Your name | |
[text* your-name] </label> | |
<label> Your email | |
[email* your-email] </label> | |
</div> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Assuming $entry is already defined as in your previous code | |
echo '<table border="1">'; | |
echo '<tr>'; | |
echo '<th>ID</th>'; | |
echo '<th>Date Created</th>'; | |
echo '<th>Testing Field</th>'; | |
echo '<th>Second Choice</th>'; | |
// Add more <th> elements for additional fields as needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach ($entry as $entry_data) { | |
if ($entry_data[3.1] === 'First Choice') { | |
echo '<p>This entry has the first choice selected:</p>'; | |
// Additional code for displaying other fields or custom formatting | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach ( $entry as $entry_data ) { | |
echo '<p>Testing Field: ' . $entry_data[1] . '</p>'; | |
echo '<p>Second Choice: ' . $entry_data[2] . '</p>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$form_id = '1'; | |
$entry = GFAPI::get_entries( $form_id ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="c-grid"> | |
<div> | |
<label> Your name | |
[text* your-name] </label> | |
<label> Your email | |
[email* your-email] </label> | |
</div> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.c-grid { | |
display: grid; | |
grid-template-columns: auto auto; | |
gap: 20px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Trigger WooCommerce order email programatically. | |
* | |
* @param INT order_id - WooCommerce WC_Order order id | |
*/ | |
function prefix_send_woocommerce_order_emails( $order_id ) { | |
$wc_emails = WC()->mailer()->get_emails(); | |
if ( empty( $wc_emails ) ) return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("DOMContentLoaded", function () { | |
const player = document.getElementById("bunny"); | |
const container = document.getElementById("container"); | |
const gameArea = document.getElementById("container"); | |
const bgground = document.getElementById('bg-ground'); | |
let isJumping = false; | |
let jumpHeight = 300; // Adjust the jump height as needed | |
let jumpSpeed = 10; // Adjust the jump speed as needed |
NewerOlder