Skip to content

Commit

Permalink
Update font to used modified Quran ME
Browse files Browse the repository at this point in the history
  • Loading branch information
Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram committed Jun 17, 2019
1 parent e2c7a10 commit 58f2896
Show file tree
Hide file tree
Showing 28 changed files with 40 additions and 41 deletions.
7 changes: 3 additions & 4 deletions routes/ayah.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . ')',
Expand All @@ -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',
Expand All @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions routes/juz.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
],
Expand All @@ -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',
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions routes/quran.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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' => [
Expand Down
6 changes: 3 additions & 3 deletions routes/surah.php
Original file line number Diff line number Diff line change
Expand Up @@ -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. ')',
Expand All @@ -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',
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/AlQuranCloud/Renderer/Juz.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static function renderAyahs($juz, $ayahs, $juzEdition = null, $ayahEditio
{
$html = '';
foreach ($ayahs as $key => $ayah) {
$html .= '<p class="font-uthmani rtl style-ayah ayah' . $juz->data->number . '_' . $ayah->number . '">';
$html .= '<p class="font-mequran2 rtl style-ayah ayah' . $juz->data->number . '_' . $ayah->number . '">';
if ($ayah->surah->number > 1 && $ayah->surah->number != 9 && $ayah->numberInSurah == 1) {
$html .= mb_substr($ayah->text, 39);
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/AlQuranCloud/Renderer/Quran.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function renderSurahHeaderRow($surah)
</h4>
</div>
<div class="col-md-4">
<h4 class="rtl align-right font-uthmani">
<h4 class="rtl align-right font-mequran2">
' . Generic::latinToArabicNumerals($surah->number) . '
<span class="surah-bracket-sign">﴿</span> ' . $surah->name . ' <span class="surah-bracket-sign">﴾</span>
</h4>
Expand All @@ -31,7 +31,7 @@ public static function renderAyahs($surah, $ayahs, $quranEdition = null, $ayahEd

foreach ($ayahs as $key => $ayah) {

$html .= '<p class="font-uthmani rtl style-ayah ayah' . $surah->number . '_' . $ayah->numberInSurah . '">';
$html .= '<p class="font-mequran2 rtl style-ayah ayah' . $surah->number . '_' . $ayah->numberInSurah . '">';
if ($surah->number > 1 && $surah->number != 9 && $ayah->numberInSurah == 1) {
$html .= mb_substr($ayah->text, 39);
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/AlQuranCloud/Renderer/Surah.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function renderSurahHeaderRow($surah)
</h4>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<h4 class="rtl align-right font-uthmani">
<h4 class="rtl align-right font-mequran2">
' . Generic::latinToArabicNumerals($surah->data->number) . '
<span class="surah-bracket-sign">﴿</span> ' . $surah->data->name . ' <span class="surah-bracket-sign">﴾</span>
</h4>
Expand All @@ -29,7 +29,7 @@ public static function renderAyahs($surah, $ayahs, $surahEdition = null, $ayahEd
{
$html = '';
foreach ($ayahs as $key => $ayah) {
$html .= '<p class="font-uthmani rtl style-ayah ayah' . $surah->data->number . '_' . $ayah->numberInSurah . '">';
$html .= '<p class="font-mequran2 rtl style-ayah ayah' . $surah->data->number . '_' . $ayah->numberInSurah . '">';
if ($surah->data->number > 1 && $surah->data->number != 9 && $ayah->numberInSurah == 1) {
$html .= mb_substr($ayah->text, 39);
} else {
Expand Down
2 changes: 1 addition & 1 deletion views/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/adhans.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php use AlQuranCloud\Renderer\Generic; ?>

<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/api-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<h4>
Expand Down
2 changes: 1 addition & 1 deletion views/arabic-fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
Uthmani
</div>
<div class="col-md-9">
<h1 class="font-uthmani">
<h1 class="font-mequran2">
بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ
</h1>

Expand Down
4 changes: 2 additions & 2 deletions views/ayah.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<?php use AlQuranCloud\Renderer\Generic; ?>

<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down Expand Up @@ -54,7 +54,7 @@

<div class="container">
<div class="row">
<div class="col-md-12 font-uthmani rtl style-ayah">
<div class="col-md-12 font-mequran2 rtl style-ayah">
<?= $ayah->data->text; ?>
<?= Ayah::renderAyahEndingInArabic($ayah->data->numberInSurah); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/cdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<h4>
Expand Down
2 changes: 1 addition & 1 deletion views/common/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a class="navbar-brand font-uthmani rtl" style="margin-right: 10px;" href="https://alquran.cloud">الْقُرْآن الْكَرِيْم</a>
<a class="navbar-brand font-mequran2 rtl" style="margin-right: 10px;" href="https://alquran.cloud">الْقُرْآن الْكَرِيْم</a>
</li>
</ul>
<ul class="nav navbar-nav">
Expand Down
2 changes: 1 addition & 1 deletion views/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/contributors.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/download-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
4 changes: 2 additions & 2 deletions views/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
ٱلْحَمْدُ لِلّٰهِ ٱلَّذِي خَلَقَ ٱلْإِنْسَانَ وَٱلْجَانَ وَ ٱلسَّمٰوَاتِ وَ ٱلْأَرْضِ وَ مَا فِي هُمَا وَ مَا بَيْنَ هُمَا وَ هُوَا ذُوْ ٱلْجَلَالِ وَ ٱلْإِكْرَامِ وَ هُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ۝

</div>
Expand Down
2 changes: 1 addition & 1 deletion views/juz-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


<div class="container">
<div class="lead font-uthmani align-center style-ayah">
<div class="lead font-mequran2 align-center style-ayah">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/juz.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<?php use AlQuranCloud\Renderer\Juz; ?>

<div class="container">
<div class="lead font-uthmani align-center style-ayah" style="padding-top: 70px;">
<div class="lead font-mequran2 align-center style-ayah" style="padding-top: 70px;">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<hr />
Expand Down
2 changes: 1 addition & 1 deletion views/quran.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?= Quran::renderSurahHeaderRow($surah); ?>
<hr />
<?php if ($surah->number != 9) { ?>
<div class="lead font-uthmani align-center style-ayah">
<div class="lead font-mequran2 align-center style-ayah">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<?php } ?>
Expand Down
2 changes: 1 addition & 1 deletion views/read.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


<div class="container">
<div class="lead font-uthmani align-center style-ayah">
<div class="lead font-mequran2 align-center style-ayah">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<?php use AlQuranCloud\Renderer\Surah; ?>

<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/surah-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php use AlQuranCloud\Renderer\Generic; ?>

<div class="container">
<div class="lead font-uthmani align-center style-ayah">
<div class="lead font-mequran2 align-center style-ayah">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion views/surah.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

<?= Surah::renderSurahHeaderRow($surah); ?>
<?php if ($surah->data->number != 9) { ?>
<div class="lead font-uthmani align-center style-ayah">
<div class="lead font-mequran2 align-center style-ayah">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<?php } ?>
Expand Down
4 changes: 2 additions & 2 deletions views/tajweed-guide.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
?>

<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand All @@ -24,7 +24,7 @@
This page essentially lists the output of the library. Please see the complete documentation the GitHub URL above.
</p>
<h5>Rendered Example - Ayah Noor (24:35) with Tajweed Parsed</h5>
<div class="font-uthmani style-ayah" style="direction: rtl">
<div class="font-mequran2 style-ayah" style="direction: rtl">
<?=$parser->parse($text);?>
</div>
<h5>What do the Colours mean?</h5>
Expand Down
2 changes: 1 addition & 1 deletion views/terms-and-conditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php require_once('common/navigation.php'); ?>
<?php // ================================================================ // ?>
<div class="container">
<div class="lead font-uthmani align-center">
<div class="lead font-mequran2 align-center">
بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ
</div>
<div class="page-header">
Expand Down

0 comments on commit 58f2896

Please sign in to comment.