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 | |
/** | |
* PayPal Standard Payment Gateway | |
* | |
* Provides a PayPal Standard Payment Gateway. | |
* | |
* @class woocommerce_paypal | |
* @package WooCommerce | |
* @category Payment Gateways | |
* @author WooThemes |
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 | |
/** | |
* Personalizando ícones do plugin WooCommerce | |
* MoIP Transparente | |
* | |
* Neste exemplo estamos trocando o ícone | |
* referente ao cartão de crédito visa e | |
* iremos exibir nossa própria imagem | |
* 'nova_imagem.png' que está dentro da |
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 | |
/** | |
* Envio de SMS utilizando PHP, XML e cURL. | |
* | |
* @author John-Henrique | |
* @copyright 2013 | |
* @version 1.0 | |
* @link http://smsdeck.com.br/documentacao/enviar-sms-php.html | |
* | |
*/ |
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
<?xml version="1.0" encoding="iso-8859-1"?> | |
<sms> | |
<contato> | |
<numero_destino>550011112222</numero_destino> | |
<numero_origem>550011112222</numero_origem> | |
</contato> | |
<mensagem>mensagem 160 dígitos </mensagem> | |
<agendar>2016-05-15 00:00</agendar> | |
<token>a54d54ae7r84gfg1fh4g78h1mj4k7u</token> | |
<key>8qw4er8w4sdfg21hd2jf65u6uk8k9j89</key> |
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 | |
/** | |
* Envio de SMS através do método POST. | |
* | |
* @author John-Henrique | |
* @copyright 2013 | |
* @version 1.0 | |
* @link http://smsdeck.com.br/documentacao/enviar-sms-post.html | |
* | |
*/ |
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
<input type="text" id="search" list="search-response" placeholder="Search cars..."> | |
<datalist id="search-response"> | |
<option value="Acura"> | |
<option value="Audi"> | |
<option value="BMW"> | |
<option value="Cadillac"> | |
<option value="Chrysler"> | |
<option value="Dodge"> | |
<option value="Ferrari"> |
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
phonon.options({ // iniciando as opções | |
navigator: { | |
defaultPage: 'principal' // definindo a tela inicial da aplicação | |
}, | |
i18n: null // definindo que não iremos utilizar internacionalização (multi idiomas) | |
}); | |
phonon.navigator().on({page: 'principal'}); // definindo a tela 'principal' da aplicação | |
phonon.navigator().on({page: 'pedido', readyDelay: 1, preventClose: true }, function( atividade ){ |
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> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" /> | |
<link rel="stylesheet" href="css/phonon.css" /> | |
<title>Pizza rápida</title> | |
</head> |
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 | |
// atalho para facilitar as coisas, sou preguiçoso mesmo | |
$campo = $_POST; | |
// verificando se o valor existe, | |
if( | |
( "" != $campo["name"] ) && // esta forma é mais rápida que usar outra função empty | |
( strlen( $campo["name"] ) < 3 ) && // A pessoa precisa se chamar pelo menos Ari veja http://php.net/manual/pt_BR/function.strlen.php | |
( false == ctype_alpha( $campo["name"] ) ) // A pessoa precisa se chamar pelo menos Ari veja http://php.net/ctype_alpha | |
){ |
OlderNewer