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 | |
/** | |
* Plugin Name: ACF Escape HTML Log Check | |
* Description: Checks if the ACF Escape HTML Log has been triggered. | |
* Version: 1.0.0 | |
* Requires at least: 6.0 | |
* Requires PHP: 7.4 | |
* Author: Tim Flight | |
* Author URI: https://github.com/tflight |
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 | |
/** | |
* When ShippingEasy sends API request for all orders, just show them orders in the custom status | |
*/ | |
add_filter('woocommerce_rest_orders_prepare_object_query', 'shippingeasy_woocommerce_rest_orders_prepare_object_query', 10, 2); | |
function shippingeasy_woocommerce_rest_orders_prepare_object_query($args, $request) | |
{ |
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
# Apache Server Config | MIT License | |
# https://gist.github.com/bhubbard/6082577 | |
# Modified from https://github.com/h5bp/server-configs-apaches | |
# ############################################################################## | |
# # MIME TYPES AND ENCODING # | |
# ############################################################################## | |
# ------------------------------------------------------------------------------ | |
# | ETag removal | |
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
.table-stack { | |
display: block; | |
} | |
.table-stack tr { | |
display: block; | |
} | |
.table-stack thead { | |
display: none; |
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
.card:hover .stretched-link::after{ | |
background-color: rgba(0,0,0,0.3); | |
} |
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
/** | |
* Responsive Column Counts with Bootstrap 4 | |
* <div class="column-count-md-3"> | |
* <p>Very long Lorem ipsum...</p> | |
* </div> | |
*/ | |
@each $breakpoint in map-keys($grid-breakpoints) { | |
@include media-breakpoint-up($breakpoint) { | |
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); |
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
// @link https://github.com/twbs/bootstrap/issues/23892#issuecomment-396831166 | |
@each $breakpoint in map-keys($grid-breakpoints) { | |
@include media-breakpoint-up($breakpoint) { | |
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); | |
.border#{$infix}-top { border-top: $border-width solid $border-color ; } | |
.border#{$infix}-right { border-right: $border-width solid $border-color ; } | |
.border#{$infix}-bottom { border-bottom: $border-width solid $border-color ; } | |
.border#{$infix}-left { border-left: $border-width solid $border-color ; } |
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 | |
$mbox = imap_open("{mail.example.com:993/imap/ssl}", "username", "password"); | |
if (!$mbox) { | |
echo 'fail'; | |
} | |
echo 'success'; |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
$auth_factory = new \Aura\Auth\AuthFactory($_COOKIE); | |
$auth = $auth_factory->newInstance(); | |
$imap_adapter = $auth_factory->newImapAdapter( | |
'{mail.example.com:993/imap/ssl}' | |
); | |
$loginService = $auth_factory->newLoginService($imap_adapter); |
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 | |
namespace App\Middleware; | |
use Psr\Http\Message\ServerRequestInterface as Request; | |
use Psr\Http\Message\ResponseInterface as Response; | |
use Slim\Views\Twig as View; | |
class SessionMiddleware | |
{ |
NewerOlder