function weaver_page_extras()
{
    global $post;
    echo "<p>\n";
    _e("<strong>Page Templates</strong>", WEAVER_TRANSADMIN);
    weaver_help_link('help.html#PageTemplates', __('Help for Weaver Page Templates', WEAVER_TRANSADMIN));
    echo '<span style="float:right;">(This Page\'s ID: ';
    the_ID();
    echo ')</span>';
    weaver_html_br();
    _e('Please click the (?) for more information about all the Weaver Page Templates.', WEAVER_TRANSADMIN);
    echo "</p><p>\n";
    _e("<strong>Per Page Options</strong>", WEAVER_TRANSADMIN);
    weaver_help_link('help.html#optsperpage', __('Help for Per Page Options', WEAVER_TRANSADMIN));
    weaver_html_br();
    _e("These settings let you hide various elements on a per page basis.", WEAVER_TRANSADMIN);
    weaver_html_br();
    weaver_page_checkbox('ttw-hide-page-title', __('Hide Page Title', WEAVER_TRANSADMIN));
    weaver_page_checkbox('ttw-hide-site-title', __('Hide Site Title/Description', WEAVER_TRANSADMIN));
    weaver_page_checkbox('ttw-hide-menus', __('Hide Menus', WEAVER_TRANSADMIN));
    weaver_page_checkbox('ttw-hide-header-image', __('Hide Standard Header Image', WEAVER_TRANSADMIN));
    weaver_html_br();
    weaver_page_checkbox('ttw-hide-header', __('Hide Entire Header', WEAVER_TRANSADMIN));
    weaver_page_checkbox('ttw-hide-footer', __('Hide Entire Footer', WEAVER_TRANSADMIN));
    weaver_page_checkbox('ttw_hide_sidebars', __('Hide Sidebars', WEAVER_TRANSADMIN));
    weaver_page_checkbox('ttw-hide-on-menu', __('Hide Page on the Primary Menu', WEAVER_TRANSADMIN));
    weaver_html_br();
    weaver_page_checkbox('ttw-stay-on-page', __('Menu "Placeholder" page. Useful for top-level menu item - don\'t go anywhere when menu item is clicked.', WEAVER_TRANSADMIN));
    weaver_html_br();
    weaver_page_checkbox('hide_visual_editor', __('Disable Visual Editor for this page. Useful if you enter simple HTML or other code.', WEAVER_TRANSADMIN));
    if (weaver_allow_multisite()) {
        weaver_html_br();
        weaver_page_checkbox('wvr_raw_html', __('Allow Raw HTML and scripts. Disables auto paragraph, texturize, and other processing.', WEAVER_TRANSADMIN));
    }
    weaver_html_br();
    weaver_html_br();
    if (function_exists('weaver_plus_plugin')) {
        // add option only if weaver plus installed
        weaver_plus_per_page_opts();
    }
    _e("<strong>Selective Display of Widget Areas</strong><br />\n\tThese settings let you hide display of widget areas that would normally be displayed for a given page template. (Note that\n\tdifferent page templates don't necessarily display the same widget areas.)", WEAVER_TRANSADMIN);
    weaver_html_br();
    weaver_page_checkbox('hide-primary-widget-area', __('Hide Primary Area', WEAVER_TRANSADMIN));
    weaver_page_checkbox('hide-secondary-widget-area', __('Hide Secondary Area', WEAVER_TRANSADMIN));
    weaver_page_checkbox('top-widget-area', __('Hide Top Area', WEAVER_TRANSADMIN));
    weaver_page_checkbox('bottom-widget-area', __('Hide Bottom Area', WEAVER_TRANSADMIN));
    weaver_html_br();
    weaver_page_checkbox('sitewide-top-widget-area', __('Hide Sitewide Top Area', WEAVER_TRANSADMIN));
    weaver_page_checkbox('sitewide-bottom-widget-area', __('Hide Sitewide Bottom Area', WEAVER_TRANSADMIN));
    ?>
	<br />
	Use Weaver Advanced Options tab to define additional Per Page Widget areas to use here.
	<?php 
    weaver_help_link('help.html#PPWidgets', __('Help for Per Page Widget Areas', WEAVER_TRANSADMIN));
    ?>
	<br />
	<input type="text" size="15" id="ttw_show_extra_areas" name="ttw_show_extra_areas"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_show_extra_areas", true));
    ?>
" />
	<?php 
    _e("<em>Additional Top Widget Area</em> - Enter name of a Per Page Widget Top Area to display.", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="15" id="ttw_show_replace_primary" name="ttw_show_replace_primary"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_show_replace_primary", true));
    ?>
" />
	<?php 
    _e("<em>Primary Replacement</em> - Enter name of a Per Page Widget Area to replace the standard Primary area.", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="15" id="ttw_show_replace_secondary" name="ttw_show_replace_secondary"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_show_replace_secondary", true));
    ?>
" />
	<?php 
    _e("<em>Secondary Replacement</em> - Enter name of a Per Page Widget Area to replace the standard Secondary area.", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="15" id="ttw_show_replace_alternative" name="ttw_show_replace_alternative"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_show_replace_alternative", true));
    ?>
" />
	<?php 
    _e("<em>Alternative Replacement</em> - Enter name of a Per Page Widget Area to replace the Alternative area on alt-left and alt-right template pages.", WEAVER_TRANSADMIN);
    ?>
 <br />


	<?php 
    // No need to hide other widget areas - it would make no sense to hide the alt widget area, for example
    ?>
</p>
<p>
	<?php 
    _e('<strong>Settings for "Page with Posts" Templates</strong>', WEAVER_TRANSADMIN);
    weaver_help_link('help.html#PerPostTemplate', __('Help for Page with Posts Templates', WEAVER_TRANSADMIN));
    ?>
	<br />
	<?php 
    _e('These settings are optional, and can filter which posts are displayed when you use one of the "Page
	with Posts" templates. The settings will be combined for the final filtered list of posts displayed.
	(If you make mistakes in your settings, it won\'t be apparent until you display the page.)', WEAVER_TRANSADMIN);
    ?>
<br />


	<input type="text" size="30" id="ttw_category" name="ttw_category"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_category", true));
    ?>
" />
	<?php 
    _e("<em>Category</em> - Enter list of category slugs of posts to include. (-slug will exclude specified category)", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="30" id="ttw_tag" name="ttw_tag"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_tag", true));
    ?>
" />
	<?php 
    _e("<em>Tags</em> - Enter list of tag slugs of posts to include.", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="30" id="ttw_onepost" name="ttw_onepost"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_onepost", true));
    ?>
" />
	<?php 
    _e("<em>Single Post</em> - Enter post slug of a single post to display.", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="30" id="ttw_orderby" name="ttw_orderby"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_orderby", true));
    ?>
" />
	<?php 
    _e("<em>Order by</em> - Enter method to order posts by: author, date, title, or rand.", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="30" id="ttw_order" name="ttw_order"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_order", true));
    ?>
" />
	<?php 
    _e("<em>Sort order</em> - Enter ASC or DESC for sort order.", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="30" id="ttw_posts_per_page" name="ttw_posts_per_page"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_posts_per_page", true));
    ?>
" />
	<?php 
    _e("<em>Posts per Page</em> - Enter maximum number of posts per page.", WEAVER_TRANSADMIN);
    ?>
 <br />

	<input type="text" size="30" id="ttw_author" name="ttw_author"
	value="<?php 
    echo weaver_esc_textarea(get_post_meta($post->ID, "ttw_author", true));
    ?>
" />
	<?php 
    _e('<em>Author</em> - Enter author (use username, including spaces)', WEAVER_TRANSADMIN);
    ?>
 <br />

	<?php 
    weaver_page_checkbox('ttw_hide_sticky', __('Hide Sticky Posts', WEAVER_TRANSADMIN));
    ?>
	<?php 
    weaver_page_checkbox('ttw_hide_pp_infotop', __('Hide top info line', WEAVER_TRANSADMIN));
    ?>
	<?php 
    weaver_page_checkbox('ttw_hide_pp_infobot', __('Hide bottom info line', WEAVER_TRANSADMIN));
    ?>
</p>
<p>
	<?php 
    _e('<em>Note:</em> when you add settings for the page here, values will be created and displayed in the "Custom Fields" box.', WEAVER_TRANSADMIN);
    weaver_html_br();
    _e('Other per page options (Manually define a specified <em>Custom Field Name</em> and <em>Value</em>):', WEAVER_TRANSADMIN);
    weaver_help_link('help.html#ExtraPP', __('Help for Extra Per Page Options', WEAVER_TRANSADMIN));
    weaver_html_br();
    _e('Define <em>page-head-code</em>, and the value contents will be added to the &lt;HEAD&gt; section. Include &lt;style>...&lt;/style> if adding CSS.', WEAVER_TRANSADMIN);
    weaver_html_br();
    _e('Define <em>page-pre-header-code</em>, and the value contents will be inserted before the &lt;header&gt; div.', WEAVER_TRANSADMIN);
    weaver_html_br();
    _e('Define <em>page-header-insert-code</em>, and the value content will be inserted above the header image.', WEAVER_TRANSADMIN);
    weaver_html_br();
    _e('These areas also supported: <em>page-postheader-code</em>, <em>page-presidebar-code</em>, <em>page-prefooter-code</em>, and <em>page-postfooter-code</em>.', WEAVER_TRANSADMIN);
    ?>
</p>
	<input type='hidden' id='ttw_post_meta' name='ttw_post_meta' value='ttw_post_meta'/>
<?php 
}
function weaver_adv_admin_opts()
{
    ?>
		<a name="adminopts" id="adminopts"></a>
		<label><span style="color:#00f; font-weight:bold; font-size: larger;"><b>Administrative Options</b></span></label><br/>
		These options control some administrative options and appearance features.
		<br />

<br /> <small><span style="color:red;"><b>IMPORTANT NOTE:</b></span> Weaver includes support for Rounded Corners and Shadows for Internet Explorer 7/8
via an add-on script called PIE. The script has been <strong>enabled</strong> by default. PIE doesn't work with the rounded menus. It also may have
a few incompatibilities with some Flash content and other images that might require z-index adjustment.
If you have difficulties or don't like the way your site renders in IE 7/8, you can disable the support.</small>

<br />
    <input type="checkbox" name="<?php 
    weaver_sapi_advanced_name('ttw_hide_PIE');
    ?>
" id="ttw_hide_PIE" <?php 
    checked(weaver_getopt_checked('ttw_hide_PIE'));
    ?>
 />
    <label>Disable IE rounded corners support - </label><small>If you are having issues with IE and rounded corners, please disable this option.</small><br />

<br />
    <input type="checkbox" name="<?php 
    weaver_sapi_advanced_name('ttw_hide_editor_style');
    ?>
" id="ttw_hide_editor_style" <?php 
    checked(weaver_getopt_checked('ttw_hide_editor_style'));
    ?>
 />
	<label>Disable Page/Post Editor Styling - </label><small>Checking this box will disable the Weaver sub-theme based styling in the Page/Post editor.
	If you have a theme using transparent backgrounds, this option will likely improve the Post/Page editor visibility.</small><br />

    <input type="checkbox" name="<?php 
    weaver_sapi_advanced_name('ttw_show_preview');
    ?>
" id="ttw_show_preview" <?php 
    checked(weaver_getopt_checked('ttw_show_preview'));
    ?>
 />
	<label>Show Site Preview - </label><small>Checking this box will show a Site Preview at the bottom of the screen which might slow down response a bit.</small><br />

    <input type="checkbox" name="<?php 
    weaver_sapi_advanced_name('ttw_hide_updatemsg');
    ?>
" id="ttw_hide_updatemsg" <?php 
    checked(weaver_getopt_checked('ttw_hide_updatemsg'));
    ?>
 />
	<label>Hide Update Messages - </label><small>Checking this box will hide the Weaver version update announcements on the Weaver Admin page.</small><br />

    <input type="checkbox" name="<?php 
    weaver_sapi_advanced_name('ttw_hide_theme_thumbs');
    ?>
" id="ttw_hide_theme_thumbs" <?php 
    checked(weaver_getopt_checked('ttw_hide_theme_thumbs'));
    ?>
 />
	<label>Hide Theme Thumbnails - </label><small>Checking this box will hide the Sub-theme preview thumbnails on the Weaver Themes tab which might speed up response a bit.</small><br />

    <input type="checkbox" name="<?php 
    weaver_sapi_advanced_name('ttw_hide_auto_css_rules');
    ?>
" id="ttw_hide_auto_css_rules" <?php 
    checked(weaver_getopt_checked('ttw_hide_auto_css_rules'));
    ?>
 />
	<label>Don't auto-display CSS rules - </label><small>Checking this box will disable the auto-display of Main Option elements that have CSS settings.</small><br />

    <input name="<?php 
    weaver_sapi_advanced_name('ttw_css_rows');
    ?>
" id="ttw_css_rows" type="text" style="width:30px;height:20px;" class="regular-text" value="<?php 
    echo weaver_esc_textarea(weaver_getopt('ttw_css_rows'));
    ?>
" />
    <label>Set CSS+ text box height - </label><small>You can increase the default height of the CSS+ input area.</small>
<br />

    <input type="checkbox" name="<?php 
    weaver_sapi_advanced_name('ttw_notab_mainoptions');
    ?>
" id="ttw_notab_mainoptions" <?php 
    checked(weaver_getopt_checked('ttw_notab_mainoptions'));
    ?>
 />
	<label>Show All Main Options at once - </label><small>If you want to see all the main options at once (not displayed by tabs), check this box.</small><br />

    <input type="checkbox" name="<?php 
    weaver_sapi_advanced_name('ttw_force_inline_css');
    ?>
" id="ttw_force_inline_css" <?php 
    checked(weaver_getopt_checked('ttw_force_inline_css'));
    ?>
 />
	<label>Use Inline CSS - </label><small>Checking this box will have Weaver generate CSS inline rather than use the style-weaver.css external style sheet.</small><br />

<?php 
    if (get_option('ttw_options')) {
        ?>
	<input type="checkbox" name="<?php 
        weaver_sapi_advanced_name('wvr_hide_if_are_oldWeaver_opts');
        ?>
" id="wvr_hide_if_are_oldWeaver_opts" <?php 
        checked(weaver_getopt_checked('wvr_hide_if_are_oldWeaver_opts'));
        ?>
 />
	<label>Hide import notice if settings from old Weaver versions exist - </label><small>This option controls the display of the import old Weaver settings box.</small><br />
<?php 
    }
    $type = get_filesystem_method(array());
    if ($type == 'ftpext' && !function_exists('weaver_fileio_plugin')) {
        ?>
	<br /><br /><label><span style="color:#00f; font-weight:bold; font-size: larger;"><b>FTP File Access</b></span></label><br/>
	<p>Your system requires internal FTP access for full file access functionality. You do not have the Weaver File Access
	Plugin installed. If you don't have the ftp access credentials defined in your wp-config.php file, you will have options
	here to provide the required values.
<?php 
        if (!(defined('FTP_HOST') && defined('FTP_USER') && defined('FTP_PASS'))) {
            _e('Please enter your FTP credentials to proceed.', WEAVER_TRANSADMIN);
            echo ' ';
            _e('If you do not remember your credentials, you should contact your web host.', WEAVER_TRANSADMIN);
            echo "</p>\n";
            ?>
	<br /><label><?php 
            _e('Hostname', WEAVER_TRANSADMIN);
            ?>
: &nbsp;&nbsp;&nbsp;</label><input name="<?php 
            weaver_sapi_advanced_name('ftp_hostname');
            ?>
" id="ftp_hostname" type="text" style="width:300px;height:20px;" class="regular-text" value="<?php 
            echo weaver_esc_textarea(weaver_getopt('ftp_hostname'));
            ?>
" />
    <small>Specify the name of your host. Usually something like 'example.com'.</small>
    <br /><label><?php 
            echo __('FTP Username', WEAVER_TRANSADMIN);
            ?>
: </label><input name="<?php 
            weaver_sapi_advanced_name('ftp_username');
            ?>
" id="ftp_username" type="text" style="width:300px;height:20px;" class="regular-text" value="<?php 
            echo weaver_esc_textarea(weaver_getopt('ftp_username'));
            ?>
" />
    <small>Specify your FTP Username.</small>
    <br /><label><?php 
            _e('FTP Password', WEAVER_TRANSADMIN);
            ?>
: </label><input name="<?php 
            weaver_sapi_advanced_name('ftp_password');
            ?>
" id="ftp_password" type="password" style="width:300px;height:20px;" class="regular-text" value="<?php 
            echo weaver_esc_textarea(weaver_decrypt(weaver_getopt('ftp_password')));
            ?>
" />
    <small>Specify your FTP Password. This will be saved in an encrypted form.</small>
<br />
<?php 
        } else {
            ?>
	    <p><em>FTP Credentials used from your wp-config.php file.</em></p>
<?php 
        }
        ?>
<br /><label>Hide FTP Access Start up Dialog: </label>
<input type="checkbox" name="<?php 
        weaver_sapi_advanced_name('ftp_hide_check_message');
        ?>
" id="ftp_hide_check_message" <?php 
        checked(weaver_getopt_checked('ftp_hide_check_message'));
        ?>
 />
	<small>If you check this, then the FTP File Access message box will not be displayed when you enter Weaver Admin. Weaver will continue to operate in
	reduced functionality mode: no editor styling, no save/restore, Inline CSS.</small><br />
<?php 
    }
    ?>

    <br /><?php 
    weaver_sapi_submit('saveadvanced', 'Save All Advanced Options');
    ?>
<br /><br />
    <?php 
    /* The following three hidden inputs allow the SAPI to save the values. If you don't do this here, then the values will
       be set to false, and lost! SAPI is not tolerant of submitting a form that doesn't include every setting for the form group. */
    ?>
    <input name="<?php 
    weaver_sapi_advanced_name('ttw_subtheme');
    ?>
" id="ttw_subtheme" type="hidden" value="<?php 
    echo weaver_getopt('ttw_subtheme');
    ?>
" />
    <input name="<?php 
    weaver_sapi_advanced_name('ttw_theme_image');
    ?>
" id="ttw_theme_image" type="hidden" value="<?php 
    echo weaver_getopt('ttw_theme_image');
    ?>
" />
    <input name="<?php 
    weaver_sapi_advanced_name('ttw_theme_description');
    ?>
" id="ttw_theme_description" type="hidden" value="<?php 
    echo weaver_getopt('ttw_theme_description');
    ?>
" />
    <input name="<?php 
    weaver_sapi_advanced_name('ttw_themename');
    ?>
" id="ttw_themename" type="hidden" value="<?php 
    echo weaver_getopt('ttw_themename');
    ?>
" />
    <input name="<?php 
    weaver_sapi_advanced_name('ttw_version_id');
    ?>
" id="ttw_version_id" type="hidden" value="<?php 
    echo weaver_getopt('ttw_version_id');
    ?>
" />
    <input name="<?php 
    weaver_sapi_advanced_name('ttw_style_version');
    ?>
" id="ttw_style_version" type="hidden" value="<?php 
    echo weaver_getopt('ttw_style_version');
    ?>
" />

    <hr />
    <p><em>Note: </em>Clear all settings moved to Save/Restore tab<p>
<?php 
}
Example #3
0
    function weaver_st_show_subtheme_form()
    {
        weaver_st_pick_theme('2');
        ?>
    <form method='post'>
	<table cellspacing='10' cellpadding='5'>
<?php 
        if (weaver_allow_multisite()) {
            ?>
		<tr><td width=70px'>&nbsp;</td>
		<td><span class='submit'><input name='savemytheme' type='submit' value='Save in My Saved Theme'/></span></td>
		<td><small>Save <u>all</u> currently saved options (both Main and Advanced) as <strong>My Saved Theme</strong>.
 You will be able to restore these later by selecting <strong>My Saved Theme</strong>.</td>
		</tr>
                <tr><td colspan=3>Theme name:&nbsp;
                <input name="newthemename" id="newthemename" type="text" value="<?php 
            if (weaver_getopt('ttw_themename') != "") {
                echo weaver_esc_textarea(weaver_getopt('ttw_themename'));
            } else {
                echo '';
            }
            ?>
" />
                <span class='submit'><input name='changethemename' type='submit' value='Change Theme Name'/></span>&nbsp;<small>This name is used
                only here, but is preserved when you "Save" a theme using this admin tab.</small>
		</td></tr>
<?php 
        }
        ?>
	<?php 
        global $weaver_dev;
        if ($weaver_dev) {
            ?>
	<tr>
	    <td colspan=3>
		Theme image file: &nbsp; <input name="newthemeimage" id="newthemeimage" type="text"
			value="<?php 
            if (weaver_getopt('ttw_theme_image') != "") {
                echo weaver_esc_textarea(weaver_getopt('ttw_theme_image'));
            } else {
                echo '';
            }
            ?>
" />
	    </td>
	</tr>
	<tr>
	    <td colspan=3>
		Theme description: &nbsp;  <input size='100' name="newthemedesc" id="newthemedesc" type="text"
			value="<?php 
            if (weaver_getopt('ttw_theme_description') != "") {
                echo weaver_esc_textarea(weaver_getopt('ttw_theme_description'));
            } else {
                echo '';
            }
            ?>
" />
	<?php 
        }
        ?>
        </table>
	<?php 
        weaver_nonce_field('savemytheme');
        weaver_nonce_field('changethemename');
        ?>
    </form>
     <?php 
    }
Example #4
0
function weaver_ftp_form()
{
    // display warning message, and ftp info
    $readme = get_template_directory_uri() . '/help.html';
    ?>
      <br /><br /><br /><div style="background-color:#FFEEEE; border: 5px ridge red; margin: 10px 60px 0px 20px; padding:15px;">
<strong style="color:#f00; line-height:150%;">*** IMPORTANT NOTICE! ***</strong> <small style="padding-left:20px;">(But don't panic!)</small>
<?php 
    weaver_help_link('help.html#File_access_plugin', 'Weaver File Access Plugin');
    ?>
	<p>Your web host configuration needs "FTP" file access for full Weaver functionality. You need to use one of the following options. There are more details in the help file. <?php 
    weaver_help_link('help.html#File_access_plugin', 'Weaver File Access Plugin');
    ?>
</p>
	<ul style="list-style-type:disc !important;list-style-position:inside !important;">
	  <li><strong>For a shared web host</strong>: Provide FTP credentials to enable file access. You can do this by filling the form below, or by adding the proper information to your wp-config.php file as described in the help file. <small>Note: most shared hosts do not need FTP file access, and won't generate this message.</small></li>
      <li><strong>For a private server or VPS</strong>: Provide FTP credentials, or install the <a href="http://wordpress.org/extend/plugins/weaver-file-access-plugin/" target="_blank">Weaver File Access Plugin</a>. The Weaver File Access Plugin will provide the required file access with the most efficiency.</li>
      <li><strong>For compatibility with existing Weaver installations:</strong> install the <a href="http://wordpress.org/extend/plugins/weaver-file-access-plugin/" target="_blank">Weaver File Access Plugin</a>. This will provide the required file access with the most compatibility with previous versions, but with a very small security risk. See the help file.
      If you have an existing Weaver installation, you may find switching file access methods (Weaver File Access Plugin to FTP, or the opposite) may result in file or directory access permission issues. See the help file.</li>
      <li><strong>For reduced functionality mode:</strong> Check the <em>Hide FTP Access Start up Dialog</em> below.
      Weaver <strong>will continue to operate</strong> in reduced functionality mode (no editor styling, no save/restore, Inline CSS)
	until you provide FTP credentials, or download and activate the <em>Weaver File Access Plugin</em>, either from <a href="http://wordpress.org/extend/plugins/weaver-file-access-plugin/" target="_blank">WordPress.org</a>, or <a href="http://wpweaver.info/themes/weaver/weaver-file-access-plugin/" target="_blank">WPWeaver.info</a>.</li>
</ul>
	<ul style="list-style-type:disc !important;list-style-position:inside !important;">
	    <li>If your host requires secure FTP or SSH access, you will need to provide the proper credentials using the wp-config.php file.</li>
      <li>Installing the <a href="http://wordpress.org/extend/plugins/weaver-file-access-plugin/" target="_blank">Weaver File Access Plugin</a> will allow full Weaver functionality on any host, but sometimes with a small security risk</li>
</ul>
	<p><strong>Please read more details in the
<?php 
    echo '<a href="' . $readme . '#File_access_plugin" target="_blank">';
    ?>
	Weaver File Access Plugin</a> topic from the <em>Weaver Help tab</em></strong>.
	</p>
	</div><br />


    <form name="weaver_set_ftp_form" method="post">
      <p><span style="color:#00f; font-weight:bold; font-size: larger;"><strong>Provide FTP File Access Credentials</strong></span></p>
	<?php 
    if (!(defined('FTP_HOST') && defined('FTP_USER') && defined('FTP_PASS'))) {
        echo "<p>\n";
        _e('Please enter your FTP credentials to proceed.', WEAVER_TRANSADMIN);
        echo ' ';
        _e('If you do not remember your credentials, you should contact your web host.', WEAVER_TRANSADMIN);
        echo "</p>\n";
        ?>
	<label><?php 
        _e('Hostname', WEAVER_TRANSADMIN);
        ?>
: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input name="ftp_hostnamex" id="ftp_hostnamex" type="text" style="width:300px;height:20px;" class="regular-text" value="<?php 
        echo weaver_esc_textarea(weaver_getopt('ftp_hostname'));
        ?>
" />
    <small>Specify the name of your host. Usually something like 'example.com'.</small>
    <br /><label><?php 
        echo __('FTP Username', WEAVER_TRANSADMIN);
        ?>
: </label><input name="ftp_usernamex" id="ftp_usernamex" type="text" style="width:300px;height:20px;" class="regular-text" value="<?php 
        echo weaver_esc_textarea(weaver_getopt('ftp_username'));
        ?>
" />
    <small>Specify your FTP Username.</small>
    <br /><label><?php 
        _e('FTP Password', WEAVER_TRANSADMIN);
        ?>
: </label><input name="ftp_passwordx" id="ftp_passwordx" type="password" style="width:300px;height:20px;" class="regular-text" value="<?php 
        echo weaver_esc_textarea(weaver_decrypt(weaver_getopt('ftp_password')));
        ?>
" />
    <small>Specify your FTP Password. This will be saved in an encrypted form.</small>
<br />
<?php 
    } else {
        ?>
<p><em>Credentials provided in the wp-config.php file.</em> There must be some kind of problem because you shouldn't be seeing
this page unless you need to provide FTP access credentials. Perhaps the password is not included in wp-config.php.</p>
<?php 
    }
    ?>
<p>If you continue to get this message even after entering your credentials, please double check the values. If that
	that continues to fail, you can install the
	<a href="http://wordpress.org/extend/plugins/weaver-file-access-plugin/" target="_blank">Weaver File Access Plugin</a> instead.</p><br />

<p><span style="color:#00f; font-weight:bold; font-size: larger;"><strong>Install Weaver File Access Plugin</strong></span><br />
      The easiest way to install the <em>Weaver File Access Plugin</em> is to open the Plugins&rarr;Add New panel, and enter
      <em>Weaver File Access Plugin</em> into the search box. Then install and activate the plugin.
</p>

<p><span style="color:#00f; font-weight:bold; font-size: larger;"><strong>Continue with reduced file access</strong></span><br />
      If want to continue to use Weaver without full file access, check
the box below. You can still use all of Weaver's options. You just won't be able to use the Save/Restore features, the
Page/Post editor will use plain styling, and CSS rules will be included Inline on your site's pages. <em>You can still
install the Weaver File Access Plugin, or provide FTP credentials later.</em></p>

<label><strong>Hide FTP Access Start up Dialog:</strong> </label><input type="checkbox" name="ftp_hide_check_messagex" id="ftp_hide_check_messagex" <?php 
    checked(weaver_getopt_checked('ftp_hide_check_message'));
    ?>
 />
	<small>If you check this, then this FTP File Access message box when you enter Weaver Admin will not be displayed. Weaver will function in
	reduced functionality mode: no editor styling, no save/restore, Inline CSS.</small><br /><br />

<input class="button-primary" type="submit" name="ftp_save_form" value="Save FTP File Access Options"/>
	<?php 
    weaver_nonce_field('ftp_save_form');
    ?>
    </form>



    </div> <!-- #wrap -->
<?php 
}