This file contains hidden or 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
| ;(function () { | |
| let isResting = false | |
| let isOverRestrictedEls = false | |
| let lastMoveTime = performance.now() | |
| const restDelayDefault = 5000 // ms before fading out | |
| const restDelayPointerOver = 50 // ms before fading out | |
| let restDelay = restDelayDefault // ms before fading out | |
| let mouseX = 0 |
This file contains hidden or 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
| function flp_move_scripts_to_footer(){ | |
| $scripts = [ | |
| [ | |
| 'name' => 'wp-consent-api-js', | |
| 'file' => 'URL_TO_FILE', | |
| 'in_footer' => true, | |
| 'strategy' => 'defer', | |
| 'dependencies' => false, //false or [] | |
| 'version' => null, |
This file contains hidden or 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
| on: push | |
| name: 🚀 Deploy website on push | |
| jobs: | |
| web-deploy: | |
| name: 🎉 Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🚚 Get latest code | |
| uses: actions/checkout@v4 |
This file contains hidden or 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
| name: Github Action to Publish Wordpress Theme to hosting server | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| web-deploy: | |
| name: 🚀 Deploy Wordpress Theme Every Commit to main |
This file contains hidden or 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
| on: [push] | |
| jobs: | |
| deploy_job: | |
| runs-on: ubuntu-latest | |
| name: Deploy with rsync exclude | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 |
This file contains hidden or 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
| name: Github Action to Publish Wordpress Theme to hosting server | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| web-deploy: |
This file contains hidden or 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
| /** | |
| * Create an ACF select field and populate options with menus created in appearance | |
| */ | |
| function namespace_populate_menus_field(array $field): array | |
| { | |
| // Reset all | |
| $field['choices'] = []; | |
| // Get all registered menus and add them to the select field |
This file contains hidden or 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
| .parent{ | |
| background-color:#444; | |
| text-align:center; | |
| height:200vh; | |
| width:100vw; | |
| position:relative; | |
| font-family:system-ui; | |
| font-size: 36px; | |
| font-weight:bold; |