Example #1
0
		
			<?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 
} else {
    ?>
		   <p>Nenhum post encontrado</p>              
		<?php 
}
?>
	</section>
	<!-- #main-section -->
<?php 
get_sidebar();
    echo $current_user->ID;
    ?>
' />
        <input type="hidden" name="action" value='unjoin' />
        <input type="hidden" name="evento_id" value='<?php 
    echo $oportunidade_item->ID;
    ?>
' />
    </form>
    
    <p class="quero-tocar cancel-subscription text-right">
        <?php 
    if (isset($data['inscricao_cobrada']) && $data['inscricao_cobrada']) {
        ?>
            <a onclick="if(confirm('<?php 
        echo addslashes(__i("Você está cancelando sua inscrição para uma oportunidade paga. O dinheiro da sua inscrição não será reembolsado. Tem certeza que deseja cancelar sua inscrição?", '[gerenciar oportunidades - artista] - mensagem que avisa ao usuário que ele está cancelando a inscrição em uma oportunidade paga', false));
        ?>
')) jQuery('#form_unjoin_event_<?php 
        echo $oportunidade_item->ID;
        ?>
').submit();" class="btn-green"><?php 
        _e('Cancelar inscrição', 'tnb');
        ?>
</a>
        <?php 
    } else {
        ?>
            <a onclick="jQuery('#form_unjoin_event_<?php 
        echo $oportunidade_item->ID;
        ?>
').submit();" class="btn-green"><?php 
Example #3
0
		<?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>
					<span class="alignright"><?php 
        echo previous_posts_link(__i('Próximos artigos &raquo;', 'blog: link para próximos artigos'));
        ?>
</span>
				</nav>
				<!-- #posts-nav -->
			<?php 
    }
    ?>
					
		<?php 
} else {
    ?>
		   <p>Nenhum post encontrada</p>              
		<?php 
}
?>
/**
 * 
 * Displays a text and adds it to be edited in the admin area. 
 * By default, it also creates an Edit in Place form. 
 * Hold Ctrl and click on the text to edit it.
 * Hold Ctrl + Shift to see all the editable texts in the page.
 * 
 * Note that if your text is an attribute of a HTML element, the value of a button for example,
 * you should not use the Edit in place form. It will break your layout. In those cases please
 * set the third or forth parameter to false.
 * 
 * @param string $term the default value for this string
 * @param string $description the description of this string, will show on the admin screen
 * @param bool/string $param3 wether to have a frontend form (bool) or language code (string)
 * @param bool/string $param4 wether to have a frontend form (bool) or language code (string)
 * 
 */
function _oi($term, $description = '')
{
    global $WPEIP;
    //default values
    $lcode = WPLANG;
    $frontend_form = true;
    for ($i = 2; $i < max(3, func_num_args()); $i++) {
        $arg = func_get_arg($i);
        if (is_bool($arg)) {
            $frontend_form = $arg;
        }
        if (is_string($arg)) {
            $lcode = $arg;
        }
    }
    $key = $WPEIP->source()->getKey($term);
    $text = nl2br(__i($term, $description, $lcode, $frontend_form));
    $frontend_forms = $WPEIP->get_option('frontend_forms');
    if (in_array($key, $frontend_forms) && current_user_can('manage-wpeip')) {
        echo '<span id="' . $key . '" class="wpeip_term" lcode="' . $lcode . '">' . $text . '</span>';
    } else {
        echo $text;
    }
}
/**
 * 
 * Displays a text and adds it to be edited in the admin area. 
 * By default, it also creates an Edit in Place form. 
 * Hold Ctrl and click on the text to edit it.
 * Hold Ctrl + Shift to see all the editable texts in the page.
 * 
 * Note that if your text is an attribute of a HTML element, the value of a button for example,
 * you should not use the Edit in place form. It will break your layout. In those cases please
 * set the third or forth parameter to false.
 * 
 * @param string $term the default value for this string
 * @param string $description the description of this string, will show on the admin screen
 * @param bool/string $param3 wether to have a frontend form (bool) or language code (string)
 * @param bool/string $param4 wether to have a frontend form (bool) or language code (string)
 * 
 */
function _oi($term, $description = '')
{
    global $WPEIP;
    //default values
    $lcode = $WPEIP->getCurrentLanguage();
    $frontend_form = true;
    if (func_num_args() > 2) {
        for ($i = 2; $i < max(3, func_num_args()); $i++) {
            $arg = func_get_arg($i);
            if (is_bool($arg)) {
                $frontend_form = $arg;
            }
            if (is_string($arg)) {
                $lcode = $arg;
            }
        }
    }
    $key = $WPEIP->source()->getKey($term, $description);
    $text = nl2br(__i($term, $description, $lcode, $frontend_form));
    $frontend_forms = $WPEIP->get_option('frontend_forms');
    if (in_array($key, $frontend_forms) && current_user_can('manage-wpeip')) {
        echo "<span id='{$key}' class='js-wpeip-term wpeip-term' data-lcode='{$lcode}'>{$text}</span>";
        echo "<div id='{$key}-spinner' class='sk-circle'><div class='sk-circle1 sk-child'></div><div class='sk-circle2 sk-child'></div><div class='sk-circle3 sk-child'></div><div class='sk-circle4 sk-child'></div><div class='sk-circle5 sk-child'></div><div class='sk-circle6 sk-child'></div><div class='sk-circle7 sk-child'></div><div class='sk-circle8 sk-child'></div><div class='sk-circle9 sk-child'></div><div class='sk-circle10 sk-child'></div><div class='sk-circle11 sk-child'></div><div class='sk-circle12 sk-child'></div></div>";
    } else {
        echo $text;
    }
}
Example #6
0
    return $classes;
}
add_filter('comment_class', 'comment_add_microid');
?>

<div id="comments"> 
    <!--show the comments-->
    
        <h3 class="subtitulo"><?php 
_oi('Comentários', 'Comentários: tíulo');
?>
</h3>

        <h4>
            <?php 
comments_number(__i('Nenhum comentário', 'Comentários: número de comentários'), __i('1 comentário', 'Comentários: número de comentários'), __i('% comentários', 'Comentários: número de comentários'));
?>
            <?php 
if ('open' == $post->comment_status) {
    ?>
             | <a href="#respond" title="Comente"><?php 
    _oi('Deixe seu comentário', 'Comentários: título do formulário');
    ?>
</a>
            <?php 
}
?>
        </h4>
        <ul class="commentlist" id="singlecomments">
            <?php 
wp_list_comments('callback=consulta_comment');