function bccl_full_html_license($button = "default") {
    echo bccl_add_placeholders(bccl_get_full_html_license($button));
}
function bccl_set_license_options($cc_settings) {
    /*
    CC License Options
    */
    global $wp_version;

    print('
    <div class="wrap">
        <div id="icon-options-general" class="icon32"><br /></div>
        <h2>'.__('License Settings', 'cc-configurator').'</h2>

        <p style="text-align: center;"><big>' . bccl_get_full_html_license() . '</big></p>
        <form name="formlicense" id="bccl_reset" method="post" action="' . admin_url( 'options-general.php?page=cc-configurator-options' ) . '">
            <fieldset>
                <legend class="screen-reader-text"><span>'.__('Current License', 'cc-configurator').'</span></legend>
                <p>'.__('A license has been set and will be used to license your work.', 'cc-configurator').'</p>
                <p>'.__('If you need to set a different license, press the <em>Reset License</em> button below.', 'cc-configurator').'</p>
            </fieldset>
            <p class="submit">
                <input type="submit" class="button-primary" name="license_reset" value="'.__('Reset License', 'cc-configurator').'" />
            </p>
        </form>
    </div>

    <div class="wrap" style="background: #EEF6E6; padding: 1em 2em; border: 1px solid #E4E4E4;' . (($cc_settings["cc_i_have_donated"]=="1") ? ' display: none;' : '') . '">
        <h2>'.__('Message from the author', 'cc-configurator').'</h2>
        <p style="font-size: 1.2em; padding-left: 2em;"><em>CC-Configurator</em> is released under the terms of the <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License version 2</a> and, therefore, is <strong>Free software</strong>.</p>
        <p style="font-size: 1.2em; padding-left: 2em;">However, a significant amount of <strong>time</strong> and <strong>energy</strong> has been put into developing this plugin, so, its production has not been free from cost. If you find this plugin useful and, if it has made your life easier, you can show your appreciation by buying me an <a href="http://bit.ly/1aoPaow">extra cup of coffee</a>.</p>
        <p style="font-size: 1.2em; padding-left: 2em;">Thank you in advance,<br />George Notaras</p>
        <div style="text-align: right;"><small>'.__('This message can de deactivated in the settings below.', 'cc-configurator').'</small></div>
    </div>

    <div class="wrap">
        <h2>'.__('Configuration', 'cc-configurator').'</h2>
        <p>'.__('Here you can choose where and how license information should be added to your blog.', 'cc-configurator').'</p>

        <form name="formbccl" method="post" action="' . admin_url( 'options-general.php?page=cc-configurator-options' ) . '">

        <table class="form-table">
        <tbody>

        <tr>
        <th scope="row">' . __( 'Derivative Work', 'cc-configurator' ) . '</th>
        <td>
        <fieldset>
            <legend class="screen-reader-text"><span>' . __( 'Derivative Work', 'cc-configurator' ) . '</span></legend>
            <input id="cc_derivative" type="checkbox" value="1" name="cc_derivative"' . (($cc_settings["cc_derivative"] == "1") ? ' checked="checked"' : '') . '" />
            <label for="cc_derivative">
            ' . __( 'Is this a derivative of another Creative Commons Licensed work?', 'cc-configurator' ) . '
            </label><br>
            
            <p>                
                <input type="text" id="cc_derivative_orig_title" name="cc_derivative_orig_title" value="' . $cc_settings["cc_derivative_orig_title"] . '" size="50" />
                <label for="cc_derivative_orig_title">
                ' . __( '<b>Original title</b> <small><i>(from which you are creating a derivative work)</i></small>', 'cc-configurator' ) . '
                </label>
            </p>
            <p>
                <input type="text" id="cc_derivative_orig_author" name="cc_derivative_orig_author" value="' . $cc_settings["cc_derivative_orig_author"] . '" size="50" />
                <label for="cc_derivative_orig_author">
                ' . __( '<b>Original author</b> <small><i>(from which you are creating a derivative work)</i></small>', 'cc-configurator' ) . '
                </label>
            </p>
            <p>
                <input type="text" id="cc_derivative_orig_src" name="cc_derivative_orig_src" value="' . $cc_settings["cc_derivative_orig_src"] . '" size="50" />
                <label for="cc_derivative_orig_src">
                ' . __( '<b>Original source</b> <small><i>(URL or hyperlink where the original material resides)</i></small>', 'cc_configurator' ) . '
                </label>
            </p>
            <p>
                <label for="cc_derivative_orig_lic">
                ' . __( '<b>Original license</b> <small><i>(from which you are creating a derivative of)</i></small>', 'cc-configurator' ) . '
                </label><br>
                <input name="cc_derivative_orig_lic" type="radio" value="CC BY"' . (($cc_settings["cc_derivative_orig_lic"] == "CC BY") ? ' checked="checked"' : '') . '>CC BY <small><i>(Attribution)</i></small></input><br>
                <input name="cc_derivative_orig_lic" type="radio" value="CC BY-SA"' . (($cc_settings["cc_derivative_orig_lic"] == "CC BY-SA") ? ' checked="checked"' : '') . ' >CC BY-SA <small><i>(Attribution-ShareAlike)</i></small></input><br>
                <input name="cc_derivative_orig_lic" type="radio" value="CC BY-NC"' . (($cc_settings["cc_derivative_orig_lic"] == "CC BY-NC") ? ' checked="checked"' : '') . ' >CC BY-NC <small><i>(Attribution-NonCommercial)</i></small></input><br>
                <input name="cc_derivative_orig_lic" type="radio" value="CC BY-NC-SA"' . (($cc_settings["cc_derivative_orig_lic"] == "CC BY-NC-SA") ? ' checked="checked"' : '') . ' >CC BY-NC-SA <small><i>(Attribution-NonCommercial-ShareAlike)</i></small></input>
		<input id="cc_feed" type="hidden" value="0" name="cc_feed"" />
</p>
        </fieldset>
        </td>
        </tr>
      
            <tr valign="top">
            <th scope="row">'.__('Page Head HTML', 'cc-configurator').'</th>
            <td>
            <fieldset>
                <legend class="screen-reader-text"><span>'.__('Page Head HTML', 'cc-configurator').'</span></legend>
                <input id="cc_head" type="checkbox" value="1" name="cc_head" '. (($cc_settings["cc_head"]=="1") ? 'checked="checked"' : '') .'" />
                <label for="cc_head">
                '.__('Include license information in the page\'s HTML head. This will not be visible to human visitors, but search engine bots will be able to read it. Note that the insertion of license information in the HTML head is done in relation to the content types (posts, pages or attachment pages) on which the license text block is displayed (see the <em>text block</em> settings below). (<em>Recommended</em>)', 'cc-configurator').'
                </label>
                <br />
            </fieldset>
            </td>
            </tr>

            <tr valign="top">
            <th scope="row">'.__('Text Block', 'cc-configurator').'</th>
            <td>
            <fieldset>
                <legend class="screen-reader-text"><span>'.__('Text Block', 'cc-configurator').'</span></legend>

                <p>'.__('By enabling the following options, a small block of text, which contains links to the author, the work and the used license, is appended to the published content.', 'cc-configurator').'</p>

                <input id="cc_body" type="checkbox" value="1" name="cc_body" '. (($cc_settings["cc_body"]=="1") ? 'checked="checked"' : '') .'" />
                <label for="cc_body">
                '.__('Posts: Add the text block with license information under the published posts. (<em>Recommended</em>)', 'cc-configurator').'
                </label>
                <br />

                <input id="cc_body_pages" type="checkbox" value="1" name="cc_body_pages" '. (($cc_settings["cc_body_pages"]=="1") ? 'checked="checked"' : '') .'" />
                <label for="cc_body_pages">
                '.__('Pages: Add the text block with license information under the published pages.', 'cc-configurator').'
                </label>
                <br />

                <input id="cc_body_attachments" type="checkbox" value="1" name="cc_body_attachments" '. (($cc_settings["cc_body_attachments"]=="1") ? 'checked="checked"' : '') .'" />
                <label for="cc_body_attachments">
                '.__('Attachments: Add the text block with license information under the attached content in attachment pages.', 'cc-configurator').'
                </label>
                <br />

                <p>'.__('By enabling the following option, the license image is also included in the license text block.', 'cc-configurator').'</p>

                <input id="cc_body_img" type="checkbox" value="1" name="cc_body_img" '. (($cc_settings["cc_body_img"]=="1") ? 'checked="checked"' : '') .'" />
                <label for="cc_body_img">
                '.__('Include the license image in the text block.', 'cc-configurator').'
                </label>
                <br />
            </fieldset>
            </td>
            </tr>

            <tr valign="top">
            <th scope="row">'.__('Extra Text Block Customization', 'cc-configurator').'</th>
            <td>
            <p>'.__('The following settings have an effect only if the text block containing licensing information has been enabled above.', 'cc-configurator').'</p>
            <fieldset>
                <legend class="screen-reader-text"><span>'.__('Extra Text Block Customization', 'cc-configurator').'</span></legend>

                <input id="cc_extended" type="checkbox" value="1" name="cc_extended" '. (($cc_settings["cc_extended"]=="1") ? 'checked="checked"' : '') .'" />
                <label for="cc_extended">
                '.__('Include extended information about the published work and its creator. By enabling this option, hyperlinks to the published content and its creator/publisher are also included into the license statement inside the block. This, by being an attribution example itself, will generally help others to attribute the work to you.', 'cc-configurator').'
                </label>
                <br />
                <br />

                <select name="cc_creator" id="cc_creator">');
                $creator_arr = bccl_get_creator_pool();
                foreach ($creator_arr as $internal => $creator) {
                    if ($cc_settings["cc_creator"] == $internal) {
                        $selected = ' selected="selected"';
                    } else {
                        $selected = '';
                    }
                    printf('<option value="%s"%s>%s</option>', $internal, $selected, $creator);
                }
                print('</select>
                <br />
                <label for="cc_creator">
                '.__('If extended information about the published work has been enabled, then you can choose which name will indicate the creator of the work. By default, the blog name is used.', 'cc-configurator').'
                </label>
                <br />
                <br />

                <input name="cc_perm_url" type="text" id="cc_perm_url" class="code" value="' . $cc_settings["cc_perm_url"] . '" size="100" maxlength="1024" />
                <br />
                <label for="cc_perm_url">
                '.__('If you have added any extra permissions to your license, provide the URL to the webpage that contains them. It is highly recommended to use absolute URLs.', 'cc-configurator').'
                <br />
                <strong>'.__('Example', 'cc-configurator').'</strong>: <code>http://www.example.org/ExtendedPermissions</code>
                </label>
                <br />

            </fieldset>
            </td>
            </tr>

            
            <tr valign="top">
            <th scope="row">'.__('Colors of the text block', 'cc-configurator').'</th>
            <td>
            <p>'.__('The following settings have an effect only if the text block containing licensing information has been enabled above.', 'cc-configurator').'</p>
            <fieldset>
                <legend class="screen-reader-text"><span>'.__('Colors of the text block', 'cc-configurator').'</span></legend>

                <input name="cc_color" type="text" id="cc_color" class="code" value="' . $cc_settings["cc_color"] . '" size="7" maxlength="7" />
                <label for="cc_color">
                '.__('Set a color for the text that appears within the block (does not affect hyperlinks).', 'cc-configurator').'
                <br />
                <strong>'.__('Default', 'cc-configurator').'</strong>: <code>#000000</code>
                </label>
                <br />
                <br />

                <input name="cc_bgcolor" type="text" id="cc_bgcolor" class="code" value="' . $cc_settings["cc_bgcolor"] . '" size="7" maxlength="7" />
                <label for="cc_bgcolor">
                '.__('Set a background color for the block.', 'cc-configurator').'
                <br />
                <strong>'.__('Default', 'cc-configurator').'</strong>: <code>#eef6e6</code>
                </label>
                <br />
                <br />

                <input name="cc_brdr_color" type="text" id="cc_brdr_color" class="code" value="' . $cc_settings["cc_brdr_color"] . '" size="7" maxlength="7" />
                <label for="cc_brdr_color">
                '.__('Set a color for the border of the block.', 'cc-configurator').'
                <br />
                <strong>'.__('Default', 'cc-configurator').'</strong>: <code>#cccccc</code>
                </label>
                <br />
                <br />

                <input id="cc_no_style" type="checkbox" value="1" name="cc_no_style" '. (($cc_settings["cc_no_style"]=="1") ? 'checked="checked"' : '') .'" />
                <label for="cc_no_style">
                '.__('Disable the internal formatting of the license block. If the internal formatting is disabled, then the color selections above have no effect any more. You can still format the license block via your own CSS. The <em>cc-block</em> and <em>cc-button</em> classes have been reserved for formatting the license block and the license button respectively.', 'cc-configurator').'
                </label>
                <br />

            </fieldset>
            </td>
            </tr>

            <tr valign="top">
            <th scope="row">'.__('Donations', 'cc-configurator').'</th>
            <td>
            <fieldset>
                <legend class="screen-reader-text"><span>'.__('Donations', 'cc-configurator').'</span></legend>
                <input id="cc_i_have_donated" type="checkbox" value="1" name="cc_i_have_donated" '. (($cc_settings["cc_i_have_donated"]=="1") ? 'checked="checked"' : '') .'" />
                <label for="cc_i_have_donated">
                '. sprintf( __('By checking this, the <em>message from the author</em> above goes away. Thanks for <a href="%s">donating</a>!', 'cc-configurator'), 'http://bit.ly/1aoPaow' ) .'
                </label>
                <br />

            </fieldset>
            </td>
            </tr>


        </tbody>
        </table>

        <p class="submit">
            <input id="submit" class="button-primary" type="submit" value="'.__('Save Changes', 'cc-configurator').'" name="info_update" />
            <input id="reset" class="button-primary" type="submit" value="'.__('Reset to defaults', 'cc-configurator').'" name="info_reset" />
        </p>

        </form>

    </div>

    ');
}