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
82
83
84
85
86
87
88
|
<div class="wrap" id="panels-settings-page"> <div class="settings-banner">
<span class="icon"> <img src="<?php echo siteorigin_panels_url( 'settings/images/icon-layer.png' ) ?>" class="layer-3" /> <img src="<?php echo siteorigin_panels_url( 'settings/images/icon-layer.png' ) ?>" class="layer-2" /> <img src="<?php echo siteorigin_panels_url( 'settings/images/icon-layer.png' ) ?>" class="layer-1" /> </span> <h1><?php _e('SiteOrigin Page Builder', 'siteorigin-panels') ?></h1>
<div id="panels-settings-search"> <input type="search" placeholder="<?php esc_attr_e('Search Settings', 'siteorigin-panels') ?>" />
<ul class="results"> </ul> </div> </div>
<ul class="settings-nav"> <?php foreach($settings_fields as $section_id => $section) { ?><li><a href="#<?php echo esc_attr( $section_id ) ?>"><?php echo esc_html( $section['title'] ) ?></a></li><?php } ?> <li><a href="#welcome"><?php esc_html_e( 'Welcome', 'siteorigin-panels' ) ?></a></li> </ul>
<?php if( $this->settings_saved ) : ?> <div id="setting-error-settings_updated" class="updated settings-error"> <p><strong><?php _e('Settings Saved', 'siteorigin-panels') ?></strong></p> </div> <?php endif; ?>
<form action="<?php echo admin_url('options-general.php?page=siteorigin_panels') ?>" method="post" >
<div id="panels-settings-sections"> <?php foreach($settings_fields as $section_id => $section) { ?> <div id="panels-settings-section-<?php echo esc_attr($section_id) ?>" class="panels-settings-section" data-section="<?php echo esc_attr($section_id) ?>"> <table class="form-table"> <tbody> <?php foreach( $section['fields'] as $field_id => $field ) : ?> <tr class="panels-setting"> <th scope="row"><label><?php echo esc_html($field['label']) ?></label></th> <td> <?php $this->display_field( $field_id, $field ); if( !empty($field['description']) ) { ?> <small class="description" data-keywords="<?php if(!empty($field['keywords'])) echo esc_attr($field['keywords']) ?>"> <?php echo wp_kses( $field['description'], array( 'a' => array( 'href' => array(), 'title' => array() ), 'em' => array(), 'strong' => array(), ) ); ?> </small> <?php } ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php } ?>
<div id="panels-settings-section-welcome" class="panels-settings-section" data-section="welcome"> <?php include( plugin_dir_path(__FILE__) . 'welcome.php' ) ?> </div> </div>
<div class="submit"> <?php wp_nonce_field( 'panels-settings' ) ?> <input type="submit" value="<?php _e('Save Settings', 'siteorigin-panels') ?>" class="button-primary" /> </div> </form>
</div>
|