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
(function($){ | |
$.fn.extend({ | |
customStyle : function(options) { | |
if(!$.browser.msie || ($.browser.msie&&$.browser.version>6)){ | |
return this.each(function() { | |
var currentSelected = $(this).find(':selected'); | |
$(this).after('<span class="select-custom"><span class="select-custom-inner">'+currentSelected.text()+'</span></span>').css({position:'absolute', opacity:0}); | |
var selectBoxSpan = $(this).next(); | |
var selectBoxSpanInner = selectBoxSpan.find(':first-child'); | |
selectBoxSpan.css({display:'inline-block'}); |
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
img#wpstats { | |
display: none; | |
} |
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
#container { | |
background: #fff; | |
margin: 0 auto; | |
text-align: left; | |
width: 1020px; | |
} | |
#footer { | |
background: #004a8b; | |
border-top: 2px solid #000; | |
clear: both; |
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 | |
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail' ); | |
$url = $thumb['0']; | |
?> |
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 | |
// Update table | |
function cs_add_data($competition, $date, $numbers) { | |
global $wpdb; | |
$table_name = $wpdb->prefix . 'nome da sua tabela'; | |
$numbers = str_replace('/', '-', $numbers); | |
// Test variables | |
if (!is_numeric($competition)) | |
wp_die('O número do concurso é inválido'); |
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 | |
/* | |
Plugin Name: Adiciona Rodapé | |
Plugin URI: http://www.claudiosmweb.com/ | |
Description: Adiciona um rodapé no blog. | |
Version: 1.0 | |
Author: Claudio Sanches | |
Author URI: http://www.claudiosmweb.com/ | |
License: GPL2 | |
*/ |
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 print get_node_permalink($node); ?> |
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 | |
/** | |
* Get Terms in list format (Drupal 6). | |
* | |
* Usage: | |
* Paste in node.tpl.php: <?php print get_terms_list($node); ?> | |
* | |
* @param object $node | |
* Node object. | |
* |
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
#caption { | |
display: none; | |
} |
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
# Update post_content | |
UPDATE wp_posts SET post_content = REPLACE(post_content,'http://localhost/cliente/wp-content/uploads/','http://www.cliente.com/wp-content/uploads/'); | |
# Update guid | |
UPDATE wp_posts SET guid = REPLACE(guid,'http://localhost/cliente/wp-content/uploads/','http://www.cliente.com/wp-content/uploads/'); |