MisesWiki talk:Vector.php

From Mises Wiki, the global repository of classical-liberal thought
Jump to: navigation, search

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 -->

Nathan Larson (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. Nathan Larson (talk) 05:26, 14 October 2012 (MSD)