This file contains 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 | |
$bodyfonts_array = array("one","two","three","four","five"); | |
$options[] = array( ... | |
"options" => $bodyfonts_array ); |
This file contains 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 | |
// Load WebFont | |
function gfonts_api($gf1) { | |
$addfont = <<<ADDFONTS | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'></script> | |
<script type='text/javascript'>WebFont.load({ google: {families: [ '$gf1' ]}})</script> | |
<style type='text/css'>#blog-title {font-family: '$gf1', serif;}</style> |
This file contains 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 | |
$options[] = array( "name" => "Header Font", | |
"desc" => "Choose a font from the <a href='http://google.com/webfonts'>Google WebFont Directory</a> and type its name in the text field.", | |
"id" => $shortname."_google_hdr_font", | |
"std" => "", | |
"type" => "text"); |
This file contains 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
<script type='text/javascript'>WebFont.load({ google: {families: [ '$gf1' ]}})</script> |
This file contains 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
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'></script> |
This file contains 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 | |
$hdr_dfont = get_option($shortname . '_default_hdr_font' ); | |
gfonts_api($hdr_gfont); |
This file contains 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 | |
// Post formats conditional in functions.php | |
// echo format and post classes for testing | |
function wpfolio_post_formats() { | |
global $post; | |
$post_id = $post->ID; | |
$format = get_post_format( $post_id ); |
This file contains 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
#include <MP3Trigger.h> | |
MP3Trigger trigger; | |
const int piezoPin = A0; // piezo connected to analog pin 0 | |
const int threshold = 100; | |
int valueP = 0; | |
int buttonState = 0; | |
void setup() |
This file contains 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
if (valueP > threshold) | |
{ | |
for (int i=1;i<=41;i++) | |
{ | |
Serial.print("button"); | |
trigger.trigger(i); | |
} | |
} |
This file contains 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 | |
// Testing if we are dealing with version 5.3.0 or higher - prevent site crash if server uses older PHP version | |
if (version_compare(PHP_VERSION, '5.3.0', '>=')) { | |
// PHP5 function here | |
} else { | |
$error = "<strong>Invalid PHP version, unable to load WPFolio RSS feed. Check your server's PHP preferences and update to the latest PHP version.</strong>"; | |
echo $error; | |
} |