usman.php
138 lines
| 1 | <?php |
| 2 | echo $this->getHiddenVariables(); |
| 3 | $html = ''; |
| 4 | ?> |
| 5 | <!-- MASJID DESIGN --> |
| 6 | <div class="usman-body"> |
| 7 | <div class="container-fluid d-masjid-e-usman"> |
| 8 | <div class="row top-header-row"> |
| 9 | <div class="col-md-3 logo-section-top"> |
| 10 | <?php echo $this->getLogoUrl(); ?> |
| 11 | </div> |
| 12 | <div class="col-md-9 mosque-name-top"> |
| 13 | <h1><?php echo get_bloginfo('name'); ?></h1> |
| 14 | </div> |
| 15 | </div> |
| 16 | <div class="row"> |
| 17 | <!-- LEFT SIDE TIME TABLE AND INFORMATION --> |
| 18 | <div class="col-md-6 col-sm-12 col-12 left-main-column"> |
| 19 | <div class="row left-main-col-dateandtime"> |
| 20 | <div class="col-md-4 col-sm-4 col-4 digital-clock"> |
| 21 | <h2 id="hours"></h2> |
| 22 | <h2 id="colon">:</h2> |
| 23 | <h2 id="min"></h2> |
| 24 | </div> |
| 25 | <div class="col-md-2 col-sm-2 col-2 seconds-count"> |
| 26 | <h4 id="sec">42</h4> |
| 27 | <p id="ampm">PM</p> |
| 28 | </div> |
| 29 | <div class="col-md-6 col-sm-6 col-6 english-arabic-date"> |
| 30 | <p class="english-date"><?php echo date_i18n('l ' . get_option('date_format')); ?></p> |
| 31 | <?php echo $this->getHijriDate(date("d"), date("m"), date("Y"), $this->getRow()); ?> |
| 32 | </div> |
| 33 | </div> |
| 34 | |
| 35 | <div class="row left-main-col-prayernames"> |
| 36 | <div class="col-md-12 col-sm-12 col-12 prayernames-column"> |
| 37 | <div class="row lmc-heading"> |
| 38 | <div class="col-md-4 col-sm-4 col-4 empty-space"></div> |
| 39 | <div class="col-md-4 col-sm-4 col-4"> |
| 40 | <h3 class="start-title"><?php echo strtoupper($this->getLocalHeaders()['begins']); ?></h3> |
| 41 | </div> |
| 42 | <div class="col-md-4 col-sm-4 col-4 jamah-column"> |
| 43 | <h3 class="jamah-title"><?php echo strtoupper($this->getLocalHeaders()['iqamah']); ?></h3> |
| 44 | </div> |
| 45 | </div> |
| 46 | |
| 47 | <?php |
| 48 | $prayers = ['fajr', 'zuhr', 'asr', 'maghrib', 'isha']; |
| 49 | foreach ($prayers as $prayer) { |
| 50 | $nextPrayerClass = $this->getNextPrayerClass($prayer, $this->row); |
| 51 | $prayerName = $this->getLocalPrayerNames()[$prayer]; |
| 52 | $startTime = do_shortcode("[$prayer" . "_start]"); |
| 53 | $jamahTime = do_shortcode("[$prayer" . "_prayer]"); |
| 54 | echo " |
| 55 | <div class='row {$prayer}-section {$nextPrayerClass}'> |
| 56 | <div class='col-md-4 col-sm-4 col-4 {$prayer}-title title-value'> |
| 57 | <span class='title'>{$prayerName}</span> |
| 58 | </div> |
| 59 | <div class='col-md-4 col-sm-4 col-4 prayer-start-time time-value'> |
| 60 | <h3>{$startTime}</h3> |
| 61 | </div> |
| 62 | <div class='col-md-4 col-sm-4 col-4 prayer-jamah-time time-value'> |
| 63 | <h3>{$jamahTime}</h3> |
| 64 | </div> |
| 65 | </div>"; |
| 66 | } |
| 67 | ?> |
| 68 | |
| 69 | <div class="row jummah-section <?php echo $this->getNextPrayerClass('jumuah', $this->row); ?>"> |
| 70 | <div class="col-md-4 col-sm-4 col-4 jummah-title title-value"> |
| 71 | <span class="title"><?php echo stripslashes($this->getLocalHeaders()['jumuah']); ?></span> |
| 72 | </div> |
| 73 | <div class="col-md-8 col-sm-8 col-8 jummah-jamah-time time-value jummah"> |
| 74 | <?php echo $this->getJumuahTimesArray(); ?> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | </div> |
| 79 | |
| 80 | <div class="row left-main-col-sun-times pt-md-3 pt-2 text-center highlight"> |
| 81 | <div class="col-md-3 col-sm-3 col-3 sub-sadiq-section"> |
| 82 | <p class="sub-sadiq-title">SUBH-SADIQ</p><br> |
| 83 | <h4 class="sub-sadiq-time"><?php echo do_shortcode("[fajr_start]"); ?></h4> |
| 84 | </div> |
| 85 | <div class="col-md-3 col-sm-3 col-3 sunrise-section"> |
| 86 | <p class="sunrise-title"><?php echo $this->getLocalPrayerNames()['sunrise']; ?></p><br> |
| 87 | <h4 class="sunrise-time"><?php echo do_shortcode("[sunrise]"); ?></h4> |
| 88 | </div> |
| 89 | <div class="col-md-3 col-sm-3 col-3 zawaal-section"> |
| 90 | <p class="zawaal-title"><?php echo $this->prayerLocal['zawal']; ?></p><br> |
| 91 | <h4 class="zawaal-time"><?php echo do_shortcode("[zawal]"); ?></h4> |
| 92 | </div> |
| 93 | <div class="col-md-3 col-sm-3 col-3 sunset-section"> |
| 94 | <p class="sunset-title">SUNSET</p><br> |
| 95 | <h4 class="sunset-time"><?php echo do_shortcode("[maghrib_start]"); ?></h4> |
| 96 | </div> |
| 97 | </div> |
| 98 | </div> |
| 99 | |
| 100 | <!-- RIGHT SIDE BANNER AND MASJID NAME --> |
| 101 | <?php |
| 102 | $transitionEffect = get_option('transitionEffect'); |
| 103 | $transitionSpeed = get_option('transitionSpeed'); |
| 104 | $leftClass = 'col-md-12 col-sm-12 col-12'; |
| 105 | $rightClass = ''; |
| 106 | $slides = ''; |
| 107 | |
| 108 | if (get_option('quran-chbox') || get_option('slider-chbox') || $this->hasSliderImages()) { |
| 109 | $leftClass = 'col-md-4 col-sm-4 col-4'; |
| 110 | $rightClass = 'col-md-8 col-sm-8 col-8'; |
| 111 | |
| 112 | if (get_option('quran-chbox')) { |
| 113 | $slides = $this->getQuranSlides($transitionSpeed); |
| 114 | } else { |
| 115 | $slides = $this->getPresentationRow($transitionSpeed, true); |
| 116 | } |
| 117 | } |
| 118 | ?> |
| 119 | <div class="col-md-6 col-sm-12 col-12 right-main-column"> |
| 120 | <div class="row banner-section"> |
| 121 | <div id="carouselExampleIndicators" class="carousel slide <?php echo $transitionEffect; ?> height-100" data-bs-ride="carousel"> |
| 122 | <div class="carousel-inner height-100"> |
| 123 | <?php echo $slides; ?> |
| 124 | </div> |
| 125 | </div> |
| 126 | </div> |
| 127 | <div class="row mosque-info-overlay desktop-only"> |
| 128 | <div class="col-md-3 logo-section"> |
| 129 | <?php echo $this->getLogoUrl(); ?> |
| 130 | </div> |
| 131 | <div class="col-md-9 afterlogo-text"> |
| 132 | <h1 class="bottomright-masjidname"><?php echo get_bloginfo('name'); ?></h1> |
| 133 | </div> |
| 134 | </div> |
| 135 | </div> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div> |