https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/kamariallee.com/public_html/application/views/template/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/kamariallee.com/public_html/application/views/template/header-old2.php
<?php
function stripAccents($str) {
    return strtr(utf8_decode($str), utf8_decode('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ'), 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY');
}
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title><?= ucwords($browser_title); ?></title>
		<meta name="description" content="<?= $meta_description; ?>" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<script src="https://kit.fontawesome.com/dd7f40255b.js" crossorigin="anonymous"></script>
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
		<link rel="stylesheet" href="<?= base_url() . 'theme/kamari/css/styles2.css'; ?>" />
		<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.7.0/flowbite.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="<?= base_url() . 'theme/kamari/css/custom-style2.css'; ?>" />
		<script src="<?= base_url() . 'theme/kamari/js/flowbite.js'; ?>"></script>
		<script src="https://code.jquery.com/jquery-3.7.1.min.js" 
		integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
		<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
		<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
	</head>

	<?php if($this->uri->segment(2) == 'mobile') : ?>
		<body class="bg-primary overflow-y-auto">
	<?php else : ?>
		<body id="top" class="bg-[#F4F4F1] overflow-y-auto">
	<?php endif; ?>	
		<!-- box -->
		<?php if($this->uri->segment(2) != 'mobile') : ?>
		<nav class="sticky top-0 left-0 right-0" style="z-index: 9999">
			<!-- show on mobile -->
			<!-- <div class="show md:hidden promo">
				<h1 class="text-xl font-custom text-secondary text-center bg-primary/90 py-8">
					Enjoy FREE SHIPPING all around Indonesia
				</h1>
			</div> -->
			<div 
			<?php if($this->uri->segment(1) == 'category' || $this->uri->segment(1) == 'customize' || $this->uri->segment(1) == 'product' || $this->uri->segment(1) == 'productcustom' ||  $this->uri->segment(1) == 'about' || $this->uri->segment(1) == 'contact') : ?>
				class="xs:bg-transparent sm:bg-primary/90 w-full py-4 px-8 custom-nav" style="box-shadow: inset 0px 4px 4px 0px rgba(0, 0, 0, 0.25)"
			<?php else : ?>
				class="xs:bg-transparent sm:bg-primary/90 absolute w-full py-4 px-8 custom-nav" style="box-shadow: inset 0px 4px 4px 0px rgba(0, 0, 0, 0.25)"
			<?php endif; ?>	
			>
				<a id="topLogo" href="<?= base_url(); ?>"><img src="<?= base_url() . 'uploads/' . $logo; ?>" alt="" class="mx-auto h-16 pt-4" /></a>
				<!-- dropdown -->
				<div class="w-full mt-6 justify-center items-center hidden md:flex" id="headerBlockMenus"> 
					<!-- menu dropdown -->
					<ul class="flex space-x-36 items-center justify-center" id="dropdown">
						<li>
							<a href="<?= base_url('about'); ?>" class="text-secondary font-custom font-light text-sm">ABOUT</a>
						</li>
						<li>
							<button
								class="text-white font-semibold focus:outline-none text-secondary flex items-start"> 
								<span 
								<?php if($this->uri->segment(1) == 'category') : ?>
									class="text-[#C4C4C4] font-custom font-light text-sm"
								<?php else : ?>	
									class="text-secondary font-custom font-light text-sm"
								<?php endif; ?>
									>SHOP</span>
								<?php if($this->uri->segment(1) == 'category') : ?>
									<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg" class="mt-1 ml-2 text-secondary">
                	<path d="M1 1H7M7 1V7M7 1L1 7" stroke="#C4C4C4" />
								<?php endif; ?>	
              </svg>
							</button>
							<div
								class="absolute ml-[-60px] mt-2 py-2 w-48 bg-primary/90 rounded-xs shadow-lg hidden">
								<?php
									//get parent categories
									$this->db->select('alias, category, id_categories')->from('categories') ->where('status', '1')->where('parent', NULL)->where('show_in', 'all')->or_where('show_in', 'shop')->order_by('priority', 'ASC');
									$level1_categories = $this->db->get()->result();
								?>
								<?php foreach($level1_categories as $level1) : ?>
									<a href="<?= base_url() . 'category/' . strtolower(stripAccents($level1->alias)); ?>" class="block px-4 py-2 text-secondary font-custom" style="font-weight:bold"><?= ucwords($level1->category); ?></a>
									<?php
										//check if this level1 category have sub category
										$this->db->select('id_categories')->from('categories')->where('parent', $level1->id_categories)->where('status', '1');                                                               $count_level2category = $this->db->get()->num_rows();
									?>
									<?php if($count_level2category > 0) : ?>
										<?php
											//get level 2 category
											$this->db->select('id_categories, alias, category')->from('categories')->where('parent', $level1->id_categories)->where('status', '1')->order_by('priority', 'ASC');
											$level2categories = $this->db->get()->result();	
										?>
										<?php foreach($level2categories as $level2) : ?> 
											<a href="<?= base_url() . 'category/' . strtolower(stripAccents($level1->alias)) . '/' . strtolower(stripAccents($level2->alias)); ?>" class="block px-4 py-2 text-white ml-6 font-tinosItalic italic border-b border-secondary"><?= ucwords($level2->category); ?></a>
										<?php endforeach; ?>  
									<?php endif; ?>   
								<?php endforeach; ?>  
							</div>
						</li> 
						<li>
							<button
								class="customizedButton text-white font-semibold focus:outline-none text-secondary flex items-start"> 
								<span 
								<?php if($this->uri->segment(1) == 'customize') : ?>
									class="text-[#C4C4C4] font-custom font-light text-sm"
								<?php else : ?>	
									class="text-secondary font-custom font-light text-sm"
								<?php endif; ?>
									>CUSTOMIZE</span>
								<?php if($this->uri->segment(1) == 'customize') : ?>
									<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg" class="mt-1 ml-2 text-secondary">
                	<path d="M1 1H7M7 1V7M7 1L1 7" stroke="#C4C4C4" />
								<?php endif; ?>	
              </svg>
							</button>
							<div
								class="absolute ml-[-60px] mt-2 py-2 w-48 bg-primary/90 rounded-xs shadow-lg hidden2">
								<?php
									//get parent categories
									$this->db->select('alias, category, id_categories')->from('categories') ->where('status', '1')->where('parent', NULL)->where('show_in', 'all')->or_where('show_in', 'customize')->order_by('priority', 'ASC');
									$level1_categories = $this->db->get()->result();
								?>
								<?php foreach($level1_categories as $level1) : ?>
									<a href="<?= base_url() . 'customize/' . strtolower(stripAccents($level1->alias)); ?>" class="block px-4 py-2 text-secondary font-custom" style="font-weight:bold"><?= ucwords($level1->category); ?></a>
									<?php
										//check if this level1 category have sub category
										$this->db->select('id_categories')->from('categories')->where('parent', $level1->id_categories)->where('status', '1');                                                               $count_level2category = $this->db->get()->num_rows();
									?>
									<?php if($count_level2category > 0) : ?>
										<?php
											//get level 2 category
											$this->db->select('id_categories, alias, category')->from('categories')->where('parent', $level1->id_categories)->where('status', '1')->order_by('priority', 'ASC');
											$level2categories = $this->db->get()->result();	
										?>
										<?php foreach($level2categories as $level2) : ?> 
											<a href="<?= base_url() . 'customize/' . strtolower(stripAccents($level1->alias)) . '/' . strtolower(stripAccents($level2->alias)); ?>" class="block px-4 py-2 text-white ml-6 font-tinosItalic italic border-b border-secondary"><?= ucwords($level2->category); ?></a>
										<?php endforeach; ?>  
									<?php endif; ?>  
								<?php endforeach; ?>  
							</div>
						</li> 		
						<li>
							<a
								href="<?= base_url('contact'); ?>"
								class="text-secondary font-custom font-light text-sm"
								>CONTACT</a>
						</li>
					</ul>
					<div class="flex absolute right-8 mb-4">
						<div class="flex items-center border-b border-b-secondary">
							
							<?php
								$attributes = array(
										'id' => 'search_form',
										'method'=>'get'
								);
							?>
							<?= form_open('search/get', $attributes); ?>
								<input
									type="text"
									required
									name="search_product"
									placeholder="Find product"
									class="italic font-tinosItalic bg-transparent border-none text-secondary p-1 text-lg focus:ring-0 active:ring-0"
									style="position: relative; top:7px;"
								/>
								<button id="search_form" type="submit" class="italic font-tinosItalic bg-transparent border-none text-secondary p-1 text-lg focus:ring-0 active:ring-0 ml-4" style="position:absolute; cursor:pointer; bottom:3px; right:60px; width:30px"><img
								src="<?= base_url() . 'uploads/search.svg'; ?>"
								alt=""
								class="mt-2"
								style="margin-right: -20px"
							/></button>
							<?= form_close(); ?>
						</div>
						<a href="<?= base_url('account/order_history'); ?>"><img src="<?= base_url() . 'uploads/user.svg'; ?>" alt="" class="mx-2 mt-4" /></a>
						<a href="<?= base_url('cart'); ?>"><img src="<?= base_url() . 'uploads/chart.svg'; ?>" alt="" class="mt-4" /></a>
					</div> 
				</div>
			</div>
		</nav>
		<?php endif; ?>

https://t.me/RX1948 - 2025