forked from elementor/static-html-output
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub_settings_block.phtml
58 lines (55 loc) · 2.2 KB
/
github_settings_block.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<div class="github_settings_block" style="display:none;">
<table class="form-table">
<tbody>
<tr>
<th scope="row">
<label for="baseUrl-github">Destination URL</label>
</th>
<td>
<?php $tpl->displayTextfield($this, 'baseUrl-github', 'http://mystaticsite.com', '', ''); ?><br>
<p><i>Set this to the URL you intend to host your static exported site on, ie http://mystaticsite.com. Do not set this to the same URL as the WordPress site you're currently using (the address in your browser above). This plugin will rewrite all URLs in the exported static html from your current WordPress URL to what you set here. Supports http and https URI schemes.</i></p>
</td>
</tr>
<tr>
<th scope="row">
<label for="ghToken">Personl Access Token</label>
</th>
<td>
<?php $tpl->displayTextfield($this, 'ghToken', 'GitHub Personal Access Token', '<a href="https://github.com/settings/tokens/new" target="_blank">How do I get this?</a>', 'password'); ?>
</td>
</tr>
<tr>
<th scope="row">
<label for="ghRepo">Account & Repository Name</label>
</th>
<td>
<?php $tpl->displayTextfield($this, 'ghRepo', 'Account / Repository Name', 'ie, leonstafford/statichtmloutput'); ?><br>
</td>
</tr>
<tr>
<th scope="row">
<label for="ghBranch">Branch</label>
</th>
<td>
<?php $tpl->displayTextfield($this, 'ghBranch', 'Branch', 'usually \'master\' or \'gh-pages\''); ?>
</td>
</tr>
<tr>
<th scope="row">
<label for="ghCommitMessage">Commit message</label>
</th>
<td>
<?php $tpl->displayTextfield($this, 'ghCommitMessage', 'StaticHTMLOutput %ACTION% %FILENAME%', 'Anything you like, with special vars %ACTION% and %FILENAME% available'); ?>
</td>
</tr>
<tr>
<th scope="row">
<label for="gh_test">Test GitHub Settings</label>
</th>
<td>
<button id="github-test-button" type="button" class="btn-primary button">Test GitHub Settings</button>
</td>
</tr>
</tbody>
</table>
</div>