diff --git a/routes/ayah.php b/routes/ayah.php index d0e0373..b1d3d39 100644 --- a/routes/ayah.php +++ b/routes/ayah.php @@ -3,13 +3,12 @@ use \Psr\Http\Message\ResponseInterface as Response; $app->get('/ayah', function ($request, $response, $args) { - if ($request->getQueryParam('reference') !== null && $request->getQueryParam('reference') != '') { $reference = urldecode($request->getQueryParam('reference')); } else { $reference = '24:35'; } - $ayah = $this->client->AlQuranCloudApi->ayah($reference, 'quran-simple'); + $ayah = $this->client->AlQuranCloudApi->ayah($reference, 'quran-uthmani'); return $this->view->render($response, 'ayah.php', [ 'pageTitle' => 'Quran - Surah ' . $ayah->data->surah->englishName . ' Ayah ' . $ayah->data->numberInSurah . ' (' . $ayah->data->surah->number . ':' . $ayah->data->numberInSurah . ')', @@ -29,7 +28,7 @@ if ($request->getQueryParam('reference') !== null && $request->getQueryParam('reference') != '') { $reference = $request->getQueryParam('reference'); } - $ayah = $this->client->AlQuranCloudApi->ayah($reference, 'quran-simple'); + $ayah = $this->client->AlQuranCloudApi->ayah($reference, 'quran-uthmani'); return $this->view->render($response, 'ayah.php', [ 'pageTitle' => 'Quran - Surah ' . $ayah->data->surah->englishName . ' Ayah ' . $ayah->data->numberInSurah . ' (' . $ayah->data->surah->number . ':' . $ayah->data->numberInSurah . ')', 'metaDescription' => 'AlQuran Cloud', @@ -49,7 +48,7 @@ if ($request->getQueryParam('reference') !== null && $request->getQueryParam('reference') != '') { $reference = $request->getQueryParam('reference'); } - $ayah = $this->client->AlQuranCloudApi->ayah($reference, 'quran-simple'); + $ayah = $this->client->AlQuranCloudApi->ayah($reference, 'quran-uthmani'); return $this->view->render($response, 'ayah.php', [ 'pageTitle' => 'Quran - Surah ' . $ayah->data->surah->englishName . ' Ayah ' . $ayah->data->numberInSurah . ' (' . $ayah->data->surah->number . ':' . $ayah->data->numberInSurah . ')', 'metaDescription' => 'AlQuran Cloud', diff --git a/routes/juz.php b/routes/juz.php index 0332395..6b5bfc7 100644 --- a/routes/juz.php +++ b/routes/juz.php @@ -14,7 +14,7 @@ return $this->view->render($response, 'juz.php', [ 'pageTitle' => 'Quran - Juz 1', 'metaDescription' => 'AlQuran Cloud', - 'juz' => $this->client->AlQuranCloudApi->juz('1', 'quran-simple'), + 'juz' => $this->client->AlQuranCloudApi->juz('1', 'quran-uthmani'), 'editions' => [ 'editions' => $this->client->AlQuranCloudApi->editions(null, null, 'text'), ], @@ -24,7 +24,7 @@ $app->get('/juz/{reference}', function ($request, $response, $args) { $reference = $request->getAttribute('reference'); - $juz = $this->client->AlQuranCloudApi->juz($reference, 'quran-simple'); + $juz = $this->client->AlQuranCloudApi->juz($reference, 'quran-uthmani'); return $this->view->render($response, 'juz.php', [ 'pageTitle' => 'Quran - Juz ' . $juz->data->number, 'metaDescription' => 'AlQuran Cloud', @@ -40,7 +40,7 @@ $reference = $request->getAttribute('reference'); $edition = $request->getAttribute('edition'); - $juz = $this->client->AlQuranCloudApi->juz($reference, 'quran-simple'); + $juz = $this->client->AlQuranCloudApi->juz($reference, 'quran-uthmani'); $juzEdition = $this->client->AlQuranCloudApi->juz($reference, $edition); return $this->view->render($response, 'juz.php', [ 'pageTitle' => 'Quran - Juz ' . $juz->data->number . ' - ' . $juzEdition->data->edition->name, diff --git a/routes/quran.php b/routes/quran.php index 2306e4c..698a590 100644 --- a/routes/quran.php +++ b/routes/quran.php @@ -15,7 +15,7 @@ return $this->view->render($response, 'quran.php', [ 'pageTitle' => 'The Holy Quran', 'metaDescription' => 'A Complete Rendering and Recitation of the Quran', - 'quran' => $this->client->AlQuranCloudApi->quran('quran-simple'), + 'quran' => $this->client->AlQuranCloudApi->quran('quran-uthmani'), 'suwar' => $this->client->AlQuranCloudApi->surahs(), 'editions' => [ 'editions' => $this->client->AlQuranCloudApi->editions(null, null, 'text'), @@ -31,7 +31,7 @@ return $this->view->render($response, 'quran.php', [ 'pageTitle' => 'Al Quran Cloud', 'metaDescription' => 'AlQuran Cloud', - 'quran' => $this->client->AlQuranCloudApi->quran('quran-simple'), + 'quran' => $this->client->AlQuranCloudApi->quran('quran-uthmani'), 'suwar' => $this->client->AlQuranCloudApi->surahs(), 'quranEdition' => $this->client->AlQuranCloudApi->quran($edition), 'editions' => [ diff --git a/routes/surah.php b/routes/surah.php index 218f617..3189c4b 100644 --- a/routes/surah.php +++ b/routes/surah.php @@ -14,7 +14,7 @@ $app->get('/surah', function ($request, $response, $args) { - $surah = $this->client->AlQuranCloudApi->surah('1', 'quran-simple'); + $surah = $this->client->AlQuranCloudApi->surah('1', 'quran-uthmani'); return $this->view->render($response, 'surah.php', [ 'pageTitle' => 'Quran - Surah ' . $surah->data->englishName . ' (' . $surah->data->name. ')', @@ -31,7 +31,7 @@ $app->get('/surah/{reference}', function ($request, $response, $args) { $reference = $request->getAttribute('reference'); - $surah = $this->client->AlQuranCloudApi->surah($reference, 'quran-simple'); + $surah = $this->client->AlQuranCloudApi->surah($reference, 'quran-uthmani'); return $this->view->render($response, 'surah.php', [ 'pageTitle' => 'Quran - Surah ' . $surah->data->englishName . ' (' . $surah->data->name. ')', 'metaDescription' => 'AlQuran Cloud', @@ -48,7 +48,7 @@ $reference = $request->getAttribute('reference'); $edition = $request->getAttribute('edition'); - $surah = $this->client->AlQuranCloudApi->surah($reference, 'quran-simple'); + $surah = $this->client->AlQuranCloudApi->surah($reference, 'quran-uthmani'); return $this->view->render($response, 'surah.php', [ 'pageTitle' => 'Quran - Surah ' . $surah->data->englishName . ' (' . $surah->data->name. ')', 'metaDescription' => 'AlQuran Cloud', diff --git a/src/AlQuranCloud/Renderer/Juz.php b/src/AlQuranCloud/Renderer/Juz.php index 4fe032b..c27a51d 100644 --- a/src/AlQuranCloud/Renderer/Juz.php +++ b/src/AlQuranCloud/Renderer/Juz.php @@ -9,7 +9,7 @@ public static function renderAyahs($juz, $ayahs, $juzEdition = null, $ayahEditio { $html = ''; foreach ($ayahs as $key => $ayah) { - $html .= '
'; + $html .= '
'; if ($ayah->surah->number > 1 && $ayah->surah->number != 9 && $ayah->numberInSurah == 1) { $html .= mb_substr($ayah->text, 39); } else { diff --git a/src/AlQuranCloud/Renderer/Quran.php b/src/AlQuranCloud/Renderer/Quran.php index 5fdb925..df81d2d 100644 --- a/src/AlQuranCloud/Renderer/Quran.php +++ b/src/AlQuranCloud/Renderer/Quran.php @@ -17,7 +17,7 @@ public static function renderSurahHeaderRow($surah)
'; + $html .= '
'; if ($surah->number > 1 && $surah->number != 9 && $ayah->numberInSurah == 1) { $html .= mb_substr($ayah->text, 39); } else { diff --git a/src/AlQuranCloud/Renderer/Surah.php b/src/AlQuranCloud/Renderer/Surah.php index a7134c8..4e88dcb 100644 --- a/src/AlQuranCloud/Renderer/Surah.php +++ b/src/AlQuranCloud/Renderer/Surah.php @@ -17,7 +17,7 @@ public static function renderSurahHeaderRow($surah)
'; + $html .= '
'; if ($surah->data->number > 1 && $surah->data->number != 9 && $ayah->numberInSurah == 1) { $html .= mb_substr($ayah->text, 39); } else { diff --git a/views/about.php b/views/about.php index ef47b32..c3adadf 100644 --- a/views/about.php +++ b/views/about.php @@ -2,7 +2,7 @@