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
.custom-background .site-header-banner {background-color:#F2F0ED !IMPORTANT;} |
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
a.fancy-button:visited, | |
a.fancy-button{ | |
color: #FFF;background-color: #5CB85C;text-decoration: none; | |
border-color: #4CAE4C;display: inline-block;padding: 6px 12px;margin-bottom: 0; | |
font-size: 14px;font-weight: normal;line-height: 1.428571429;text-align: center; | |
white-space: nowrap;vertical-align: middle;cursor: pointer;background-image: none; | |
border: 1px solid rgba(0, 0, 0, 0);border-radius: 4px;-webkit-user-select: none; | |
-moz-user-select: none;-ms-user-select: none;-o-user-select: none;user-select: none; | |
} |
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 | |
/** | |
* Plugin Name: Web920 Shortcode Example | |
* Description: This is an example plugin | |
* Version: 1.0 | |
* Author: David Kryzaniak | |
* Author URI: http://dave.kz | |
*/ | |
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 | |
//add the shortcode | |
add_shortcode( | |
'testgetusers', //name of the shortcode [getusers] | |
'sample1' //the function associated with the shortcode ( get_site_users() ) | |
); | |
function sample1($attributes,$content){ | |
//make sure there is a value for each attribute |
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 | |
//shutoff all relays | |
$myFargo->setAllTo(FALSE); | |
//change the state of relay #1 | |
$myFargo->relayFlipState(1); //#1 is now ON | |
//change the state of relay #0 (Labeled "Relay1" on the board) | |
echo "Relay #0 is currently: ".($myFargo->relayFlipState(0) ? 'On' : 'Off'); //#0 is now ON |
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 | |
//Get the class | |
require_once('FargoPHP/FargoPHP.class.php'); | |
//Create a new FargoPHP object. | |
//Takes in the IP address (or DNS/Domain name) of the Fargo. Do not include the "http://" or the ending / | |
//Username, Password | |
$myFargo = new FargoPHP('192.168.1.34','admin','admin'); |
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 | |
/** | |
* Plugin Name: ShortCode | |
* | |
* Usage: [MyShortcode] | |
*/ | |
class myShortCode { | |
public function __construct(){ |
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 | |
//Lists the available filters you can select from | |
print_r(filter_list()); | |
//returns 100000000.10 | |
echo filter_var("$100,000,000.10", FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); | |
//returns -23423 | |
echo filter_var("-2,3423.2343", FILTER_SANITIZE_NUMBER_FLOAT); |