hefterbrumi
05-25-2011, 03:17 PM
Hi!
I am struggling with a problem. I have a footer on a page (its a generic page its not me who wrote it) and i have "adressFcb" tag nested in "footerlinks" tag. The thing is that I want to swap the two things.
I 'd like to make adressFcb tag and all the things it contains to appear within the footerlinks div, and then all the links (.implode(" | ",$arr).) to appear after.
Im not an expert in PHP and im struggling with the code.
I started to simply swap the to elements, and it worked, but due to some syntax errors (I presume) css didnt work at all. I tried to move everything in the same tag and got rid of the other, but again some difficulties came up becouse i do cant integrate this part : (implode(" | ",$arr).)
this is the original code:
if($arr!=array()) $res="<div class=\"footerlinks\">".implode(" | ",$arr).'<div class="addressFcb"> <p>Austria<br>Kertner 32<br>+36(9556)555625-57867<br>+44(35)23386-2876</p><a href="mailto:lafflo.kukac@ggh.net"><b> lafflo.hefg(at)ggh.net</b></a></p><p>*</p><p><a target="_blank" href="http://www.facebook.com/pages/4848463326153795"><img src="<resource>facebook-hu_alt.png</resource>" alt="Facebook kapcsolódás" width="45" height="45" ></a> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/4848463326153795&layout=button_count&show_faces=true&width=110&action=like&font&colorscheme=dark&height=25" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:25px;" allowTransparency="true"></iframe>
</div></div>';
this is what i started to change:
if($arr!=array()) $res="<div class=\"footerlinks\">"<div class="addressFcb"> <p>Austria<br>Kertner 32<br>+36(9556)555625-57867<br>+44(35)23386-2876</p><a href="mailto:lafflo.kukac@ggh.net"><b> lafflo.hefg(at)ggh.net</b></a></p><p>*</p><p><a target="_blank" href="http://www.facebook.com/pages/4848463326153795"><img src="<resource>facebook-hu_alt.png</resource>" alt="Facebook kapcsolódás" width="45" height="45" ></a> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/4848463326153795&layout=button_count&show_faces=true&width=110&action=like&font&colorscheme=dark&height=25" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:25px;" allowTransparency="true"></iframe>
</div>.implode(" | ",$arr).</div>';
please someone help me!
Thx
I am struggling with a problem. I have a footer on a page (its a generic page its not me who wrote it) and i have "adressFcb" tag nested in "footerlinks" tag. The thing is that I want to swap the two things.
I 'd like to make adressFcb tag and all the things it contains to appear within the footerlinks div, and then all the links (.implode(" | ",$arr).) to appear after.
Im not an expert in PHP and im struggling with the code.
I started to simply swap the to elements, and it worked, but due to some syntax errors (I presume) css didnt work at all. I tried to move everything in the same tag and got rid of the other, but again some difficulties came up becouse i do cant integrate this part : (implode(" | ",$arr).)
this is the original code:
if($arr!=array()) $res="<div class=\"footerlinks\">".implode(" | ",$arr).'<div class="addressFcb"> <p>Austria<br>Kertner 32<br>+36(9556)555625-57867<br>+44(35)23386-2876</p><a href="mailto:lafflo.kukac@ggh.net"><b> lafflo.hefg(at)ggh.net</b></a></p><p>*</p><p><a target="_blank" href="http://www.facebook.com/pages/4848463326153795"><img src="<resource>facebook-hu_alt.png</resource>" alt="Facebook kapcsolódás" width="45" height="45" ></a> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/4848463326153795&layout=button_count&show_faces=true&width=110&action=like&font&colorscheme=dark&height=25" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:25px;" allowTransparency="true"></iframe>
</div></div>';
this is what i started to change:
if($arr!=array()) $res="<div class=\"footerlinks\">"<div class="addressFcb"> <p>Austria<br>Kertner 32<br>+36(9556)555625-57867<br>+44(35)23386-2876</p><a href="mailto:lafflo.kukac@ggh.net"><b> lafflo.hefg(at)ggh.net</b></a></p><p>*</p><p><a target="_blank" href="http://www.facebook.com/pages/4848463326153795"><img src="<resource>facebook-hu_alt.png</resource>" alt="Facebook kapcsolódás" width="45" height="45" ></a> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/4848463326153795&layout=button_count&show_faces=true&width=110&action=like&font&colorscheme=dark&height=25" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:25px;" allowTransparency="true"></iframe>
</div>.implode(" | ",$arr).</div>';
please someone help me!
Thx