<form method="post" action="options.php">
    <?php wp_nonce_field('update-options'); ?>

    <p>To avoid link on determinated words use: [biodic_exclude] text [/biodic_exclude]</p>   


    <table class="form-table">
        <tr valign="top">
            <th scope="row">Show tooltip when the user hovers over the term?</th>
            <td><input type="checkbox" name="biodic_glossaryTooltip" <?php checked(true, get_option('biodic_glossaryTooltip')); ?> value="1" /></td>
            <td colspan="2">Select this option if you wish for the definition to show in a tooltip when the user hovers over the term.  The tooltip can be style differently using the tooltip.css and tooltip.js files in the plugin folder.</td>
        </tr>
        <tr valign="top">
            <th scope="row">Highlight terms on pages (not just posts)?</th>
            <td><input type="checkbox" name="biodic_glossaryOnPages" <?php checked(true, get_option('biodic_glossaryOnPages')); ?> value="1" /></td>
            <td colspan="2">Select this option if you wish for the glossary to highlight terms on pages as well as posts.  With this deselected, only posts will be searched for matching glossary terms.</td>
        </tr>       
        <tr valign="top">
            <th scope="row">Highlight first term occurance only?</th>
            <td><input type="checkbox" name="biodic_glossaryFirstOnly" <?php checked(true, get_option('biodic_glossaryFirstOnly')); ?> value="1" /></td>
            <td colspan="2">Select this option if you want to only highlight the first occurance of each term on a page/post.</td>
        </tr>
        <tr valign="top">
            <th scope="row">Limit tooltip length?</th>
            <td><input type="text" name="biodic_glossaryLimitTooltip" value="<?php echo get_option('biodic_glossaryLimitTooltip'); ?>"  /></td>
            <td colspan="2">Select this option if you want to show only a limited number of chars and add More Details at the end of the tooltip text. Minimum is 30 chars.</td>
        </tr>
        <tr valign="top">
            <th scope="row">Clean tooltip text?</th>
            <td><input type="checkbox" name="biodic_glossaryFilterTooltip" <?php checked(true, get_option('biodic_glossaryFilterTooltip')); ?> value="1" /></td>
            <td colspan="2">Select this option if you want to remove extra spaces and special characters from tooltip text.</td>
        </tr>
        <tr valign="top">
            <th scope="row">Avoid parsing protected tags?</th>
            <td><input type="checkbox" name="biodic_glossaryProtectedTags" <?php checked(true, get_option('biodic_glossaryProtectedTags')); ?> value="1" /></td>
            <td colspan="2">Select this option if you want to avoid using the glossary for the following tags: Script, A, H1, H2, H3, PRE, Object.</td>
        </tr>
        <tr valign="top">
            <th scope="row">Terms case-sensitive?</th>
            <td><input type="checkbox" name="biodic_glossaryCaseSensitive" <?php checked(true, get_option('biodic_glossaryCaseSensitive')); ?> value="1" /></td>
            <td colspan="2">Select this option if you want glossary terms to be case-sensitive.</td>
        </tr>
        <tr valign="top">
            <th scope="row">Open glossary descriptions in a new windows/tab?</th>
            <td><input type="checkbox" name="biodic_glossaryInNewPage" <?php checked(true, get_option('biodic_glossaryInNewPage')); ?> value="1" /></td>
            <td colspan="2">Select this option if you want glossary descriptions to open in a new window/tab.</td>
        </tr>
        <tr valign="top">
            <th scope="row">Show HTML "title" attribute for glossary links</th>
            <td><input type="checkbox" name="biodic_showTitleAttribute" <?php checked(true, get_option('biodic_showTitleAttribute')); ?> value="1" /></td>
            <td colspan="2">Select this option if you want to use glossary name as HTML "title" for link</td>
        </tr>

    </table>
    <?php /*value="biodic_glossaryID,biodic_glossaryOnlySingle,biodic_glossaryOnPages,biodic_glossaryTooltip,biodic_glossaryDiffLinkClass,biodic_glossaryListTiles,biodic_glossaryPermalink,biodic_glossaryFirstOnly,biodic_glossaryLimitTooltip,biodic_glossaryFilterTooltip,biodic_glossaryTermLink,biodic_glossaryExcerptHover,biodic_glossaryProtectedTags,biodic_glossaryCaseSensitive,biodic_glossaryInNewPage,biodic_showTitleAttribute"*/ ?>
    <input type="hidden" name="action" value="update" />
    <input type="hidden" name="page_options" value="biodic_glossaryTooltip,biodic_glossaryOnPages,biodic_glossaryFirstOnly,biodic_glossaryLimitTooltip,biodic_glossaryFilterTooltip,biodic_glossaryProtectedTags,biodic_glossaryCaseSensitive,biodic_glossaryInNewPage,biodic_showTitleAttribute"  />
    <p class="submit">
        <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" name="biodic_glossarySave" />
    </p>
</form>
