mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-09-05 21:12:56 +08:00
initial commit
This commit is contained in:
commit
1a9fcace0f
47 changed files with 4113 additions and 0 deletions
2
views/.htaccess
Normal file
2
views/.htaccess
Normal file
|
@ -0,0 +1,2 @@
|
|||
Order deny,allow
|
||||
Deny from all
|
29
views/.svn/all-wcprops
Normal file
29
views/.svn/all-wcprops
Normal file
|
@ -0,0 +1,29 @@
|
|||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 55
|
||||
/!svn/ver/1412768/static-html-output-plugin/trunk/views
|
||||
END
|
||||
.htaccess
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 64
|
||||
/!svn/ver/367882/static-html-output-plugin/trunk/views/.htaccess
|
||||
END
|
||||
message.phtml
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 68
|
||||
/!svn/ver/367882/static-html-output-plugin/trunk/views/message.phtml
|
||||
END
|
||||
options-page.phtml
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 74
|
||||
/!svn/ver/1412768/static-html-output-plugin/trunk/views/options-page.phtml
|
||||
END
|
||||
system-requirements.phtml
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 80
|
||||
/!svn/ver/577469/static-html-output-plugin/trunk/views/system-requirements.phtml
|
||||
END
|
164
views/.svn/entries
Normal file
164
views/.svn/entries
Normal file
|
@ -0,0 +1,164 @@
|
|||
10
|
||||
|
||||
dir
|
||||
1562315
|
||||
https://plugins.svn.wordpress.org/static-html-output-plugin/trunk/views
|
||||
https://plugins.svn.wordpress.org
|
||||
|
||||
|
||||
|
||||
2016-05-09T05:07:16.436414Z
|
||||
1412768
|
||||
leonstafford
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
b8457f37-d9ea-0310-8a92-e5e31aec5664
|
||||
|
||||
message.phtml
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2016-12-27T00:41:42.476155Z
|
||||
f6639d5e522cce1f7391d5a0a4ec2126
|
||||
2011-04-01T12:08:30.440761Z
|
||||
367882
|
||||
leonstafford
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
177
|
||||
|
||||
options-page.phtml
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2016-12-27T00:41:42.476155Z
|
||||
30f3672a9edb47b8cd670333891dd6b7
|
||||
2016-05-09T05:07:16.436414Z
|
||||
1412768
|
||||
leonstafford
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2450
|
||||
|
||||
system-requirements.phtml
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2016-12-27T00:41:42.476155Z
|
||||
65b63f37f5ce131a7d785f5214c3503d
|
||||
2012-07-26T03:26:17.320959Z
|
||||
577469
|
||||
leonstafford
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1325
|
||||
|
||||
.htaccess
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2016-12-27T00:41:42.476155Z
|
||||
b1f3a1d4f59592d580e08bdab2c411a0
|
||||
2011-04-01T12:08:30.440761Z
|
||||
367882
|
||||
leonstafford
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
31
|
||||
|
2
views/.svn/text-base/.htaccess.svn-base
Normal file
2
views/.svn/text-base/.htaccess.svn-base
Normal file
|
@ -0,0 +1,2 @@
|
|||
Order deny,allow
|
||||
Deny from all
|
10
views/.svn/text-base/message.phtml.svn-base
Normal file
10
views/.svn/text-base/message.phtml.svn-base
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
/**
|
||||
* @package WP Static HTML Output
|
||||
*
|
||||
* Copyright (c) 2011 Leon Stafford
|
||||
*/
|
||||
?>
|
||||
<div class="updated fade">
|
||||
<p><strong><?php echo $this->message ?></strong></p>
|
||||
</div>
|
65
views/.svn/text-base/options-page.phtml.svn-base
Normal file
65
views/.svn/text-base/options-page.phtml.svn-base
Normal file
|
@ -0,0 +1,65 @@
|
|||
<?php
|
||||
/**
|
||||
* @package WP Static HTML Output
|
||||
*
|
||||
* Copyright (c) 2011 Leon Stafford
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
|
||||
<h2><?= __('WP Static HTML Output Plugin', 'static-html-output-plugin');?></h2>
|
||||
|
||||
<?php if (is_array($this->exportLog) && count($this->exportLog)): ?>
|
||||
<h3>Export Log</h3>
|
||||
<pre class="wpsho-export-log"><?php echo implode("\n", array_keys($this->exportLog)) ?></pre>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="postbox-container">
|
||||
<div class="metabox-holder">
|
||||
<div class="meta-box-sortables ui-sortable">
|
||||
|
||||
<form id="general-options" method="post" action="">
|
||||
|
||||
<div class="postbox">
|
||||
<div class="handlediv" title="Click to toggle"><br /></div>
|
||||
|
||||
<h3 class="hndle"><span><?= __('Export Options', 'static-html-output-plugin');?></span></h3>
|
||||
|
||||
<div class="inside">
|
||||
<p>
|
||||
<label for="baseUrl"><?= __('Base Url', 'static-html-output-plugin');?>:</label>
|
||||
<input type="text" id="baseUrl" name="baseUrl" value="<?php echo esc_attr($this->baseUrl) ?>" size="50" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="additionalUrls"><?= __('Additional Urls', 'static-html-output-plugin');?>:</label>
|
||||
<textarea class="widefat" name="additionalUrls" id="additionalUrls" rows="5" cols="10"><?php echo esc_html($this->additionalUrls) ?></textarea>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input name="generateZip" id="generateZip" value="1" type="checkbox" <?php if ($this->generateZip == 1) echo "checked"; ?> />
|
||||
<label for="generateZip"><?= __('Generate Zip archive of whole site', 'static-html-output-plugin');?></label>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input name="retainStaticFiles" id="retainStaticFiles" value="1" type="checkbox" <?php if ($this->retainStaticFiles == 1) echo "checked"; ?> />
|
||||
<label for="retainStaticFiles"><?= __('Retain generated static files on server', 'static-html-output-plugin');?></label>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="submit">
|
||||
<?php wp_nonce_field($this->onceAction) ?>
|
||||
<input type="hidden" name="action" value="generate" />
|
||||
<input class="button-primary" type="submit" name="submit" value="Generate" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
52
views/.svn/text-base/system-requirements.phtml.svn-base
Normal file
52
views/.svn/text-base/system-requirements.phtml.svn-base
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
/**
|
||||
* @package WP Static HTML Output
|
||||
*
|
||||
* Copyright (c) 2011 Leon Stafford
|
||||
*/
|
||||
|
||||
$fail = array();
|
||||
$pass = array();
|
||||
|
||||
if (!$this->supportsZipArchives):
|
||||
$fail[] = 'You are missing the <strong>zip</strong> extension';
|
||||
else:
|
||||
$pass[] = 'You have the <strong>zip</strong> extension';
|
||||
endif;
|
||||
|
||||
if (!$this->uploadsFolderWritable):
|
||||
$fail[] = 'Your uploads folder is not writable.';
|
||||
else:
|
||||
$pass[] = 'Your uploads folder is writable';
|
||||
endif;
|
||||
|
||||
if (!$this->permalinksStructureDefined):
|
||||
$fail[] = 'Your permalinks structure is undefined. Please set your permalinks structure here: <a href="'.admin_url( 'options-permalink.php' ).'">Permalink Settings</a>';
|
||||
else:
|
||||
$pass[] = 'Your permalinks structure is ok.';
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div class="wrap wpsho-report">
|
||||
|
||||
<h2>System Requirements Report</h2>
|
||||
|
||||
<p><strong>Your server does not meet the following requirements in order to use this plugin.</strong></p>
|
||||
|
||||
<p>
|
||||
The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for this plugin:
|
||||
<ul>
|
||||
<li><?php echo implode('</li><li>', $fail) ?></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<?php if (count($pass)): ?>
|
||||
<p>
|
||||
The following requirements were successfully met:
|
||||
<ul>
|
||||
<li><?php echo implode('</li><li>', $pass) ?></li>
|
||||
</ul>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
10
views/message.phtml
Normal file
10
views/message.phtml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
/**
|
||||
* @package WP Static HTML Output
|
||||
*
|
||||
* Copyright (c) 2011 Leon Stafford
|
||||
*/
|
||||
?>
|
||||
<div class="updated fade">
|
||||
<p><strong><?php echo $this->message ?></strong></p>
|
||||
</div>
|
65
views/options-page.phtml
Normal file
65
views/options-page.phtml
Normal file
|
@ -0,0 +1,65 @@
|
|||
<?php
|
||||
/**
|
||||
* @package WP Static HTML Output
|
||||
*
|
||||
* Copyright (c) 2011 Leon Stafford
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
|
||||
<h2><?= __('WP Static HTML Output Plugin', 'static-html-output-plugin');?></h2>
|
||||
|
||||
<?php if (is_array($this->exportLog) && count($this->exportLog)): ?>
|
||||
<h3>Export Log</h3>
|
||||
<pre class="wpsho-export-log"><?php echo implode("\n", array_keys($this->exportLog)) ?></pre>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="postbox-container">
|
||||
<div class="metabox-holder">
|
||||
<div class="meta-box-sortables ui-sortable">
|
||||
|
||||
<form id="general-options" method="post" action="">
|
||||
|
||||
<div class="postbox">
|
||||
<div class="handlediv" title="Click to toggle"><br /></div>
|
||||
|
||||
<h3 class="hndle"><span><?= __('Export Options', 'static-html-output-plugin');?></span></h3>
|
||||
|
||||
<div class="inside">
|
||||
<p>
|
||||
<label for="baseUrl"><?= __('Base Url', 'static-html-output-plugin');?>:</label>
|
||||
<input type="text" id="baseUrl" name="baseUrl" value="<?php echo esc_attr($this->baseUrl) ?>" size="50" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="additionalUrls"><?= __('Additional Urls', 'static-html-output-plugin');?>:</label>
|
||||
<textarea class="widefat" name="additionalUrls" id="additionalUrls" rows="5" cols="10"><?php echo esc_html($this->additionalUrls) ?></textarea>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input name="generateZip" id="generateZip" value="1" type="checkbox" <?php if ($this->generateZip == 1) echo "checked"; ?> />
|
||||
<label for="generateZip"><?= __('Generate Zip archive of whole site', 'static-html-output-plugin');?></label>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input name="retainStaticFiles" id="retainStaticFiles" value="1" type="checkbox" <?php if ($this->retainStaticFiles == 1) echo "checked"; ?> />
|
||||
<label for="retainStaticFiles"><?= __('Retain generated static files on server', 'static-html-output-plugin');?></label>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="submit">
|
||||
<?php wp_nonce_field($this->onceAction) ?>
|
||||
<input type="hidden" name="action" value="generate" />
|
||||
<input class="button-primary" type="submit" name="submit" value="Generate" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
52
views/system-requirements.phtml
Normal file
52
views/system-requirements.phtml
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
/**
|
||||
* @package WP Static HTML Output
|
||||
*
|
||||
* Copyright (c) 2011 Leon Stafford
|
||||
*/
|
||||
|
||||
$fail = array();
|
||||
$pass = array();
|
||||
|
||||
if (!$this->supportsZipArchives):
|
||||
$fail[] = 'You are missing the <strong>zip</strong> extension';
|
||||
else:
|
||||
$pass[] = 'You have the <strong>zip</strong> extension';
|
||||
endif;
|
||||
|
||||
if (!$this->uploadsFolderWritable):
|
||||
$fail[] = 'Your uploads folder is not writable.';
|
||||
else:
|
||||
$pass[] = 'Your uploads folder is writable';
|
||||
endif;
|
||||
|
||||
if (!$this->permalinksStructureDefined):
|
||||
$fail[] = 'Your permalinks structure is undefined. Please set your permalinks structure here: <a href="'.admin_url( 'options-permalink.php' ).'">Permalink Settings</a>';
|
||||
else:
|
||||
$pass[] = 'Your permalinks structure is ok.';
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div class="wrap wpsho-report">
|
||||
|
||||
<h2>System Requirements Report</h2>
|
||||
|
||||
<p><strong>Your server does not meet the following requirements in order to use this plugin.</strong></p>
|
||||
|
||||
<p>
|
||||
The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for this plugin:
|
||||
<ul>
|
||||
<li><?php echo implode('</li><li>', $fail) ?></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<?php if (count($pass)): ?>
|
||||
<p>
|
||||
The following requirements were successfully met:
|
||||
<ul>
|
||||
<li><?php echo implode('</li><li>', $pass) ?></li>
|
||||
</ul>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue