Failed Searches - warwickfoster/qurantools GitHub Wiki
File: app/charts/provenance_footer.php
Purpose
The code snippet you provided is responsible for generating a legend that indicates the origin of sura data in a provenance diagram.
Functionality
- The code checks if the
miniModevariable is set and determines a CSS classprovenance_minibased on its value. - It also checks if the
durieModevariable is set. If not, it defaults tofalse. - Based on the value of
durieMode, the code outputs a legend with either Mecca/Medina or Durie's schema labels.
Output
The code will generate a legend with the following options:
- Meccan Suras If
durieModeis not set or isfalse. - Post-Transitional Suras, Pre-Transitional Suras, Mixed Suras If
durieModeis set totrue.
Additional Notes
- The CSS classes
meccan,medinan,pre-transitional,post-transitional, andmixed-transitionalare likely defined elsewhere in the code. - The
provenance-legendclass provides styling for the legend. - The
mini_mode_extra_classis used to apply additional CSS styles based on theminiModevalue.
Conclusion
The code snippet is responsible for generating a provenance legend that indicates the origin of sura data based on the specified mode.