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 | |
$args = array( | |
'post_id' => 2, | |
'query_results' => $posts_data, | |
// 'component' => 'component-clients-01', | |
'component' => get_template_directory() . '/component-clients-01.php', | |
'external_component' => true, | |
'show_link_buttom' => 'Ver mais', | |
'slick_slider_to_show' => 3, | |
'slick_slider_to_scroll' => 1, |
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
**/node_modules/ | |
*.DS_Store | |
local-config.php | |
assets/components | |
assets/dist/*.css | |
assets/dist/*.js | |
page-tester.php |
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
/** | |
* Manipulate default country | |
*/ | |
add_filter( 'default_checkout_country', 'change_default_checkout_country' ); | |
function change_default_checkout_country() { | |
return 'BR'; // country code | |
} |
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
$author_image = get_user_meta( $author_id, 'qd_user_image', true ); | |
// Pega a imagem inserida para o custom field | |
if ( $author_image ) { | |
echo '<img src="'. $author_image .'" />'; | |
// Pega a imagem do Gravatar | |
} else { | |
echo get_avatar( $author_id, 128 ); | |
} |
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
<meta http-equiv="refresh" content="0; url=http://example.com/" /> |
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 | |
$exclude_category = get_term_by( 'name', 'NOME DA CATEGORIA', 'qewp_category_events' ); | |
$exclude_category_id = $exclude_category->term_id; | |
?> |
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
/* | |
* Remove o preview de fotos da página de edição de usuário | |
*/ | |
function aditionalCSS(){ | |
echo '<style type="text/css">#qd_user_image_id-status { display: none !important; }</style>'; | |
} | |
add_action('admin_footer', 'aditionalCSS'); |
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
.qwp-thumbnail { | |
border-radius: @border-radius-xs; | |
position: relative; | |
overflow: hidden; | |
z-index: 1; | |
} | |
.qvp-video-thumb { | |
.qwp-thumbnail; | |
margin-top: 0 0 @margin-sm 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
/*======================================== | |
= Números Animados = | |
========================================*/ | |
$.fn.countTo = function(options) { | |
// merge the default plugin settings with the custom options | |
options = $.extend({}, $.fn.countTo.defaults, options || {}); | |
// how many times to update the value, and how much to increment the value on each update | |
var loops = Math.ceil(options.speed / options.refreshInterval), |