PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.0.8
SiteOrigin CSS v1.0.8
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 11 years ago page.php 9 years ago
page.php
138 lines
1 <?php
2 /**
3 * @var $custom_css_revisions array Saved revisions for the current theme.
4 */
5 $snippets = SiteOrigin_CSS::single()->get_snippets(); ?>
6
7 <div class="wrap" id="siteorigin-custom-css">
8 <h2>
9 <img src="<?php echo plugin_dir_url(__FILE__) . '../css/images/icon.png' ?>" class="icon" />
10 <?php _e( 'SiteOrigin CSS', 'so-css' ) ?>
11 </h2>
12
13
14 <?php if( isset($_POST['siteorigin_custom_css_save']) ) : ?>
15 <div class="updated settings-error"><p><?php _e('Site design updated.', 'so-css') ?></p></div>
16 <?php endif; ?>
17
18 <?php if(!empty($revision)) : ?>
19 <div class="updated settings-error">
20 <p><?php _e('Viewing a revision. Save CSS to keep using this revision.', 'so-css') ?></p>
21 </div>
22 <?php endif; ?>
23
24
25 <div id="poststuff">
26 <div id="so-custom-css-info">
27
28 <?php
29 $user = wp_get_current_user();
30 if( !get_user_meta( $user->ID, 'socss_hide_gs' ) ) {
31 ?>
32 <div class="postbox" id="so-custom-css-getting-started">
33 <h3 class="hndle">
34 <span><?php _e('Getting Started Video', 'so-css') ?></span>
35 <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>
36 </h3>
37 <div class="inside">
38 <a href="https://siteorigin.com/css/getting-started/" target="_blank"><img src="<?php echo plugin_dir_url(__FILE__).'../css/images/video.jpg' ?>" /></a>
39 </div>
40 </div>
41 <?php
42 }
43 ?>
44
45 <div class="postbox" id="so-custom-css-revisions">
46 <h3 class="hndle"><span><?php _e('CSS Revisions', 'so-css') ?></span></h3>
47 <div class="inside">
48 <ol data-confirm="<?php esc_attr_e('Are you sure you want to load this revision?', 'so-css') ?>">
49 <?php
50 if ( is_array( $custom_css_revisions ) ) {
51 $is_current = true;
52 foreach ( $custom_css_revisions as $time => $css ) {
53 ?>
54 <li>
55 <?php if ( $is_current ) : ?>
56 <?php echo date('j F Y @ H:i:s', $time + get_option('gmt_offset') * 60 * 60) ?> (Current)
57 <?php $is_current = false; ?>
58 <?php else : ?>
59 <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>
60 (<?php printf(__('%d chars', 'so-css'), strlen($css)) ?>)
61 <?php endif; ?>
62 </li>
63 <?php
64 }
65 }
66 ?>
67 </ol>
68 </div>
69 </div>
70
71 </div>
72
73 <form action="<?php echo esc_url( admin_url('themes.php?page=so_custom_css') ) ?>" method="POST" id="so-custom-css-form">
74
75 <div class="custom-css-toolbar">
76 <div class="toolbar-function-buttons">
77 <div class="toolbar-functions-dropdown">
78 <span class="dashicons dashicons-menu"></span>
79 </div>
80 <ul class="toolbar-buttons">
81 </ul>
82 </div>
83
84 <div class="toolbar-action-buttons">
85
86 <a href="#visual" class="editor-visual socss-button">
87 <span class="fa fa-eye"></span>
88 </a>
89
90 <a href="#expand" class="editor-expand socss-button">
91 <span class="fa fa-expand"></span>
92 <span class="fa fa-compress"></span>
93 </a>
94 </div>
95 </div>
96
97 <div class="custom-css-container">
98 <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>
99 <?php wp_nonce_field( 'custom_css', '_sononce' ) ?>
100 </div>
101 <p class="description"><?php SiteOrigin_CSS::editor_description() ?></p>
102
103 <p class="submit">
104 <input type="submit" name="siteorigin_custom_css_save" class="button-primary" value="<?php esc_attr_e( 'Save CSS', 'so-css' ); ?>" />
105 </p>
106
107 <div class="custom-css-preview">
108
109 </div>
110
111 <div class="decoration"></div>
112
113 </form>
114
115 <div id="so-custom-css-properties">
116
117 <div class="toolbar">
118 <select>
119 </select>
120 <div class="close socss-button">
121 <span class="fa fa-check"></span>
122 </div>
123 </div>
124
125 <ul class="section-tabs">
126 </ul>
127
128 <div class="sections">
129 </div>
130
131 </div>
132
133 </div>
134
135 <div class="clear"></div>
136
137 </div>
138