Skip to content

Commit

Permalink
Add back play icon against each ayah
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Jul 10, 2024
1 parent eaf1003 commit d6f2efd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/AlQuranCloud/Renderer/Juz.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function renderZoomIcon($ayah)

public static function renderPlayIcon($ayah, $juz)
{
return '<span class="linkify pull-left playThisAyah hide" data-juz="' . $juz->data->number . '" data-number="' . $ayah->number . '"><i class="glyphicon glyphicon-play-circle"></i></span>';
return '<span class="linkify pull-left playThisAyah" data-juz="' . $juz->data->number . '" data-number="' . $ayah->number . '"><i class="glyphicon glyphicon-play-circle"></i></span>';
}

}
2 changes: 1 addition & 1 deletion src/AlQuranCloud/Renderer/Quran.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function renderZoomIcon($ayah)

public static function renderPlayIcon($ayah)
{
return '<span class="linkify pull-left playThisAyah hide" id ="playThisAyah' . $ayah->number . '" data-number="' . $ayah->number . '"><i class="glyphicon glyphicon-play-circle"></i></span>';
return '<span class="linkify pull-left playThisAyah" id ="playThisAyah' . $ayah->number . '" data-number="' . $ayah->number . '"><i class="glyphicon glyphicon-play-circle"></i></span>';
}

}
2 changes: 1 addition & 1 deletion src/AlQuranCloud/Renderer/Surah.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function renderZoomIcon($ayah)

public static function renderPlayIcon($ayah, $surah)
{
return '<span class="linkify pull-left playThisAyah hide" data-numberInSurah="' . $ayah->numberInSurah . '" data-surah="' . $surah->data->number . '" data-number="' . $ayah->number . '"><i class="glyphicon glyphicon-play-circle"></i></span>';
return '<span class="linkify pull-left playThisAyah" data-numberInSurah="' . $ayah->numberInSurah . '" data-surah="' . $surah->data->number . '" data-number="' . $ayah->number . '"><i class="glyphicon glyphicon-play-circle"></i></span>';
}

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

<script src="/public/js/jquery.mediaplayer.js?v=14"></script>
<script src="/public/js/jquery.mediaplayer.js?v=15"></script>
<script src="/public/js/jquery.juz.js?v=3"></script>
<script>
$(function() {
Expand Down
6 changes: 3 additions & 3 deletions views/quran.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
</div>
</div>
<?php if ($dualAudio == 'true') { ?>
<script src="/public/js/jquery.mediaplayer-ar-en.js?v=27"></script>
<script src="/public/js/jquery.mediaplayer-ar-en.js?v=28"></script>
<?php } else { ?>
<script src="/public/js/jquery.mediaplayer.js?v=27"></script>
<script src="/public/js/jquery.mediaplayer.js?v=28"></script>
<?php } ?>
<script src="/public/js/jquery.quran.js?v=6"></script>
<script src="/public/js/jquery.quran.js?v=7"></script>
<script>
var surahChangers = <?php echo json_encode($surahChangers); ?>;
$(function() {
Expand Down
8 changes: 2 additions & 6 deletions views/surah.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<audio id="surahPlayer" controls="controls" class="">
<?php if ($surah->data->number > 1 && $surah->data->number != 9) { ?>
<source id ="activeAyah" src="https://cdn.islamic.network/quran/audio/128/ar.alafasy-2/1.mp3" title="1" type="audio/mp3"/>
<?php } else { ?>
<?php $ayah = $surah->data->ayahs[0]; ?>
<source id="activeAyah" src="https://cdn.islamic.network/quran/audio/128/ar.alafasy-2/<?= $ayah->number; ?>.mp3" title="<?= $ayah->number; ?>" type="audio/mp3"/>
<?php } ?>
</audio>
</div>
</div>
Expand Down Expand Up @@ -79,8 +75,8 @@
</div>
<hr />
</div>
<script src="/public/js/jquery.mediaplayer.js?v=14"></script>
<script src="/public/js/jquery.surah.js?v=7"></script>
<script src="/public/js/jquery.mediaplayer.js?v=15"></script>
<script src="/public/js/jquery.surah.js?v=8"></script>

<script>
$(function() {
Expand Down

0 comments on commit d6f2efd

Please sign in to comment.