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
--Hook Name | |
storelogin | |
--PhP Hook | |
add_action( 'jet-form-builder/custom-action/storelogin', function( $request, $action_handler ) { | |
// Get the user email from the request | |
$user_email = $request['login_email']; | |
// Get the user data by email | |
$user_data = get_user_by('email', $user_email); |
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
--Hook Name | |
updateuser | |
--PHP Hook | |
add_action( 'jet-form-builder/custom-action/updateuser', function( $request, $action_handler ) { | |
$user_id = $request['quer_user_id']; | |
$role = $request['user-current-role']; | |
$user_status = $request['user-current-status']; |
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
--Hook Name | |
registernewuseras | |
--PHP Hook | |
add_action( 'jet-form-builder/custom-action/registernewuseras', function( $request, $action_handler ) { | |
$username = sanitize_user($_POST['emailaddress']); | |
$email = sanitize_email($_POST['emailaddress']); | |
$first_name = sanitize_text_field($_POST['firstname']); | |
$last_name = sanitize_text_field($_POST['lastname']); | |
$password = sanitize_text_field($_POST['Password']); |
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
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
<script> | |
jQuery(document).ready(function($) { | |
// Hide all existing rows when the page loads | |
$('.jet-form-builder-repeater__row').hide(); | |
// Attach a click event listener to the "Add New Comment" button | |
$('.jet-form-builder-repeater__new').on('click', function() { | |
// We need to wait for the new row to be added to the DOM | |
setTimeout(function() { |
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
Note: | |
Create two meta fields in the user profile. In my case, the slug for the daily timing meta field is "usersessiontime" | |
and for the lifetime meta field, it is "user_daily_time" and for monthly record metafield is "monthly_session_store". | |
In case i set the idol time 20 seconds. |
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
.card.tabbed { | |
display: flex; | |
border: 1px solid #ddd; | |
border-radius: 8px; | |
overflow: hidden; | |
background: #fff; | |
margin: 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
.masonry-horizontal { | |
display: flex; | |
background-color: #f9f9f9; | |
border: 1px solid #ddd; | |
border-radius: 8px; | |
overflow: hidden; | |
height: 100%; | |
} | |
.masonry-image { |
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="card accordion"> | |
<div class="card-image"> | |
<img src="https://vipprops.ae/wp-content/uploads/jet-form-builder/2172fde49301047270b2897085e4319d/2024/09/Ocean-terrace.jpg" alt="Ocean Terrace"> | |
</div> | |
<div class="card-content"> | |
<h3>Hazrat Bilal Timber/Twing Accordion Card Layout 03</h3> | |
<div class="accordion-sections"> | |
<div class="accordion-section"> | |
<input type="checkbox" id="section1" class="accordion-toggle"> | |
<label for="section1" class="accordion-header">Section 1</label> |
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
.overlay-card { | |
position: relative; | |
width: 100%; | |
max-width: 1200px; /* Adjust as needed */ | |
height: 420px; | |
margin-bottom: 20px; /* Space between cards */ | |
border-radius: 8px; | |
overflow: hidden; | |
} |
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
.fixed-overlay-card { | |
position: relative; | |
width: 100%; | |
max-width: 1200px; /* Adjust as needed */ | |
height: 420px; | |
margin-bottom: 20px; /* Space between cards */ | |
border-radius: 8px; | |
overflow: hidden; | |
display: flex; | |
align-items: center; |