Hallo zusammen ... ich habe folgendes Problem:
ich wollte eine Anpassung im Template rückgängig machen und habe deshalb den Code der index.html von eienr anderen Seite kopiert. Jetzt sieht man die Seite "doppelt", soll heissen: zwei mal das Menü, zwei mal den Header, usw.
Kann mir jemand helfen?
Der aktuelle Code ist:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de">
<head profile="http://gmpg.org/xfn/11">
<title>{single_post_title}{if $is->tag}Tag-Archiv für '{$query->tag}'{elseif $is->archive}Archiv{elseif $is->search}Suchergebnisse für '{$query->s}'{/if}{if $is->search or $is->single or $is->page or $is->tag or $is->archive} « {/if}{bloginfo show='name'}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="WordPressMU, WP {$wp_version}" />{*-- leave this for stats --*}
<meta name="template" content="K2 RC5" />
{if $is->home && !$is->paged}<meta name="description" content="{bloginfo show='description'}" />{/if}
<link rel="stylesheet" type="text/css" media="screen" href="{$mainurl}/wp-content/sitetemplates/k2_final/css/style.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{$mainurl}/wp-content/sitetemplates/k2_final/css/blogsport.css" />
<link rel="stylesheet" type="text/css" media="print" href="{$mainurl}/wp-content/sitetemplates/k2_final/css/print.css" />
{if $k2->scheme}<link rel="stylesheet" type="text/css" media="screen" href="{$mainurl}/wp-content/sitetemplates/k2_final/styles/{$k2->scheme}" />{/if}
<link rel="stylesheet" type="text/css" media="screen" href="{$siteurl}/templates/wp-layout.css" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{bloginfo show='rss2_url'}" />
<link rel="alternate" type="text/xml" title="RSS .92" href="{bloginfo show='rss_url'}" />
<link rel="alternate" type="text/xml" title="RDF" href="{bloginfo show='rdf_url'}" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="{bloginfo show='atom_url'}" />
{if $is->single or $is->page}<link rel="pingback" href="{bloginfo show='pingback_url'}" />{/if}
<script type="text/javascript" src="{$mainurl}/plugins/k2_final/jquery.js"></script>
<script type="text/javascript" src="{$mainurl}/plugins/k2_final/k2.functions.js"></script>
<script type="text/javascript" src="{$mainurl}/plugins/k2_final/k2.slider.js"></script>
<script type="text/javascript" src="{$mainurl}/plugins/k2_final/k2.trimmer.js"></script>
{wp_head}
</head>
<body class="{k2_body_class}"{k2_body_id}>
<div id="page">
<div id="header">
<h1>{bloginfo show='name'}</h1>
<p class="description">{bloginfo show='description'}
<ul class="menu">
<li class="{if $is->home or $is->archive && !$is->cat_tab or $is->single or $is->search or $is->tag}current_{/if}page_item">blogornoblog}">{$k2->blogornoblog}
{wp_list_pages args='sort_column=menu_order&depth=1&title_li=&exclude='}
{if $k2->cat_tabs}
{foreach from=$k2->cat_tabs key=cat_ID item=cat_name}
<li class="category-item-{$cat_ID} {if $query->cat == $cat_ID}current_{/if}page_item">{$cat_name}
{/foreach}
{/if}
{wp_register before='<li class="admintab">' after='
'}
</div>
<hr />
<div class="content">
<div id="primary">
<div id="notices"></div>
{if !$k2->rollingarchives or $is->single or $is->page}
<div id="current-content" class="hfeed">
{$content}
{else}
<div id="dynamic-content">
{include_php file="$abspath
/wp-includes/themes/k2_final/rollingarchive.php"}
{/if}
{if $is->home && !$is->paged}
{referer}
{if $refererlinks}
Referer der letzten 24 Stunden:
{foreach from=$refererlinks item=link}
- {$link.baseDomain} ({$link.visitTimes})
{/foreach}
{/if}
{/if}
</div>
{if !$k2->rollingarchives or $is->single or $is->page}<div id="dynamic-content"></div>{/if}
</div> <!-- #primary -->
<hr />
<div id="sidebar-1" class="secondary">
{capture assign=searchform}
<div id="search">
<h4>Suche</h4>
<form method="get" id="searchform" action="/index.php">
<input type="text" id="s" name="s" value="{wp_specialchars text=$search_text quotes=1}" accesskey="4" />
<input type="submit" id="searchsubmit" value="go" />
</form>
</div>
{/capture}
{if ($is->home && $k2->aboutblurp) || (!$is->home && !$is->page && !$is->single) || $is->paged}
{capture assign=meta}
<div class="sb-about hyphenate" id="meta"><h4>Meta</h4>
{if $is->home && !$is->paged}
{$k2->aboutblurp}
{elseif $is->category}
Du browst gerade in den {bloginfo show='name'} Weblog-<wbr/>Archiven nach der Kategorie '{single_cat_title}'.
{elseif $is->day}
Du browst gerade in den {bloginfo show='name'} Weblog-<wbr/>Archiven nach {the_time d='l, j. F Y'}.
{elseif $is->month}
Du browst gerade in den {bloginfo show='name'} Weblog-<wbr/>Archiven nach dem Monat {the_time d='F Y'}.
{elseif $is->year}
Du browst gerade in den {bloginfo show='name'} Weblog-<wbr/>Archiven nach dem Jahr {the_time d='Y'}.
{elseif $is->search}
Du hast die {bloginfo show='name'} Weblog-<wbr/>Archive
nach '{$query->s}' durchsucht. Wenn du in den Ergebnissen
nichts findest, kannst du es mit einer der folgenden Rubriken probieren.
{elseif $is->author}
{capture assign=author_url}{the_author_url}{/capture}
Archiv für {the_author echo=false}.
{the_author_description}
{elseif $is->tag}
Du browst gerade in den {bloginfo show='name'} Weblog-<wbr/>Archiven nach dem Tag '{$query->tag}'.
{elseif $is->paged}
Du browst gerade in den {bloginfo show='name'} Weblog-<wbr/>Archiven.
{/if}
</div>
{/capture}
{/if}
{if $plugin->UTW && $is->home}
{capture assign=tag_cloud}
<div class="sb-tag-cloud">
<h4>Tag-Wolke</h4>
{UTW_ShowWeightedTagSetAlphabetical limit=12}
</div>
{/capture}
{/if}
{if $k2->asidesposition && $k2->asidescategory && $k2->columns > 1 && $is->home}
{capture assign=k2asides}
{k2asides category=$k2->asidescategory maxnum=$k2->asidesnumber}
{if $asides}
<div class="sb-asides hyphenate">
<h4>asidescategory}">{get_the_category_by_ID cat_ID=$k2->asidescategory}</h4>
asidescategory}" title="RSS Feed für Asides" class="feedlink" rel="nofollow"><span>RSS</span>
<div>
{foreach from=$asides key=key item=aside}
<div id="post-{$aside->ID}" class="{k2_post_class post_count=$key+1 post_asides=true post=$aside}">
<span>» </span>{if $aside->post_excerpt}{wptexturize text=$aside->post_excerpt} <span class="metalink">ID}" rel="bookmark" title='Permanent-Link zu "{$aside->post_title}"'>(weiter...)</span>{else}{wptexturize text=$aside->post_content} <span class="metalink">ID}" rel="bookmark" title="Permanent-Link für diesen Aside">#</span>{/if}{if $aside->comment_status != 'closed' OR $aside->comment_count > 0} <span class="metalink">ID}#comments">{$aside->comment_count}</span>{/if}{if $user->level > 2} <span class="metalink">ID}">Edit</span>{/if}
</div>
{/foreach}
</div>
</div>
{/if}{/capture}{/if}
{if $subpages->back}
{capture assign=pagemenu}
<div class="sb-pagemenu">
<h4>{$subpages->parent_title} Unterseiten</h4>
-
{wp_list_pages args=$subpages->args}
{if $subpages->back}
parent_id}">Zurück zu {$subpages->parent_title}
{/if}
</div>
{/capture}
{/if}
{if $plugin->comments && $is->home}
{capture assign=blc_comments}
<div class="sb-comments sb-comments-blc">
<h4>Kommentare</h4>
<span>RSS</span>
- {blc_latest_comments num_posts=4 num_comments=6 hide_pingbacks_and_trackbacks=true}
</div>
{/capture}
{/if}
{if $plugin->democracy && $is->home}
{capture assign=poll}
<div class="sb-democracy"><h4>Umfrage</h4>
{jal_democracy}
</div>
{/capture}
{/if}
{if $plugin->shoutbox && $is->home}
{capture assign=shoutbox}
<div class="sb-shoutbox">
<h4>Live Shoutbox</h4>
{jal_get_shoutbox}
</div>
{/capture}
{/if}
{if $is->home || $is->search || $is->tag || $is->pagearchive || ($is->archive && !$is->author)}
{capture assign=last_posts}
{lastposts posts='10'}
{if $lastposts != ''}
<div class="sb-latest">
<h4>Zuletzt geschrieben</h4>
<span>RSS</span>
-
{foreach from=$lastposts key=id item=title}
- {$title|truncate:38:"..."}
{/foreach}
</div>
{/if}
{/capture}
{/if}
{if !$is->author && !$is->single && !$is->page || $is->pagearchive}
{capture assign=popular_posts}
{popularposts}
{if $pposts}
<div class="sb-popular-post">
<h4>Beliebteste Beiträge</h4>
-
{foreach from=$pposts key=key item=hits}
- {$hits.title|truncate:34:"..."}: {$key}
{/foreach}
</div>
{/if}
{/capture}
{/if}
{if $is->home && $k2->custom_content}
{capture assign=custom_module}
<div class="sb-custom" id="sb-custom-1">
{if $k2->custom_title}<h4>{$k2->custom_title}</h4>{/if}
{if $k2->custom_feed}
custom_feed}" title="RSS Feed{if $k2->custom_title} für {$k2->custom_title}{/if}" class="feedlink" rel="nofollow"><span>RSS</span>
{/if}
<div>{$k2->custom_content}</div>
</div>
{/capture}
{/if}
{if $is->home && $k2->custom_content2}
{capture assign=custom_module_2}
<div class="sb-custom" id="sb-custom-2">
{if $k2->custom_title2}<h4>{$k2->custom_title2}</h4>{/if}
{if $k2->custom_feed2}
custom_feed2}" title="RSS Feed{if $k2->custom_title2} für {$k2->custom_title2}{/if}" class="feedlink" rel="nofollow"><span>RSS</span>
{/if}
<div>{$k2->custom_content2}</div>
</div>
{/capture}
{/if}
{if $plugin->flickrRSS && $is->home}
{capture assign=flickr}
<div class="sb-flickr"><h4>Flickr</h4>
flickrID}" title="RSS Feed für flickr" class="feedlink" rel="nofollow"><span>RSS</span>
<div>{get_flickrRSS}</div>
</div>
{/capture}
{/if}
{if $k2->deliciousname && $is->home}
{capture assign=delicious}
<div class="sb-delicious">
<h4>deliciousname}">Del.icio.us</h4>
deliciousname}" title="RSS Feed für del.icio.us Links" class="feedlink" rel="nofollow"><span>RSS</span>
<script type="text/javascript" src="http://del.icio.us/feeds/js/{$k2->deliciousname}?count=8;title=my%20del.icio.us;icon=s;name;showadd"></script>
<noscript>deliciousname}">Del.icio.us</noscript>
</div>
{/capture}
{/if}
{if $plugin->feedlist && $is->home && !$is->paged}
{capture assign=feedlist}
<div class="sb-feedlist hyphenate">
<h4>Planet Blogsport.de</h4>
<span>RSS</span>
- {feedlist rss_feed_url='http://planet.blogsport.de/rss20.xml' num_items=10 show_description=false random=false sort='none' new_window=false}
</div>
{/capture}
{/if}
{if $is->home && !$is->paged}
{capture assign=links}
{get_links_list title_tag='h4' cat_tag='div'}
{/capture}
{/if}
{if $is->archive || $is->pagearchive || $is->tag || $is->search || $is->paged}
{capture assign=archive}
<div class="sb-archives"><h4>Archive</h4>
- {get_archives type='monthly'}
</div>
{/capture}
{/if}
{if $is->home || $is->archive || $is->pagearchive || $is->tag || $is->search}
{capture assign=categories}
<div class="sb-categories">
<h4>Kategorien</h4>
- {list_cats optionall=FALSE all='Alle' sort_column='name'}
</div>
{/capture}
{/if}
{if $plugin->UTW && $is->single}
{capture assign=related_tags}{UTW_ShowRelatedTagsForCurrentPost formattype='commalist'}{/capture}
{capture assign=related}
{if $related_tags != 'No Tags' && $user->level > 2}
<div class="sb-related-tags">
<h4>Verwandte Tags</h4>
{$related_tags}
</div>
{/if}
<div class="sb-related-posts">
<h4>Ähnliche Beiträge</h4>
- {UTW_ShowRelatedPostsForCurrentPost limit=5}
</div>
{/capture}
{/if}
{capture assign=abo}
<div class="sb-feed"><h4>Abonnement</h4>
Abonniere {if $num->authors > 1}unsere{else}meine{/if} Feeds
</div>
{/capture}
{if $is->home}
{capture assign=buttons}
<div id="sb-buttons"><h4>Buttons</h4>
- <img alt="kostenlose wordpress blogs" src="http://blogsport.de/wp-images/blogsport.gif" />
- <img alt="Get Firefox!" title="Best viewed with Firefox" src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/> <![endif]-->
- <span id="bccount"></span> {/if}
- <img src="http://blogsport.de/images/login.gif" alt="Einloggen" />
<!--[if IE]>
{if $k2->blogcounter}
</div>
{/capture}
{/if}
{*-- Reihenfolge der Sidebar Module --*}
{$searchform}
{ll_block}
{$meta}
{$pagemenu}
{$poll}
{$related}
{$tag_cloud}
{$k2asides}
{$shoutbox}
{$blc_comments}
{$last_posts}
{$popular_posts}
{$custom_module}
{$archive}
{$categories}
</div> <!-- #sidebar-1 -->
<hr />
<div id="sidebar-2" class="secondary">
{$abo}
{$flickr}
{$custom_module_2}
{$delicious}
{$feedlist}
{$links}
{$buttons}
{*-- END: Reihenfolge --*}
</div> <!-- #sidebar-2 -->
<div class="clear"></div>
</div> <!-- .content -->
<div class="clear"></div>
</div> <!-- Close Page -->
{*-- WordPress Counter - Check the referers list in your backend! --*}
<script type="text/javascript" language="JavaScript1.2" src="{$siteurl}/wp-counter.php"></script>
<noscript><img src="{$siteurl}/wp-counter.php?page=img&loc={$smarty.server.SERVER_NAME}{$smarty.server.REQUEST_URI}" alt="" border="0" /></noscript>
{if $k2->blogcounter}<!-- BlogCounter Code -->
{if !$is->home}<span id="bccount" style="display: none;"></span>{/if}
<script type="text/javascript" src="http://track.blogcounter.de/js.php?user={$k2->blogcounter}&style=6"></script>
<noscript><img style="border: 0px;" alt="" src="http://track.blogcounter.de/log.php?id={$k2->blogcounter}"/></noscript>{/if}
<hr />
<div id="footer">
{if $k2->style_footer}<p class="footerstyledwith">Styled with {$k2->style_footer}{/if}
<p class="footerpoweredby">Powered by WordPress and blogsport.de with K2
<p class="footerfeedlinks">RSS Entries and RSS Comments
</div>
{do_action tag='wp_footer'}
</body>
</html>
anschauen könnt ihr euch den Fehler bei: lavamuc . blogsport . de