Skip to content

Instantly share code, notes, and snippets.

View juarezpaf's full-sized avatar

Juarez Filho juarezpaf

View GitHub Profile
<table class="playlist">
<tbody>
<tr class="playIt">
<td class="btn"><a href="#">Play</a></td>
<td class="track">Apesar de Você | <span class="time">02min 30s</span></td>
<td class="getIt"><a href="#">Download dessa faixa</a></td>
</tr>
<tr class="pauseIt">
<td class="btn"><a href="#">Pause</a></td>
<td class="track">Carinhoso | <span class="time">05min 20s</span></td>
@juarezpaf
juarezpaf / gist:82131
Created March 19, 2009 23:40
Markup do formulário de exemplo do episodio 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="pt-br" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tudo que você queria saber sobre formulários para web!!! - por JuarezPAF</title>
</head>
<body>
<div id="container">
<div id="header">
<h1><img src="img/logo.png" width="200" alt="Logo de Juarezpaf"/></h1>
<html>
<head>
<title>Centralizando elemento na tela</title>
<style type="text/css">
#center {
width: 100px;
height: 200px;
position: absolute;
top: 50%;
/** Calendar **/
#agenda { height: 230px;}
table.calendar { text-align: center; margin: 0 auto 14px}
table.calendar thead { height: 40px; display: block}
table.calendar thead tr th { display: none}
table.calendar tbody { padding-top: 20px}
table.calendar tr td { font: 1.1em Tahoma; padding: 6px 9px 0 10px; color: #fff; text-align: right}
table.calendar tr td a { color: #BF6908; text-decoration: none}
table.calendar tr td a:hover { text-decoration: underline}
<div class="wrapCalendar">
<table class="calendar" summary="Calendário...">
<thead>
<tr>
<th scope="col">D</th>
<th scope="col">S</th>
<th scope="col">T</th>
<th scope="col">Q</th>
<th scope="col">Q</th>
<th scope="col">S</th>
<?php while (have_posts()) : the_post();
$nome = get_the_author_meta('nickname');
$autor = get_the_author_meta('display_name');
$logo = get_cimyFieldValue(get_the_author_ID(), 'LOGO');
$descricao = get_the_author_meta('user_description');
$email = get_the_author_meta('user_email');
$site = get_the_author_meta('user_url');
$imagem1 = get_cimyFieldValue(get_the_author_ID(), 'IMAGEM1');
$imagem2 = get_cimyFieldValue(get_the_author_ID(), 'IMAGEM2');
<?php
$myPosts = new WP_Query();
$myPosts->query('showposts=4&category_name=products&oder=asc');
while ($myPosts->have_posts()) : $myPosts->the_post();
?>
<div class="productItem">
<?php $myPosts->images('1', '219', '163', 'alignleft', false); ?>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<html>
<head>
<style>
li {
width: 200px;
min-height: 250px;
border: 1px solid #000;
display: -moz-inline-stack;/*hack FF2*/
display: inline-block;
vertical-align: top;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>::jquery::</title>
<link rel="stylesheet" href="jquery-ui-theme/ui.core.css" type="text/css" />
<link rel="stylesheet" href="jquery-ui-theme/ui.datepicker.css" type="text/css" />
<link rel="stylesheet" href="jquery-ui-theme/humanity/ui.theme.css" type="text/css" />
<style>
.ui-button:hover { border: 1px solid #444;cursor:pointer}
<?php get_header(); ?>
<div id="content" class="narrowcolumn"><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="postindent">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content(); ?>