Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/cce/Views/layouts
NameTypeSizeActions
📁 .. Folder -
📄 aboutus-layout.php File 1676
Edit Download
📄 article-layout.php File 21975
Edit Download
📄 back-top.php File 706
Edit Download
📄 body-layout.php File 1313
Edit Download
📄 contactus-layout.php File 4025
Edit Download
📄 department-layout.php File 3736
Edit Download
📄 footer-layout.php File 5862
Edit Download
📄 header-layout.php File 451
Edit Download
📄 header-second.php File 827
Edit Download
📄 index-layout.php File 4027
Edit Download
📄 list-languages.php File 5393
Edit Download
📄 list-news-layout.php File 6488
Edit Download
📄 list-pdf-layout.php File 4459
Edit Download
📄 main-func.php File 59102
Edit Download
📄 main-layout.php File 8313
Edit Download
📄 main-menu.php File 3613
Edit Download
📄 mobile-menu.php File 5453
Edit Download
📄 mobile-side.php File 14998
Edit Download
📄 pdf-layout.php File 3
Edit Download
📄 right_sidebar.php File 3970
Edit Download
📄 search-layout.php File 5408
Edit Download
📄 top-menu.php File 1175
Edit Download
📄 top_slider.php File 2320
Edit Download

View File: department-layout.php

<?php
$id = isset($_GET['id']) ? (int)$_GET['id'] : 0;  
if ($id > 0) { 
    require_once __DIR__ . '/../../Models/DetailsManager.php';   
    $label='';
    $description=''; 
    
       $img_path1 = "service/images/details/";

        $ctrl = new DetailsManager();
        $row = $ctrl->getDetailsById($id);
        $imagePath ="";
        if ($row !== null) {
              if (!empty($row['img_ext'])) {      
                $imagePath = $img_path1 . 'img_' . $row['item_id'] . '.' . $row['img_ext'];
             }
            if($lang==='ar'){
               $label  = $row['details_title'] ?? '';
               $description = $row['details_description'] ?? '';
            }
            else if($lang==='ku'){
               $label  = $row['details1_title'] ?? '';
               $description = $row['details1_description'] ?? '';
            }
            else if($lang==='en'){
                $label  = $row['details2_title'] ?? '';
                $description = $row['details2_description'] ?? '';
            }
        } else {
            $list = $ctrl->getMenu();
            $item = findById($list, $id);

            if ($item !== null) {
                $label= $item['title'][$lang]; 
            }
        } 
   }
?>
<main id="content">
            <div class="container">
                <div class="row">
                    <!--breadcrumb-->
                    <div class="col-12">
                        <div class="breadcrumb u-breadcrumb  pt-3 px-0 mb-0 bg-transparent small">
                        <a class="breadcrumb-item" href="index.php?lang=<?= $lang ?>"><?= $L['home'] ?></a>
                        &nbsp;&nbsp;&#187;&nbsp;&nbsp;<?=$label; ?></div>
                    </div>
                    <!--end breadcrumb--> 
                      <div class="col-md-8"> 
                        <article class="post-397 page type-page status-publish hentry" id="post-397">

                            <header class="entry-header post-title">

                                <h1 class="entry-title h1 text-center display-4-md display-3-lg mt-2"><?= $label; ?></h1>
                                <hr class="hr-after mx-auto">

                            </header><!-- .entry-header -->


                            <div class="entry-content post-content post-page">

                             <?php if ($imagePath): ?>         

                            <div class="ratio_360-202 image-wrapper mb-4">
                             <a href="#"  onclick="event.preventDefault();">
                              <img class="img-fluid lazy"
                                 src="assets/img/lazy-empty.png"
                                data-src="<?= htmlspecialchars($imagePath) ?>"
                                alt="<?= htmlspecialchars($label) ?>">
                              </a>
                            </div>
                           <?php endif; ?> 
                              
                            <div class="mb-5"></div> 
                            <div class="inside-text">
                              <?php  
                              echo html_entity_decode($description);
                              ?>
                             </div> 
                             <hr class="my-4" /> 
                             <div class="gap-1"></div> 

                            </div><!-- .entry-content -->
                             
                        </article><!-- #post-## -->
                        

                    </div>
                      <?php include('right_sidebar.php'); ?> 
                 </div>
            </div>
        </main>