<?php
/*
License: Copyright 2010 Daniel Watrous, All Rights Reserved (see README.txt in the plugin directory)
*/

global $optincrusherIntro, $optincrusherClose;
$optincrusherIntro = "\n<!-- Begin includes for Footer Optin -->\n";
$optincrusherClose = "\n<!-- End includes for Footer Optin -->\n\n";

global $optincrusherStylesheet;
$optincrusherStylesheet = <<<TTT

<link rel="stylesheet" href="PLUGIN_URL/optincrusher.css" type="text/css" />

<style>
/* CSS modifications to include path specific images */
#optincrusher {
background:transparent url("XRUNNER_URL") repeat-x left bottom;
height: 92px;  /* includes transparent part */
margin-bottom: -100px;
}

#optincrusher .calltoactionimg {
background: transparent url("THUMBNAIL_URL") no-repeat left bottom;
width:360px;
height:92px;
}

#optincrusher .attentionarrow {
background: transparent url("ARROWIMG_URL") no-repeat left bottom;
}

#optincrusher .pitch{
color: #PITCH_FONT_COLOR;
font-family: PITCH_FONT_FAMILY;
font-weight: PITCH_FONT_WEIGHT;
font-size: PITCH_FONT_SIZE;
top: PITCH_TOP_OFFSETpx;
left: PITCH_LEFT_OFFSETpx;
}

#optinform .submitbutton {
background:url("SUBMITBGIMG_URL") repeat-x left top;
font-family: OPTIN_FONT_FAMILY;
font-size: OPTIN_FONT_SIZE;
}

#optinform .formidentifier {
color: #OPTIN_FONT_COLOR;
font-family: OPTIN_FONT_FAMILY;
font-weight: OPTIN_FONT_WEIGHT;
font-size: OPTIN_FONT_SIZE;
}

#optincrusher form input {
font-family: OPTIN_FONT_FAMILY;
font-size: OPTIN_FONT_SIZE;
}

#light .lightbox-headline {
color: #PITCH_FONT_COLOR;
font-size: PITCH_FONT_SIZE;
line-height: PITCH_FONT_SIZE;
font-family: PITCH_FONT_FAMILY;
font-weight: PITCH_FONT_WEIGHT;
}

#light .lightbox-message {
color: #OPTIN_FONT_COLOR;
font-family: OPTIN_FONT_FAMILY;
font-weight: OPTIN_FONT_WEIGHT;
}

#lightbox-optinform {
color: #OPTIN_FONT_COLOR;
font-family: OPTIN_FONT_FAMILY;
font-weight: OPTIN_FONT_WEIGHT;
}

#lightbox-optinform .formidentifier {
color: #OPTIN_FONT_COLOR;
font-family: OPTIN_FONT_FAMILY;
font-weight: OPTIN_FONT_WEIGHT;
font-size: OPTIN_FONT_SIZE;
}

#lightbox-optinform .submitbutton {
background:url("SUBMITBGIMG_URL") repeat-x left top;
font-family: OPTIN_FONT_FAMILY;
font-size: OPTIN_FONT_SIZE;
}

.lightbox {
background-color: #LIGHTBOX_BACKGROUND_COLOR;
}

#lightbox-optinform .submitbutton {
background:url("SUBMITBGIMG_URL") repeat-x left top;
}

</style>

TTT;

global $optincrusherJavascript;
$optincrusherJavascript = <<<TTT
<script type="text/javascript">
<!--
// plugin values to make dynamic
var displayDelay = DISPLAY_DELAY;
var footerheight = 92;	// total height of footer in pixels
var showbuttonheight = 30;	// total height of show button in pixels
var footeroverlap = 24;	// height of the 'overlap' portion only (semi-transparent)
var attributionoffset = ATTRIBUTION_OFFSET;	// this offset adds some padding to the footer so that the attribution link is clickable
var slidespeed = SLIDE_SPEED;	// this is the speed that the footer will rise (lower number == faster) (milliseconds)
var slidestep = SLIDE_STEP;	// this is the percentage step for each run of positionfooter
var rememberShowHideState = REMEMBER_SHOW_HIDE_STATE; // this indicates whether or not to recognize the show/hide state of the footer across pages
//-->
</script>

<script type="text/javascript" src="PLUGIN_URL/optincrusher.js"></script>

TTT;

global $optincrusherHTML;
$optincrusherHTML = <<<TTT

<!-- begin opt in footer -->
<div id="optincrusher">
	<div class="calltoactionimg" onClick="showLightBox()">
		<div class="attentionarrow" onClick="location.href='URLONCLICK'"></div>
	</div>
	<div class="hidebutton" id="hideme"><img src="PLUGIN_URL/images/hide.png" width="35" height="30" alt="Hide me" /></div>
	<div class="pitch" onClick="showLightBox()">CALL_TO_ACTION</div>
	<div id="optinform">
		OPTIN_FORM
	</div>
</div>
<div id="optincrushershow" class="showbutton"><img src="PLUGIN_URL/images/show.png" width="144" height="30" alt="Show me" /></div>
<!-- lightbox layers -->
<div id="light" class="lightbox">
	<div class="closelightbox" onclick="hideLightBox()"><span class="closelightboxtext">Close</span>&nbsp;<img src="PLUGIN_URL/images/lightbox-close.png" height="20" width="20"></div>
	<div class="lightbox-headline">CALL_TO_ACTION</div>
	<div class="lightbox-message">LIGHTBOXMESSAGE</div>
	<div id="lightbox-optinform">
		OPTIN_FORM
		<br style="clear:both" />
	</div>
</div>
<div id="fade" class="black_overlay"></div>
<!-- end opt in footer -->


TTT;

global $optincrusherHTML_iPhone;
$optincrusherHTML_iPhone = <<<TTT

<!-- begin opt in footer -->
<div title="TITLE_ON_HOVER" id="optincrusher">
	<ul style="margin: -6px 3px 0 0; z-index: 1200;">
		<li><a href="#" id="hideme" title="Close me" class="closebutton"><img src="PLUGIN_URL/images/close-CLOSE_THEME.png" width="80" height="12" alt="Cose me"></a></li>
	</ul>

	<div class="pitch" style="font-size: 18px;" onClick="location.href='URLONCLICK'">CALL_TO_ACTION</div>
</div>
<!-- end opt in footer -->


TTT;

?>