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 | |
add_filter('attachment_fields_to_edit', 'estilo_legenda_edit', 10, 2); | |
add_filter('attachment_fields_to_save', 'estilo_legenda_save', 10, 2); | |
function estilo_legenda_edit($form_fields, $post) { | |
$value = get_post_meta($post->ID, '_captionstyle', true); | |
$form_fields['captionstyle'] = array( | |
'label' => __('Estilo da legenda'), | |
'input' => 'html', |
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 | |
$terms = get_the_terms ($post->id, 'skills'); | |
if ( !is_wp_error($terms)) : ?> | |
<?php | |
$skills_links = wp_list_pluck($terms, 'name'); | |
$skills_yo = join(", ", $skills_links); | |
?> |
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 | |
$terms = get_terms("funcs"); | |
$count = count($terms); | |
if ( $count > 0 ){ | |
echo '<div id="dd" class="wrapper-dropdown-5" tabindex="1"><span class="icon-fun">Funções</span>'."\n".'<ul class="dropdown">'."\n"; | |
foreach ( $terms as $term ) { | |
echo "\t\t".'<li><a href="'.get_term_link($term->name,'funcs').'">' . $term->name . '()</a></li>'."\n"; |
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 | |
foreach ( array( 'pre_term_description' ) as $filter ) { | |
remove_filter( $filter, 'wp_filter_kses' ); | |
} | |
foreach ( array( 'term_description' ) as $filter ) { | |
remove_filter( $filter, 'wp_kses_data' ); | |
} |
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 | |
function dkc_change morelink_class( $link, $text ) | |
{ | |
return str_replace( | |
'more-link' | |
,'leiamais' //removi a more-link | |
,$link | |
); | |
} |
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 global $more;$more = 0;?> | |
<?php the_content('Leia mais'); ?> |
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
span.step { | |
background: #cccccc; | |
border-radius: 0.8em; | |
-moz-border-radius: 0.8em; | |
-webkit-border-radius: 0.8em; | |
color: #ffffff; | |
display: inline-block; | |
font-weight: bold; | |
line-height: 1.6em; | |
margin-right: 5px; |
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
@media screen and (max-width:320px) {} | |
@media screen and (min-width:321px) and (max-width:639px) {} | |
@media screen and (min-width:640px) and (max-width:959px) {} | |
@media screen and (min-width:960px) and (max-width:1279px) {} | |
@media screen and (min-width:1280px) and (max-width:1599px) {} | |
@media screen and (min-width:1600px) {} | |
@media screen and (min-width:1920px) {} | |
@media print {} |
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 $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail_size' ); | |
$url = $thumb['0']; ?> |
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 | |
function the_category_filter($thelist,$separator=' ') { | |
if(!defined('WP_ADMIN')) { | |
$exclude = array('A', 'B', 'C', 'D'); //as categorias para esconder | |
$cats = explode($separator,$thelist); | |
$newlist = array(); | |
foreach($cats as $cat) { | |
$catname = trim(strip_tags($cat)); | |
if(!in_array($catname,$exclude)) |