/* * [CoHome.java] * * Summary: Produce the header for the Home page for Cherokee O'Bama. * * Copyright: (c) 2004-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.fastcat.FastCat; import com.mindprod.htmlmacros.support.GoogleAdSense; import com.mindprod.htmlmacros.support.Indexing; import static com.mindprod.entities.DeEntifyStrings.stripHTMLTags; import static com.mindprod.htmlmacros.macro.Global.configuration; import static java.lang.System.*; /** * Produce the header for the Home page for Cherokee O'Bama. * * @author Roedy Green, Canadian Mind Products * @version 1.8 2009-02-06 include go package in ZIP bundle. * @since 2004 */ public final class CoHome extends Head { // declarations /** * how to use the macro */ private static final String USAGE = "\nCoHome macro takes no parameters"; // /declarations // methods /** * build a simplified header used by kindle * * @param title title to display * @param description long description, (might contain entities and tags). not null. for head meta Description. * @param keywords indexing keywords. * @param icon16 for title bar * * @return HTML for header and simplified title. */ private String buildKindleHead( final String title, final String shortTitle, final String description, final String keywords, final String icon16 ) { final int firstCopyrightYear = configuration.getFirstCopyrightYear( fileBeingDistributed ); final String copyrightHolderForPage = configuration.getCopyrightHolderForPage( fileBeingDistributed ); final FastCat sb = new FastCat( 6 ); // header sb.append( configuration.getDoctypeDefault( fileBeingDistributed ) ); sb.append( buildInvisHead( stripHTMLTags( title ), stripHTMLTags( shortTitle ), stripHTMLTags( description ), keywords, icon16, firstCopyrightYear, copyrightHolderForPage ) ); /* includeMainStylesheet */ /* includeJDisplayStylesheet */ /* isHomePage */ /* includeCarolStylesheet */ /* prevRelLink */ /* nextRelLink */ // append body, TOP anchor, CONFIG sb.append( "