diff --git a/application/modules/front/views/collection/_go_to_hadith.php b/application/modules/front/views/collection/_go_to_hadith.php new file mode 100644 index 0000000..2fe3468 --- /dev/null +++ b/application/modules/front/views/collection/_go_to_hadith.php @@ -0,0 +1,115 @@ +:` route defined in application/config/main.php. + * + * @var string $collectionName The collection slug (e.g. "bukhari", "muslim"). + */ + +$inputId = 'goToHadithInput_' . uniqid(); +$formId = 'goToHadithForm_' . uniqid(); +$collectionNameJs = json_encode($collectionName, JSON_UNESCAPED_SLASHES); +?> +
+ +
+ + + + diff --git a/application/modules/front/views/collection/dispbook.php b/application/modules/front/views/collection/dispbook.php index 37edcf1..25c13ab 100644 --- a/application/modules/front/views/collection/dispbook.php +++ b/application/modules/front/views/collection/dispbook.php @@ -98,6 +98,7 @@ function displayBab($chapter, $collection, $ourBookID, $showIntro = true) {
+ render('/collection/_go_to_hadith', array('collectionName' => $collection->name)); ?> + render('/collection/_go_to_hadith', array('collectionName' => $collectionName)); ?>