Exemple #1
0
function weaver_help_admin()
{
    /* admin tab for help */
    $tdir = get_template_directory_uri();
    $readme = $tdir . "/help.html";
    ?>
    <h3>Help</h3>
    <p>You will notice
    <?php 
    weaver_help_link('help.html#top', __('Weaver Help', WEAVER_TRANSADMIN));
    ?>
    next to many options and option sections on the Weaver Admin tabs. Clicking the ? will open the Weaver Help
    file to the appropriate place.</p>

    <p>More help is available at the <a href="http://weavertheme.com" target="_blank"><strong>Weaver Theme web site</strong></a>, which includes
    a support forum.</p>

    <h4>Weaver Help</h4>
    <?php 
    echo "<div class=\"wvr-help\"><h2><b><a href=\"{$readme}\" target=\"_blank\">Weaver Theme Documentation</a></b> -- Version 2.2</h2>\n<h4><a href=\"{$readme}#release_notes_2_2\" title=\"Important notes about Version 2.2 \" target=\"_blank\">See Weaver 2.2 Release Notes</a>\n</h4>\n<h3>Table of Contents</h3>\n<ul>\n  <li><a href=\"{$readme}#get_started\" target=\"_blank\">How to get started</a></li>\n  <li><a href=\"{$readme}#DesignHints\" target=\"_blank\">Design Hints</a></li>\n  <li><a href=\"{$readme}#homepage\" target=\"_blank\">All About Your Site's Home Page</a></li>\n  <li><a href=\"{$readme}#PredefinedThemes\" target=\"_blank\">Weaver Predefined Sub-Themes</a></li>\n  <li><a href=\"{$readme}#MainOptions\" target=\"_blank\">Weaver Main Options</a>\n  <ul>\n  <li><a href=\"{$readme}#GenApp\" target=\"_blank\">General Appearance</a></li>\n  <li><a href=\"{$readme}#HeaderOpt\" target=\"_blank\">Header Options</a></li>\n  <li><a href=\"{$readme}#FooterOpt\" target=\"_blank\">Footer Options</a></li>\n  <li><a href=\"{$readme}#ContentAreas\" target=\"_blank\">Content Areas</a></li>\n  <li><a href=\"{$readme}#PPSpecifics\" target=\"_blank\">Post Page Specifics</a></li>\n  <ul>\n  <li><a href=\"{$readme}#FeaturedImage\" target=\"_blank\">The Featured Image</a></li>\n  </ul>\n  <li><a href=\"{$readme}#WidgetAreas\" target=\"_blank\">Widget Areas</a></li>\n  </ul>\n  </li>\n    <li><a href=\"{$readme}#AdvancedOptions\" target=\"_blank\">Weaver Advanced Options</a></li>\n    <li><a href=\"{$readme}#SaveRestore\" target=\"_blank\">Save/Restore Themes</a></li>\n    <li><a href=\"{$readme}#PageTemplates\" target=\"_blank\">Weaver Page Templates</a></li>\n  <ul>\n  <li><a href=\"{$readme}#PerPostTemplate\" target=\"_blank\">Settings for \"Page with Posts\" Template</a></li>\n  </ul>\n  <li><a href=\"{$readme}#editstyling\" target=\"_blank\">Post/Page Editor Styling</a>\n  <li><a href=\"{$readme}#PerPage\" target=\"_blank\">Per Page and Per Post Options</a>\n      <ul>\n        <li><a href=\"{$readme}#gallerypost\" target=\"_blank\">Gallery Post Format</a></li>\n        <li><a href=\"{$readme}#shortcodes\" target=\"_blank\">Weaver Shortcodes</a></li>\n        </ul>\n  <li><a href=\"{$readme}#CustomMenus\" target=\"_blank\">Custom Menus</a></li>\n  <li><a href=\"{$readme}#plugins\">Built-in Support for Other Plugins</a></li>\n  <li><a href=\"{$readme}#ie\">Internet Explorer Compatibility</a></li>\n  <li><a href=\"{$readme}#language_support\" target=\"_blank\">Using Weaver in your language</a></li>\n  <li><a href=\"{$readme}#File_access_plugin\"><strong>Weaver File Access Plugin</strong></a></li>\n\n  <li><a href=\"{$readme}#TechNotes\" target=\"_blank\">Technical Notes</a></li>\n  <li><a href=\"{$readme}#divhierarchy\" target=\"_blank\">Weaver HTML&lt;div&gt;Hierarchy</a></li>\n\n  <li><a href=\"{$readme}#v2ReleaseNotes\" target=\"_blank\">Version 2.0 Release Notes</a></li>\n</ul></div>\n";
    ?>
        <h4>Weaver Main Options Summary</h4>
        <p>Click the thumbnail to view an image that summarizes many of Weaver's options. There are also many other options that
        are not displayed on this chart.</p>
    <p ><a href="<?php 
    echo $tdir;
    ?>
/images/ttw-options.png" target="_blank"><img src="<?php 
    echo $tdir;
    ?>
/images/ttw-options-thumb.png" /></a></p>
    <?php 
    weaver_show_bullets();
    weaver_show_versions();
    echo "<hr>\n";
}
function weaver_post_extras()
{
    global $post;
    ?>
<p>
	<?php 
    _e("<strong>Per Post Options</strong>", WEAVER_TRANSADMIN);
    weaver_help_link('help.html#PerPage', __('Help for Per Post Options', WEAVER_TRANSADMIN));
    weaver_html_br();
    _e("These settings let you control display of this individual post.", WEAVER_TRANSADMIN);
    weaver_html_br();
    weaver_page_checkbox('ttw-force-post-full', __('Display as full post where normally excerpted.', WEAVER_TRANSADMIN));
    weaver_page_checkbox('ttw-force-post-excerpt', __('Display post excerpt on main blog pages', WEAVER_TRANSADMIN));
    weaver_html_br();
    weaver_page_checkbox('ttw-show-featured', __('Show Featured Image with post', WEAVER_TRANSADMIN));
    // Can't add an option to hide featured in header per post because we don't know the post at header time.
    weaver_html_br();
    weaver_page_checkbox('ttw-show-post-avatar', __('Show author avatar with post', WEAVER_TRANSADMIN));
    weaver_page_checkbox('ttw-favorite-post', __('Mark as a favorite post (adds star to title)', WEAVER_TRANSADMIN));
    weaver_html_br();
    weaver_page_checkbox('ttw_hide_sidebars', __('Hide Sidebars when this post displayed on Single Post page.', 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));
    }
    if (function_exists('weaver_plus_plugin')) {
        // add option sonly if weaver plus installed
        weaver_plus_per_post_opts();
    }
    ?>
