Exemplo n.º 1
0
    function __toString()
    {
        ob_start();
        $config = $this->getConfig();
        if (!$this->isAjaxRequest) {
            $this->_form();
        }
        $class = get_class($this);
        $div_id = strtolower(get_class($this) . '-' . $this->id);
        if (!$this->isAjaxRequest) {
            ?>
<div id="<?php 
            echo $div_id;
            ?>
" class="<?php 
            echo strtolower($class);
            ?>
"><?php 
        }
        if ($this->template_part) {
            html::part($this->template_part, array('self' => $this, 'config' => $config));
        } else {
            $this->widget($config);
        }
        if (!$this->isAjaxRequest) {
            ?>
</div><?php 
        }
        $html = ob_get_clean();
        return is_string($html) ? $html : '';
    }
?>
"><?php 
comments_number('0', '1', '%');
?>
</div>
        <div class="commenters-number" title="<?php 
_e('número de pessoas que comentaram', 'consulta');
?>
"><span class="commenters-number-icon"></span><?php 
echo get_num_pessoas_comentarios($post->ID);
?>
</div>
        <?php 
html::part('show_evaluation');
?>


    </div>
    <?php 
if (get_theme_option('evaluation_show_on_list')) {
    ?>
                     
        <div class="evaluation_container" style="display: none;">
            <?php 
    html::part('evaluation');
    ?>
        </div>
    <?php 
}
?>
</li>
Exemplo n.º 3
0
            <?php 
    while ($suggested->have_posts()) {
        $suggested->the_post();
        html::part('loop-single-list-title');
    }
    ?>
        </ul>
        <?php 
}
?>
        
        <?php 
if (!have_posts() && !$suggested->have_posts()) {
    ?>
            <p><?php 
    echo $post_type_object->labels->not_found;
    ?>
</p>
        <?php 
}
?>
        <?php 
html::part('add_new_object');
?>
    </section>    
</section>
<!-- #main-section -->
    
<?php 
get_sidebar();
get_footer();
Exemplo n.º 4
0
				</header>
				<div class="post-content clearfix">		
					<div class="post-entry">
						<?php 
    the_content();
    ?>
					</div>
					<?php 
    wp_link_pages(array('before' => '<nav class="page-link">' . __('Pages:', 'consulta'), 'after' => '</nav>'));
    ?>
	
				</div>
				<!-- .post-content -->
				<footer class="clearfix">					
					<?php 
    html::part('interaction');
    ?>
				
				</footer>
			</article>
			<!-- .post -->
					
		<?php 
} else {
    ?>
		   <p>Página não encontrada</p>              
		<?php 
}
?>
	</section>
	<!-- #main-section -->
Exemplo n.º 5
0
		
        <?php 
$homefeatures = new WP_Query('posts_per_page=-1&meta_key=_home&meta_value=1&ignore_sticky_posts=1');
?>
        <section id="home-features" class="hl-carrousel clearfix" data-scroll-num="1">
			<?php 
