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
-- Phil Taylor <phil@phil-taylor.com> | |
-- @see https://github.com/joomla/joomla-cms/issues/12460 | |
-- replace jos_ with your database prefix (left as jos and not #__ for syntax highlighting) | |
-- This is not a COMPLETE fix, this only fixes SOME of the core columns in tables that contain JSON. | |
-- BACKUP YOUR DATABASE BEFORE RUNNING THIS!!!!!! | |
UPDATE jos_modules SET params = "{}" WHERE params = "" OR params = '{\"\"}' OR params = '{\\\"\\\"}'; | |
UPDATE jos_menu SET params = "{}" WHERE params = "" OR params = '{\"\"}' OR params = '{\\\"\\\"}'; | |
UPDATE jos_extensions SET params = "{}" WHERE params = "" OR params = '{\"\"}' OR params = '{\\\"\\\"}'; | |
UPDATE jos_assets SET rules = "{}" WHERE rules = "" OR rules = '{\"\"}' OR rules = '{\\\"\\\"}'; |
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 | |
/** | |
* Add checkbox field to the checkout | |
**/ | |
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
function my_custom_checkout_field( $checkout ) { | |
echo '<div id="my-new-field"><h3>'.__('My Checkbox: ').'</h3>'; |
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
#!/bin/sh | |
# jfindfiles -- Find used and unused content files in your Joomla website | |
# | |
# This scripts supports Joomla versions 1.0 - 3.3 | |
# | |
# Copyright 2014 Rene Kreijveld - email@renekreijveld.nl | |
# | |
# This program is free software; you may redistribute it and/or modify it. | |
# |
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
//* Hook site avatar before site title | |
add_action( 'genesis_header', 'sixteen_nine_site_gravatar', 5 ); | |
function sixteen_nine_site_gravatar() { | |
$header_image = get_header_image() ? '<img alt="" src="' . get_header_image() . '" />' : get_avatar( get_option( 'admin_email' ), 224 ); | |
printf( '<div class="site-avatar"><a href="%s">%s</a></div>', home_url( '/' ), $header_image ); | |
} |
NewerOlder