Last active
August 29, 2015 14:13
-
-
Save mkorostoff/07774fd55cbd982d40ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Tell page.tpl.php whether or not to show the sticky player | |
*/ | |
function olympics_degradation_states_preprocess_page(&$vars) { | |
$vars['disable_sticky_player'] = variable_get('disable_sticky_player', FALSE); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP template file | |
*/ | |
?> | |
<header> | |
<?php if (!$disable_sticky_player): ?> | |
<div> | |
<iframe src="http://example.com/sticky-player-embed/12345"/> | |
</div> | |
<?php endif; ?> | |
<nav> | |
<ul class="main-nav"> | |
<li><a href="#">Nav Item 1</a></li> | |
<li><a href="#">Nav Item 2</a></li> | |
<li><a href="#">Nav Item 3</a></li> | |
<li><a href="#">Nav Item 4</a></li> | |
<li><a href="#">Nav Item 5</a></li> | |
</ul> | |
</nav> | |
</header> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Final output show to the user --> | |
<header> | |
<nav> | |
<ul class="main-nav"> | |
<li><a href="#">Nav Item 1</a></li> | |
<li><a href="#">Nav Item 2</a></li> | |
<li><a href="#">Nav Item 3</a></li> | |
<li><a href="#">Nav Item 4</a></li> | |
<li><a href="#">Nav Item 5</a></li> | |
</ul> | |
</nav> | |
</header> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment