jQuery Match Height's files and documentation can be found here.
jQuery(document).ready(function($) {
$(function() {
$('.match').matchHeight({
byRow: true,
/////////////////////////////// | |
// REMOVE TOOLSET INFOWINDOW // | |
/////////////////////////////// | |
function remove_types_info_box() { | |
return false; | |
} | |
add_filter( 'types_information_table', 'remove_types_info_box' ); |
///////////////////////// | |
// ADD THUMBNAIL SIZES // | |
///////////////////////// | |
add_image_size( 'facebook', 476, 249 ); // width x height |
////////////////////////////// | |
// COPYRIGHT YEAR SHORTCODE // | |
////////////////////////////// | |
function copyrightYear(){ | |
return date('Y'); | |
} | |
add_shortcode('copyYear', 'copyrightYear'); |
///////////////////////// | |
// REMOVE PASSWORD NAG // | |
///////////////////////// | |
remove_action('admin_notices','default_password_nag'); |
////////////////////////////////////// | |
// ENABLE SHORTCODES IN TEXT WIDGET // | |
////////////////////////////////////// | |
add_filter('widget_text','do_shortcode'); |
<style> | |
.scree_grid:after { | |
content: ''; | |
display: block; | |
clear: both; | |
} | |
.grid_sizer, | |
.grid_item { | |
width: calc(33.333% - 20px); |
jQuery Match Height's files and documentation can be found here.
jQuery(document).ready(function($) {
$(function() {
$('.match').matchHeight({
byRow: true,
#!/bin/sh | |
rm -rf /tmp/dbbackup/ | |
MYSQL_USER="root" | |
MYSQL_PASS="password" | |
NOW=$(date +"%Y-%m-%dT%H_%M_%S") | |
BACKUP_DIR=/tmp/dbbackup/$NOW | |
test -d "$BACKUP_DIR" || mkdir -p "$BACKUP_DIR" | |
# Get the database list, exclude information_schema | |
for db in $(mysql -B -s -u $MYSQL_USER --password=$MYSQL_PASS -e 'show databases' | grep -v information_schema | grep -v performance_schema) | |
do |