Sorry for the delay. Took the family to play in the snow today. Actually, the solution may be even simpler if you could tell me how I could keep the Snazzy Rounded corners add-on for my main sideboxes and remove any styling from the Logo Sideboxes.
The Logo Sideboxes files I have so far as as follows:
For the includes/templates/myfolder/sideboxes, I have:
For the we_accept.gif (file: tpl_logo_sidebox.php)
PHP Code:
// $Id: tpl_logo_sidebox.php,v 1.1 8/21/2008
// --------------------------------------------------
//
// Link Option - uncomment this if you intend to use the logo as a link
//$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT) . '</a>';
//comment this out if you use the above link option.
$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT);
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= $logoimage;
$content .= '</div>';
?>
For the 10_reasons.gif (file: tpl_logo_sidebox_10reasons.php)
PHP Code:
// $Id: tpl_logo_sidebox.php,v 1.1 8/21/2008
// --------------------------------------------------
//
// Link Option - uncomment this if you intend to use the logo as a link
$logoimage10reasons = '<a href="' . LOGO_SIDEBOX10REASONS_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX10REASONS_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX10REASONS_IMAGE, LOGO_SIDEBOX10REASONS_IMAGE_TEXT, LOGO_SIDEBOX10REASONS_IMAGE_WIDTH, LOGO_SIDEBOX10REASONS_IMAGE_HEIGHT) . '</a>';
//comment this out if you use the above link option.
//$logoimage10reasons = zen_image($template->get_template_dir(LOGO_SIDEBOX10REASONS_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX10REASONS_IMAGE, LOGO_SIDEBOX10REASONS_IMAGE_TEXT, LOGO_SIDEBOX10REASONS_IMAGE_WIDTH, LOGO_SIDEBOX10REASONS_IMAGE_HEIGHT);
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= $logoimage10reasons;
$content .= '</div>';
?>
For the how_it_works.gif (file: tpl_logo_sidebox_oursystem.php)
PHP Code:
// $Id: tpl_logo_sidebox.php,v 1.1 8/21/2008
// --------------------------------------------------
//
// Link Option - uncomment this if you intend to use the logo as a link
$logoimageoursystem = '<a href="' . LOGO_SIDEBOXOURSYSTEM_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOXOURSYSTEM_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOXOURSYSTEM_IMAGE, LOGO_SIDEBOXOURSYSTEM_IMAGE_TEXT, LOGO_SIDEBOXOURSYSTEM_IMAGE_WIDTH, LOGO_SIDEBOXOURSYSTEM_IMAGE_HEIGHT) . '</a>';
//comment this out if you use the above link option.
//$logoimageoursystem = zen_image($template->get_template_dir(LOGO_SIDEBOXOURSYSTEM_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOXOURSYSTEM_IMAGE, LOGO_SIDEBOXOURSYSTEM_IMAGE_TEXT, LOGO_SIDEBOXOURSYSTEM_IMAGE_WIDTH, LOGO_SIDEBOXOURSYSTEM_IMAGE_HEIGHT);
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= $logoimageoursystem;
$content .= '</div>';
?>
For the includes/modules/sideboxes/myfolder/sideboxes/, I have:
For the we_accept.gif (file: logo_sidebox.php)
PHP Code:
// $Id: logo_sidebox.php,v 1.1 8/21/2008
// test if box should display
// $show_logo_sidebox = true;
if ($this_is_home_page) {
$show_logo_sidebox = true;
} else {
$show_logo_sidebox = true;
};
if (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'5,32,33,26,28,35,18,36,37,38'))) {
require($template->get_template_dir('tpl_logo_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox.php');
$title = BOX_HEADING_LOGO_SIDEBOX;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
For the 10_reasons.gif (file: logo_sidebox_10reasons.php)
PHP Code:
// $Id: logo_sidebox.php,v 1.1 8/21/2008
// test if box should display
$show_logo_sidebox = true;
if (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'20,5,32,33,26,28,35,18,36,37,38'))) {
require($template->get_template_dir('tpl_logo_sidebox_10reasons.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_10reasons.php');
$title = BOX_HEADING_LOGO_SIDEBOX;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
For the how_it_works.gif (file: logo_sidebox_oursystem.php)
PHP Code:
// $Id: logo_sidebox.php,v 1.1 8/21/2008
// test if box should display
$show_logo_sidebox = true;
if (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'21,5,32,33,26,28,35,18,36,37,38'))) {
require($template->get_template_dir('tpl_logo_sidebox_oursystem.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_oursystem.php');
$title = BOX_HEADING_LOGO_SIDEBOX;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
For the includes/languages/english/extra_definitions/myfolder/, I have:
For the we_accept.gif (file: logo_sidebox_defines.php)
PHP Code:
// $Id: logo_sidebox_defines.php,v 1.1 8/21/2008
define('BOX_HEADING_LOGO_SIDEBOX', 'We Accept');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '200');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '40');
define('LOGO_SIDEBOX_IMAGE', 'we_accept.gif');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'We Accept Visa, American Express, Mastercard, and Discover via Paypal');
//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX_LINK', 'linkgoeshere.com');
?>
For the 10_reasons.gif (file: logo_sidebox_10reasons_defines.php)
PHP Code:
// $Id: logo_sidebox_defines.php,v 1.1 8/21/2008
define('BOX_HEADING_LOGO_SIDEBOX', '');
define('LOGO_SIDEBOX10REASONS_IMAGE_WIDTH', '200');
define('LOGO_SIDEBOX10REASONS_IMAGE_HEIGHT', '55');
define('LOGO_SIDEBOX10REASONS_IMAGE', '10_reasons.gif');
define('LOGO_SIDEBOX10REASONS_IMAGE_TEXT', '10 Reasons to Choose Benchmark Design');
//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX10REASONS_LINK', 'index.php?main_page=page&id=20');
?>
For the how_it_works.gif (file: logo_sidebox_oursystem_defines.php)
PHP Code:
// $Id: logo_sidebox_defines.php,v 1.1 8/21/2008
define('BOX_HEADING_LOGO_SIDEBOX', '');
define('LOGO_SIDEBOXOURSYSTEM_IMAGE_WIDTH', '200');
define('LOGO_SIDEBOXOURSYSTEM_IMAGE_HEIGHT', '55');
define('LOGO_SIDEBOXOURSYSTEM_IMAGE', 'how_it_works.gif');
define('LOGO_SIDEBOXOURSYSTEM_IMAGE_TEXT', 'Learn How Our System Works!');
//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOXOURSYSTEM_LINK', 'index.php?main_page=page&id=21');
?>
That's about it. Hope this helps.
Thanks
Bookmarks