Why You Shouldn't Use This Library
This library is meant to be a stop-gap. It will be slower than using the native functions directly.
You should switch to ext/pdo_mysql or ext/mysqli, and migrate to prepared queries to ensure you are securely interacting with your database.
$('.link').on('click', function(e){
e.preventDefault();
var layerId = $(this).attr('id');
$(layerId).toggleClass('hide');
});
CONSTRAINT constraint_name UNIQUE(post_photo_url, post_url)
UNIQUE KEY post_photo_url (post_photo_url),
UNIQUE KEY post_url (post_url)
echo has_nav_menu( 'primary' ); // = 1