<commit_before><?php
	defined('BASEPATH') OR exit('No direct script access allowed');
	$this->load->view('partials/head'); 
	$this->load->view('partials/userHeader');
?>

<div class="container">
	<div class="col-md-3 col-md-offset-1 outlined">
		<form class="navbar-form navbar-left">
			<div class="form-group">
				<input type="text" class="form-control" placeholder="Search">
			</div>
			<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
		</form>
		<h3>Categories</h3>
		<?php foreach ($categories as $parent) { ?>
			<h5><a href="/getProductsByCategory/<?= $parent['id'] ?>"><?= $parent['category_name'] ?></a></h5>
			<ul class="subcategories">
			<?php foreach($parent['children'] as $child) { ?>
				<li><a href="/getProductsByCategory/<?= $child['id'] ?>"><?= $child['name'] ?></a></li>
			<?php } ?>
			</ul>
		<?php } ?>
		
	</div>
	<div class="col-md-6 col-xs-12 col-md-offset-1 outlined">
		<div class="row">
		<?php for ($i = 0; $i < count($products); $i++) { ?>
		<div class="col-xs-6 col-md-4">
			<a href="/product/<?= $products[$i]['id'] ?>" class="thumbnail">
				<img src="/assets/img/products/<?= $products[$i]['img'] ?>" alt="<?= $products[$i]['img'] ?>">
			</a>
		</div>
		<?php if (($i != 0) && (($i+1)%3 == 0)) { ?>
		</div>
		<div class="row">
		<?php } ?>
		<?php } ?>
	</div>
</div><commit_msg>set up categories menu on store page<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');
$this->load->view('partials/head'); 
$this->load->view('partials/userHeader');
?>

<div class="container">
	<div class="col-md-3 col-md-offset-1 outlined">
		<form class="navbar-form navbar-left">
			<div class="form-group">
				<input type="text" class="form-control" placeholder="Search">
			</div>
			<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
		</form>
		<h3>Categories</h3>

		<div id="MainMenu">
			<div class="list-group panel">
				<?php foreach ($categories as $parent) { ?>
				<a href="#<?= $parent['category_name'] ?>" class="list-group-item list-group-item-success" data-toggle="collapse" data-parent="#MainMenu"><?= $parent['category_name'] ?><i class="fa fa-caret-down"></i></a>
				<div class="collapse" id="<?= $parent['category_name'] ?>">
					<?php foreach($parent['children'] as $child) { ?>
					<a href="/getProductsByCategory/<?= $child['id'] ?>" class="list-group-item"><?= $child['name'] ?></a>
					<?php } ?>
				</div>
				<?php } ?>
			</div>
		</div>
		
	</div>
	<div class="col-md-6 col-xs-12 col-md-offset-1 outlined">
		<div class="row">
			<?php for ($i = 0; $i < count($products); $i++) { ?>
			<div class="col-xs-6 col-md-4">
				<a href="/product/<?= $products[$i]['id'] ?>" class="thumbnail">
					<img src="/assets/img/products/<?= $products[$i]['img'] ?>" alt="<?= $products[$i]['img'] ?>">
				</a>
			</div>
			<?php if (($i != 0) && (($i+1)%3 == 0)) { ?>
		</div>
		<div class="row">
			<?php } ?>
			<?php } ?>
		</div>
	</div>
{'fraction_non_alphanumeric': 0.26888815572418345, 'fraction_numerical': 0.010557571758495546, 'mean_word_length': 4.138983050847457, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 116, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6509980', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1108, 'n_words': 221}