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 | |
function jetFormBuilder_deleteCCT( $request, $action_handler ) { | |
$cct = \Jet_Engine\Modules\Custom_Content_Types\Module::instance()->manager->get_content_types( 'my_custom_cct' ); | |
if($cct){ | |
$handler = $cct->get_item_handler(); | |
$item = $cct->db->get_item( $request['cct_item_id'] ); | |
/* | |
* Update CCT | |
* $handler->update_item([ | |
* '_ID' => $request['cct_item_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
<script defer> | |
document.addEventListener('DOMContentLoaded', ()=>{ | |
jQuery(($) => { | |
const container_blocks = document.querySelectorAll('.dynamic-blocks') | |
if(container_blocks.length>0){ | |
container_blocks.forEach(container=>{ | |
const blocks = container.querySelectorAll('.dynamic-block') | |
blocks.forEach(block=>{ | |
block.addEventListener('mouseover', ()=>{ | |
block.parentElement.querySelector('.active').classList.remove('active') |
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
/** @type {import('next').NextConfig} */ | |
const nextConfig = { | |
modularizeImports: { | |
"react-icons/?(((\\w*)?/?)*)": { | |
transform: "@react-icons/all-files/{{ matches.[1] }}/{{ member }}", | |
skipDefaultConversion: true | |
} | |
} | |
} |
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
/** @type {import('next').NextConfig} */ | |
const nextConfig = { | |
/*experimental: { | |
appDir: true, | |
},*/ | |
modularizeImports: { | |
'@mui/material': { | |
transform: '@mui/material/{{member}}' | |
}, | |
'@mui/lab': { |
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
# Loop through all user directories in /home | |
find /home/ -type d \( -name "bin" -a ! -path "*/dev/tests/*" -a ! -path "*/vendor/magento/*" \) -exec find {} -type f -name "magento" \; | while IFS= read -r dir; do | |
processed_path=$(echo "$dir") | |
user=$(echo "$processed_path" | awk -F'/' '{print $3}') | |
echo "User: $user" | |
echo "Magento 2 installation found in: $processed_path" | |
echo "Emptying Magento 2 caches..." | |
php_version=$(ls -1 /usr/local/directadmin/data/users/"$(basename "$user")"/php/php-fpm*.conf | awk -F'php-fpm|.conf' '{print $2}' | sort -nr | head -1) | |
php_path="/usr/local/php$php_version/bin/php" | |
"$php_path" "$processed_path" cache:flush |
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
import React, {FC, MouseEventHandler, useState} from 'react' | |
import clsx from 'clsx' | |
type ScrollProps = { | |
className?: string, | |
children: React.ReactNode | |
} | |
const HorizontalScroll: FC<ScrollProps> = ({ className, children }) => { | |
const scrollRef = React.useRef<HTMLDivElement>(null) |
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
const leaderlineInit = () => { | |
const elements = document.querySelectorAll('[data-leaderline]'); | |
if(elements.length < 1) return; | |
elements.forEach(element => { | |
const data = { | |
color: 'rgba(0,161,224,0.5)', // set your default color | |
startPlug: 'disc', // set your default start plug | |
endPlug: 'disc', // set your default end plug | |
path: 'grid' // set your default path style |
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
const findButtonByText = text => [...document.querySelectorAll('button')] | |
.find(btn => btn.textContent.includes(text)); | |
const func = () => { | |
document.querySelector("button[data-testid='dns-table-row-edit-link']").click(); | |
window.setTimeout(function() { | |
findButtonByText('Delete').click(); | |
window.setTimeout(function() { | |
let b = document.querySelectorAll("button"); | |
b[b.length - 1].click(); | |
}, 500); |
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
@media (min-width: -1px) { | |
.elementor-widescreen-align-center { | |
text-align:center | |
} | |
.elementor-widescreen-align-center .elementor-button { | |
width: auto | |
} |
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 type="text/javascript"> | |
let faders = [...document.querySelectorAll('section[data-background]')].reverse(); | |
function Utils() { | |
} | |
Utils.prototype = { | |
constructor: Utils, | |
isElementInView: function (element, fullyInView) { | |
var pageTop = jQuery(window).scrollTop(); | |
var pageBottom = pageTop + jQuery(window).height(); |
NewerOlder