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
Maintainer: pgAdmin Development Team | |
DEBs for various Debian and Ubuntu versions are available from the pgAdmin APT repository. The following platforms are supported: | |
Debian 9 (Stretch, up to v5.3), 10 (Buster), 11 (Bullseye/testing, from v4.30) | |
Ubuntu 16.04 (Xenial, up to v4.30), 18.04 (Bionic), 19.10 (Eoan, up to v4.29), 20.04 (Focal), 20.10 (Groovy, from v4.30), 21.04 (Hirsute, from v5.3) | |
To use this repository, run the following commands: | |
# |
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
// exemplo http://casamagalhaes.cvtt.com.br/equipamento/ | |
<ul class="lista-pai"> | |
<li class="lista__head">Categorias</li> | |
<?php | |
$taxonomyName = "taxonomy-name"; | |
// Isso obtém apenas os termos da camada superior "CAT PAI". Isso é feito definindo pai como 0. | |
$parent_terms = get_terms( $taxonomyName, array( 'parent' => 0, 'orderby' => 'slug', 'hide_empty' => false ) ); | |
foreach ( $parent_terms as $pterm ) { |
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
// CRIA OBJETO DATA - JS | |
var data = new Date(); | |
var dia = data.getDate().toString(); | |
var diaF = ( dia.length == 1 ) ? '0' + dia : dia; | |
var mes = ( data.getMonth() + 1 ).toString(); | |
var mesF = ( mes.length == 1 ) ? '0' + mes : mes; | |
var anoF = data.getFullYear(); | |
var data = diaF + '/' + mesF + '/' + anoF; | |
var elFiled = document.getElementById('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 $i=1; foreach ($settings['cronograma_options'] as $item): ?> | |
<div class="pa-component-wrap-cronograma__item <?php echo ( $i % 2 == 0 ) ? 'pa-component-wrap-cronograma__item--reverse' : '';?>"> | |
<div class="pa-component-wrap-cronograma__info"> | |
<div class="data"><time><?php echo data_evento($item['cronograma_options_data']); ?></time></div> | |
<div class="title wow fadeInUp" data-wow-duration="1.5s" data-wow-delay="1s"><?php echo $item['cronograma_options_title']; ?></div> | |
<div class="desc wow fadeInUp" data-wow-duration="1.5s" data-wow-delay="1.5s"><?php echo $item['cronograma_options_desc']; ?></div> | |
</div> | |
<figure class="pa-component-wrap-cronograma__figure wow <?php echo $item['jornada_options']; ?>"> | |
<?php foreach ($item['cronograma_options_img'] as $img) : | |
echo wp_get_attachment_image( $img, 'full', "", array("class" => "thumb wow fadeIn", 'alt' => get_the_title(), 'title' => get_the_title(), 'data-wow-duration' |
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 | |
// OBS: O uso das funções utilizadas, se o campo do admin for um wyswig irá ter quebra de linhas no texto utilize as funções que estão comentadas. | |
// Caso o campo do admin seja do tipo text ou textarea, não precisa utilizar essas funções. | |
<?php | |
$settings = get_option('options_gerais'); | |
//$desc = $settings['desc']; | |
//$desc = htmlentities($desc, null, 'utf-8'); | |
//$desc = str_replace(" "," ",$desc); | |
//$desc = str_replace("\n", "", $desc); | |
//$desc = str_replace("\r", "", $desc); |
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
// ARQUIVO FUNCTIONS.PHP | |
// O hook {taxonomy}_edit_form_fields é responsável | |
// por exibir o campo que criamos através da função render_category_metas. | |
function render_category_metas( $term ) { | |
$color = get_term_meta( $term->term_id, 'color', true ); | |
?> | |
<div class="form-field"> | |
<tr class="form-field"> |
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
function parOuImpar(n) { | |
if(n%2 == 0){ | |
return 'par'; | |
} else { | |
return 'impar'; | |
} | |
} | |
parOuImpar(11); |
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
// ADC NO ARQUIVO functions.php | |
//SHURFFLE NAS QUERYS DAS POSTAGENS | |
add_filter( 'the_posts', function( $posts, \WP_Query $query ){ | |
if( $pick = $query->get( '_shuffle_and_pick' ) ) { | |
shuffle( $posts ); | |
$posts = array_slice( $posts, 0, (int) $pick ); | |
} | |
return $posts; | |
}, 10, 2 ); |
NewerOlder