Changeset View
Changeset View
Standalone View
Standalone View
includes/newlayout2/template-bottom2.inc
- This file was added.
| 1 | <?php // This file contains content between the menu and the end of html body | ||||
|---|---|---|---|---|---|
| 2 | | ||||
| 3 | // figure out the contact | ||||
| 4 | if (isset($name) && isset($mail)) | ||||
| 5 | $contact = i18n_var("Maintained by") . " <a href=\"mailto:$mail\">$name</a><br />\n"; | ||||
| 6 | else | ||||
| 7 | $contact = i18n_var("Maintained by <a href=\"mailto:webmaster@kde.org\">The KDE Webmaster</a><br />\n"); | ||||
| 8 | if (!isset($legalLink)) | ||||
| 9 | $legalLink = "http://www.kde.org/contact/impressum.php"; | ||||
| 10 | ?> | ||||
| 11 | | ||||
| 12 | <div class="menutitle"><div> | ||||
| 13 | <h2 id="cp-menu-search"><?php i18n("Search:")?></h2> | ||||
| 14 | </div></div> | ||||
| 15 | | ||||
| 16 | <div></div> | ||||
| 17 | <?php | ||||
| 18 | if (isset($_GET["newsearch"])) { | ||||
| 19 | ?> | ||||
| 20 | <form action="http://www.kde.org/search/" id="cse-search-box"> | ||||
| 21 | <p style="text-align:center"> | ||||
| 22 | <input type="hidden" name="newsearch" value="true" /> | ||||
| 23 | <input type="hidden" name="cx" value="009530675943227777520:cmvt6dt_jkm" /> | ||||
| 24 | <input type="hidden" name="cof" value="FORID:11" /> | ||||
| 25 | <input type="hidden" name="ie" value="UTF-8" /> | ||||
| 26 | <span class="cp-doNotDisplay"><label for="Search" accesskey="4"><?php i18n("Search:")?></label></span> | ||||
| 27 | <input style="width:80%" type="text" name="q" size="31" id="Search" onblur="defaultStyle(this)" onfocus="clearedStyle(this)" /> | ||||
| 28 | <input style="width:80%" type="submit" name="sa" value=" <?php i18n("Search")?> " id="searchButton" /> | ||||
| 29 | </p> | ||||
| 30 | </form> | ||||
| 31 | <script type="text/javascript"> | ||||
| 32 | function defaultStyle(e) {e.style.background = '#FFFFFF url(/media/images/google_custom_search_watermark.gif) left no-repeat';} | ||||
| 33 | function clearedStyle(e) {e.style.background = '#FFFFFF';} | ||||
| 34 | if (!/[&?]q=[^&]/.test(location.search)) defaultStyle(document.getElementById('Search')); // do not show background image if there is already a text entered | ||||
| 35 | </script> | ||||
| 36 | <?php | ||||
| 37 | if ($page_title == "KDE.org Search") // we just need this file if we display search results | ||||
| 38 | echo "<script type=\"text/javascript\" src=\"http://www.google.com/afsonline/show_afs_search.js\"></script>"; | ||||
| 39 | ?> | ||||
| 40 | <?php | ||||
| 41 | } else { | ||||
| 42 | ?> | ||||
| 43 | <form method="get" name="Searchform" action="/media/search.php"><p style="text-align:center"> | ||||
| 44 | <span class="cp-doNotDisplay"><label for="Search" accesskey="4"><?php i18n("Search:")?></label></span> | ||||
| 45 | <input style="width:80%" type="text" size="10" name="q" id="Search" value="" /><br /> | ||||
| 46 | <input style="width:80%" type="submit" value=" <?php i18n("Search")?> " name="Button" id="searchButton" /> | ||||
| 47 | </p></form> | ||||
| 48 | <?php | ||||
| 49 | } | ||||
| 50 | ?> | ||||
| 51 | | ||||
| 52 | <?php | ||||
| 53 | if (isset($site_languages) && count($site_languages) > 1) | ||||
| 54 | { | ||||
| 55 | ?> | ||||
| 56 | <div class="menutitle"><div> | ||||
| 57 | <h2 id="cp-menu-language"><?php i18n("Language:")?></h2> | ||||
| 58 | </div></div> | ||||
| 59 | | ||||
| 60 | <div><div> | ||||
| 61 | <p> | ||||
| 62 | <form method="get" name="languagecombo" action=""> | ||||
| 63 | <select style="width:80%" name="site_locale"> | ||||
| 64 | <?php | ||||
| 65 | foreach ($site_languages as &$value) { | ||||
| 66 | if ($value == $site_locale) $selected=" selected='selected'"; | ||||
| 67 | else $selected=""; | ||||
| 68 | print "<option value='".$value."'".$selected.">".languageName($value)."</option>"; | ||||
| 69 | } | ||||
| 70 | ?> | ||||
| 71 | </select> | ||||
| 72 | <input style="width:80%" type="submit" value=" <?php i18n("Change language")?> " id="languageButton" /> | ||||
| 73 | </form> | ||||
| 74 | </p> | ||||
| 75 | </div></div> | ||||
| 76 | <?php | ||||
| 77 | } | ||||
| 78 | ?> | ||||
| 79 | | ||||
| 80 | <?php | ||||
| 81 | if (isset($site_showkdeevdonatebutton) && $site_showkdeevdonatebutton && (!isset($page_disablekdeevdonatebutton) || !$page_disablekdeevdonatebutton)) | ||||
| 82 | { | ||||
| 83 | ?> | ||||
| 84 | <div class="menutitle"> | ||||
| 85 | <div><h2><?php i18n("Donate:");?> <a href='//www.kde.org/community/donations/index.php#money'><small style="float: right; margin-right: 1em;"><?php i18n("(Why?)");?></small></a></h2></div> | ||||
| 86 | </div> | ||||
| 87 | <p> | ||||
| 88 | <form action="https://www.paypal.com/en_US/cgi-bin/webscr" method="post" onsubmit="return amount.value >= 2 || window.confirm('<?php print i18n_var("Your donation is smaller than %1€. This means that most of your donation\\nwill end up in processing fees. Do you want to continue?", 2);?>');"> | ||||
| 89 | <input type="hidden" name="cmd" value="_donations" /> | ||||
| 90 | <input type="hidden" name="lc" value="GB" /> | ||||
| 91 | <input type="hidden" name="item_name" value="Development and communication of KDE software" /> | ||||
| 92 | <input type="hidden" name="custom" value="<?php print "//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]/donation_box"; ?>" /> | ||||
| 93 | <input type="hidden" name="currency_code" value="EUR" /> | ||||
| 94 | <input type="hidden" name="cbt" value="Return to www.kde.org" /> | ||||
| 95 | <input type="hidden" name="return" value="https://www.kde.org/community/donations/thanks_paypal.php" /> | ||||
| 96 | <input type="hidden" name="notify_url" value="https://www.kde.org/community/donations/notify.php" /> | ||||
| 97 | <input type="hidden" name="business" value="kde-ev-paypal@kde.org" /> | ||||
| 98 | <input type='text' name="amount" value="10.00" style='text-align: right; padding-right: 1em; border: 1px solid #CCC; width: 60px; height: 23px; ' /> € | ||||
| 99 | <button style='cursor: pointer; background-color: #0070BB; border: 1px solid #0060AB; color: #FFF; height: 27px;' type='submit'><?php i18n("Donate");?></button> | ||||
| 100 | </form> | ||||
| 101 | </p> | ||||
| 102 | <?php | ||||
| 103 | } | ||||
| 104 | ?> | ||||
| 105 | | ||||
| 106 | </div> | ||||
| 107 | </div> | ||||
| 108 | <div class="clearer"></div> | ||||
| 109 | </div> | ||||
| 110 | <div class="clearer"></div> | ||||
| 111 | </div> | ||||
| 112 | <div id="end_body"></div> | ||||
| 113 | | ||||
| 114 | <div id="footer"><div id="footer_text"> | ||||
| 115 | <?php print $contact; ?> | ||||
| 116 | <?php i18n("KDE<sup>®</sup> and <a href=\"/media/images/trademark_kde_gear_black_logo.png\">the K Desktop Environment<sup>®</sup> logo</a> are registered trademarks of ")?> | ||||
| 117 | <a href="http://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | | ||||
| 118 | <a href="<?php print $legalLink; ?>"><?php i18n("Legal")?></a> | ||||
| 119 | </div></div> | ||||
| 120 | </div> | ||||
| 121 | | ||||
| 122 | <!-- | ||||
| 123 | WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL | ||||
| 124 | BE BLOCKED INSTANTLY AND PERMANENTLY! | ||||
| 125 | <?php | ||||
| 126 | $trapmail = "aaaatrap-"; | ||||
| 127 | $t = pack('N', time()); | ||||
| 128 | for($i=0;$i<=3;$i++) { | ||||
| 129 | $trapmail.=sprintf("%02x",ord(substr($t,$i,1))); | ||||
| 130 | } | ||||
| 131 | $ip=$_SERVER["REMOTE_ADDR"]; | ||||
| 132 | sscanf($ip,"%d.%d.%d.%d",$ip1,$ip2,$ip3,$ip4); | ||||
| 133 | $trapmail.=sprintf("%02x%02x%02x%02x",$ip1,$ip2,$ip3,$ip4); | ||||
| 134 | | ||||
| 135 | echo "<a href=\"mailto:$trapmail@kde.org\">Block me</a>\n"; | ||||
| 136 | ?> | ||||
| 137 | WARNING END | ||||
| 138 | --> | ||||
| 139 | | ||||
| 140 | <?php | ||||
| 141 | if (isset ($_GET ['javascript'])) { | ||||
| 142 | ?> | ||||
| 143 | | ||||
| 144 | <script type="text/javascript"> | ||||
| 145 | function fitFooter() { | ||||
| 146 | try { | ||||
| 147 | document.getElementById ('body').style.minHeight = (window.innerHeight - document.getElementsByTagName ('body')[0].offsetHeight + document.getElementById ('body').offsetHeight) + "px"; | ||||
| 148 | window.setTimeout ("fitFooter()", 200); | ||||
| 149 | } catch (e) { | ||||
| 150 | } | ||||
| 151 | }; | ||||
| 152 | window.setTimeout ("fitFooter()", 100); | ||||
| 153 | </script> | ||||
| 154 | | ||||
| 155 | <?php | ||||
| 156 | } | ||||
| 157 | ?> | ||||