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
{ | |
// Goes inside Preference.sublime-settings -- User | |
// | |
// First "theme" line defines which Boxy theme you've selected | |
// Rest of the lines are configuration of Boxy theme itself. | |
// | |
// Boxy theme full settings: https://github.com/ihodev/sublime-boxy/wiki/Settings#accent | |
"theme": "Boxy Tomorrow.sublime-theme", | |
"theme_accent_purple": true, | |
"theme_bar": true, |
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
<script> | |
WebFontConfig = { | |
google: { | |
families: ['Montserrat:400,700', 'Open Sans:300,400,600,700', 'Roboto'] | |
} | |
}; | |
(function(d) { | |
var wf = d.createElement('script'), s = d.scripts[0]; | |
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; | |
wf.async = true; |
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 | |
// Change 'site_folder_name' with your valet site's name, e.g., gutenberg | |
// Change '/root-folder' with the root folder you want to start | |
// when you type e.g., gutenberg.dev | |
class MyValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* |
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
/** | |
* Get URL Parameter | |
* | |
* By: Zeshan Ahmed | |
* URI: http://www.zeshanahmed.com/ | |
* Source: stackoverflow (question unknown) | |
* | |
* This function is used to get the parameter from current URL or | |
* the URL passed via second argument in the 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
/* Columns | |
* | |
* Overwrites the default | |
* enfold column gutter | |
* spacing to add a gap of | |
* 30px | |
* | |
* Author: Zeshan Ahmed | |
* Author URL: http://www.zeshanahmed.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
<?php | |
/** | |
* change 'product_cat' to your desired taxonomy. | |
*/ | |
$categories = get_terms( array( | |
'taxonomy' => 'product_cat', | |
'hierarchical' => false, | |
) ); |
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
/** | |
* Redirect CF7 After Submission | |
* | |
* Accepts 'custom_on_sent_ok' parameter in CF7 form additional settings. e.g., | |
* custom_on_sent_ok: http://example.com/thank-you | |
*/ | |
add_action( 'wpcf7_mail_sent', 'custom_redirect_cf7_form' ); | |
function custom_redirect_cf7_form( $wpcf7 ) { | |
$on_sent_ok = $wpcf7->additional_setting('custom_on_sent_ok', false); |
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
/** | |
* datePicker Date Range | |
* From: today | |
* To: 1 month | |
* | |
* Update to 1 month when the DateFrom is changed too. | |
* | |
* Original Code from: https://jqueryui.com/datepicker/#date-range | |
*/ | |
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 | |
/** | |
* WP_Query 'meta_query' for "Date Start" and "Date End" custom fields. | |
* Conditions are (relation = 'OR'): | |
* 1. If "Date End" does not exist, compare "Date Start" only. | |
* 2. If "Date End" exists, show events in between that and "Date Start". | |
*/ | |
'meta_query' => array( |