Quote Originally Posted by willie bee View Post
Do you have detailed instructions on how in case someone else wants to do this besides me? I didn't see any in any previous posts unless I missed it.
To clone this sidebox you would rename these files

includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo_sidebox_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo_sidebox.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

to the following:

includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo2_sidebox_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo2_sidebox.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo2_sidebox.php

The contents of the files would similarly be renamed to reflect the logo2 designation.

logo2_sidebox_defines.php
Code:
define('BOX_HEADING_LOGO2_SIDEBOX', '');

//Logo number 1
define('LOGO2_SIDEBOX_IMAGE_WIDTH', '128');
define('LOGO2_SIDEBOX_IMAGE_HEIGHT', '128');
define('LOGO2_SIDEBOX_IMAGE', 'label_new_red.png');
define('LOGO2_SIDEBOX_IMAGE_TEXT', 'My Logo two');
define('LOGO2_IMAGE', zen_image($template->get_template_dir(LOGO2_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO2_SIDEBOX_IMAGE, LOGO2_SIDEBOX_IMAGE_TEXT, LOGO2_SIDEBOX_IMAGE_WIDTH, LOGO2_SIDEBOX_IMAGE_HEIGHT)); 

//this is optional if you want to use the logo as a link
//add  your link information to the define statement below
//example
//define('LOGO2_SIDEBOX_LINK', 'http://your_link.com/" rel="external" target="_blank"');

define('LOGO2_SIDEBOX_LINK', '');

//DO NOT edit below this line

if (LOGO2_SIDEBOX_LINK == '') {
define('LOGO2_IMAGES', LOGO2_IMAGE);
}else {
define('LOGO2_IMAGES', '<a href="' . LOGO2_SIDEBOX_LINK . '>' . LOGO2_IMAGE . '</a>');
}
logo2_sidebox.php
Code:
// test if box should display
  $show_logo2_sidebox = true;

  if ($show_logo2_sidebox == true) {
      require($template->get_template_dir('tpl_logo2_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo2_sidebox.php');
      $title =  BOX_HEADING_LOGO2_SIDEBOX;
      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
 }
tpl_logo2_sidebox.php
Code:
  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

  $content .=  LOGO2_IMAGES;

  $content .= '</div>';