</p>
<p>
	<?php 
    _e('The above settings are not used by the [weaver_show_posts] shortcode.', WEAVER_TRANSADMIN);
    ?>
<br />
	<?php 
    _e('<strong>Per Post Style</strong>', WEAVER_TRANSADMIN);
    weaver_help_link('help.html#perpoststyle', __('Help for Per Post Style', WEAVER_TRANSADMIN));
    ?>
 <br />
	<?php 
    _e("Enter optional per post CSS style rules. <strong>Do not</strong> include the &lt;style> and &lt;/style> tags.\n\t    Include the {}'s. Don't use class names if rules apply to whole post, but do include class names\n\t    (e.g., <em>.entry-title a</em>) for specific elements. Custom styles will not be displayed by the Post Editor.");
    ?>
 <br />
	<textarea name="ttw_per_post_style" rows=2 style="width: 95%"><?php 
    echo get_post_meta($post->ID, "ttw_per_post_style", true);
    ?>
</textarea>
	<br>
	<?php 
    _e('<strong>Per Post Format</strong>', WEAVER_TRANSADMIN);
    weaver_help_link('help.html#gallerypost', __('Help for Per Post Format', WEAVER_TRANSADMIN));
    weaver_html_br();
    _e('Weaver supports two post formats: Standard and Gallery. Click the ? for more info.', WEAVER_TRANSADMIN);
    weaver_html_br();
    _e('<em>Note:</em> when you add settings for the post here, values will be created and displayed in the "Custom Fields" box.', WEAVER_TRANSADMIN);
    ?>
</p>
	<input type='hidden' id='ttw_post_meta' name='ttw_post_meta' value='ttw_post_meta'/>

