This code how to replace the traditional radio-buttons, for custom images. You can do the same with checkboxes.
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
| ("use strict"); | |
| const stripe = require("stripe")(process.env.STRIPE_KEY); | |
| /** | |
| * order controller | |
| */ | |
| const { createCoreController } = require("@strapi/strapi").factories; | |
| module.exports = createCoreController("api::order.order", ({ strapi }) => ({ | |
| async create(ctx) { |
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
| #Edit the obfuscate file: | |
| 1. Find the line: "$___();$__________($______($__($_))); $________=$____();" | |
| 2. Delete all to end of file | |
| 3. Add some lines to see the original source code: | |
| -------------------------------------- | |
| $source = base64_decode(gzuncompress(base64_decode($_))); | |
| $idx = strpos($source, "eval(\$___)"); | |
| $orgSource = substr($source, $idx + 24); | |
| echo "<br/>ORIGIN SOURCE<br/><pre> $orgSource </pre> <br/>"; | |
| --------------------------------------- |
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
| <?php | |
| /* | |
| 💬 Get Google-Reviews with PHP cURL & without API Key | |
| ===================================================== | |
| **This is a dirty but usefull way to grab the first 8 most relevant reviews from Google with cURL and without the use of an API Key** | |
| How to find the needed CID No: | |
| - use: [https://pleper.com/index.php?do=tools&sdo=cid_converter] |
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
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
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
| # Apache configuration file | |
| # httpd.apache.org/docs/2.2/mod/quickreference.html | |
| # Note .htaccess files are an overhead, this logic should be in your Apache | |
| # config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html | |
| # Techniques in here adapted from all over, including: | |
| # Kroc Camen: camendesign.com/.htaccess | |
| # perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
| # Sample .htaccess file of CMS MODx: modxcms.com |
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
| { | |
| "Accessibility": [ | |
| "fab fa-accessible-icon", | |
| "fas fa-american-sign-language-interpreting", | |
| "fas fa-assistive-listening-systems", | |
| "fas fa-audio-description", | |
| "fas fa-blind", | |
| "fas fa-braille", | |
| "fas fa-closed-captioning", | |
| "far fa-closed-captioning", |
Recursive image optimizer - optimize all the images in a parent folder and all its subdirectories without deph limitation.
- Install spatie image optimizer with Composer:
composer require spatie/image-optimizer - Install all the optimizers on Linux server (SSH):