Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create an uploaded dir to save the uploaded files.
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
<button class="switch">Reverse this mother!</button> | |
<div class="svg-container"> | |
<?xml version="1.0" encoding="utf-8"?> | |
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" | |
width="520" height="650" viewBox="0 0 520 650" enable-background="new 0 0 520.562 650.435" | |
xml:space="preserve"> | |
<g> | |
<path fill="#FF0000" d="M520.496,488.999c-1.104-11.037-10.346-20.31-27.508-27.636c0.765-13.233,0.962-25.827,1.143-37.207 |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html dir="ltr" lang="en-US" id="h" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html dir="ltr" lang="en-US" id="h" class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html dir="ltr" lang="en-US" id="h" class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html ldir="ltr" lang="en-US" class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>iPhone Tilterising</title> | |
<style> |
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 | |
/** Loads the WordPress Environment and Template */ | |
require('./wp-blog-header.php'); | |
/** | |
* Move all ACF media from a post into a ACF flexible content box. | |
* NB: Custom WPDB prefix, and names of custom fields | |
*/ | |
global $wpdb; |
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
function parse_tel_number($tel_number) { | |
$tel = preg_replace('/\s|\-|\(0\)+/' ,'' ,$tel_number); // Remove " ", -, "(0)" | |
$tel = preg_replace('/^0/', '0044', $tel); // Prefix single zero string with 0044, defaults to England | |
$tel = preg_replace('/\+/', '00', $tel); // Replace plus prefixed numbers with 00 to represent international | |
$tel = preg_replace('/^([^0])/', "00$1", $tel); // Any numbers without 0 at the front are assumed to be international | |
return "<a href=\"tel:$tel\">$tel_number</a>"; | |
} |
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 | |
/* | |
* Advanced Custom Fields - Date and Time Picker field | |
* Copyright (c) 2012 Per Soderlind - http://soderlind.no | |
* | |
* Documentation: | |
* | |
* This is an add-on for the Advanced Custom Fields WordPress plugin that allows you to add a Time Picker field type. | |
* | |
* Version: 1.1.1 |
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
/* Setup our custom fields variable */ | |
global $custom_comment_meta_LA; | |
$custom_comment_meta_LA = array( | |
'rating' => '<p class="comment-form-rating"><input id="rating" name="rating" size="30" type="hidden" value="0" /></p>', | |
'vote_count' => '<p class="comment-form-vote_count"><input id="vote_count" name="vote_count" size="30" type="hidden" value="0" /></p>' | |
// 'file' => '<label for="image">Booooosh</label><input type="file" name="image" size="31" />' | |
); | |
/* Add our custom fields into comment form */ |
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 | |
/* | |
* Advanced Custom Fields - New field template | |
* | |
* Create your field's functionality below and use the function: | |
* register_field($class_name, $file_path) to include the field | |
* in the acf plugin. | |
* | |
* Documentation: |
NewerOlder