/* * [MethodsHead.java] * * Summary: Produce the header for an Living Love Methods essay. * * 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.htmlmacros.support.GoogleAdSense; import com.mindprod.htmlmacros.support.Indexing; import static java.lang.System.*; /** * Produce the header for an Living Love Methods essay. * * @author Roedy Green, Canadian Mind Products * @version 1.8 2009-02-06 include go package in ZIP bundle. * @since 2004 */ public final class MethodsHead extends Head { /** how to use the macro */ /** * how to use the macro */ private static final String USAGE = "\nMethodsHead macro needs title description keywords"; /** * Generate the header for a Living Love Methods essay. * * @param parms parameters from macro command line. parms[0] = title description of fragment. parms[1] * = description parms[2] = keywords * @param quiet true if want output suppressed. * @param verbose @return expanded macro HTML */ public String expandMacro( String[] parms, final boolean quiet, final boolean verbose ) { if ( !quiet ) { out.print( "M" ); } if ( parms.length != 3 ) { throw new IllegalArgumentException( USAGE ); } String title = parms[ 0 ]; String description = "Ken Keyes’ Living Love Methods: " + parms[ 1 ]; String keywords = "Ken Keyes Jr., living love, living lovers, higher consciousness, methods, suffering, addictions, " + "reprogramming addictions," + parms[ 2 ]; String image = "icon64/seagull.png"; String icon = "icon16/seagull.png"; String sectionFile = "livinglove/livinglove.html"; String sectionTitle = "Living Love"; String subSectionFile = "livinglove/methods/methods.html"; String subSectionTitle = "Living Love Methods"; return generalHead( title, null, description, title, "titlemethods", keywords, icon, null, image, null, null, sectionFile, sectionTitle, subSectionFile, subSectionTitle, null, null, null, null, Indexing.NONE, GoogleAdSense.MEDIUM_RECTANGLE, null, "umclnfvjirc" ); } }