Page 1 of 1

Ich verstehe es nicht

Posted: Sun Jul 02, 2017 7:21 am
by dirtdiver2010
Vielleicht seht ihr besser als ich, ich habe immer diese Fehlermeldung, finde aber den Fehler nicht...

Code: Select all

<!-- Show each post on this page -->
<?php foreach ($posts as $Post): ?>

<article class="post">
	
	<!-- Show plugins, Hook: Post Begin -->
	<?php Theme::plugins('postBegin') ?>
	<!-- Article-Header -->
	<header class="postheader row">
		<div class="offset-by-one ten columns>"
			<time class="published" datetime="2017-06-30">
				<?php echo $Post->date() ?>
			</time>
			<div class="title">
				<h1><a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a></h1>
			</div>
		</div>
	</header>
	<!-- Cover Image -->
	<div class="row">
		<div class="twelfe columns">
			<?php
				if($Post->coverImage()) {
					echo '<a href="'.$Post->permalink().'" class="image featured"><img src="'.$Post->coverImage().'" alt="Cover Image"></a>';
				}
			?>
		</div>
	</div>
	<!-- Article Content -->
	<div class="row">
		<div class="offset-by-one ten columns">
			<!-- Article Description -->
			<p class="articledescription"><?php echo $Post->description() ?></p>
			<!-- Content until pagebrake -->
			<?php echo $Post->content(false) ?>
			<!-- Read more button -->
			<?php if($Post->readMore()) { ?>
					<p><a href="<?php echo $Post->permalink() ?>" class="readmore"><?php $Language->p('Read more') ?> ></a></p>
			<?php } ?>
		</div>
	</div>
	<!-- Article Footer -->
	<footer class="postfooter row">
		<div class="offset-by-one ten columns">
			<hr>
			<ul class="tags">
				<?php $tags = $Post->tags(true);
					foreach($tags as $tagKey=>$tagName) {
						echo '<li><a href="'.HTML_PATH_ROOT.$Url->filters('tag').'/'.$tagKey.'">'.$tagName.'</a></li>;
					}
				?>
			</ul>
		</div>
	</footer>
	
	<!-- Plgins Post End -->
	<?php Theme::plugins('postEnd') ?>
	
</article>

<?php endforeach; ?>

<!-- Pagination -->
<?php echo Paginator::html(); ?>
Die Fehlermeldung ist diese:
Parse error: syntax error, unexpected 'postEnd' (T_STRING), expecting ',' or ';' in /mnt/web007/d1/20/51343720/htdocs/blogentwicklung/bl-themes/codestupser-v3/php/home.php on line 57
Er schimpft wegen der Zeile:

Code: Select all

<?php Theme::plugins('postEnd') ?>

Re: Ich verstehe es nicht

Posted: Sun Jul 02, 2017 8:32 pm
by Edi
Am Ende der Zeile 49 fehlt ein '. Richtig wäre:

Code: Select all

echo '<li><a href="'.HTML_PATH_ROOT.$Url->filters('tag').'/'.$tagKey.'">'.$tagName.'</a></li>';

Re: Ich verstehe es nicht

Posted: Mon Jul 03, 2017 11:37 am
by dirtdiver2010
@Edi:
Tausend Dank dir....ich bin sowas von neben der Spur. Ich hoffe ich kann auch mal helfen.