Skip to content

Customize Settings

GDS edited this page May 5, 2019 · 5 revisions

AutoFooter is deeply customizable, the script has a lot of options that can be used to generate different footers and to choose the most professional and clear aspect.

You can customize your footer properties changing the following variables

// Settings for AutoFooter module.
var fromYear            = 2001;
var showRange           = true;   
var showMiddleChar      = true;
var middleChar          = "-";
var showCopyright       = true;
var copyrightProfile    = 0;
var showTime            = true;
var parseAsParagraph    = false; 
var finalString         = "AutoFooter Inc. All rights reserved.";

fromYear

Value type: int
Input range: <= CurrentYear
Description: Used to determine range, it's your company foundation year

showRange

Value type: boolean
Default state: true
Input range: true, false Description: Shows a $fromYear - $currentYear range. if false, only currentYear is shown

showMiddleChar

Value type: boolean
Default state: true
Input range: true, false Description: Defines if the middle char should be shown between the two dates

middleChar

Value type: String
Default value: "-"
Input range: Infinite
Description: Char shown in the range's middle

showCopyright

Value type: boolean
Default state: true
Input range: true, false
Description: If false, no copyright text will be printed

copyrightFormat

Value type: int
Default value: 0
Input range: 0, 1, 2, 3
Description: This indicates which copyright text should be shown.

0: "©"
1: "Copyright"
2: "Copyright ©"
3: "© Copyright"

showTime

Value type: boolean
Default state: true
Input range: true, false
Description: If false, no date will be viewed

parseAsParagraph

Value type: boolean
Default state: false
Input range: true, false
Description: Parse the footer text as an html <p> paragraph

finalString

Value type: String
Input range: Infinite
Description: String appended to the footer's ending