From a54cf4e91683aedb013fe194ecd6e02c88d4c51a Mon Sep 17 00:00:00 2001 From: Diki Siswanto Date: Fri, 24 Apr 2020 14:58:02 +0800 Subject: [PATCH] added: widget jadwal sholat --- assets/css/widget.css | 94 ++++++++++++++++++++++++++++++++++++ assets/css/widget.min.css | 1 + assets/image/motif.png | Bin 0 -> 22733 bytes assets/js/widget.js | 36 ++++++++++++++ assets/js/widget.min.js | 1 + layouts/arsip.tpl.php | 1 + layouts/gallery.tpl.php | 1 + layouts/stat.tpl.php | 1 + layouts/sub_gallery.tpl.php | 1 + partials/artikel.php | 2 + partials/content.php | 17 ++++--- partials/slider.php | 22 ++++----- partials/statis.php | 1 + template.php | 2 +- widgets/jadwal_shalat.php | 41 ++++++++++++++++ 15 files changed, 203 insertions(+), 18 deletions(-) create mode 100644 assets/css/widget.css create mode 100644 assets/css/widget.min.css create mode 100644 assets/image/motif.png create mode 100644 assets/js/widget.js create mode 100644 assets/js/widget.min.js create mode 100644 widgets/jadwal_shalat.php diff --git a/assets/css/widget.css b/assets/css/widget.css new file mode 100644 index 0000000..01b6839 --- /dev/null +++ b/assets/css/widget.css @@ -0,0 +1,94 @@ +.box-shalat { + position: relative; + height: 70px; + width: 100%; + border-radius: 10px; + background: #1B676B; + color: #efefef; + font-family: 'montserrat', sans-serif; + font-weight: bold; + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + padding: 3px 15px; + overflow: hidden; +} + +.line { + position: relative; + height: 15px; + width: auto; + border-radius: 10px; + margin-left: 0px; +} + +.line-short { + width: 250px; +} + +.box-shalat::before { + content: ''; + position: absolute; + background: url('../image/motif.png'); + background-position: right bottom; + background-repeat: no-repeat; + background-size: contain; + width: 100%; + height: 100%; + opacity: 0.2; +} + +.shimmer { + background: #efefef; + background-image: linear-gradient(to right, #efefef 0%, #edeef1 20%, #f6f7f8 40%, #efefef 100%); + background-repeat: no-repeat; + background-size: cover; + animation-duration: 1s; + animation-fill-mode: forwards; + animation-iteration-count: infinite; + animation-name: placeholderShimmer; + animation-timing-function: linear; +} + +.p-relative { + display: block; + position: relative; + height: 100%; + min-height: 180px; +} + +.p-absolute { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + width: 100%; + height: auto; + z-index: 999; +} + +.p-relative::after { + clear: both; + position: static; +} + +.p-relative #jadwal-shalat { + background: linear-gradient(rgba(5,5,5,.7), transparent) !important; + padding-bottom: 60px !important; +} +.p-relative [data-name=kota] { + color: #efefef !important; +} + + +@keyframes placeholderShimmer { + 0% { + background-position: -468px 0; + } + + 100% { + background-position: 468px 0; + } +} \ No newline at end of file diff --git a/assets/css/widget.min.css b/assets/css/widget.min.css new file mode 100644 index 0000000..a260861 --- /dev/null +++ b/assets/css/widget.min.css @@ -0,0 +1 @@ +.box-shalat{position:relative;height:70px;width:100%;border-radius:10px;background:#1b676b;color:#efefef;font-family:montserrat,sans-serif;font-weight:700;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:3px 15px;overflow:hidden}.line{position:relative;height:15px;width:auto;border-radius:10px;margin-left:0}.line-short{width:250px}.box-shalat::before{content:'';position:absolute;background:url(../image/motif.png);background-position:right bottom;background-repeat:no-repeat;background-size:contain;width:100%;height:100%;opacity:.2}.shimmer{background:#efefef;background-image:linear-gradient(to right,#efefef 0,#edeef1 20%,#f6f7f8 40%,#efefef 100%);background-repeat:no-repeat;background-size:cover;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeholderShimmer;animation-timing-function:linear}.p-relative{display:block;position:relative;height:100%;min-height:180px}.p-absolute{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:auto;z-index:999}.p-relative::after{clear:both;position:static}.p-relative #jadwal-shalat{background:linear-gradient(rgba(5,5,5,.7),transparent)!important;padding-bottom:60px!important}.p-relative [data-name=kota]{color:#efefef!important}@keyframes placeholderShimmer{0%{background-position:-468px 0}100%{background-position:468px 0}} \ No newline at end of file diff --git a/assets/image/motif.png b/assets/image/motif.png new file mode 100644 index 0000000000000000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zmm9+$%`qtUsG;1WoRmYOV{oZJi}bW1tD~l@IF{A9tfj_XwiKU zR*&GgGq&v5)iMz-fZ|x<9##NFSZ4WX*(+9ni}4S??&6{7Qdpa@is>itz)axvx>-GeYZN;m#-49~f8c?J{;g+j5e2s)as z-p5h9A@;|0#gyNU#mI(@&z(~!6bi+<;hHgK2i6q-5f>_PTbS!HumAu607*qoM6N<$ Ef?9XaH2?qr literal 0 HcmV?d00001 diff --git a/assets/js/widget.js b/assets/js/widget.js new file mode 100644 index 0000000..f42cefc --- /dev/null +++ b/assets/js/widget.js @@ -0,0 +1,36 @@ +$(document).ready(function () { + if ($('#jadwal-shalat').length) { + + const BASE_API_URL = 'https://api.banghasan.com/'; + const endpoint_nama_kota = `sholat/format/json/kota/kode/${KODE_KOTA}`; + const endpoint_jadwal = `sholat/format/json/jadwal/kota/${KODE_KOTA}/tanggal/${TANGGAL}`; + + // get nama kota + $.ajax({ + url: BASE_API_URL + endpoint_nama_kota, + type: 'get', + dataType: 'json', + crossDomain: true, + success: function (res) { + $('[data-name=kota]').html(res.kota[0].nama).removeClass('shimmer line-short'); + } + }); + + // get jadwal sholat + $.ajax({ + url: BASE_API_URL + endpoint_jadwal, + type: 'get', + dataType: 'json', + crossDomain: true, + success: function (res) { + $('.shimmer').removeClass('shimmer'); + $('[data-name=imsak]').html(`Imsak${res.jadwal.data.imsak}`); + $('[data-name=subuh]').html(`Subuh${res.jadwal.data.subuh}`); + $('[data-name=dzuhur]').html(`Dzuhur${res.jadwal.data.dzuhur}`); + $('[data-name=ashar]').html(`Ashar${res.jadwal.data.ashar}`); + $('[data-name=maghrib]').html(`Maghrib${res.jadwal.data.maghrib}`); + $('[data-name=isya]').html(`Isya${res.jadwal.data.isya}`); + } + }) + } +}) \ No newline at end of file diff --git a/assets/js/widget.min.js b/assets/js/widget.min.js new file mode 100644 index 0000000..f4f6c5c --- /dev/null +++ b/assets/js/widget.min.js @@ -0,0 +1 @@ +$(document).ready(function(){if($("#jadwal-shalat").length){const a="https://api.banghasan.com/",s=`sholat/format/json/kota/kode/${KODE_KOTA}`,t=`sholat/format/json/jadwal/kota/${KODE_KOTA}/tanggal/${TANGGAL}`;$.ajax({url:a+s,type:"get",dataType:"json",crossDomain:!0,success:function(a){$("[data-name=kota]").html(a.kota[0].nama).removeClass("shimmer line-short")}}),$.ajax({url:a+t,type:"get",dataType:"json",crossDomain:!0,success:function(a){$(".shimmer").removeClass("shimmer"),$("[data-name=imsak]").html(`Imsak${a.jadwal.data.imsak}`),$("[data-name=subuh]").html(`Subuh${a.jadwal.data.subuh}`),$("[data-name=dzuhur]").html(`Dzuhur${a.jadwal.data.dzuhur}`),$("[data-name=ashar]").html(`Ashar${a.jadwal.data.ashar}`),$("[data-name=maghrib]").html(`Maghrib${a.jadwal.data.maghrib}`),$("[data-name=isya]").html(`Isya${a.jadwal.data.isya}`)}})}}); \ No newline at end of file diff --git a/layouts/arsip.tpl.php b/layouts/arsip.tpl.php index 02b6559..c6cb9b7 100644 --- a/layouts/arsip.tpl.php +++ b/layouts/arsip.tpl.php @@ -18,6 +18,7 @@ load->view($folder_themes . '/commons/header') ?> load->view($folder_themes . '/commons/nav') ?> + load->view($folder_themes . '/widgets/jadwal_shalat') ?>
diff --git a/layouts/gallery.tpl.php b/layouts/gallery.tpl.php index 7cfa141..0c2ac92 100644 --- a/layouts/gallery.tpl.php +++ b/layouts/gallery.tpl.php @@ -18,6 +18,7 @@
load->view($folder_themes . '/commons/header') ?> load->view($folder_themes . '/commons/nav') ?> + load->view($folder_themes . '/widgets/jadwal_shalat') ?>
diff --git a/layouts/stat.tpl.php b/layouts/stat.tpl.php index babc866..7fa7ae8 100644 --- a/layouts/stat.tpl.php +++ b/layouts/stat.tpl.php @@ -18,6 +18,7 @@ load->view($folder_themes . '/commons/header') ?> load->view($folder_themes . '/commons/nav') ?> + load->view($folder_themes . '/widgets/jadwal_shalat') ?>
diff --git a/layouts/sub_gallery.tpl.php b/layouts/sub_gallery.tpl.php index bd02b56..2fd5a23 100644 --- a/layouts/sub_gallery.tpl.php +++ b/layouts/sub_gallery.tpl.php @@ -19,6 +19,7 @@
load->view($folder_themes . '/commons/header') ?> load->view($folder_themes . '/commons/nav') ?> + load->view($folder_themes . '/widgets/jadwal_shalat') ?>
diff --git a/partials/artikel.php b/partials/artikel.php index 9d69bd8..1f5e150 100644 --- a/partials/artikel.php +++ b/partials/artikel.php @@ -3,6 +3,8 @@ load->view($folder_themes . '/commons/header') ?> load->view($folder_themes . '/commons/nav') ?> +load->view($folder_themes . '/widgets/jadwal_shalat') ?> +
diff --git a/partials/content.php b/partials/content.php index f1f016d..8163b70 100644 --- a/partials/content.php +++ b/partials/content.php @@ -1,11 +1,16 @@
- 0 || count($slide_artikel)>0)) AND $this->uri->segment(2) != 'kategori') { - $this->load->view($folder_themes .'/partials/slider.php'); - } - ?> +
+ 0 || count($slide_artikel)>0)) AND $this->uri->segment(2) != 'kategori') { + $this->load->view($folder_themes .'/partials/slider'); + } + ?> +
+ load->view($folder_themes . '/widgets/jadwal_shalat') ?> +
+
uri->segment(2) != 'kategori') : ?> @@ -147,6 +152,6 @@
- load->view($folder_themes . '/partials/apbdesa.php', $transparansi) ?> + load->view($folder_themes . '/partials/apbdesa', $transparansi) ?>
diff --git a/partials/slider.php b/partials/slider.php index e9d850f..8986acb 100644 --- a/partials/slider.php +++ b/partials/slider.php @@ -1,16 +1,16 @@ -
- +
\ No newline at end of file diff --git a/partials/statis.php b/partials/statis.php index 68be815..a430072 100644 --- a/partials/statis.php +++ b/partials/statis.php @@ -2,6 +2,7 @@ load->view($folder_themes . '/commons/header') ?> load->view($folder_themes . '/commons/nav') ?> +load->view($folder_themes . '/widgets/jadwal_shalat') ?>
diff --git a/template.php b/template.php index 1ce6fe1..6cc288b 100644 --- a/template.php +++ b/template.php @@ -5,6 +5,7 @@ load->view($folder_themes .'/commons/meta') ?> load->view($folder_themes .'/commons/source_css') ?> + load->view($folder_themes .'/commons/source_js') ?>
@@ -23,6 +24,5 @@ load->view($folder_themes .'/partials/content') ?> load->view($folder_themes .'/commons/footer') ?> - load->view($folder_themes .'/commons/source_js') ?> \ No newline at end of file diff --git a/widgets/jadwal_shalat.php b/widgets/jadwal_shalat.php new file mode 100644 index 0000000..fd337ac --- /dev/null +++ b/widgets/jadwal_shalat.php @@ -0,0 +1,41 @@ + + + +theme_folder/$this->theme/assets/css/widget.min.css") ?>"> + + + +
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file