2 ways to do this
1) Edit file templates/tmpl_uni/page_1.html
From:
__include _header.html__
__promo_code__
__page_main_code__
__include _footer.html__
To:
__include _header.html__
__promo_code__
<div class="promo_code_wrapper">Your html code here</div>
__page_main_code__
__include _footer.html__
You need to edit this file every time you will change your promo code.
--------------------------------------------------------------------------------
2) Edit file inc/design.inc.php
find function getPromoCode (almost at the end of file)
Hide the code as is red
Add code as is green
function getPromoCode()
{
global $site;
global $logged;
$custom_promo = getParam( 'custom_promo_code' );
// if( getParam( 'enable_flash_promo' ) != 'on' )
// $sCode = '<div class="promo_code_wrapper">' . getParam( 'custom_promo_code' ) . '</div>';
// else {
$aImages = getPromoImagesArray();
$sImagesEls = '';
foreach ($aImages as $sImg)
$sImagesEls .= '<img src="'.$site['imagesPromo'].$sImg.'" />';
$sPromoLink = $site['url'] . ( $logged['member'] ? 'member.php' : 'join.php' );
$sCode = <<<EOF
<script type="text/javascript" src="{$site['url']}inc/js/jquery.dolPromo.js"></script>
<script type="text/javascript">
$(document).ready( function() {
$( '#indexPhoto' ).dolPromo( 6000, 0.28125 );
} );
</script>
<div id="indexPhoto" onclick="location='$sPromoLink'">
{$sImagesEls}
</div>
<div class="promo_code_wrapper">{$custom_promo}</div>
EOF;
// }
return $sCode;
}
The choice between Use Promo Flash Reloader and Use custom HTML block will now not work,
both areas will now appear.
You can use TinyMCE to add and edit your html code to the promo block as usual.