Jump to content

Austrian Economics Wiki talk:Vector.php: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
No edit summary
No edit summary
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 27: Line 28:
</source>
</source>
[[User:Nathan Larson|Nathan Larson]] ([[User talk:Nathan Larson|talk]]) 13:45, 8 October 2012 (MSD)
[[User:Nathan Larson|Nathan Larson]] ([[User talk: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:
<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:Nathan Larson|Nathan Larson]] ([[User talk:Nathan Larson|talk]]) 05:26, 14 October 2012 (MSD)

Revision as of 01:26, 14 October 2012

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)