rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
<?php
// globalize the capture of product codes
if ($_GET['viapc']) {
$_SESSION['ironweed']['account']['promo_code'] = $_GET['viapc'];
}
global $user;
// handy artifacts - unsure if they are being used in the site at all
// foreach ($primary_links as $link):
// print $link</li>
// endforeach;
// if ($mission != "" && ($_GET['q']) == variable_get('site_frontpage','node')):
// <div id="mission">php print $mission; </div>
// endif;
$theme_path = path_to_theme();
$nav['welcome']['on'] = "/images/nav_welcome-over.jpg";
$nav['welcome']['off'] = "/images/nav_welcome.jpg";
$nav['works']['on'] = "/images/nav_works-over.jpg";
$nav['works']['off'] = "/images/nav_works.jpg";
$nav['films']['on'] = "/images/nav_films-over.jpg";
$nav['films']['off'] = "/images/nav_films.jpg";
$nav['community']['on'] = "/images/nav_community-over.jpg";
$nav['community']['off'] = "/images/nav_community.jpg";
$nav['club']['on'] = "/images/nav_club-over.jpg";
$nav['club']['off'] = "/images/nav_club.jpg";
$nav['welcome']['use'] = $nav['welcome']['off'];
$nav['works']['use'] = $nav['works']['off'];
$nav['films']['use'] = $nav['films']['off'];
$nav['community']['use'] = $nav['community']['off'];
$nav['club']['use'] = $nav['club']['off'];
if(($_GET['q']) == variable_get('site_frontpage','node')){
$nav['welcome']['use'] = $nav['welcome']['on'];
} else if (drupal_get_path_alias($_GET['q']) == 'how_it_works') {
$nav['works']['use'] = $nav['works']['on'];
} else if (drupal_get_path_alias($_GET['q']) == 'films') {
$nav['films']['use'] = $nav['films']['on'];
} else if (drupal_get_path_alias($_GET['q']) == 'community') {
$nav['community']['use'] = $nav['community']['on'];
} else if (drupal_get_path_alias($_GET['q']) == 'join_the_club' || substr($_GET['q'], 0, 12) == 'subscription') {
$nav['club']['use'] = $nav['club']['on'];
}
$breadcrumb = str_replace('Home', 'Welcome', $breadcrumb);
if (strstr(drupal_get_path_alias($_GET['q']), 'films') != '') {
$breadcrumb = str_replace('Welcome', 'Our Films', $breadcrumb);
}
?>
<head>
<title><?php print $head_title ?></title>
<link rel="favicon" href="http://www.ironweedfilms.com/favicon.ico" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<META NAME="DESCRIPTION" CONTENT="Socially-conscious independent films delivered to your mailbox">
<META NAME="KEYWORDS" CONTENT="ironweed, independent film, movies, film club, dvd magazine, politics film, socially-conscious film, screening, house party, progressive, media, movie, films, democratic">
<script type="text/javascript" src="/themes/ironweed/flashplayer/flash_setvariables.js"></script>
<script language="JavaScript1.2" type="text/javascript">
<!--
function toggle( targetId ) {
if ( document.getElementById ) {
target = document.getElementById( targetId );
if ( target.style.display == "none" ) {
target.style.display = "";
} else {
target.style.display = "none";
}
}
}
function toggleShow( targetId ) {
if ( document.getElementById ) {
target = document.getElementById( targetId );
if (target.style.display == "none") {
target.style.display = "";
}
}
}
function toggleHide( targetId ) {
if ( document.getElementById ) {
target = document.getElementById( targetId );
if (target.style.display == "") {
target.style.display = "none";
}
}
}
function toggleAll( targetTag, showHide ) {
if ( document.getElementById ) {
target = document.getElementsByTagName( targetTag );
var i;
var max = target.length;
if ( showHide == "show" ) {
for ( i = 0; i < max; i++ ) {
if ( target[ i ].style.display == "none" ) {
target[ i ].style.display = "";
}
}
}
else if ( showHide == "hide" ) {
for ( i = 0; i < max; i++ ) {
if ( target[ i ].style.display == "" ) {
target[ i ].style.display = "none";
}
}
}
}
}
//-->
</script>
<SCRIPT TYPE="text/javascript">
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
nav_welcome_over = newImage("<?php print $theme_path ?>/images/nav_welcome-over.jpg");
nav_works_over = newImage("<?php print $theme_path ?>/images/nav_works-over.jpg");
nav_films_over = newImage("<?php print $theme_path ?>/images/nav_films-over.jpg");
nav_community_over = newImage("<?php print $theme_path ?>/images/nav_community-over.jpg");
nav_club_over = newImage("<?php print $theme_path ?>/images/nav_club-over.jpg");
preloadFlag = true;
}
}
function replaceButtonText(buttonId, text)
{
if (document.getElementById)
{
var button=document.getElementById(buttonId);
if (button)
{
if (button.childNodes[0])
{
button.childNodes[0].nodeValue=text;
}
else if (button.value)
{
button.value=text;
}
else //if (button.innerHTML)
{
button.innerHTML=text;
}
}
}
}
// -->
</SCRIPT>
<?php print $head ?>
<?php print $styles ?>
<style type="text/css" media="all">@import "<?php print $theme_path ?>/ironweed_style_new.css";</style>
</head>
<body ONLOAD="preloadImages();" <?php print theme("onload_attribute"); ?>>
<div id="content_container">
<div id="ironweed_header">
<a href=""><div style="height: 100px; width: 140px; float: left; position: absolute; z-index: 50;"></div></a>
<div id="nav-options">
<a href=""><img ONMOUSEOVER="changeImages('nav_welcome', '<?php print $theme_path . $nav['welcome']['on'] ?>'); return true;" ONMOUSEOUT="changeImages('nav_welcome', '<?php print $theme_path . $nav['welcome']['use'] ?>'); return true;" src="<?php print $theme_path . $nav['welcome']['use'] ?>" name="nav_welcome" id="nav_welcome" alt="Welcome" /></a>
<a href="how_it_works" ONMOUSEOVER="changeImages('nav_works', '<?php print $theme_path . $nav['works']['on'] ?>'); return true;" ONMOUSEOUT="changeImages('nav_works', '<?php print $theme_path . $nav['works']['use'] ?>'); return true;"><img src="<?php print $theme_path . $nav['works']['use'] ?>" name="nav_works" id="nav_works" alt="How It Works" /></a>
<a href="films" ONMOUSEOVER="changeImages('nav_films', '<?php print $theme_path . $nav['films']['on'] ?>'); return true;" ONMOUSEOUT="changeImages('nav_films', '<?php print $theme_path . $nav['films']['use'] ?>'); return true;"><img src="<?php print $theme_path . $nav['films']['use'] ?>" name="nav_films" id="nav_films" alt="Our Films" /></a>
<a href="community" ONMOUSEOVER="changeImages('nav_community', '<?php print $theme_path . $nav['community']['on'] ?>'); return true;" ONMOUSEOUT="changeImages('nav_community', '<?php print $theme_path . $nav['community']['use'] ?>'); return true;"><img src="<?php print $theme_path . $nav['community']['use'] ?>" name="nav_community" id="nav_community" alt="Community" /></a>
<a href="join_the_club" ONMOUSEOVER="changeImages('nav_club', '<?php print $theme_path . $nav['club']['on'] ?>'); return true;" ONMOUSEOUT="changeImages('nav_club', '<?php print $theme_path . $nav['club']['use'] ?>'); return true;"><img src="<?php print $theme_path . $nav['club']['use'] ?>" name="nav_club" id="nav_club" alt="Subscribe" /></a>
</div>
<div id="member_block">
<?php
if ($user->uid == 0) {
echo '<a href="user/register"><img src="'. $theme_path .'/images/sign_up.gif" alt="Join The Community" /></a>';
} else {
echo '<a href="user/"><img src="'. $theme_path .'/images/txt_useraccount.gif" alt="My Ironweed User Account" title="My Ironweed User Account" /></a>';
}
?>
<div id="signup_form">
<?
if ($user->uid!=0) {
echo '<a href="logout" id="loglink" class="out"> member log out</a>';
}
else {
echo '<a href="user/login" id="loglink" class="in"> member log in</a>';
} ?>
</div>
</div>
</div>
<?php
if (eregi('(community|films|user|blog)',drupal_get_path_alias($_GET["q"])) && $user->uid!=0) {?>
<div id="green_bar">
<a href="user/<?= $user->uid;?>"<? if (arg(0) == 'user' && arg(1) == $user->uid) echo ' class="active"';?>>my account</a>
<a href="blog/<?= $user->uid;?>"<? if (arg(0) == 'blog' && arg(1) == $user->uid) echo ' class="active"';?>>my blog</a>
</div>
<?php } ?>
<div id="ironweed_main_content">
<?php if ($sidebar_right != ""){ ?>
<div id="rightcol">
<div id="right_content"><?php print $sidebar_right ?><br></div>
<style>
#mainbody {
margin-right: 179px;
}
</style>
<?php } ?>
<?php if (($_GET['q']) != variable_get('site_frontpage','node')): ?>
<?php if ($breadcrumb != ""): ?>
<?php if (arg(0) == 'profile') {
$breadcrumb = '<a href="/">Welcome</a> > <a href="community">Community</a> > '. $breadcrumb;
} ?>
<div id="breadcrumbs"><?php print $breadcrumb ?></div>
<?php endif; ?>
<?php endif; ?>
<?php if ($sidebar_left != ""): ?>
<div id="leftcol">
<div id="left_content"><?php print $sidebar_left ?></div>
<style>
#ironweed_main_content {
border-left: 1px solid #575B5A;
width: 769px;
}
#mainbody {
margin-left: 155px;
}
</style>
<?php endif; ?>
<?php
if($_SERVER['REDIRECT_URL'] == NULL) {
?>
<style type="text/css">
img#ssl{display:none;}
</style>
<?php
}
?>
<div id="mainbody">
<?php if (($_GET['q']) != variable_get('site_frontpage','node')): ?>
<?php if ($title != "" && (arg(0) == 'blog')) {
$content = str_replace('<ul><li><a href="node/add/blog">Post new blog entry.</a></li></ul>', '', $content);
echo theme('ironweed_blog_header', arg(1));
} elseif (arg(0) == 'profile' && arg(1) == 'profile_films') {
$title = str_replace('</em>', '', $title); // strip trailing tag
$parts = explode('<em>', $title); // split on leading tag
echo '<div id="profile_wholike">'.$parts[0].'</div>';
echo '<div id="profile_filmname">'.$parts[1].'</div>';
} elseif (arg(0) == 'user') {
$content = str_replace('The content of this field is private and only visible to yourself.', '', $content);
$content = str_replace('The content of this field is kept private and will not be shown publicly.', '', $content);
}if ($tabs != ""): ?>
<?php print $tabs ?>
<?php endif; ?>
<?php if ($help != ""): ?>
<p id="help"><?php print $help ?></p>
<?php endif; ?>
<?php if ($messages != ""): ?>
<div id="message"><?php print $messages ?></div>
<?php endif; ?>
<?php endif; ?>
<!-- start main content -->
<?php if (($_GET['q']) == variable_get('site_frontpage','node')){ ?>
<style>
#ironweed_main_content {
background: url(<?php print path_to_theme() ?>/images/front_marq_bg.gif) top left no-repeat;
height: 449px;
}
</style>
<?php } ?>
<?php
// display for dvd giveaway confirmation page
// rewrite <input> checkbox to be checked by default
if(stristr($_REQUEST['q'], 'promo/holidaygift/')){
$result = db_query('SELECT ffid FROM {form_fields} where fid = %d', $node->form->fid);
while ($fields = db_fetch_object($result)) {
$searchStr = '<input type="checkbox" class="form-checkbox required" name="edit[field-'.$fields->ffid.']" id="edit-field-'.$fields->ffid.'" value="1" />';
$replaceStr = '<input type="checkbox" class="form-checkbox required" name="edit[field-'.$fields->ffid.']" id="edit-field-'.$fields->ffid.'" value="1" checked />';
$content = str_replace($searchStr, $replaceStr, $content);
print($content);
}
} else {
// display all other pages
print($content);
}
?>
<!-- end main content -->
<?if ($_SERVER['SERVER_PORT'] == 443):?><div style="float:right; padding: 0px;"><img src="<?=$theme_path?>/instantssl_site_seal.gif" id="ssl" /></div><?endif?>
<div id="clear"></div>
</div>
<?php if ($sidebar_left != ""): ?>
</div>
<?php endif; ?>
<?php if ($sidebar_right != ""): ?>
<br><br>
</div>
<?php endif; ?>
</div>
</div>
<!-- footer -->
<div id="footer">
<?php
foreach ($secondary_links as $link) {
print $link;
}
?><br>
<div id="footer-message"><?php print $footer_message;?></div>
</div>
<?php print $closure;?>
<br>
<?php if(($_GET['q']) == variable_get('site_frontpage','node')) { ?>
<!-- Google Code for Default Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_type = 'landing';
var google_conversion_id = 1070700499;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
//-->
</script>
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/1070700499/extclk?script=0">
</noscript>
<?php } ?>
<script>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
var pageTracker = _gat._getTracker("UA-3401895-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>