if ($homefeatures->have_posts()) {
    ?>
				<div class="hl-wrapper">
					<h3>Destaques</h3>
					<?php 
    while ($homefeatures->have_posts()) {
        $homefeatures->the_post();
        ?>
						<?php 
        html::part('loop', 'feature');
        ?>
					<?php 
    }
    ?>
				</div>
				<?php 
    if ($homefeatures->post_count > 1) {
        ?>
    				<nav class="clearfix">
                        <a class="hl-nav-left">Anterior</a>
                        <a class="hl-nav-right">Próximo</a>  <!-- qualquer elemento com a classe hl-nav-right -->
                    </nav>
                <?php 
    }
    ?>
Exemplo n.º 6
0
<?php

get_header();
?>
    <?php 
get_sidebar();
?>
    <section id="main-section">
        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
            <?php 
        html::part('loop');
        ?>
            <?php 
    }
    ?>
            <?php 
    if ($wp_query->max_num_pages > 1) {
        ?>
                <nav id="posts-nav" class="clearfix">
                    <div class="alignleft"><?php 
        next_posts_link(__('&laquo; Previous posts', 'campanha'));
        ?>
</div>
                    <div class="alignright"><?php 
        previous_posts_link(__('Next posts &raquo;', 'campanha'));
        ?>
</div>
Exemplo n.º 7
0
<?php

get_header();
?>
	
	<section id="main-section" class="span-15 prepend-1 append-1">
		<?php 
if (have_posts()) {
    the_post();
    ?>
		
			<?php 
    html::part('loop', 'single');
    ?>
			<?php 
    comments_template();
    ?>
		    <!-- comentários -->

			<nav id="posts-nav" class="clearfix">
				<span class="alignleft"><?php 
    next_post_link('%link', __i('&laquo; Artigo anterior', 'blog: link artigo anterior'));
    ?>
</span>
				<span class="alignright"><?php 
    previous_post_link('%link', __i('Próximo artigo &raquo;', 'blog: link próximo artigo'));
    ?>
</span>
			</nav>
			<!-- #posts-nav -->					
		<?php 
Exemplo n.º 8
0
get_header();
?>
	
	<section id="main-section" class="span-15 prepend-1 append-1">
	<h1 class="subtitulo"><?php 
wp_title();
?>
</h1>
		<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
		
			<?php 
        html::part('loop', 'index');
        ?>

		<?php 
    }
    ?>
		
			<?php 
    global $wp_query;
    if ($wp_query->max_num_pages > 1) {
        ?>
				<nav id="posts-nav" class="clearfix">
					<span class="alignleft"><?php 
        echo next_posts_link(__i('&laquo; Artigos anteriores', 'blog: link para artigos anteriores'));
        ?>
</span>
Exemplo n.º 9
0
    ?>
">Ver eventos passados &raquo;</a>
			</h2>
		<?php 
}
?>
        <?php 
if (have_posts()) {
    ?>
			
        <?php 
    while (have_posts()) {
        the_post();
        ?>
            <?php 
        html::part('loop', 'agenda');
        ?>
        <?php 
    }
    ?>
            <?php 
    if ($wp_query->max_num_pages > 1) {
        ?>
                <nav id="posts-nav" class="clearfix">
                    <div class="alignleft"><?php 
        next_posts_link(__('&laquo; Previous posts', 'magazine01'));
        ?>
</div>
                    <div class="alignright"><?php 
        previous_posts_link(__('Next posts &raquo;', 'magazine01'));
        ?>
Exemplo n.º 10
0
<?php

$post_type_object = get_post_type_object('object');
get_header();
?>
	
	<section id="main-section" class="span-15 prepend-1 append-1">
		
        <?php 
if (have_posts()) {
    the_post();
    ?>
		
			<?php 
    html::part('loop', 'single-meta');
    ?>

            <?php 
    comments_template('/comments-objects.php');
    ?>
		    <!-- comentários -->
            
            <!--
			<nav id="posts-nav" class="clearfix">
				<span class="alignleft"><?php 
    next_post_link('%link', __('&laquo; Previous post', 'consulta'));
    ?>
</span>
				<span class="alignright"><?php 
    previous_post_link('%link', __('Next post &raquo;', 'consulta'));
    ?>
Exemplo n.º 11
0
?>
		</p>
	</header>
	<div class="post-content clearfix">
		<?php 
the_content();
?>
		<?php 
wp_link_pages(array('before' => '<nav class="page-link">' . __('Pages:', 'magazine01'), 'after' => '</nav>'));
?>
		
	</div>
	<!-- .post-content -->
	<footer class="clearfix">
		<?php 
html::part("interaction");
?>
		<p class="taxonomies">
			<span><?php 
_e('Categories', 'magazine01');
?>
:</span> <?php 
the_category(', ');
?>
<br />
			<?php 
the_tags('<span>Tags:</span> ', ', ');
?>
		</p>		
	</footer>		        
	<?php