/* * [DVDHead.java] * * Summary: Produce the header for UPC referral page. * * Copyright: (c) 2012-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.0 2012-03-02 initial version. */ 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 UPC referral page. * * @author Roedy Green, Canadian Mind Products * @version 1.0 2012-03-02 initial version * @since 2012-03-02 */ public final class DVDHead extends Head { /** * how to use the macro */ private static final String USAGE = "\nDVDHead needs Title"; /** * Generate the header for a UPC Book. * * @param parms parameters just title * @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( "D" ); } if ( parms.length != 1 ) { throw new IllegalArgumentException( USAGE ); } final String title = parms[ 0 ]; final String topRightImage = "icon64/dvd.png"; final String icon = "icon16/dvd.png"; final String sectionFile = "dvd/dvds.html"; final String sectionTitle = "DVDs"; final String keywords = "DVDs"; return generalHead( "DVD: " + title, title, title, title, "titlesubsection", keywords, icon, null, null, topRightImage, null, sectionFile, sectionTitle, null, null, null, null, null, null, Indexing.NONE, GoogleAdSense.MEDIUM_RECTANGLE, null, null ) + "\n"; } }