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
<select id="estado" name="estado"> | |
<option value="AC">Acre</option> | |
<option value="AL">Alagoas</option> | |
<option value="AP">Amapá</option> | |
<option value="AM">Amazonas</option> | |
<option value="BA">Bahia</option> | |
<option value="CE">Ceará</option> | |
<option value="DF">Distrito Federal</option> | |
<option value="ES">Espírito Santo</option> | |
<option value="GO">Goiás</option> |
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 | |
add_post_type_support('page', 'excerpt'); | |
?> |
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
public static function ISO2brDate($date){ | |
if(isset($date) && !is_null($date) && '' != $date && 10 == strlen($date)){ | |
$dtAux = substr($date, 8, 2).'/'; | |
$dtAux .= substr($date, 5, 2).'/'; | |
$dtAux .= substr($date, 0, 4); | |
$date = $dtAux; | |
} | |
return $date; | |
} |
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
public static function brDate2ISO($date){ | |
if(isset($date) && !is_null($date) && '' != $date && 10 == strlen($date)){ | |
$dtAux = substr($date, 6, 4).'-'; | |
$dtAux .= substr($date, 3, 2).'-'; | |
$dtAux .= substr($date, 0, 2); | |
$date = $dtAux; | |
} | |
return $date; | |
} |
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 validateDate(date, fieldName, afterToday){ | |
if(date.length < 10){ | |
alert(fieldName + ': tamanho inválido.'); | |
return false; | |
} | |
if(date.charAt(2) != '/' || date.charAt(5) != '/'){ | |
alert(fieldName + ': formatação inválida.'); | |
return false; | |
} |
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 custom_excerpt_length( $length ) { | |
return 30; | |
} | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); |
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 if(has_post_thumnail()): ?> | |
<div id="img"> | |
<a href="<?=get_permalink()?>"> | |
<?php the_post_thumbnail('home_news_single_img'); ?> | |
</a> | |
</div> | |
<?php endif; ?> |
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=color], | |
input[type=date], | |
input[type=datetime], | |
input[type=datetime-local], | |
input[type=email], | |
input[type=month], | |
input[type=number], | |
input[type=range], | |
input[type=search], | |
input[type=tel], |