Location: PHPKode > projects > ZompLog > layout/content.php
<?php if(!$content){ echo "Direct access is not allowed."; exit; } // no hacking around here ?>

<!-- CONTENT: ENTRY -->
<?php if ($content == "entry"){ ?>
<div class="post">
	<h2 class="post_title"><?php echo "$title"; ?></h2>

<div class="entry">
	<?php if ($image){ ?>
        <div class='img<?php echo "$entry[align]"; ?>'>
        <?php echo "$image"; ?>
        </div>
    <?php } ?>
    
    <div class="post_text"><?php echo "$text"; ?></div>
    
    <!-- read/listen/view more links -->
    <?php if ($entry[extended]){ ?>
        <div class="post_read"><?php  echo "$read"; ?></div>
    <?php } ?>
    
    <?php if ($file){ ?>
        <div class="post_file"><?php  echo "$file"; ?></div>
    <?php } ?>
    
    <?php if ($entry[mediafile]){ ?>
        <div class="post_mediafile"><?php echo "$mediafile"; ?></div>
    <?php } ?>
    
    <?php echo $pluginspace1?>
</div>

<div class="clearfloat"></div>
<!-- END entry -->
		
<div class="post_metadata"><?php if ($category){ echo "$category"; } else { echo "$lang_uncategorized"; } ?><strong> | </strong><?php echo "$username"; ?><strong> | </strong><?php echo "$comments"; ?><strong> | </strong><?php echo "$postdate"; ?></div>

</div>
<!-- END post -->
<?php } ?>
<!-- END CONTENT: ENTRY -->

<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->

<!-- CONTENT: DETAIL -->
<?php if ($content == "detail"){ ?>
<div class="post">
	<h2 class="post_title"><?php echo "$title"; ?></h2>
				
<div class="entry">
	<?php if ($image){ ?>
        <div class='img<?php echo "$entry[align]"; ?>'>
        <?php echo "$image"; ?>
        </div>
    <?php } ?>
    
    <div class="post_text"><?php echo "$text"; ?></div>
    
    <?php if ($entry[extended]){ ?>
      <div class="post_ext_text"><?php echo " $extended"; ?></div>
    <?php } ?>
      
    <?php if ($file){ ?>
        <div class="post_file"><?php  echo "$file"; ?></div>
    <?php } ?>
  
    <?php if ($entry[mediafile]){ ?>
        <div class="post_mediafile"><?php echo "$mediafile"; ?></div>
    <?php } ?>
    
    <?php echo $pluginspace1?>
</div>	
<!--  END entry  -->
		
<div class="post_metadata"><?php if ($category){ echo "$category"; } else { echo "$lang_uncategorized"; } ?><strong> | </strong><?php echo "$username"; ?><strong> | </strong><?php echo "$postdate"; ?></div>

</div>
<!--  END post  -->

<?php if($settings[comments]){ ?>
	<div class="comments">
    <a name="comments"></a>
    <h2 class="detail_write_comment"><?php echo "$lang_write_comment"; ?></h2>
    
    <form name="commentform" method="post" action="<?php echo"?content=detail&amp;id=$_GET[id]"; ?>">
    <div class="entry"><?php echo "$lang_name"; ?></div>
    <input name="name" type="text" id="name" />
    <div class="entry"><?php echo "$lang_comment"; ?></div>
    <textarea name="comment" cols="40" rows="5" id="comment"></textarea>

    <?php $hook = 'theme-display-comments';
	include("admin/loadplugins.php"); ?>

    <br />
    <input type="submit" name="addreview" value="<?php echo "$lang_submit"; ?>" /></form>

    <h2 class="detail_comments"><?php echo "$lang_comments"; ?></h2>
<?php } ?>
</div>
<?php } ?>
<!-- END CONTENT: DETAIL -->

<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->

