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
name: Deploy to cPanel | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
FTP-Deploy-Action: | |
name: FTP-Deploy-Action | |
runs-on: ubuntu-latest | |
steps: |
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 validateCardNumber($cardNumber) | |
{ | |
if (empty($cardNumber) || strlen($cardNumber) !== 16) { | |
return false; | |
} | |
$cardToArr = str_split($cardNumber); | |
$cardTotal = 0; | |
for ($i = 0; $i < 16; $i++) { |
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 | |
/* | |
* | |
* | |
* | |
* Developed by Mahdyar.me | |
* Contact: hi@mahdyar.me | |
* |
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 | |
/* | |
* | |
* Customized add to cart button for WooCommerce | |
* © mahdyar.me (hasanpour@mahdyar.me) | |
* | |
* Add this to the end of your template's "functions.php" file (without "<?php" at the begining of this file) | |
* | |
*/ |
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
var allInputs = document.getElementsByTagName("input"); | |
for (var i = 0, max = allInputs.length; i < max; i++){ | |
if (allInputs[i].type === 'checkbox' && allInputs[i].id.endsWith('_8')) | |
allInputs[i].checked = true; | |
} |
OlderNewer