+Fabi Posted December 10, 2015 Report Posted December 10, 2015 Am gasit codul pentru fontawesome la iconite.. Dar am nevoie de un if... Gen pun acolo {$icon}, dar imi trebuie un if in html.... Cum pot face daca forum id este 11, atunci {$icon} = <i class="fa-fa-comments"></i>, elseif forum id e 12 atunci {$icon} = bla bla else {$icon} = ceva help me please
Moderators gadeas Posted December 10, 2015 Moderators Report Posted December 10, 2015 Un if un HTML nu exista, poate in PHP.if (11 == $forum_data['id']) { Ce sa faca.. } elseif (12 == $forum_data['id']) { Ce sa faca.. }If-urile is in modu Yoda: https://en.wikipedia.org/wiki/Yoda_conditionsLe poti face si invers, $forum_data['id'] == 11. PHP Developer - Not available for freelancing right now Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament
+Fabi Posted December 10, 2015 Author Report Posted December 10, 2015 Un if un HTML nu exista, poate in PHP.if (11 == $forum_data['id']) { Ce sa faca.. } elseif (12 == $forum_data['id']) { Ce sa faca.. }If-urile is in modu Yoda: https://en.wikipedia.org/wiki/Yoda_conditionsLe poti face si invers, $forum_data['id'] == 11.Astea le pun in css sau jos in codul html? Si trebuiesc incluse intr-un tag sau cum? Explain me pls...
Moderators gadeas Posted December 10, 2015 Moderators Report Posted December 10, 2015 In fisierele CSS nu ai cum sa pui cod PHP.Astea vin in partea unde vrei sa faci ceva cu codu ala, globalTemplate, boardIndexTemplate, forumIndexTemplate, etc, totu depinde ce vrei sa faci. PHP Developer - Not available for freelancing right now Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament
+Fabi Posted December 10, 2015 Author Report Posted December 10, 2015 asa trebuie? <php> if (11 == $forum_data['id']) { {$icon} == fa-fa-briefcase } elseif (12 == $forum_data['id']) { {$icon} == fa-fa-comments } </php>
Moderators gadeas Posted December 10, 2015 Moderators Report Posted December 10, 2015 Nu.http://php.net/manual/en/control-structures.elseif.php PHP Developer - Not available for freelancing right now Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament
+AnDrEy. Posted December 10, 2015 Report Posted December 10, 2015 Zi gadeas codul complet dal drq , sa nu tot stam atat sau sa te tot deranjam atat. Ne lasi codul si toata lumea-i fericita AnDrEy.
Moderators gadeas Posted December 10, 2015 Moderators Report Posted December 10, 2015 Pai ala-i codu.Doar ca nu asa se da valoare la o variabila.$variabila = 'cod string';Aia ce vrea el sa faca din cate vad e asta de sus:$icon = 'fa-fa-comments';Si cu $icon dupa nu stiu ce vrea sa faca. PHP Developer - Not available for freelancing right now Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament
+strong Posted December 10, 2015 Report Posted December 10, 2015 Deci el vrea cate un icon diferit ca pe http://play-arena.ro/forum/ la categori cam asta e si de astea sunt 1321 de intrebari pe tema asta . — steam
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now