// ----------------------------------------------------------------------
// ePubVersion v1.0 for eFiction 3.x
// Copyright (c) 2010 by Kirstyn Amanda Fox
// 
// http://storyportal.net/epub
//
// Based on:
// Display Word Module developed for eFiction 3.0
// Copyright (c) 2006 by Tammy Keefer
// 
// http://efiction.hugosnebula.com/
//
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------

To install this module:

1. Upload the entire epubversion folder to the the modules folder within your 
eFiction installation.

2. Go to http://yoursite.com/admin.php?action=modules  or 
http://www.yoursite.com/modules/epubversion/install.php where 
www.yoursite.com is your eFiction site's address.

3. Goto the main default_tpls folder.  Open up viewstory.tpl and 
storyindex.tpl and add {printepub} where you want the ePub icon/options 
to appear. 

4. Do the same for any skins with their own viewstory.tpl and/or storyindex.tpl

You can define $epubicon in your skin's variables.php to override the 
default ePub icon if you so desire.

There is one language definition in the en.php file in the languages folder
that provides the alt text for the ePub icon as well as the various text bits 
for the rest of the expanded modules..

The configuration variables that used to be set at the top of epubversion.php
are now set via the modules admin options panel. You can access this by 
visiting http://yoursite.com/admin.php?action=modules&module=epubversion&admin=true
or by goting to the "Admin" page, clicking on "Modules" and then clicking on the
"Options" link next to ePubVersion.

These variables are used to configure you "Brought to you by" line on the cover 
page, and the OPF's publisher information line

This module now has the ability for Authors to turn on/off ePub editions for
each of their stories. This is done via the User/Account menu, by clicking on
 "Manage ePub Stories". By default, the ePub bit is set to "0" or "Off" for 
all authors. They must "Opt In" 

You can change the Opt In to Opt Out, by clicking the "Change to Opt In" link 
in the ePubVersion Options page. This will change the ePub bit for every story 
from 0 to 1 (Off becomes On) and modifies the table so that the default is now 
"1" or "On" for all new stories. WARNING: Using this switch once Authors have 
decided to keep their stories in "Off" may upset them, so PLEASE don't abuse
this switch.

To uninsall this module:

1. Go to http://www.yoursite.com/modules/epubversion/uninstall.php where 
www.yoursite.com is your eFiction site's address.
