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 miniMode variable is set and determines a CSS class provenance_mini based on its value.
  • It also checks if the durieMode variable is set. If not, it defaults to false.
  • 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 is false.
  • Post-Transitional Suras, Pre-Transitional Suras, Mixed Suras If durieMode is set to true.

Additional Notes

  • The CSS classes meccan, medinan, pre-transitional, post-transitional, and mixed-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 the miniMode value.

Conclusion

The code snippet is responsible for generating a provenance legend that indicates the origin of sura data based on the specified mode.