One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/bin/bash | |
set -eo pipefail | |
TARGETFMT='/opt/vagrant/embedded/gems/gems/vagrant-%s/plugins/providers/virtualbox/driver/meta.rb' | |
die() { echo >&2 "$@"; exit 1; } | |
[[ $EUID -eq 0 ]] || die "sudo required" |
// source: https://github.com/ebidel/filer.js/blob/b7ab6f4cbb82a17565ff68227e5bc984a9934038/src/filer.js#L137-159 | |
var dataURLToBlob = function(dataURL) | |
{ | |
var BASE64_MARKER = ";base64,"; | |
if (dataURL.indexOf(BASE64_MARKER) == -1) | |
{ | |
var parts = dataURL.split(","); | |
var contentType = parts[0].split(":")[1]; | |
var raw = decodeURIComponent(parts[1]); |
<?php | |
/** | |
* return $images_id array() | |
*/ | |
function get_gallery_attachments(){ | |
global $post; | |
$post_content = $post->post_content; | |
preg_match('/\[gallery.*ids=.(.*).\]/', $post_content, $ids); | |
$images_id = explode(",", $ids[1]); |