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
// generates Upfront child theme icon font code from https://icomoon.io/app/#/select/font | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
setTimeout(function(){ | |
var $=jQuery.noConflict(); | |
var icons = []; | |
$(".glyph .unitRight input").each(function(){icons.push($(this).val());}); | |
var iconsString = '\'font_icons\' => \'["'+icons.join('", "')+'"]\','; | |
console.log('%c Copy & paste everything below in red into your child themes settings.php array: ', 'color: #69c07b'); |
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($) { | |
$(document).ready(function() { | |
var getUrlParameter = function getUrlParameter(sParam) { | |
var sPageURL = decodeURIComponent(window.location.search.substring(1)), | |
sURLVariables = sPageURL.split('&'), | |
sParameterName, | |
i; | |
for (i = 0; i < sURLVariables.length; 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
grep -nr 'file_get_contents\|wp_remote_\|wp_feed_cache_transient_lifetime\|base64_decode\|SHOW TABLES\|WP_DEBUG\|error_reporting\|display_errors\|scream.enabled\|rewrite_rules\|flush_rules\|googlesyndication.com\|remove_role\|ALLOW_EXTERNAL\|ofc_upload_image.php\|woothemes_framework_update_head\|wpdb\|CURLOPT_CONNECTTIMEOUT\|WPCom_Theme_Updater\|dbDelta\|mysql_connect\|wp_mkdir_p\|wp_cache_flush\|wp_clean_plugins_cache\|wp_cache_delete\|do_shortcode\|switch_to_blog' . |
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
#!/bin/bash -e | |
DO_TOKEN_KEY="" # DigitalOcean token key | |
SP_CLIENTID="" # ServerPilot API Client ID | |
SP_APIKEY="" # ServerPilot API Key | |
SP_SYSUSERID="" # Systemuser ID for the specific server | |
PRODUCTION_ADMIN_USER="" # Your WordPress admin username | |
PRODUCTION_ADMIN_PASSWORD="" # Your WordPress admin user password | |
PRODUCTION_ADMIN_EMAIL="" # Your WordPress admin user email |
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
#!/bin/bash | |
admin_email="[email protected]" | |
admin_username="admin" | |
admin_password="password" | |
db_prefix="demowp_" | |
sites_directory="$HOME/Demo" | |
# Create folder for site. | |
mkdir $sites_directory/$1 && cd $sites_directory/$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
<!-- Keep unnecessary dev stuff out of backup --> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.svn/" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/vendor/" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/bower_components/" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" doesNotContain="*" endsWith="*" hasFileExtension="*" /> |
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 | |
/* | |
Valet driver for Wordpress Multisite | |
Usage: Drop this file into your ~/.valet/Drivers/ directory | |
*/ | |
class WordPressMultisiteValetDriver extends WordPressValetDriver | |
{ | |
/** |
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
.rating { | |
&__bar { | |
// Generate our rating__bar data selectors. | |
@for $i from 0 through 10 { | |
&[data-value="#{$i}"] { | |
&:before{ | |
width: $i * 10%; | |
} | |
&:after{ | |
left: $i * 10%; |
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
// My existing WordPress Project that requires MDL | |
// Assign namespace above MDL base-ui scss import. | |
// If no $namespace is assigned before importing MDL base-ui, | |
// no namespace is added. | |
$namespace: '#project-defined .specificity'; | |
// Import single MDL scss file from within node_modules (Mimmick MDL import) | |
// @import "~@masonite/base-ui/styles/style.scss"; |
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
.container { | |
width: (10/12) * 100%; | |
} | |
.container { | |
width: percentage(10/12); | |
} |