-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoption_page.php
More file actions
81 lines (81 loc) · 2.68 KB
/
option_page.php
File metadata and controls
81 lines (81 loc) · 2.68 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* @var $this WPEC_Theme_Customizer
*/
?>
<div class="wrap">
<div id="icon-options-general" class="icon32">
<br>
</div><h2>WPEC Theme Customizer</h2>
<div id="metabox-holder" class="metabox-holder">
<div id="wpec-taxes-rates-container" class="postbox">
<h3 class="hndle" style="cursor: default">File Migration</h3>
<div class="inside">
<p>
The WPEC Theme Customizer alters options in the
<code>
WPEC Theme Options API
</code>
.
Your theme must listen for these option for the customizer to have an affect. The customizer
includes a series of standard WPEC template files that have been modified to include these
options. You will need to move these templates into <code><?php bloginfo('template_url');?>/
wp-e-commerce</code>
</p>
<table>
<tr>
<td>
<p>
<?php /**
* Form submits POST variable 'wp_tc_checkboxes' as an array of checked values
*/
?>
<form name='wpec_tc_template_form' id='wpec_tc_template_form' action='options-general.php?page=wpec_theme_customizer_settings' method='post'>
<b>Template Files</b>
<?php $this -> list_templates();?>
<a class='button check-modifier-button' id='check-all'>Select All</a>
<a class='button check-modifier-button' id='uncheck-all'>Deselect All</a>
<input type='submit' class='button' value='Migrate Template Files to Theme' />
</form>
<img src="http://jackmahoney.co.nz/_dollars/wp-admin/images/wpspin_light.gif" class="ajax-feedback" title="" alt="">
</p></td>
<td>
<p>
<b>Current Theme Setup</b>
<br/>
<?php $this -> scan_theme_dir();?>
</p></td>
</tr>
</table>
</div>
</div>
<div id="metabox-holder" class="metabox-holder">
<div id="wpec-taxes-rates-container" class="postbox">
<h3 class="hndle" style="cursor: default">Import / Export</h3>
<div class="inside">
<p>
Import your options and their values for the current controls
</p>
<p>
<?php
$options = get_option('wpec_tc_active_controls_option_list');
if (!$options) :
echo 'No controls initialized';
else :
echo "
<form action='' method='get'>
<input name='page' value='wpec_theme_customizer_settings' hidden='hidden'/>
<input type='submit' name='export' class='button' value='Export' />
</form>";
echo '<form enctype="multipart/form-data" action="" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
<input name="uploaded_wpectc_file" type="file" />
<input class="button" type="submit" value="Upload File" />
</form> ';
endif;
?>
</p>
</div>
</div>
</div>
</div>