Ejemplo n.º 1
0
		<?php 
if (isset($wp_query->query_vars["gallery_categories"])) {
    $term = get_term_by('slug', $wp_query->query_vars["gallery_categories"], 'gallery_categories');
    echo __('Gallery Category', 'gallery-plugin') . ':&nbsp;' . $term->name;
} else {
    the_title();
}
?>
	</h1>
<?php 
if (!post_password_required()) {
    ?>
	<article class="gallery-listing">
		<?php 
    if (function_exists('pdfprnt_show_buttons_for_custom_post_type')) {
        echo pdfprnt_show_buttons_for_custom_post_type();
    } elseif (function_exists('pdfprntpr_show_buttons_for_custom_post_type')) {
        echo pdfprntpr_show_buttons_for_custom_post_type();
    }
    ?>
		<ul class="gallery-listing row">
			<?php 
    global $post, $wpdb, $wp_query, $request;
    if (get_query_var('paged')) {
        $paged = get_query_var('paged');
    } elseif (get_query_var('page')) {
        $paged = get_query_var('page');
    } else {
        $paged = 1;
    }
    $permalink = get_permalink();
Ejemplo n.º 2
0
</span>
						</a>
						<?php 
$indicador = get_the_title($post->ID);
$edicao = get_post_meta($post->ID, "edicao", true);
include "lista_ficha_versions.php";
?>
						<span id="impressao" class="row-fluid single-servicos">
							<?php 
if (function_exists('pf_show_link')) {
    echo pf_show_link();
}
?>
							<?php 
if (function_exists('pdfprnt_show_buttons_for_custom_post_type')) {
    echo pdfprnt_show_buttons_for_custom_post_type($custom_query);
}
?>
 
						</span>
						<?php 
$comment_ficha = get_post_meta($post->ID, 'comentarios_indicadores', true);
?>
						<?php 
if (!empty($comment_ficha)) {
    ?>
							<a href="<?php 
    the_field('comentarios_indicadores');
    ?>
" target="_blank" class="row-fluid single-servicos">
								<i class="i-comment"></i><span class="single-servicos-text"><?php