Skip to content

Commit

Permalink
sesuaikan perubahan di tema 2409
Browse files Browse the repository at this point in the history
  • Loading branch information
habibie11 committed Sep 5, 2024
1 parent 0dcce84 commit 5b891be
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 59 deletions.
18 changes: 13 additions & 5 deletions layouts/full_content.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,28 @@

<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php theme_view("commons/meta"); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php theme_view("commons/meta"); ?>
</head>

<body>
<div class="pagelayout">
<?php theme_view("partials/header"); ?>
<div class="default-row mt-20">
<div class="container-custom" style="margin-bottom:10px;">
<?php theme_view($halaman_peta); ?>
<?php
if ($tampil) {
theme_view($halaman_peta);
} else {
theme_view("partials/not_found");
}
?>
</div>
</div>
</div>
</div>
<?php theme_view("commons/footer"); ?>
</body>
</html>

</html>
10 changes: 9 additions & 1 deletion layouts/gallery.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@
<div class="container-custom">
<div class="row-custom mlr-min-20">
<div class="pageleft">
<?php theme_view("partials/galeri"); ?>

<?php
if ($tampil) {
theme_view("partials/galeri");
} else {
theme_view("partials/not_found");
}
?>

</div>
<div class="pageright">
<?php theme_view("partials/sidebar"); ?>
Expand Down
10 changes: 7 additions & 3 deletions layouts/halaman_statis.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@
</div>
</div>
<?php
if (preg_match("/halaman_statis/i", $halaman_statis)) {
$this->load->view($halaman_statis);
if ($tampil) {
if (preg_match("/halaman_statis/i", $halaman_statis)) {
$this->load->view($halaman_statis);
} else {
$this->load->view("{$folder_themes}/partials/{$halaman_statis}");
}
} else {
$this->load->view("{$folder_themes}/partials/{$halaman_statis}");
$this->load->view("{$folder_themes}/partials/not_found");
}
?>
</div>
Expand Down
50 changes: 20 additions & 30 deletions layouts/halaman_statis_lebar.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,37 @@

<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php theme_view("commons/meta"); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php theme_view("commons/meta"); ?>
</head>

<body>
<div class="pagelayout">
<?php theme_view("partials/header"); ?>
<div class="default-row mt-20">
<div class="container-custom" style="margin-bottom:10px;">
<?php if(IS_PREMIUM) : ?>
<?php if (preg_match("/halaman_statis/i", $halaman_statis)) {
$this->load->view($halaman_statis);
<?php

$view_file = preg_match("/halaman_statis/i", $halaman_statis) ? $halaman_statis : str_replace('home/idm', 'idm/index', $halaman_statis);

if ($tampil) {
if (IS_PREMIUM || $idm) {
$this->load->view($view_file);
} else {
$halaman_statis = str_replace('home/idm', 'idm/index', $halaman_statis);
$this->load->view("{$folder_themes}/partials/{$halaman_statis}");
$this->load->view("{$folder_themes}/partials/{$view_file}");
}
?>
<?php else : ?>
<?php if ($idm): ?>
<?php
if (preg_match("/halaman_statis/i", $halaman_statis)) {
$this->load->view($halaman_statis);
} else {
$halaman_statis = str_replace('home/idm', 'idm/index', $halaman_statis);
$this->load->view("{$folder_themes}/partials/{$halaman_statis}");
}
?>
<?php else : ?>
<?php
if (preg_match("/halaman_statis/i", $halaman_statis)) {
$this->load->view($halaman_statis);
} else {
$this->load->view("{$folder_themes}/partials/{$halaman_statis}");
}
?>
<?php endif; ?>
<?php endif ?>
} else {
$this->load->view("{$folder_themes}/partials/not_found");
}

?>

</div>
</div>
</div>
</div>
<?php theme_view("commons/footer"); ?>
</body>
</html>

</html>
6 changes: 5 additions & 1 deletion layouts/kelompok.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
<div class="container-custom">
<div class="row-custom mlr-min-20">
<div class="pageleft">
<?php theme_view("partials/kelompok"); ?>
<?php if ($tampil) {
theme_view("partials/kelompok");
} else {
theme_view("partials/not_found");
} ?>
</div>
<div class="pageright">
<?php theme_view("partials/sidebar"); ?>
Expand Down
35 changes: 22 additions & 13 deletions layouts/stat.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,43 @@

<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php theme_view("commons/meta"); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php theme_view("commons/meta"); ?>
</head>

<body>
<div class="pagelayout">
<?php theme_view("partials/header"); ?>
<div class="default-row mt-20">
<div class="container-custom">
<div class="row-custom mlr-min-20">
<div class="pageleft">
<?php if ($tipe == 2): ?>
<?php theme_view("partials/stat_statistik_sos"); ?>
<?php elseif ($tipe == 3): ?>
<?php theme_view("partials/stat_wilayah"); ?>
<?php elseif ($tipe == 4): ?>
<?php theme_view("partials/stat_dpt"); ?>
<?php else: ?>
<?php theme_view("partials/stat_statistik"); ?>
<?php endif; ?>

<?php if ($tampil) { ?>
<?php if ($tipe == 2): ?>
<?php theme_view("partials/stat_statistik_sos"); ?>
<?php elseif ($tipe == 3): ?>
<?php theme_view("partials/stat_wilayah"); ?>
<?php elseif ($tipe == 4): ?>
<?php theme_view("partials/stat_dpt"); ?>
<?php else: ?>
<?php theme_view("partials/stat_statistik"); ?>
<?php endif; ?>
<?php } else { ?>
<?php theme_view("partials/not_found"); ?>
<?php } ?>

</div>
<div class="pageright">
<?php theme_view("partials/sidebar"); ?>
<?php theme_view("partials/sidebar"); ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php theme_view("commons/footer"); ?>
</body>

</html>
6 changes: 5 additions & 1 deletion layouts/sub_gallery.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
<div class="container-custom">
<div class="row-custom mlr-min-20">
<div class="pageleft">
<?php theme_view("partials/subgaleri"); ?>
<?php if ($tampil) {
theme_view("partials/subgaleri");
} else {
theme_view("partials/not_found");
} ?>
</div>
<div class="pageright">
<?php theme_view("partials/sidebar"); ?>
Expand Down
6 changes: 5 additions & 1 deletion layouts/suplemen.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
<div class="container-custom">
<div class="row-custom mlr-min-20">
<div class="pageleft">
<?php theme_view("partials/suplemen"); ?>
<?php if ($tampil) {
theme_view("partials/suplemen");
} else {
theme_view("partials/not_found");
} ?>
</div>
<div class="pageright">
<?php theme_view("partials/sidebar"); ?>
Expand Down
14 changes: 14 additions & 0 deletions partials/not_found.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php defined('BASEPATH') || exit('No direct script access allowed'); ?>

<div class="artikel" id="artikel-blank">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="error_page_content">
<h1>404</h1>
<h2>Maaf</h2>
<h3>Halaman ini belum tersedia atau sedang dalam perbaikan</h3>
<p class="wow fadeInLeftBig">
<a href="<?= site_url(); ?>">Silahkan kembali lagi ke halaman Beranda</a>
</p>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions partials/stat_dpt.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="heading-module l-flex">
<div class="heading-module-inner l-flex">
<i class="fa fa-pie-chart"></i><h1>Data Statistik</h1>
<i class="fa fa-pie-chart"></i><h1><?= $heading ?></h1>
</div>
</div>
<div class="c-flex" style="margin:20px 0 20px;text-align:center;width:100%;">
Expand All @@ -16,7 +16,7 @@
<thead>
<tr>
<th class="text-center">No</th>
<th class="text-center">Nama Dusun</th>
<th class="text-center"><?= ucwords(setting('sebutan_dusun')) ?></th>
<th class="text-center">RW</th>
<th class="text-center">Jiwa</th>
<th class="text-center">L</th>
Expand Down
2 changes: 1 addition & 1 deletion partials/stat_statistik.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function switchType(){

<div class="box-body">
<div class="c-flex" style="margin:20px 0 20px;text-align:center;width:100%;">
<h1>Data Statistik <?=$heading?></h1>
<h1><?= $judul ?></h1>
</div>

<div class="c-flex">
Expand Down
2 changes: 1 addition & 1 deletion partials/stat_wilayah.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
</div>
<div class="c-flex" style="margin:20px 0 20px;text-align:center;width:100%;">
<h1>Data Statistik <?=$heading?></h1>
<h1><?= $heading ?></h1>
</div>

<div class="box-body">
Expand Down

0 comments on commit 5b891be

Please sign in to comment.