Ignore:
Timestamp:
Oct 15, 2010, 4:20:39 PM (14 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/admin/cf_config.tab.php

    r6547 r7197  
    4242  }
    4343  $cf_config->set_value(CF_CFG_MAIL_MANDATORY, $new_value);
    44 
    45   // Define link
    46   $new_value = false;
    47   if (isset($_POST['cf_define_link'])) {
    48     if ('1' == $_POST['cf_define_link']) {
    49       $new_value = true;
    50     }
    51   }
    52   $cf_config->set_value(CF_CFG_DEFINE_LINK, $new_value);
    53  
    54   // Link
    55   $new_value = '';
    56   if (isset($_POST['cf_link'])) {
    57     $new_value = trim(stripslashes($_POST['cf_link']));
    58     $str_valid = preg_match_all('/\w{1}\w*/i', $new_value, $match);
    59     if (1 != $str_valid) {
    60       CF_Log::add_error(l10n('cf_link_error'));
    61     } else {
    62       $cf_config->set_value(CF_CFG_CONTACT_LINK, $new_value);
    63     }
    64   }
    6544 
    6645  // Prefix
     
    12099    'SEPARATOR_LENGTH'  => $cf_config->get_value(CF_CFG_SEPARATOR_LEN),
    121100    'REDIRECT_DELAY'    => $cf_config->get_value(CF_CFG_REDIRECT_DELAY),
    122     'DEFINE_LINK'       => $cf_config->get_value(CF_CFG_DEFINE_LINK)?
    123                               CF_CHECKED:'',
    124     'LINK'              => $cf_config->get_value(CF_CFG_CONTACT_LINK),
    125101  );
    126102
Note: See TracChangeset for help on using the changeset viewer.