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
<a href="https://wa.me/40123456789?text=hi" style=" | |
position: fixed; | |
width: 60px; | |
height: 60px; | |
bottom: 32px; | |
right: 33px; | |
background-color: #25d366; | |
color: #FFF; | |
border-radius: 50px; | |
text-align: center; |
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
/* generic alert on error requires jquery.confirm */ | |
function alert_error(errorMsg) { | |
$.confirm({ | |
icon: 'fas fa-exclamation-triangle', | |
type: 'red', | |
title: 'Error!', | |
buttons: {'Close': function(){}}, | |
content: errorMsg, | |
}); |
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
$Username = "[email protected]" | |
$Password = "mysmtp-sender-password" | |
$EmailTo = "[email protected]" | |
$EmailFrom = "[email protected]" | |
$Subject = "Test Email Powershell" | |
$Body = "Test Email content powershell" | |
$SMTPServer = "mail.mysmtpserver.com" | |
$SMTPClient = New-Object Net.Mail.SmtpClient | |
$SMTPClient.Host = $SMTPServer |
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 | |
use \Firebase\JWT\JWT as JWT_Wrapper; | |
/** | |
* Class wrapper for JWT tokens. | |
*/ | |
class JWT { | |
use Singleton; |
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 | |
/** | |
* Dummy Endpoint | |
*/ | |
$post = JSONPost(); | |
$quantity = isset($post['quantity']) ? intval($post['quantity']) : 10; | |
$strings = generateRandomStrings($quantity); | |
// Set the content type to JSON |
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 | |
class Mailchimp_Core { | |
var $version = "1.3"; | |
var $errorMessage; | |
var $errorCode; | |
/** | |
* Cache the information on the API location on the server | |
*/ |
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 | |
/** | |
* Template Name: Blog Infinity | |
* CSDev | |
* Assign to a page called "Blog" or something | |
* Requires Bootstrap 5 but can be easily refactored to your Stylesheet | |
*/ | |
add_action('wp_head', function () { |
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
<div class="card"> | |
<?php if ($args['link']) : ?> | |
<a href="<?php echo esc_url($args['link']); ?>" class="global-link"> | |
</a> | |
<?php endif; ?> | |
<div class="card-image"> | |
<?php wp_get_attachment_image($args['image']); ?> | |
</div> |
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 | |
use PHPMailer\PHPMailer\PHPMailer; | |
// Set up SMTP settings | |
add_action( 'phpmailer_init', 'wpse_phpmailer_init' ); | |
function wpse_phpmailer_init( PHPMailer $mailer ) { | |
$mailer->isSMTP(); | |
$mailer->Host = ''; // replace with your SMTP server hostname |
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 | |
/** | |
* Home Slides | |
* CSDev | |
*/ | |
namespace CSDev; | |
?> |