Is is possible to add a checkbox to have the link to the Terms and Conditions open in a new browser window? Something that just adds the Target=_blank to the link you enter in the path.

I could use light box, but I don't need it for anything else on my site and did not want to add the extra over head.

Thanks in advance,
Julie

Comments

bartezz’s picture

+1

bartezz’s picture

Status: Active » Closed (works as designed)

Oops... didn't look at the theme function... my bad!

@spyderpie: paste in your template.php and theme accordingly

function phptemplate_uc_tc_termconditions_checkbox_label($link_path, $width, $height) {
  $link = t('terms and conditions');
  if ($link_path) {
    $options = array();
    $link_path = drupal_get_normal_path($link_path);
    if (module_exists('lightbox2')) {
      $options['attributes']['rel'] = "lightframe[|width:{$width}px; height: {$height}px;]";
      $options['query']['format'] = 'lightbox2';
    }
    $link = l($link, $link_path, $options);
  }

  return t('I agree with the !link.', array('!link' => $link));
}

Also see: http://api.drupal.org/api/drupal/includes--common.inc/function/l/6