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 | |
class Paydate_Calculator { | |
/** | |
* Indicate if we're going forward (1) or backward (-1) when we make our adjustments. | |
* @var int | |
*/ | |
private $due_date_adjustment = 1; | |
/** |
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
function _remove_script_version( $src ){ | |
$parts = explode( '?ver', $src ); | |
return $parts[0]; | |
} | |
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); | |
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); |
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
form i.icon.error { | |
color: $assertive; | |
} | |
form input + i.icon.error { | |
display: none; | |
margin-left: 8px; | |
} | |
form.ng-submitted input.ng-invalid + i.icon.error { |
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
function tcb_filter_search( $term ) { | |
if ( is_search() ) | |
$search = "(($wpdb->posts.post_title LIKE '%{$term}%') OR ($wpdb->posts.post_content LIKE '%{$term}%'))"; | |
return $search; | |
} | |
add_filter( 'posts_search', 'tcb_filter_search', null, 2 ); |
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": "shelob9/router-experiment", | |
"require": { | |
"silex/silex": "~1.3", | |
"twig/twig": "^2.0@dev" | |
}, | |
"minimum-stability": "dev", | |
"autoload": { | |
"psr-4": { | |
"shelob9\\router\\": "src" |
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
// Enqueue scripts and styles | |
add_action( 'wp_enqueue_scripts', 'custom_scripts_styles_mobile_responsive' ); | |
function custom_scripts_styles_mobile_responsive() { | |
wp_enqueue_script( 'beautiful-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' ); | |
wp_enqueue_style( 'dashicons' ); | |
} |
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\Provider; | |
use Monolog\Handler\BufferHandler; | |
use Monolog\Handler\FingersCrossedHandler; | |
use Monolog\Logger; | |
use Silex\Application; | |
use Silex\ServiceProviderInterface; | |
use Symfony\Bridge\Monolog\Handler\SwiftMailerHandler; | |
use Symfony\Component\HttpKernel\Event\PostResponseEvent; |
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
$('.tooltip').tooltipster({ | |
functionBefore: function(origin, continueTooltip){ | |
continueTooltip(); | |
var color = origin.data('color'); | |
if(!color){ return false; } | |
$('.tooltipster-default').css({ | |
'background-color': 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
function hide_gallery_settings() | |
{ | |
echo '<style type="text/css">#gallery-settings{display:none;}</style>'; | |
} | |
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 | |
/** | |
* Gravity Wiz // Gravity Forms // Multi-form Entry Exporter | |
* | |
* Allows you create a custom entry export containing fields from multiple forms. The custom export | |
* is then displayed in the "Form" drop down menu in a "Multi-form Export" option group. | |
* | |
* @version 1.0 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ |
OlderNewer