Show a button. See https://markba.in/style-guide
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
__ __ __ __ | |
\ V\ V\ V / v3.9.1 Path:"/home/mark/code/vvv" | |
\_/\_/\_/ git::master(8b46bc24) | |
Platform: linux shell:/usr/bin/zsh systemd vagrant-goodhosts CaseSensitiveFS shared_db_folder_disabled | |
Vagrant: v2.3.4, virtualbox: v5.2.42 | |
Docs: https://varyingvagrantvagrants.org/ | |
Contribute: https://github.com/varying-vagrant-vagrants/vvv | |
Dashboard: http://vvv.test |
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 | |
$dir = dirname(__FILE__); | |
echo "<p>Full path to this dir: " . $dir . "</p>"; | |
echo $_SERVER['DOCUMENT_ROOT']; | |
?> |
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 | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=changeme # <-- wordpress owner | |
WP_GROUP=changeme # <-- wordpress group | |
WP_ROOT=/home/changeme # <-- wordpress root directory |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>www.example.com — Coming Soon!</title> | |
<!-- START META TAG SECTION --> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<meta http-equiv="Content-Language" content="en"> |
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
jQuery( document ).ready( function( $ ) { | |
/** | |
* Animations | |
*/ | |
// See https://github.com/michalsnik/aos | |
AOS.init(); |
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
>"C:\Program Files (x86)\Git\bin\sh.exe" --login -i -cur_console:n -cur_console:d:"e:\Mark Bain Design\dev\vvv\Three\VVV\www\makingmusic" -cur_console:P:"^<Solarized ^(John Doe^)^>" -cur_console:t:"Make Music" | |
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i -cur_console:s1TVn -cur_console:d:"e:\Mark Bain Design\dev\vvv\Three\VVV\www\makingmusic" -cur_console:P:"^<Solarized ^(Luke Maciak^)^>" | |
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i -cur_console:s1THn -cur_console:d:"e:\Mark Bain Design\dev\vvv\Three\VVV\www\makingmusic" -cur_console:P:"^<Solarized ^(Luke Maciak^)^>" | |
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i -cur_console:s2THn -cur_console:d:"e:\Mark Bain Design\dev\vvv\Three\VVV\www\makingmusic\public_html\wp-content" -cur_console:P:"^<Twilight^>" |
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
add_filter( 'woocommerce_get_availability', 'custom_get_availability', 1, 2); | |
function custom_get_availability( $availability, $_product ) { | |
global $product; | |
$stock = $product->get_total_stock(); | |
if ( $_product->is_in_stock() ) $availability['availability'] = __($stock . ' places remaining', 'woocommerce'); | |
if ( !$_product->is_in_stock() ) $availability['availability'] = __('SOLD OUT', 'woocommerce'); | |
return $availability; |
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
/** | |
* Order person achive results A-Z by last name | |
*/ | |
function baindesign324_reorder_posts_person( $query ) { | |
if( isset($query->query_vars['post_type']) && $query->query_vars['post_type'] == 'cpt1' ) { | |
$query->set('orderby', 'meta_value'); | |
$query->set('meta_key', 'last_name'); | |
$query->set('order', 'ASC'); | |
} | |
} |
NewerOlder