Hi Guys and Girls,
So I am in the middle of building my own site using Couch as a under the hood to which I followed the tutorial and obviously changed where applicable.
Now I'm also doing tidying at the same time so rather than having masses amount of code I tend to separate where required, header.php content.php footer.php (Similar to wordpress)
So my index.php looks a bit like this
The sidebar doesn't appear to be working on this case. Just drops the divbox there and doesn't do anything to populate it.
This is my main page to which the sidebar suddenly works only its appeared twice. (there are two entries on the review page if your wondering)
So I am in the middle of building my own site using Couch as a under the hood to which I followed the tutorial and obviously changed where applicable.
Now I'm also doing tidying at the same time so rather than having masses amount of code I tend to separate where required, header.php content.php footer.php (Similar to wordpress)
So my index.php looks a bit like this
- Code: Select all
<?php include( 'header.php' ) ?>
<cms:template title='Homepage' />
<cms:pages>
<!-- Main Body -->
<div class="container">
<div class="row">
<!-- Main Content -->
<div class="col-md-8 main">
<?php include ( 'content.php' ) ?>
</div>
<!-- Sidebar -->
<div class="col-md-4 main">
<cms:embed 'sidebar.html' />
</div>
</div>
</div>
</cms:pages>
<?php include( 'footer.php' ) ?>
The sidebar doesn't appear to be working on this case. Just drops the divbox there and doesn't do anything to populate it.
This is my main page to which the sidebar suddenly works only its appeared twice. (there are two entries on the review page if your wondering)
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template title='Reviews' clonable='1' commentable='1'>
<cms:editable name='review_content' type='richtext' />
<cms:editable name='review_img' crop='1' width='610' height='150' type='image' />
<cms:folder name="reviews" title="Reviews" />
<cms:folder name="latest" title="Latest News" />
</cms:template>
<cms:if k_is_page >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>GameLadder Network - <cms:show k_page_title /></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<!-- Nav Bar -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a href="index.php"><img src="img/logo.png" /></a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="news.php">News</a></li>
<li><a href="about.php">About</a></li>
<li><a href="team.php">Meet The Team</a></li>
<li><a href="reviews.php">Reviews</a></li>
<li><a href="media.php">Media</a></li>
<li><a href="twitch.php">Twitch Streamers</a></li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="admin/login.php"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</nav>
<!-- Carousel -->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1" ></li>
<li data-target="#myCarousel" data-slide-to="2" ></li>
</ol>
<!-- Wrapper for the slides -->
<div class="carousel-inner">
<div class="item active bannerimg">
<img src="img/banner/img1.png" alt="Frostpunk" />
<div class="carousel-caption carousel-caption-new">
<h3>FrostPunk (PC)</h3>
<p>Can you survive the end of the world?</p>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="container">
<div class="row">
<div class="col-md-8 main">
<!-- Title -->
<h3 class="title"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h3>
<p class="sub"><cms:show k_page_foldertitle /> • <cms:date k_page_date format='jS M, y'/><cms:date k_page_date format='jS M, y'/> • <cms:show k_comments_count /> Comments</p>
<!-- Image -->
<img src="<cms:show review_img />" alt="" />
<!-- Content -->
<cms:show review_content />
<!-- Comments -->
<cms:embed 'comments_form.html' />
<!-- Comment's List -->
<h3>Comments</h3>
<div class="hr dotted clearfix"> </div>
<cms:if k_comments_count >
<ol class="commentlist">
<cms:comments page_id=k_page_id order='asc' limit='5' paginate='1' >
<li class="comment">
<div class="gravatar">
<cms:gravatar email="<cms:show k_comment_author_email />" size="60" />
<a name="<cms:show k_comment_anchor />">
</div>
<div class="comment_content">
<div class="clearfix">
<cite class="author_name"><a href=""><cms:show k_comment_author /></a></cite>
<div class="comment-meta commentmetadata"><cms:date k_comment_date format='F j, Y'/> at <cms:date k_comment_date format='h:ia'/></a></div>
</div>
<div class="comment_text">
<p><cms:show k_comment /></p>
</div>
</div>
</li>
<cms:paginator />
</cms:comments>
</ol>
<cms:else />
No comments.
</cms:if>
</div>
</div>
<div class="main">
<cms:embed 'sidebar.html' />
</div>
</div>
</body>
</html>
<cms:else />
<cms:embed 'review_list.php' />
</cms:if>
<?php COUCH::invoke(); ?>