Gooey menu with CSS and SVG filters. Version 2
A Pen by Lucas Bebber on CodePen.
<?php | |
/** | |
* Swap Function (5) with the following | |
* (5)(b) Front end button | |
*/ | |
function getPostLikeLink( $post_id ) { | |
$theme_object = wp_get_theme(); | |
$themename = esc_attr( $theme_object->Name ); // the theme name | |
$like_count = get_post_meta( $post_id, "_post_like_count", true ); // get post likes | |
if ( ( !$like_count ) || ( $like_count && $like_count == 0 ) ) { // no votes, set up empty variable |
##Create an alias to MAMP's PHP installation
To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.
Within the terminal, run:
nano ~/.bash_profile
This will open nano with the contents, at the top in a blank line add the following line:
/** | |
* Open all external links in a new window | |
*/ | |
jQuery(document).ready(function($) { | |
$('a') | |
.filter('[href^="http"], [href^="//"]') | |
.not('[href*="' + window.location.host + '"]') | |
.attr('rel', 'noopener noreferrer') | |
.attr('target', '_blank'); | |
}); |