gpt4 book ai didi

PHP/HTML div 没有关闭

转载 作者:太空宇宙 更新时间:2023-11-04 11:04:36 25 4
gpt4 key购买 nike

这两个帖子都是从 Wordpress 中的相同模板 (single-post.php) 生成的,但是在第一个中,页脚位于 #content-area div 内(不是我们想要的),而在第二个中第一,页脚位于 #content div 之后,中间有一个 #content-bottom div(这就是我们想要的):

http://restartcomputer.com/group-seminars-are-back-at-restart/

http://restartcomputer.com/events/icloud-seminar-10/

这里是模板的源代码,single-post.php:

<?php get_header(); ?>

<div id="content-top" class="top-alt"></div>

<div id="content" class="clearfix content-alt">

<div id="content-area">

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<?php
$category = get_the_category();
$catParent = get_cat_name ($category[0]->category_parent);

if ( $catParent == 'Products' ) :
?>

<div class="products-breadcrumbs">
<?php
echo $catParent . '&nbsp;&nbsp;&#8594;&nbsp;';

echo '<a href="' . get_category_link($category[0]->cat_ID) . '">' . $category[0]->cat_name . '</a>&nbsp;&nbsp;&#8594;&nbsp;&nbsp;';

the_title();
?>
</div>

<?php endif; ?>

<?php
if (get_option('professional_integration_single_top') <> '' && get_option('professional_integrate_singletop_enable') == 'on') {
echo(get_option('professional_integration_single_top'));
}
?>

<div class="entry clearfix post single-product-content">

<h1 class="title"><?php the_title(); ?></h1>

<?php if (get_option('professional_thumbnails') == 'on') : ?>

<?php $thumb = '';
$width = 200;
$height = 200;
$classtext = '';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
$thumb = $thumbnail["thumb"]; ?>

<?php if($thumb <> '') : ?>

<div class="thumb alignleft">

<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>

<span class="overlay"></span>

</div> <!-- end .thumb -->

<?php endif; ?>

<?php endif; ?>

<?php the_content(); ?>

<?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','Professional').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

</div> <!-- end .entry -->


<?php
if (get_option('professional_integration_single_bottom') <> '' && get_option('professional_integrate_singlebottom_enable') == 'on') {
echo(get_option('professional_integration_single_bottom'));
}
?>


<?php if (get_option('professional_468_enable') == 'on') :

if(get_option('professional_468_adsense') <> '') :
echo(get_option('professional_468_adsense'));

else :
?>

<a href="<?php echo(get_option('professional_468_url')); ?>"><img src="<?php echo(get_option('professional_468_image')); ?>" alt="468 ad" class="foursixeight" /></a>

<?php endif; ?>

<?php endif; ?>



<?php endwhile; endif; ?>

</div> <!-- end #content-area -->



<?php get_sidebar(); ?>



</div> <!-- end #content -->

<div id="content-bottom" class="bottom-alt"></div>



<?php get_footer(); ?>

最佳答案

Restart logo的html代码坏了,img和style标签没有关闭:

<p>
<img style="width: 130px;" src="http://restartcomputer.com/wp-content/uploads/2013/03/reStart-logo.png" style="width:
</p>

关于PHP/HTML div 没有关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34078071/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com