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