<?php 
}
function weaver_check_for_2010_weaver()
{
    /* see if old 2010 Weaver settings found, and tell them how to upgrade */
    if (!weaver_getopt('wvr_hide_if_are_oldWeaver_opts') && get_option('ttw_options')) {
        ?>
      <div style="background-color:#FFEEEE; border: 5px ridge red; margin: 0px 60px 0px 20px; padding:15px;">
        <form name="wvr_hide_import_old_form" method="post"
	      onSubmit="return confirm('You can show this notice again with an Administrative Option on the bottom of the Advanced Options tab.');">
	<h4 style="margin-top:0px;">IMPORTANT! Previously existing settings from an older version of 2010 Weaver or Weaver found.</h4>
	    <p>Settings from an older version of Weaver have been found. If you are using this version of Weaver for the first time,
	    you can import all your previous settings, and your site will then look the same as it did before. (You don't have
	    to decide right now -  the previous settings won't go away while you check out this version of Weaver.)
	    <br /> <br />
	     Note: if you have used <em>Appearance->Menus</em> to define Custom Menus, you will have to manually re-activate your menus.
	    Weaver Version 2 has other small incompatibilities with earlier Weaver versions. Click for details:
	    <?php 
        weaver_help_link('help.html#v2incompatibilities', __('Weaver Version 2.0 Differences', WEAVER_TRANSADMIN));
        ?>
	    </p>
	    <span class="submit"><input type="submit" name="hide_import_old_weaver" value="Hide This Notice From Now On" /></span>
	    &nbsp;<small>This will hide this notice box. There's an option at the bottom of the Advanced Options tab to show it again.</small><br />
	    <?php 
        weaver_nonce_field('hide_import_old_weaver');
        ?>
	</form> <!-- ttw_importold_form -->
	<?php 
        if (true) {
            ?>
        <form name="wvr_import_old_form" method="post"
	      onSubmit="return confirm('If you made any changes, you might want to use the Backup option on the Save/Restore tab first. Are you sure you want to overwrite your current settings with the previously existing Weaver settings?');">
	    <span class="submit"><input type="submit" name="import_old_weaver" value="Load Previous Weaver Settings"/></span>
	    &nbsp;<small>Load the previous Weaver settings into the current settings. Those previous settings will not be deleted.</small>
	    <?php 
            weaver_nonce_field('import_old_weaver');
            ?>
	</form> <!-- ttw_importold_form -->
	<?php 
        }
        ?>
	</div>
      <?php 
    }
}
    function weaver_saverestore_admin()
    {
        /* admin tab for saving and restoring theme */
        if (!weaver_f_file_access_available()) {
            echo '<h2>Save/Restore Themes and Backups - DISABLED';
            weaver_help_link('help.html#SaveRestore', 'Help on Save/Restore Themes');
            echo '</h2>';
            echo '<p>Weaver will continue to function with reduced functionality. You will be able to change sub-themes,
	set your own options, and your theme will be displayed with in-line CSS. You won\'t be able to save backups
	of your work, or have page/post styling.</p>' . "\n";
            echo '<div style="display:none">';
            $upload_link = '';
        } else {
            $upload_link = weaver_write_current_theme('current_ttw_subtheme');
            // make a temp copy
        }
        $ttw_theme_dir = weaver_f_uploads_base_dir() . 'weaver-subthemes/';
        ?>

    <h2>Save/Restore Themes and Backups<?php 
        weaver_help_link('help.html#SaveRestore', 'Help on Save/Restore Themes');
        ?>
    </h2>
    <h4>You can save either all your settings in a backup file, or just theme related settings in a theme file:</h4>
    <ol style="font-size: 85%">
     <li>Save <em>all</em> your current settings in a backup file on your site's file system (in <?php 
        echo $ttw_theme_dir;
        ?>
). Automatically names the backup file to include current date and time.
     Survives Weaver Theme updates. -or-</li>
    <li>"Save in My Saved Theme" - Saves <em>all</em> settings in a special "My Saved Theme" backup file. Survives Weaver Theme updates. -or-</li>

    <li>Download current theme related settings to a file on your own computer. -or-</li>
   <li>Save theme related settings to a file on your Site's file system (in <?php 
        echo $ttw_theme_dir;
        ?>
.</li></ol>
<?php 
        if (weaver_allow_multisite()) {
            ?>
    <h4>You can restore a saved theme or backup file by:</h4>
    <ol style="font-size: 85%">
   <li>Picking "My Saved Theme" backup from the standard themes list. -or-</li>
   <li>Restoring a theme/backup that you saved in a file on your site (to current settings). -or-</li>
   <li>Uploading a theme/backup from a file saved on your own computer (to current settings).</li>
    </ol>
<?php 
        }
        if (!weaver_allow_multisite()) {
            ?>
    <h4>You will be unable to restore your saved file directly</h4>
    <p>Since this is a WordPress Multi-site installation, you are restricted from uploading
    a Weaver theme/backup from a saved file. However, the save file capability gives you the ability
    to save your work so you can transfer it to a WordPress site where you have full admin
    capabilities (non-Multi-site installation, for example), or to share with others. Please
    note that you <em>can</em> save your settings in "My Saved Theme" which will allow you
    to explore other predefined themes without losing your work.
    </p>
<?php 
        }
        ?>

    <hr />
    <h3><span style="color:blue;">Use "My Saved Theme"</span></h3>
    <?php 
        weaver_st_show_subtheme_form();
        /* add the picker for subthemes */
        ?>

        <hr />
    <h3><span style="color:blue;">Save Current Settings in Backup File</span></h3>
     <small><strong>Save</strong> <u>all</u> current options (both Main and Advanced) in a <strong>file</strong> on your
     WordPress Site's <em><?php 
        echo $ttw_theme_dir;
        ?>
</em> directory named 'weaver_backup_yyyy-mm-dd-hhmm.wvb'
     where the last part is a GMT based date and time stamp.
<?php 
        if (weaver_allow_multisite()) {
            ?>
    You will be able to restore this theme later using the <strong>Restore Saved Theme/Backup</strong> section.
<?php 
        }
        ?>
    Please be sure you've saved any changes you might have made.</small><br />
     <form enctype="multipart/form-data" name='backup-settings' method='post'>
	<span class='submit'><input name='backup_settings' type='submit' value='Backup All Current Settings'/></span>
    <?php 
        weaver_nonce_field('backup_settings');
        ?>
    </form><br />

    <hr />
    <h3><span style="color:blue;">Save Current Theme to File or Download to your computer</span></h3>
     <small><strong>Save</strong> current <em>theme related</em> settings (non-site specific settings), either by downloading
    to <strong>your computer</strong> or saving a <strong>file</strong> on your WordPress Site's <em><?php 
        echo $ttw_theme_dir;
        ?>
</em> directory.
<?php 
        if (weaver_allow_multisite()) {
            ?>
    You will be able to restore this theme later using the <strong>Restore Saved Theme/Backup</strong> section.
<?php 
        }
        ?>
    Please be sure you've saved any changes you might have made.</small><br /><br />

  <strong>Save as file on this website's server</strong>
 <p>Please provide a name for your file, then click the "Save File" button. <b>Warning:</b> Duplicate names will
    automatically overwrite existing file without notification.</p>
 <form enctype="multipart/form-data" name='savetheme' method='post'><table cellspacing='10' cellpadding='5'>
    <table>
    <td>Name for saved theme: <input type="text" name="savethemename" size="30" />&nbsp;<small>(Please use a meaningful
    name - do not provide file extension. Name might be altered to standard form.)</small></td></tr>
	<tr>
	<td><span class='submit'><input name='filesavetheme' type='submit' value='Save Theme in File'/></span>&nbsp;&nbsp;
	<small><strong>Save Theme in File</strong> - Theme will be saved in <em><?php 
        echo $ttw_theme_dir;
        ?>
</em> directory on your site server.</small></td>
        </tr>
    </table>
    <?php 
        weaver_nonce_field('filesavetheme');
        ?>
 </form><br />

    <strong>Download to your computer</strong>

 <p>Please <em>right</em>-click <a href="<?php 
        echo "{$upload_link}";
        ?>
"><strong>[* here *]</strong></a> to download the saved theme to your computer. </p>

<?php 
        if (weaver_allow_multisite()) {
            ?>
<hr />

    <h3><span style="color:blue;">Restore Saved Theme/Backup from file</span></h3>
    <small>You can restore a previously saved theme (.wvr) or backup (.wvb) file directly from your WordPress
    Site's <em><?php 
            echo $ttw_theme_dir;
            ?>
</em> directory, or from a file saved on your computer.
    Note: after you restore a saved theme, it will be loaded into the current settings. A <em>theme</em> restore will
    replace only settings that are not site-specific. A <em>backup</em> file will replace all current settings.
    If you've uploaded the theme from your computer, you might then want to also save a local copy on your
    website server.</small><br /><br />

    <form enctype="multipart/form-data" name='localrestoretheme' method='post'><table cellspacing='10' cellpadding='5'>
    <table>
    <tr><td><strong>Restore from file saved on this website's server</strong></td></tr>
    <tr>
        <td>Select theme/backup file: <?php 
            weaver_subtheme_list('ttw_restorename');
            ?>
&nbsp;Note: <strong>.wvr</strong> are Theme definitions. <strong>.wvb</strong> are full backups. (Restores to current settings.)</td></tr>
	<tr>
	<td><span class='submit'><input name='restoretheme' type='submit' value='Restore Theme/Backup'/></span>&nbsp;&nbsp;
	<small><strong>Restore</strong> a theme/backup  you've previously saved on your site's <em><?php 
            echo $ttw_theme_dir;
            ?>
</em> directory. Will replace current settings.</small></td>
    </tr>
        <tr><td>&nbsp;</td></tr>
    </table>
    <?php 
            weaver_nonce_field('restoretheme');
            ?>
    </form>
    <form enctype="multipart/form-data" action="<?php 
            echo $_SERVER["REQUEST_URI"];
            ?>
" method="POST">
	<table>
            <tr><td><strong>Upload file saved on your computer</strong></td></tr>
		<tr valign="top">
			<td>Select theme/backup file to upload: <input name="uploaded" type="file" />
			<input type="hidden" name="uploadit" value="yes" />&nbsp;(Restores to current settings.)
                        </td>
		</tr>
                <tr><td><span class='submit'><input name="uploadtheme" type="submit" value="Upload theme/backup" /></span>&nbsp;<small><strong>Upload and Restore</strong> a theme/backup from file on your computer. Will become current settings.</small></td></tr>
                <tr><td>&nbsp;</td></tr>
	</table>
	<?php 
            weaver_nonce_field('uploadtheme');
            ?>
    </form>

    <hr />

    <form enctype="multipart/form-data" name='maintaintheme' method='post'>
    <h3><span style="color:green;">Sub-theme and Backup File Maintenance</span></h3>
        <?php 
            weaver_subtheme_list('selectName');
            ?>

        <span class='submit'><input name='deletetheme' type='submit' value='Delete Sub-Theme/Backup File'/></span>
          <strong>Warning!</strong>This action can't be undone, so be sure you mean to delete a file!
	  <?php 
            weaver_nonce_field('deletetheme');
            ?>
    </form>
<?php 
        }
        if (!weaver_f_file_access_available()) {
            echo '</div> <!-- end of hiding save/restore because not file access available -->';
        }
        ?>
    <hr />
	<form name="ttw_resetweaver_form" method="post" onSubmit="return confirm('Are you sure you want to reset all Weaver settings?');">
	    <h3><span style="color:green;">Clear all Weaver Settings</span></h3>
	    <strong>Click the Clear button to reset all Weaver settings to the default values.</strong><br > <em>Warning: You will lose all current settings.</em> You should use "Backup All Current Settings" to save a copy
	    of your current settings before clearing! <span class="submit"><input type="submit" name="reset_weaver" value="Clear All Weaver Settings"/></span>
	    <?php 
        weaver_nonce_field('reset_weaver');
        ?>
	</form> <!-- ttw_resetweaver_form -->
    <hr />
<?php 
    }
