Failed Searches - warwickfoster/qurantools GitHub Wiki
app/charts/provenance_footer.php
File: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
miniMode
variable is set and determines a CSS classprovenance_mini
based on its value. - It also checks if the
durieMode
variable 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
durieMode
is not set or isfalse
. - Post-Transitional Suras, Pre-Transitional Suras, Mixed Suras If
durieMode
is set totrue
.
Additional Notes
- The CSS classes
meccan
,medinan
,pre-transitional
,post-transitional
, andmixed-transitional
are likely defined elsewhere in the code. - The
provenance-legend
class provides styling for the legend. - The
mini_mode_extra_class
is used to apply additional CSS styles based on theminiMode
value.
Conclusion
The code snippet is responsible for generating a provenance legend that indicates the origin of sura data based on the specified mode.