<?php if(session('user_id')): ?>
<?php require view('theme/header'); ?>
    <div class="app-content">
        <div class="container-fluid">

            <div class="d-card dc-dash">
                <div class="row">
                    <div class="col-lg-6 col-md-8 col-12">
                        <div class="py-3 px-5">
                            <div class="dch-title">
                                Kullanıcı Sözleşmesi
                            </div>
                            <div class="dch-text">
                                Tüm kullanıcılarımız aşağıdaki koşulları kabul etmiş sayılır.
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <section class="neworder">

                <div class="row">
                    <div class="col-lg-12 col-12 mb-5 mb-lg-0">
                        <div class="d-card">

                            <div class="d-card-body" id="dc-body">

                                {TERMS_TEXT}

                            </div>
                        </div>
                    </div>

                </div>

            </section>

        </div>
    </div>
<?php require view('theme/footer'); ?>
<?php else: ?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <?php if (@$meta) : ?>        
      <title><?php if ($meta['title']) : ?><?= $meta['title'] ?><?php else : ?>{PAGE_TITLE} | {SITE_TITLE}<?php endif; ?></title>
      <meta name="description" content="<?php if ($meta['desc']) : ?><?= $meta['desc'] ?><?php else : ?>{SITE_DESC}<?php endif; ?>" />
      <meta name="keywords" content="<?php if ($meta['keyw']) : ?><?= $meta['keyw'] ?><?php else : ?>{SITE_KEYW}<?php endif; ?>" />
      <?php else : ?>        
      <title>{PAGE_TITLE} | {SITE_TITLE}</title>
      <meta name="description" content="{SITE_DESC}" />
      <meta name="keywords" content="{SITE_KEYW}" />
      <?php endif; ?>    
      <link rel="shortcut icon" href="{SITE_FAVO}" />
      <link href="<?= theme("assets/kits/bootstrap/css/bootstrap.min.css"); ?>?v=<?= time() ?>" rel="stylesheet">
      <link rel="stylesheet" type="text/css" href="https://cdn.mypanel.link/css/font-awesome/css/all.min.css">
      <link href="<?= theme("assets/css/main.css"); ?>?v=<?= time() ?>" rel="stylesheet">
      <link rel="stylesheet" href="<?= public_url("system/css/alertify.css"); ?>">
      <script src="https://www.google.com/recaptcha/api.js" async defer></script>    <script type="text/javascript">        var _url = "{LINK_POST}";    </script>    <?= htmlspecialchars_decode($settings['header_code']); ?>
   </head>
   <body>
      <div class="header">
         <div class="container">
            <div class="row" style="height: 99px;">
               <div class="col-auto align-self-center">
                  <div class="row">
                     <div class="col align-self-center">
                        <a href="/">
                           <div class="site-name">                                <img src="{SITE_LOGO}" alt="">                            </div>
                        </a>
                     </div>
                  </div>
               </div>
               <div class="col">
                  <div class="head-menu">
                     <div class="row">
                        <div class="col text-lg-right mmff">
                           <div class="header-menu">
                              <ul>
                        <?php foreach($mainmenus as $row): if($row['menu_type'] == 2): ?>
                        <?php
                        
                                ?>
                                        <li>
                                            <a href="<?=isset($siteLinks[$row['menu_link']]['url']) ? $siteLinks[$row['menu_link']]['url'] : $row['menu_link'] ?>"><?=$row['menu_title']?></a>
                                        </li>

					<?php endif; endforeach; ?>
                              </ul>
                           </div>
                        </div>
                        <div class="col-auto align-self-center mmff">
                           <a href="/register" class="menu-btn">
                              <div class="mb-icon">										<i class="fas fa-user-circle"></i>									</div>
                              <div class="mb-text">Kayıt Ol</div>
                           </a>
                        </div>
                     </div>
                  </div>
               </div>
               <div class="col-auto for-mobile align-self-center">
                  <div class="home-menu-btn px-3 py-4" onclick="homeMenuToggle()" style="color: #fff;">                        <i class="fal fa-bars"></i>                    </div>
               </div>
            </div>
         </div>
      </div>
      <div class="home-head">
         <div class="home-head-bg" style="height:125px"></div>
      </div>
      <section class="neworder">
         <div class="container">
            <div class="row">
               <div class="col-lg-12 col-12 mb-5 mb-lg-0">
            <div class="d-card dc-dash">
                <div class="row">
                    <div class="col-lg-6 col-md-8 col-12">
                        <div class="py-3 px-5">
                            <div class="dch-title">
                                Kullanıcı Sözleşmesi
                            </div>
                            <div class="dch-text">
                                Tüm kullanıcılarımız aşağıdaki koşulları kabul etmiş sayılır.
                            </div>
                        </div>
                    </div>
                </div>
            </div>
                  <div class="d-card">
                      
                     <div class="d-card-body" id="dc-body">


            <section class="neworder">

                <div class="row">
                    <div class="col-lg-12 col-12 mb-5 mb-lg-0">
                        <div class="d-card">

                            <div class="d-card-body" id="dc-body">

                                {TERMS_TEXT}

                            </div>
                        </div>
                    </div>

                </div>

            </section>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </section>
      <div class="footer mt-5">
         <div class="container">
            <div class="ft-content">
               <div class="ftc-top">
                  <div class="row">
                     <div class="col-md-auto col-12 text-center text-md-left">
                        <div class="ftc-name">
                           <div class="row">
                              <div class="col align-self-center">
                                 <div class="fct-name">                                    <img class="img-fluid" style="height: 75px;" src="{SITE_LOGO}" />                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                     <div class="col-md col-12 mt-4 mt-lg-0 align-self-center">
                        <div class="footer-links text-md-right text-center">
                           <ul>
                                                            <li>
                                 <a href="../faq">Sıkça Sorular Sorular</a>
                              </li>
                              <li>
                                 <a href="../terms">Kullanıcı Sözleşmesi </a>
                              </li>
                              <li>
                                 <a href="../services">Servis Listesi</a>
                              </li>
                           </ul>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <div class="container">
            <div class="ft-content-bot">
               <div class="ft-content-bot-text">
                  <br />                  
                  <p><strong>{SITE_TITLE}</strong> Sosyal Medya Bayilik Paneli.</p>
                  <p>Tüm Hakları Saklıdır. ©2021</p>
               </div>
            </div>
         </div>
      </div>
      <nav class="mob-nav">
         <ul class="mob-nav-link">					 <li>
                        <a href="/">
                            <i class="fal fa-sign-in-alt"></i>
                            <span>Giriş Yap</span>
                        </a>
                    </li>
					 <li>
                        <a href="/services">
                            <i class="fal fa-tags"></i>
                            <span>Servisler</span>
                        </a>
                    </li>
					 <li>
                        <a href="/register">
                            <i class="fal fa-user"></i>
                            <span>Kayıt Ol</span>
                        </a>
                    </li>
         </ul>
      </nav>




			<div class="modal fade" id="mobilemenu" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">

		<div class="modal-dialog">

			<div class="modal-content">

				<div class="modal-body">

					<ul>
						<?php foreach($mainmenus as $row): if($row['menu_type'] == 2):?>
							<li><a href="<?=isset($siteLinks[$row['menu_link']]['url']) ? $siteLinks[$row['menu_link']]['url'] : $row['menu_link'] ?>"><?=$row['menu_title']?></a></li>
						<?php endif; endforeach; ?>
						<!--<li><a href="{LINK_SERVICES}">{NAVBAR_SERVICES}</a></li>

						<li><a href="{LINK_LOGIN}">{NAVBAR_LOGIN}</a></li>

						<li><a href="{LINK_REGISTER}">{NAVBAR_REGISTER}</a></li>-->

					</ul>

				</div>

				<div class="modal-footer">

					<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>

				</div>

			</div>

		</div>

	</div>
      <?= htmlspecialchars_decode($settings['footer_code']); ?>
      <script type="text/javascript">
         var messages = {
         
             UNKNOWN_ERROR: "{UNKNOWN_ERROR}",
         
             PROCESS_ERROR: "{PROCESS_ERROR}"
         
         };
         
      </script>
      <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
      <script src="<?= theme("assets/kits/bootstrap/js/bootstrap.bundle.min.js"); ?>"></script>
      <script src="<?= theme("assets/js/main.js"); ?>"></script>
      <script src="<?= public_url("system/js/bootstrap-datepicker.min.js"); ?>"></script>
      <script src="<?= public_url("system/js/alertify.js"); ?>?v=<?= time() ?>"></script>
      <script src="<?= public_url("system/js/main.js"); ?>"></script>
   </body>
</html>
<?php endif; ?>