function weaver_adv_wvr_shortcodes()
{
    ?>
		<a name="shortcodes" id="shortcodes"></a>
		<label><span style="color:blue;font-weight:bold; font-size: larger;"><b>Weaver Shortcodes</b></span></label>&nbsp;
		<?php 
    weaver_help_link('help.html#shortcodes', 'Help for Weaver Shortcodes');
    ?>
		<br />The Weaver theme includes some shortcodes to allow you to easily add extra content and features to your regular content. Shortcodes are explained more
		in the help - click the (?). This section just provides a brief summary of Weaver's shortcodes. (Weaver has just one short code. There are
		several more included with the Weaver Plus plugin.)
		<br /><br />
		<strong>[weaver_show_posts] Shortcode</strong><br />
		<br />Displays a filtered selection of posts withing a page. Summary of all parameters, shown with default values. You don't need to supply every
		option when you add the [weaver_show_posts] to your own content.<br />
		<em>[weaver_show_posts cats="" tags="" author="" single_post="" orderby="date" sort="DESC" number="5" show="full" hide_title=""
		hide_top_info="" hide_bottom_info="" show_featured_image="" show_avatar="" show_bio="" excerpt_length="" style=""
		class="" header="" header_style="" header_class="" more_msg=""]</em>
		<br />
		<p><strong style="color:red;">Warning!</strong> This short code should be used only on regular pages and
		the sidebar widget areas. Do not use it in Posts, or in Top widget areas.</p>
		<strong>The Weaver Plus plugin provides several other shortcodes.</strong>
<?php 
}
Exemple #6
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 
}