Difference between revisions of "Template:Quran Sura InfoBox"
From HodHood
P.Astakhov (talk | contribs) m (asort( $a );) |
P.Astakhov (talk | contribs) (echo '<div class="glossary"><div class="glossary-caption">$key</div><div class="glossary-content"> . implode( ', ', $value ) . '</div></div>';) |
||
Line 241: | Line 241: | ||
foreach ( $a as $value ) { | foreach ( $a as $value ) { | ||
$fl = $value[0]; // $fl = strtolower( $value[0] ); | $fl = $value[0]; // $fl = strtolower( $value[0] ); | ||
− | $return[$fl][] = $value; | + | $return[$fl][] = "[[Has Sura Index of Subjects::$value]]"; |
} | } | ||
− | + | ||
+ | |||
Line 249: | Line 250: | ||
<div class="infobox infobox-800 mw-collapsible mw-collapsed" style="clear: right"> | <div class="infobox infobox-800 mw-collapsible mw-collapsed" style="clear: right"> | ||
<big>Surah Index of Subjects</big> | <big>Surah Index of Subjects</big> | ||
− | <div class="mw-collapsible-content"> | + | <div class="mw-collapsible-content">'; |
− | + | ||
− | </div> | + | foreach ( $return as $key => $value ) { |
− | </div>'; | + | echo '<div class="glossary"><div class="glossary-caption">$key</div><div class="glossary-content"> . implode( ', ', $value ) . '</div></div>'; |
+ | } | ||
+ | |||
+ | echo '</div></div>'; | ||
</phptag> | </phptag> |
Revision as of 18:09, 29 March 2018
PhpTags Parse error: syntax error, unexpected '/' in Template:Quran Sura InfoBox on line 24