problema con tema
-
Hola he encontrado un tema por internet, al instalarlo me da un error en el index:
Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in D:\xampp\htdocs\wordpress\wp-content\themes\arena\index.php on line 36
aquí les dejo el codigo:
<?php get_header(); ?>
<div class=»wrap list»>
<div class=»mainw»>
<div class=»main»><?php if(have_posts()) { ?>
<?php if ($_GET[‘v_sortby’] == «views») {?>
<h1>Most Viewed Videos</h1>
<?php }else{ ?>
<h1>Recently Added Free Videos</h1>
<? } ?>
<div class=»buttons sorting»>
<span class=»label»>Sort results by</span>
<div class=»dropDown»> active<? } ?>» href=»<?php echo site_url(); ?>/?v_sortby=views&v_orderby=desc»>Most Viewed</div>
<div class=»dropDown»>«>Date</div>
</div><ul class=»video_list»>
<?php if(get_option(‘amn_banners01’)){?>
<li class=»aRight»>
<div>Advertisement</div>
<?php echo get_option(‘amn_banners01’); ?><? } ?>
<?php while (have_posts()) : the_post(); ?>
<li class=»video» id=»video_<?php the_ID(); ?>»>
» title=»<?php the_title(); ?>» class=»thumb»>
<?php if ( has_post_thumbnail() ) { echo the_post_thumbnail();}else{ ?><img src=»<?php bloginfo(‘template_directory’); ?>/img/pixel.png» data-src=»<?php echo get_post_meta($post->ID, get_option(‘amn_thumbs’), true); ?>» alt=»<?php the_title(); ?>» /><? } ?>
<span class=»box»>
<span class=»views»><?php if(function_exists(‘the_views’)) { the_views(); } ?></span>
<span class=»time»><?php echo time_ago(); ?></span>
</span>
<i></i>
» href=»<?php the_permalink() ?>»><?php the_title(); ?>
<?php endwhile; ?><?php } else { ?>
<h2>Sorry, no videos matched your criteria</h2>
<?php } ?><!–Pagination–>
<ul class=»pagination»>
<?php if (function_exists(«pagination»)) {
pagination($additional_loop->max_num_pages);
} ?><!–END Pagination–>
<?php if(is_home() && !is_paged() && get_option(‘cat_index’) == ‘checked’) { get_template_part(‘includes/latest_category’);} ?>
</div> <!–END main–>
</div> <!–END mainw–><div class=»left»>
<?php get_sidebar(‘left’); ?>
</div>
</div><?php get_footer(); ?>
Un saludo
gracias
- El debate ‘problema con tema’ está cerrado a nuevas respuestas.