PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.1.4
SiteOrigin CSS v1.1.4
1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.10 1.5.11 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0
so-css / tpl / page.php
so-css / tpl Last commit date
inspector-templates.php 11 years ago js-templates.php 9 years ago page.php 9 years ago
page.php
135 lines
1 <?php
2 /**
3 * @var $custom_css_revisions array Saved revisions for the current theme.
4 */
5
6 $snippets = SiteOrigin_CSS::single()->get_snippets();
7 $user = wp_get_current_user();
8 ?>
9
10 <div class="wrap" id="siteorigin-custom-css">
11 <h2>
12 <img src="<?php echo plugin_dir_url(__FILE__) . '../css/images/icon.png' ?>" class="icon" />
13 <?php _e( 'SiteOrigin CSS', 'so-css' ) ?>
14 </h2>
15
16
17 <?php if( isset($_POST['siteorigin_custom_css_save']) ) : ?>
18 <div class="updated settings-error"><p><?php _e('Site design updated.', 'so-css') ?></p></div>
19 <?php endif; ?>
20
21 <?php if(!empty($revision)) : ?>
22 <div class="updated settings-error">
23 <p><?php _e('Viewing a revision. Save CSS to keep using this revision.', 'so-css') ?></p>
24 </div>
25 <?php endif; ?>
26
27 <div id="poststuff">
28 <div id="so-custom-css-info">
29
30 <?php if( !get_user_meta( $user->ID, 'socss_hide_gs' ) ) : ?>
31 <div class="postbox" id="so-custom-css-getting-started">
32 <h3 class="hndle">
33 <span><?php _e('Getting Started Video', 'so-css') ?></span>
34 <a href="<?php echo wp_nonce_url( admin_url('admin-ajax.php?action=socss_hide_getting_started'), 'hide' ) ?>" class="hide"><?php _e('Dismiss', 'so-css') ?></a>
35 </h3>
36 <div class="inside">
37 <a href="https://siteorigin.com/css/getting-started/" target="_blank"><img src="<?php echo plugin_dir_url(__FILE__).'../css/images/video.jpg' ?>" /></a>
38 </div>
39 </div>
40 <?php endif; ?>
41
42 <div class="postbox" id="so-custom-css-revisions">
43 <h3 class="hndle"><span><?php _e('CSS Revisions', 'so-css') ?></span></h3>
44 <div class="inside">
45 <ol data-confirm="<?php esc_attr_e('Are you sure you want to load this revision?', 'so-css') ?>">
46 <?php
47 if ( is_array( $custom_css_revisions ) ) {
48 $is_current = true;
49 foreach ( $custom_css_revisions as $time => $css ) {
50 ?>
51 <li>
52 <?php if ( $is_current ) : ?>
53 <?php echo date('j F Y @ H:i:s', $time + get_option('gmt_offset') * 60 * 60) ?> (Current)
54 <?php $is_current = false; ?>
55 <?php else : ?>
56 <a href="<?php echo esc_url( add_query_arg( array( 'theme' => $theme, 'time' => $time ) ) ) ?>" class="load-css-revision"><?php echo date('j F Y @ H:i:s', $time + get_option('gmt_offset') * 60 * 60) ?></a>
57 (<?php printf(__('%d chars', 'so-css'), strlen($css)) ?>)
58 <?php endif; ?>
59 </li>
60 <?php
61 }
62 }
63 ?>
64 </ol>
65 </div>
66 </div>
67
68 </div>
69
70 <form action="<?php echo esc_url( admin_url('themes.php?page=so_custom_css') ) ?>" method="POST" id="so-custom-css-form">
71
72 <div class="custom-css-toolbar">
73 <div class="toolbar-function-buttons">
74 <div class="toolbar-functions-dropdown">
75 <span class="dashicons dashicons-menu"></span>
76 </div>
77 <ul class="toolbar-buttons">
78 </ul>
79 </div>
80
81 <div class="toolbar-action-buttons">
82
83 <a href="#visual" class="editor-visual socss-button">
84 <span class="fa fa-eye"></span>
85 </a>
86
87 <a href="#expand" class="editor-expand socss-button">
88 <span class="fa fa-expand"></span>
89 <span class="fa fa-compress"></span>
90 </a>
91 </div>
92 </div>
93
94 <div class="custom-css-container">
95 <textarea name="custom_css" id="custom-css-textarea" class="css-editor" rows="<?php echo max( 10, substr_count( $custom_css, "\n" )+1 ) ?>"><?php echo esc_textarea( $custom_css ) ?></textarea>
96 <?php wp_nonce_field( 'custom_css', '_sononce' ) ?>
97 </div>
98 <p class="description"><?php SiteOrigin_CSS::editor_description() ?></p>
99
100 <p class="submit">
101 <input type="submit" name="siteorigin_custom_css_save" class="button-primary" value="<?php esc_attr_e( 'Save CSS', 'so-css' ); ?>" />
102 </p>
103
104 <div class="custom-css-preview">
105
106 </div>
107
108 <div class="decoration"></div>
109
110 </form>
111
112 <div id="so-custom-css-properties">
113
114 <div class="toolbar">
115 <select>
116 </select>
117 <div class="close socss-button">
118 <span class="fa fa-check"></span>
119 </div>
120 </div>
121
122 <ul class="section-tabs">
123 </ul>
124
125 <div class="sections">
126 </div>
127
128 </div>
129
130 </div>
131
132 <div class="clear"></div>
133
134 </div>
135