Austrian Economics Wiki talk:Vector.php: Difference between revisions
Appearance
No edit summary |
DavidVeksler (talk | contribs) m Contributor de-identification |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
I was able to get rid of that superfluous gap between "Donate" and "Store" by changing this code to combine the nav-left and nav-right portions into one big nav-left. Unfortunately, that resulted in the "Wiki" item wrapping to the next line on smaller screens. So, I reverted it: | ==Superfluous gap== | ||
I was able to get rid of that superfluous gap between "Donate" and "Store" (which shows up on wide screens) by changing this code to combine the nav-left and nav-right portions into one big nav-left. Unfortunately, that resulted in the "Wiki" item wrapping to the next line on smaller screens. So, I reverted it: | |||
<source lang="php"> | <source lang="php"> | ||
<div id="nav-wrapper"> | <div id="nav-wrapper"> | ||
| Line 26: | Line 27: | ||
</div><!-- END Header HTML --> | </div><!-- END Header HTML --> | ||
</source> | </source> | ||
[[User: | [[User:FormerContributor-78162cb3|FormerContributor-78162cb3]] ([[User talk:FormerContributor-78162cb3|talk]]) 13:45, 8 October 2012 (MSD) | ||
==Printable version== | |||
I got rid of the Mises.org header at the top of printable version by adding this code near the beginning of Vector.php: | |||
<source lang="php"> | |||
// This code is necessary to get it to produce a printable version that | |||
// doesn't have the Mises.org header taking up half the first page. | |||
if ( array_key_exists ( 'printable' , $_REQUEST ) ) { | |||
if ( $_REQUEST['printable'] == 'yes' ) { | |||
$skipTheRest = true; | |||
// Vector.printable.php is simply the Vector.php from MW v1.19.2. | |||
require_once ( "Vector.printable.php" ); | |||
} | |||
} | |||
if ( !$skipTheRest) { | |||
</source> | |||
This is good because that header was taking up half the first page of any printouts of our pages. [[User:FormerContributor-78162cb3|FormerContributor-78162cb3]] ([[User talk:FormerContributor-78162cb3|talk]]) 05:26, 14 October 2012 (MSD) | |||
Latest revision as of 07:05, 23 July 2026
Superfluous gap
I was able to get rid of that superfluous gap between "Donate" and "Store" (which shows up on wide screens) by changing this code to combine the nav-left and nav-right portions into one big nav-left. Unfortunately, that resulted in the "Wiki" item wrapping to the next line on smaller screens. So, I reverted it:
<div id="nav-wrapper">
<div id="nav-content">
<div id="nav-left">
<ul>
<li><a href="/">Mises.org</a></li>
<li><a href="http://mises.org/daily/">Daily</a></li>
<li><a href="http://mises.org/about">About</a></li>
<li><a href="http://bastiat.mises.org/">Blog</a></li>
<li><a href="http://mises.org/Literature">Literature</a></li>
<li><a href="http://mises.org/media">Audio / Video</a></li>
<li><a href="http://mises.org/events/">Events</a></li>
<li><a href="http://mises.org/donate.aspx">Donate</a></li>
</ul>
</div>
<div id="nav-right">
<ul>
<li><a href="http://mises.org/store/">Store</a></li>
<li><a href="http://academy.mises.org">Academy</a></li>
<li><a href="http://mises.org/community/">Community</a></li>
<li><a href="http://wiki.mises.org">Wiki</a></li>
</ul>
</div>
</div>
</div><!-- END Header HTML -->
FormerContributor-78162cb3 (talk) 13:45, 8 October 2012 (MSD)
Printable version
I got rid of the Mises.org header at the top of printable version by adding this code near the beginning of Vector.php:
// This code is necessary to get it to produce a printable version that
// doesn't have the Mises.org header taking up half the first page.
if ( array_key_exists ( 'printable' , $_REQUEST ) ) {
if ( $_REQUEST['printable'] == 'yes' ) {
$skipTheRest = true;
// Vector.printable.php is simply the Vector.php from MW v1.19.2.
require_once ( "Vector.printable.php" );
}
}
if ( !$skipTheRest) {
This is good because that header was taking up half the first page of any printouts of our pages. FormerContributor-78162cb3 (talk) 05:26, 14 October 2012 (MSD)