Ignore:
Timestamp:
Oct 15, 2010, 4:20:39 PM (13 years ago)
Author:
plg
Message:

feature 1897 added: the core "Contact Webmaster" link in footer is replaced by
a link to the ContactForm page. It works with a smarty prefilter, so it should
work with all themes.

The configurable template variable name was removed. It is hard coded as
$ContactFormLink. I've seen no example using another variable name. It was
hard to understand for users in the administration panel and not very useful.
The corresponding language keys were removed from all languages.

bug 1916 fixed: apply the same rule for link display in footer as in menu. If
the administrator has allowed the ContactForm page for guests, let's display
it in the menu + footer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/classes/cf_plugin.class.php

    r7060 r7197  
    4444  }
    4545  function loc_begin_page_header() {
    46     if (!$this->config->get_value(CF_CFG_DEFINE_LINK)) {
     46    global $template;
     47   
     48    $template->set_prefilter('tail', 'contactForm_prefilter');
     49
     50    if (!$this->check_allowed()) {
    4751      return;
    4852    }
    49     global $template;
     53   
    5054    $cf_values = array(
    5155        'TEXT'  => $this->config->get_lang_value('contact_form_link'),
     
    5357      );
    5458    $template->assign('CF_FOOTER_VALUES', $cf_values);
    55     $template->assign($this->config->get_value(CF_CFG_CONTACT_LINK),
    56                       $this->get_html_contact_form_link());
     59
     60    $template->assign('ContactFormLink', $this->get_html_contact_form_link());
    5761  }
    5862 
Note: See TracChangeset for help on using the changeset viewer.