First create global variables (in functions.php or as a mu-plugin):
<?php
/*
* CUSTOM GLOBAL VARIABLES
*/
function wtnerd_global_vars() {| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
| <?php | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
First create global variables (in functions.php or as a mu-plugin):
<?php
/*
* CUSTOM GLOBAL VARIABLES
*/
function wtnerd_global_vars() {| <div class="contact-form"> | |
| <form id="contactform" name="contactform" method="post"> | |
| <div class="row"> | |
| <div class="col-sm-6"> | |
| <input name="name" class="form-control" type="text" placeholder="Name*"/> | |
| </div> | |
| <div class="col-sm-6"> | |
| <input name="email" class="form-control" type="email" placeholder="Email*"/> | |
| </div> | |
| <div class="clearfix"></div> |
| jingli = playlist(mode='randomize',reload=1,reload_mode="rounds", "/home/baza/jingli/") | |
| baza = playlist(mode='randomize',reload=1,reload_mode="rounds", "/home/baza/baza/") | |
| baza_imported = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/stor/imported/") | |
| default = random(weights = [5, 1, 2], [jingli,baza, baza_imported]) |
| <div class="col-lg-12 col-md-12 col-sm-12" ng-controller="ContactController"> | |
| <div class="alert alert-danger" ng-show="error"> | |
| <button class="close" data-dismiss="alert">x</button> | |
| <strong>Error!</strong> An error occured while trying to send message. | |
| </div> | |
| <div class="alert alert-success" ng-show="success"> | |
| <button class="close" data-dismiss="alert">x</button> | |
| <strong>Success! </strong> Your message was successfully sent. | |
| </div> | |
| <form role="form" name="contactForm"> |
| <form id="contact" name="contact" method="post"> | |
| <fieldset> | |
| <label for="name" id="name">Name<span class="required">*</span></label> | |
| <input type="text" name="name" id="name" size="30" value="" required/> | |
| <label for="email" id="email">Email<span class="required">*</span></label> | |
| <input type="text" name="email" id="email" size="30" value="" required/> | |
| <label for="phone" id="phone">Phone</label> | |
| <input type="text" name="phone" id="phone" size="30" value="" /> |