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 | |
// Documentação completa em http://codex.wordpress.org/Class_Reference/WP_Query | |
$args = array( | |
'cat' => 1, //ID da sua categoria | |
'posts_per_page ' => 4, // Número de posts a exibir | |
); | |
$novo_loop = new WP_Query( $args ); | |
if ( $novo_loop->have_posts() ) : while ( $novo_loop->have_posts() ) : $novo_loop->the_post(); |
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
/* | |
Hoje iremos MUDAR a vida da pessoa que não te responde no Facebook... | |
Que tal enviar mensagens pra ela até obter uma resposta?! | |
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
Para utilizar: | |
- Abra o messenger.com; | |
- Selecione a conversa que você quer; | |
- Abra o console e cole o código que está no gist; |
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 | |
/** | |
* Odin functions and definitions. | |
* | |
* Sets up the theme and provides some helper functions, which are used in the | |
* theme as custom template tags. Others are attached to action and filter | |
* hooks in WordPress to change core functionality. | |
* | |
* For more information on hooks, actions, and filters, | |
* see http://codex.wordpress.org/Plugin_API |
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
//taxonomia exemplo | |
function odin_evento_taxonomy() { | |
$evento = new Odin_Taxonomy( | |
'Categoria', // Nome (Singular) da nova Taxonomia. | |
'categoria', // Slug do Taxonomia. | |
'evento' // Nome do tipo de conteúdo que a taxonomia irá fazer parte. | |
); | |
$evento->set_labels( |
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
/** | |
* Formulario - com odin | |
**/ | |
function odin_contact_form() { | |
$form = new Odin_Contact_Form( | |
'contact_form', // ID do formulário | |
'[email protected]' // E-mail do destinatário. | |
//array( '[email protected]', '[email protected]' ), // array com e-mails que receberão cópia. | |
//array( '[email protected]' ) // array com e-mails que receberão cópia oculta. |
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
<h2>Bem vindo!</h2> | |
<p>Conteudo impróprio para menores de 18 anos!</p> | |
<p>Deseja continuar?</p> | |
<form method="post"> | |
<input type="submit" name="sim" value="sim"> | |
</form> | |
<?php | |
if(isset($_POST['sim']) and $_POST['sim'] == "sim"){ | |
$_SESSION['maior_idade'] = "sim"; |
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_dir = basename(dirname(__FILE__)); | |
load_plugin_textdomain( 'simplesplash', null, $plugin_dir ); | |
class simplesplash { | |
/** | |
* Constructor | |
*/ |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="de-DE"> | |
<head> | |
<title>Faca na Caveira Oficial</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<meta name="robots" content="noindex,nofollow"/> | |
<link rel="stylesheet" type="text/css" media="all" href="http://facanacaveiraoficial.com/wp-content/themes/bianomaximiano_final/style.css"/> | |
<link rel="stylesheet" id="splash-css" href="http://facanacaveiraoficial.com/wp-content/plugins/usr/share/nginx/www/wp-content/themes/bianomaximiano_final/splash.css" type="text/css" media="all"/> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="de-DE"> | |
<head> | |
<title><?php bloginfo('name'); ?></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta name="robots" content="noindex,nofollow" /> | |
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri(); ?>" /> | |
<!--link rel="stylesheet" id="login-css" href="<?php //echo get_bloginfo('home').'/wp-admin/css/login.css'; ?>" type="text/css" media="all" /> |
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
<! DOCTYPE HTML> | |
<html lang="pt-br"> | |
<head> | |
<title></title> | |
<meta charset="UTF-8" > | |
</head> | |
<body> | |
<script type="text/javascript"> |
NewerOlder