<!-- CONTENT: PAGE -->
<?php if ($content == "page"){ ?>
<div class="page">
	<h2 class="page_title"><?php echo "$title"; ?></h2>
			
<div class="entry">
	<?php if ($image){ ?>
        <div class='img<?php echo "$page[align]"; ?>'>
        <?php echo "$image"; ?>
        </div>
    <?php } ?>
    
    <div class="page_text"><?php echo "$text"; ?></div>
    
    <?php if ($file){ ?>
        <div class="page_file"><?php  echo "$file"; ?></div>
    <?php } ?>
  
    <?php if ($entry[mediafile]){ ?>
        <div class="page_mediafile"><?php echo "$mediafile"; ?></div>
    <?php } ?>

</div>
<!--  END entry  -->

<?php if($page[use_form]){ ?>
      <h2 class="page_contactform"><?php echo "$lang_contactform"; ?></h2>
	   
	<form method="post" action="<?php echo"?content=page&amp;id=$_GET[id]"; ?>">
    
	<div class="entry"><?php echo "$lang_name"; ?></div>
	<input name="name" type="text" id="name" value="<?php echo $_POST['name']?>" />
	  
	<div class="entry"><?php echo "<br />$lang_email"; ?></div>
	<input name="email" type="text" id="email" value="<?php echo $_POST['email']?>" />
	  
	<div class="entry"><?php echo "<br />$lang_address"; ?></div>
	<input name="adress" type="text" id="adress" value="<?php echo $_POST['adress']?>" />
	  
	<div class="entry"><?php echo "<br />$lang_zipcode"; ?></div>
	<input name="zip" type="text" id="zip" value="<?php echo $_POST['zip']?>" />
	  
	<div class="entry"><?php echo "<br />$lang_city"; ?></div>
	<input name="city" type="text" id="city" value="<?php echo $_POST['city']?>" />
	  
	<div class="entry"><?php echo "<br />$lang_phone"; ?></div>
	<input name="phone" type="text" id="phone" value="<?php echo $_POST['phone']?>" />
	  
	<div class="entry"><?php echo "<br />$lang_mobile_phone"; ?></div>
	<input name="mobile" type="text" id="mobile" value="<?php echo $_POST['mobile']?>" />
	  
	 <div class="entry"><?php echo "<br />$lang_remarks"; ?></div>
	 <textarea name="remarks" cols="40" rows="5" id="comment" value="<?php echo $_POST['remarks']?>"></textarea>
     
     <?php $hook = 'theme-display-comments'; 
	 include("admin/loadplugins.php"); ?>
       
	 <input name="page" type="hidden" value="<?php echo "$page[title]"; ?>" />
	 <input name="ip" type="hidden" value="<?php echo "$_SERVER[REMOTE_ADDR]"; ?>" /><br />
	 <input type="submit" name="submit" value="<?php echo "$lang_submit"; ?>" /></form>   

<?php } ?>
</div>
<!--  END page  -->

<?php } ?>
<!--  END CONTENT: PAGE  -->

<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->

<!-- CONTENT: ARCHIVE -->
<?php if ($content == "archive"){ ?>
	<div class="archive">
<?	if ($jaar != $row['jaar']) {
		$jaar = $row['jaar']; ?>
        <div class="year"><?php echo "$jaar"; ?></div>
	<?php }
 	if($maand != $row['maand']) {
		$maand = $row['maand']; ?>
        <div class="month"><?php echo "$MAANDEN[$maand]"; ?></div>
	<?php } ?>
	
	<div class="archive_line"><?php echo "$postdate - $title - $username"; ?></div>
	</div>
<?php } ?>
<!--  END CONTENT: ARCHIVE  -->

<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->

<!-- CONTENT: COMMENT -->
<?php if ($content == "comment"){ ?>
<div class="comments">
  <p class="comment_header"><?php echo "$comment_name $lang_on $comment_date"; ?></p>
  <p class="comment_text"><?php echo "$comment_text"; ?></p>
</div>
<?php } ?>
<!-- END CONTENT: COMMENT -->

<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->

<!-- CONTENT: PROFILE -->
<?php if ($content == "profile"){ ?>
<div class="profile">
	<h2 class="profile_loginname"><?php echo "$loginname"; ?></h2>	

<div class="profile_data"> 
<?php if ($user['movie'])    { echo "<p>$movie</p>"; } ?>
<?php if ($user['image'])    { echo "<p>$image</p>"; } ?>
<?php if ($user['name'])     { echo "<p><strong>$lang_real_name:</strong> $realname</p>"; } ?>
<?php if ($user['gender'])   { echo "<p><strong>$lang_gender:</strong> $gender</p>"; } ?>
<?php if ($user['url'])      { echo "<p><strong>$lang_website:</strong> $url</p>"; } ?>
<?php if ($user['country'])  { echo "<p><strong>$lang_country:</strong> $country</p>"; } ?>
<?php if ($user['birthday']) { echo "<p><strong>$lang_birthday:</strong> $birthday</p>"; } ?>
<?php if ($user['about'])    { echo "<p><strong>$lang_about_me:</strong><br />$about</p>"; } ?>
<?php if ($user['interests']){ echo "<p><strong>$lang_interests:</strong><br />$interests</p>"; } ?>
<?php if ($latest_posts)     { echo "<p><strong>$lang_recent_posts_by $loginname:</strong><br />$latest_posts</p>"; } ?>

<?php if(ROOT){ ?>
	<p><a href="<?php echo ROOT?>posts/by/<?php echo $loginname?>"><?php echo"<strong>$lang_all_posts_by"; ?> <?php echo $loginname?></strong></a></p>
<?php }
else{ ?>
	<p><a href="?username=<?php echo $loginname?>"><?php echo"<strong>$lang_all_posts_by"; ?> <?php echo $loginname?></strong></a></p>
<?php } ?>
</div>
<!--  END profile_data  -->

</div>
<!--  END profile  -->

<?php } ?>
<!-- END CONTENT: PROFILE -->

<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
Return current item: ZompLog