/*
* [Foot.java]
*
* Summary: Generate the footer for mindprod.com page.
*
* Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com
*
* Licence: This software may be copied and used freely for any purpose but military.
* http://mindprod.com/contact/nonmil.html
*
* Requires: JDK 1.8+
*
* Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/
*
* Version History:
* 1.8 2009-02-06 include go package in ZIP bundle.
*/
package com.mindprod.htmlmacros.macro;
import com.mindprod.common18.ST;
import com.mindprod.fastcat.FastCat;
import com.mindprod.htmlmacros.support.BuildImage;
import com.mindprod.htmlmacros.support.GoogleAdSense;
import com.mindprod.htmlmacros.support.ImageAlignment;
import com.mindprod.htmlmacros.support.InlineFooter;
import com.mindprod.htmlmacros.support.Tools;
import java.io.File;
import static com.mindprod.htmlmacros.macro.Global.configuration;
import static java.lang.System.*;
/**
* Generate the footer for mindprod.com page.
*
* @author Roedy Green, Canadian Mind Products
* @version 1.8 2009-02-06 include go package in ZIP bundle.
* @see com.mindprod.htmlmacros.support.InlineFooter#updateInlineFooterFile(java.io.File)
* @see InlineFooter
* @since 2009
*/
public final class Foot extends Macro
{
/* There are several optional variable sections in the footer:
* 1. adsense ad (in main html, not iframe htm)
* 2. PSA ad
* 3. quotation
* 4. non military use only.
* Only one of PSA, quotation and nonmil will be displayed. It goes in a separate *.htm linked into the footer with an iframe.
* If there is no adsense ad, that space is left blank.
*/
/**
* text to describe user's face IP
*/
private static final String FACE_IP = "Your face IP:[]";
/**
* Usual HTML for an href.
*/
private static final String PLAIN_HREF = ""
+ configuration.getWebsiteIP()
+ "]";
/**
* how to use the macro
*/
private static final String USAGE = "\nFoot macro takes no parameters";
/**
* link to this page on local drive, line 1
*
* @param jDriveLink localhost link
*
* @return HTML expansion
*/
private static String buildFreshLocalLabel( final String jDriveLink )
{
final FastCat sb = new FastCat( 8 );
sb.append( " "
+ "Optional Replicator mirror"
+ "\n"
+ "
"
+ "\n"
+ "of " );
sb.append( configuration.getWebsiteDomain() );
sb.append( "\n
" );
sb.append( "\non local hard disk J:
This page is posted
on the web at: