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