Parse error: syntax error, unexpected T_STRI
Résolu/Fermé
A voir également:
- Parse error: syntax error, unexpected T_STRI
- Fan error lenovo - Forum Refroidissement
- Playback error reconnect in 3s (1/5) francais - Forum Box et Streaming vidéo
- Error 10 pioneer ✓ - Forum Autoradio
- Whea error occt - Forum Processeur
- Data error iptv - Forum TV & Vidéo
2 réponses
thosting
Messages postés
167
Date d'inscription
vendredi 6 février 2009
Statut
Membre
Dernière intervention
6 décembre 2011
27
Modifié par pititenouette le 6/12/2011 à 19:07
Modifié par pititenouette le 6/12/2011 à 19:07
L'erreur peut être dans une fonction,
Ton erreur veut dire qu'il manque un ; ou } quelque part dans un fichier php.
C'est sure !
Verifie tout !
Sinon copie colle un le fichier complet.
Ca peut venir de la fonction :
bloginfo()
get_bloginfo()
_e()
$post->ID
Ton erreur veut dire qu'il manque un ; ou } quelque part dans un fichier php.
C'est sure !
Verifie tout !
Sinon copie colle un le fichier complet.
Ca peut venir de la fonction :
bloginfo()
get_bloginfo()
_e()
$post->ID
thosting
Messages postés
167
Date d'inscription
vendredi 6 février 2009
Statut
Membre
Dernière intervention
6 décembre 2011
27
Modifié par baladur13 le 6/12/2011 à 19:02
Modifié par baladur13 le 6/12/2011 à 19:02
Tu as modifier quoi dans wordpress exactement ?
Pour avoir cette erreur ?
Signature non conforme - Publicité supprimée Modération CCM
Pour avoir cette erreur ?
Signature non conforme - Publicité supprimée Modération CCM
5 déc. 2011 à 12:40
5 déc. 2011 à 13:04
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>
<?php get_header(); ?>
<?php
// post custom fields
$template = get_post_meta($post->ID, 'wpzoom_post_template', true);
$showsocial = get_post_meta($post->ID, 'wpzoom_post_social', true);
$showauthor = get_post_meta($post->ID, 'wpzoom_post_author', true);
$videolocation = get_post_meta($post->ID, 'wpzoom_post_embed_location', true);
$videocode = get_post_meta($post->ID, 'wpzoom_post_embed_code', true);
if($wpzoom_autoembed == "Yes") { $AE = new AutoEmbed(); } // loading the AutoEmbed PHP Class
?>
<div id="main"<?php if ($template == 'Full Width (no sidebar)') {echo' class="full"';} elseif ($template == 'Sidebar on the left') {echo' class="invert"';} ?>>
<div class="wrapper">
<?php wp_reset_query(); if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if (strlen($videocode) > 1 && $videolocation == 'Before everything else') { ?>
<div class="zoomVideo zoomVideoBig">
<?php
if ($videocode && $wpzoom_autoembed == "Yes" && $AE->parseUrl($videocode)) {
$AE->setParam('wmode','transparent');
$AE->setParam('autoplay','false');
$AE->setHeight(518);
$AE->setWidth(920);
echo $AE->getEmbedCode(); }
else {
$videocode = preg_replace("/(width\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 920 $2", $videocode);
$videocode = preg_replace("/(height\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 518 $2", $videocode);
echo "$videocode";
}
?>
</div>
<?php } else { ?>
<div class="sep sepMenu"> </div>
<?php } ?>
<div id="content">
<div class="postmetadata">
<?php if ($wpzoom_singlepost_cat == 'Show') { ?>
<p class="header"><?php _e('Filed Under', 'wpzoom') ?></p>
<p><?php the_category(', '); ?></p>
<?php } ?>
<div class="sep"> </div>
<?php if ($wpzoom_singlepost_tag == 'Show') { ?>
<?php the_tags( '<p class="header">Tags</p><p>', ' ', '</p>'); ?>
<div class="sep"> </div>
<?php } ?>
<?php if ($showsocial != 'No' || !$showsocial) { ?>
<p class="header"><?php _e('Share this post', 'wpzoom') ?></p>
<ul class="wpzoomSocial">
<li><a href="http://twitter.com/home?status=<?php the_title(); ?> <?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/twitter.png" alt="Tweet This!" /> <?php _e('Tweet this!', 'wpzoom');?></a></li>
<li><a href="http://digg.com/submit?phase=2&url=<?php the_permalink();?>&title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/digg.png" alt="Digg it!" /> <?php _e('Digg it!', 'wpzoom');?></a></li>
<li><a href="http://del.icio.us/post?v=4&noui&jump=close&url=<?php the_permalink();?>&title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/delicious.png" alt="Ajoutez le aux articles Delicious!" /> <?php _e('Ajoutez le aux articles Delicious!', 'wpzoom');?></a></li>
<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/facebook.png" alt="Partagez sur Facebook!" /> <?php _e('Partagez sur Facebook!', 'wpzoom');?></a></li>
<li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/stumbleupon.png" alt="Stumble it" /> <?php _e('Stumble it', 'wpzoom');?></a></li>
<li class="last"><a href="<?php if (strlen($wpzoom_misc_feedburner) < 10) { bloginfo('rss2_url');} else {echo"$wpzoom_misc_feedburner";} ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/rss.png" alt="Subscribe by RSS" /> <?php _e('Subscribe by RSS', 'wpzoom');?></a></li>
</ul>
<div class="cleaner"> </div>
<div class="sep"> </div>
<?php } // if social icons should be shown ?>
</div><!-- end .postmetadata -->
<div class="single">
<?php if (strlen($videocode) > 1 && $videolocation == 'In the middle column' && $template != 'Full Width (no sidebar)') {
if ($videocode && $wpzoom_autoembed == "Yes" && $AE->parseUrl($videocode)) {
$AE->setParam('wmode','transparent');
$AE->setParam('autoplay','false');
$AE->setHeight(320);
$AE->setWidth(570);
echo'<div class="zoomVideo">';
echo $AE->getEmbedCode();
echo'</div>';
}
else {
$videocode = preg_replace("/(width\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 570 $2", $videocode);
$videocode = preg_replace("/(height\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 320 $2", $videocode);
echo '<div class="zoomVideo">' .$videocode. '</div>';
}
} ?>
<?php if (strlen($videocode) > 1 && $videolocation == 'In the middle column' && $template == 'Full Width (no sidebar)') {
if ($videocode && $wpzoom_autoembed == "Yes" && $AE->parseUrl($videocode)) {
$AE->setParam('wmode','transparent');
$AE->setParam('autoplay','false');
$AE->setHeight(460);
$AE->setWidth(818);
echo'<div class="zoomVideo">';
echo $AE->getEmbedCode();
echo'</div>';
}
else {
$videocode = preg_replace("/(width\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 818 $2", $videocode);
$videocode = preg_replace("/(height\s*=\s*[\"\'])[0-9]+([\"\'])/i", "$1 460 $2", $videocode);
echo '<div class="zoomVideo">' .$videocode. '</div>';
}
} ?>
<p class="postmetadata"><?php if ($wpzoom_singlepost_author == 'Show') { ?><?php _e('Posted by', 'wpzoom') ?> <?php the_author_posts_link(); } ?><?php if ($wpzoom_singlepost_author == 'Show' && $wpzoom_singlepost_date == 'Show') { ?> <?php _e('on', 'wpzoom') ?> <?php } ?><?php if ($wpzoom_singlepost_date == 'Show') { ?> <?php the_time("$dateformat $timeformat"); } ?></p>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<div class="entry">
<?php the_content(); ?>
</div>
<?php wp_link_pages(array('before' => '<p class="pages"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<p class="more"><?php edit_post_link( __('Edit this post »', 'wpzoom'), '', ''); ?></p>
</div><!-- end .single -->
<div class="cleaner"> </div>
<?php comments_template(); ?>
</div><!-- end #content -->
<div id="sidebar">
<?php get_sidebar(); ?>
</div><!-- end #sidebar -->
<div class="cleaner"> </div>
<?php endwhile; else: ?>
<p><?php _e('Désolé il n'y a pas d'articles correspondant à votre recherche.', 'wpzoom') ?></p>
<?php endif; ?>
</div><!-- end .wrapper -->
</div><!-- end #main -->
<?php get_footer(); ?>