prefix = attributes.prefix; currentValues = attributes.currentValues; typeid = attributes.typeid; formname = attributes.formname; //writedump( var="#currentValues#", expand="no" ); // Variable for the version of the field - Display in Props UI. fieldVersion = "2.1.1"; // initialize some of the attributes variables addIconClass = false; showSize = 0; showFixedWidth = 0; showBorder = 0; showSpin = 0; showPull = 0; iconDataFile = ""; defaultFAversion = "4.7"; // Default file path to the CSV file that contain the icon class name and codes defaultIconDataFile = "/ADF/thirdParty/css/font-awesome/#defaultFAversion#/data/icon-data.csv"; // Default location for the Required Resouce to be registered in CommonSpot requiredResourceLocation = "/ADF/thirdParty/css/font-awesome/#defaultFAversion#/css/font-awesome-ADF-ext.css"; if( StructKeyExists(currentValues, "addIconClass") ) addIconClass = currentValues.addIconClass; if( StructKeyExists(currentValues, "ShowSize") ) ShowSize = currentValues.ShowSize; if( StructKeyExists(currentValues, "ShowFixedWidth") ) ShowFixedWidth = currentValues.ShowFixedWidth; if( StructKeyExists(currentValues, "ShowBorder") ) ShowBorder = currentValues.ShowBorder; if( StructKeyExists(currentValues, "ShowSpin") ) ShowSpin = currentValues.ShowSpin; if( StructKeyExists(currentValues, "ShowPull") ) ShowPull = currentValues.ShowPull; if( StructKeyExists(currentValues, "iconDataFile") AND LEN(TRIM(currentValues.iconDataFile)) ) iconDataFile = currentValues.iconDataFile; // Fix for bad version folder "Major.Minor.Maintenance". Should only be "Major.Minor" version. // - If the "4.2.0" folder is found, set to {blank} to use the default value in the render file if ( FindNoCase("/ADF/thirdParty/css/font-awesome/4.2.0/",iconDataFile) ) iconDataFile = ""; if ( not structKeyExists(attributes.currentValues, 'useUdef') ) attributes.currentValues.useUdef = 0; application.ADF.scripts.addFooterJS(cftFooterJS,"TERTIARY");
Show: checked="checked">   checked="checked">   checked="checked">   checked="checked">   checked="checked">  
The SIZE option requires the "font-awesome-ADF-ext.css" file be registered as a resouce along with Font Awesome's library CSS file. Otherwise icon size class definitions (eg. fa-2x, etc.) will need to be added to the sites custom style sheet.
(Resource Location: #requiredResourceLocation# )
Include: checked="checked">  
Check this option to include the base "fa" class to the class string that is built for the selected icon.
Icon Data File (csv):
Specify a relative path to a comma-delimited (.csv) override icon data file.
If left blank, will use the default Icon data file.
(Default: #defaultIconDataFile# )

ADF Custom Field v#fieldVersion#