Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/11/2013, 12:30
aldo_rengo
 
Fecha de Ingreso: febrero-2013
Ubicación: en mi casa
Mensajes: 541
Antigüedad: 11 años, 2 meses
Puntos: 3
duda con el codicional if else ( : endif )

hola miren tengo este codigo que es de wordpress. que no se por que no usa, en los if, esle.
las llaves.. esto usa : endif


conocen algo para que lo pase..

si son poco. esta bien . pero si son bastantes.. me complica un poco...
Código PHP:


<?php if ( get_theme_mod'strapvert_home_content_visibility' ) != ) { ?>    
<div class="container">
    <div class="row" role="main">

        <div class="span8">
        <?php if ( have_posts() ) : ?>

            <?php /* Start the Loop */ ?>
            <?php while ( have_posts() ) : the_post(); ?>

                <?php
                    
/* Include the Post-Format-specific template for the content.
                     * If you want to overload this in a child theme then include a file
                     * called content-___.php (where ___ is the Post Format name) and that will be used instead.
                     */
                    
get_template_part'content'get_post_format() );
                
?>

            <?php endwhile; ?>

            <?php strapvert_content_nav'nav-below' ); ?>

        <?php elseif ( ! is_home() || is_paged() ) : ?>

            <?php get_template_part'no-results''index' ); ?>

        <?php else : ?>

            <?php
                $featured_posts 
strapvert_get_featured_posts();
                if ( ! 
$featured_posts->have_posts() )
                    
get_template_part'no-results''index' );
            
?>
        <?php endif; ?>

        </div><!-- #content -->
        <div class="span4">
            <?php get_sidebar(); ?>
        </div>

    </div><!-- .row main -->

</div>
<?php ?>
<?php get_footer
(); ?>