Wiki source code of Footer Macro sample
Last modified by Normann P. Nielsen on 2013/01/06 08:33
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | This is the look of my footer on all pages: |
| 2 | |||
| 3 | [[image:FooterSample.jpg||width="954"||height="227"||alt="FooterSample.jpg"]] | ||
| 4 | |||
| 5 | This is all placed in a [[Macro>>Main.atlassian.atlassian-confluence.styling-confluence.macro-s]] called "me-footer" as maintaining it in a macro so editing is easier that in a layout. The Macro is placed in the [[Global Layouts>>Main.atlassian.atlassian-confluence.styling-confluence.global-layouts]], as the footer should be on all pages: | ||
| 6 | |||
| 7 | [[image:Screen Shot 2013-01-06 at 08.28.36.jpg||width="902"||height="183"||alt="Screen Shot 2013-01-06 at 08.28.36.jpg"]] | ||
| 8 | |||
| 9 | And the macrocode is: | ||
| 10 | #### @noparams | ||
| 11 | <script type="text/javascript"> | ||
| 12 | AJS.toInit(function () { | ||
| 13 | jQuery('a#khvg145').fancybox({ | ||
| 14 | 'width' : '100%', | ||
| 15 | 'height' : '100%', | ||
| 16 | 'speedIn' : 600, | ||
| 17 | 'speedOut' : 200, | ||
| 18 | 'overlayShow' : false | ||
| 19 | }); | ||
| 20 | }); | ||
| 21 | </script> | ||
| 22 | <link href='http://fonts.googleapis.com/css?family=Iceland' rel='stylesheet' type='text/css'> | ||
| 23 | <style> | ||
| 24 | .block-title | ||
| 25 | { | ||
| 26 | font-family: 'Iceland', cursive; | ||
| 27 | font-weight: normal; | ||
| 28 | font-size: 28px; | ||
| 29 | line-height: 24px; | ||
| 30 | margin-bottom: 4px; | ||
| 31 | color: white; | ||
| 32 | } | ||
| 33 | </style> | ||
| 34 | <table class="mosfooter"> | ||
| 35 | <tr> | ||
| 36 | <td colspan=3 align=left bgcolor=#f0f0f0> | ||
| 37 | <b>Things that make You go 'uhmm': </b> | ||
| 38 | </td> | ||
| 39 | <td colspan=4 align=right bgcolor=#f0f0f0> | ||
| 40 | <a href="http://www.splunk.com/?ac=partner_netic" target="_new">splunk></a> <a href="http://www.atlassian.com/software/confluence/" target="_new">Confluence</a> <a href="http://www.apple.dk" target="_new">Apple</a> | ||
| 41 | </td> | ||
| 42 | </tr> | ||
| 43 | <tr> | ||
| 44 | <td width=10% valign=top><font class="block-title">Information</font></td> | ||
| 45 | <td width=10% valign=top><font class="block-title">Links</font></td> | ||
| 46 | <td width=10% valign=top><font class="block-title">Social Likes</font></td> | ||
| 47 | <td width=10% valign=top><font class="block-title">Scan</font></td> | ||
| 48 | </tr><tr> | ||
| 49 | <td valign=top><font color=white>Normann. P. Nielsen<br>Kærhavegårdvej 145<br>9270 Klarup | ||
| 50 | <a id="khvg145" href="http://maps.googleapis.com/maps/api/staticmap?center=Kærhavegårdvej+145,9270+Klarup&zoom=14&size=900x900&sensor=true&maptype=hybrid&markers=color:blue%7Clabel:Kærhavegårdvej 145, 9270 Klarup|$Kærhavegårdvej 145, 9270 Klarup" rel="lightbox" title="Adresse: Kærhavegårdvej 145, 9270 Klarup"><img src="/images/map_logo.jpg" border="0"></a> | ||
| 51 | <br>Tlf: +45 25277268<br>E-Mail: bnp@mos-eisley.dk</font></td> | ||
| 52 | <td valign=top> | ||
| 53 | <a href="http://www.norad.dk" target="_blank"><font color=white>Norad.dk</a><br> | ||
| 54 | <a href="http://www.stelbo.dk" target="_blank"><font color=white>Stelbo.dk</a><br> | ||
| 55 | <a href="http://www.star-reptiles.dk/forum" target="_blank"><font color=white>Star Reptiles Forum</a><br> | ||
| 56 | <a href="http://www.urbandictionary.com/" target="_blank"><font color=white>urbandictionary.com</a><br> | ||
| 57 | <a href="http://www.version2.dk" target="_blank"><font color=white>Version 2</a> | ||
| 58 | </font></td> | ||
| 59 | <td> | ||
| 60 | <script language="JavaScript" type="text/javascript">// <![CDATA[ | ||
| 61 | { | ||
| 62 | document.write('<iframe src="http://www.facebook.com/plugins/like.php?href='+location.href+'&layout=button_count" frameborder="0" scrolling="no" width="100%" height="62px" allowtransparency="true" style="height: 62px; width: 100%;"></iframe>'); | ||
| 63 | } | ||
| 64 | // ]]></script> | ||
| 65 | |||
| 66 | <!~-~- Place this tag where you want the +1 button to render ~-~-> | ||
| 67 | <div class="g-plusone" data-annotation="inline" data-width="120"></div> | ||
| 68 | <!~-~- Place this render call where appropriate ~-~-> | ||
| 69 | <script type="text/javascript"> | ||
| 70 | (function() { | ||
| 71 | var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; | ||
| 72 | po.src = 'https://apis.google.com/js/plusone.js'; | ||
| 73 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); | ||
| 74 | })(); | ||
| 75 | </script> | ||
| 76 | </td> | ||
| 77 | <td valign=top > | ||
| 78 | <img alt="npn-privat" src="/images/npn-privat.png" height="120" width="120" /> | ||
| 79 | </td> | ||
| 80 | </tr> | ||
| 81 | </table>## |