PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.5.2
SiteOrigin CSS v1.5.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 4 years ago js-templates.php 4 years ago page.php 4 years ago
page.php
162 lines
1 <?php
2 /**
3 * @var $page_title string The title of the page. Includes the post title if a post was selected.
4 * @var $custom_css string The custom CSS string to be edited.
5 * @var $current_revision int If the CSS to be edited is a revision, this will contain the timestamp of the revision.
6 * @var $custom_css_revisions array Saved revisions for the current theme.
7 * @var $editor_description string Description to provide context for the CSS being edited.
8 * @var $socss_post_id int ID of the post for which we're editing CSS.
9 * @var $save_button_label string Label of the save button depending on whether a post or revision has been selected.
10 * @var $form_save_url string URL to use when saving the CSS.
11 */
12
13 $snippets = SiteOrigin_CSS::single()->get_snippets();
14 $user = wp_get_current_user();
15 if ( ! empty( $current_revision ) ) {
16 $revision_date = date( 'j F Y @ H:i:s', $current_revision + get_option( 'gmt_offset' ) * 60 * 60 );
17 }
18 ?>
19
20 <div class="wrap" id="siteorigin-custom-css">
21 <h2>
22 <img src="<?php echo plugin_dir_url(__FILE__) . '../css/images/icon.png' ?>" class="icon" />
23 <?php echo esc_html( $page_title ) ?>
24 </h2>
25
26
27 <?php if( isset($_POST['siteorigin_custom_css']) ) : ?>
28 <div class="notice notice-success"><p><?php esc_html_e( 'Site design updated.', 'so-css' ); ?></p></div>
29 <?php endif; ?>
30
31 <?php if ( ! empty( $current_revision ) ) : ?>
32 <div class="notice notice-warning">
33 <p><?php printf( esc_html__( 'Editing revision dated %s. Click %sRevert to this revision%s to keep using it.', 'so-css' ), $revision_date, '<em>', '</em>' ); ?></p>
34 </div>
35 <?php endif; ?>
36
37 <div id="poststuff">
38 <form action="<?php echo esc_url( $form_save_url ) ?>" method="POST">
39
40 <div id="so-custom-css-info">
41 <p class="so-custom-css-submit">
42 <input type="submit" name="siteorigin_custom_css_save" class="button-primary" value="<?php esc_attr_e( $save_button_label ); ?>" />
43 </p>
44
45 <?php if ( $this->display_teaser() ) : ?>
46 <div class="postbox">
47 <h3 class="hndle"><span><?php esc_html_e( 'Get The Full Experience', 'so-css' ); ?></span></h3>
48 <div class="inside">
49 <?php printf( wp_kses_post( __( '%sSiteOrigin Premium%s adds a <strong>Google Web Font</strong> selector to SiteOrigin CSS so you can easily change any font.', 'so-css' ) ), '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/web-font-selector" target="_blank">', '</a>' ); ?>
50 </div>
51 </div>
52 <?php endif; ?>
53
54 <?php if ( ! get_user_meta( $user->ID, 'socss_hide_gs' ) ) : ?>
55 <div class="postbox" id="so-custom-css-getting-started">
56 <h3 class="hndle">
57 <span><?php esc_html_e( 'Getting Started Video', 'so-css' ); ?></span>
58 <a href="<?php echo wp_nonce_url( admin_url('admin-ajax.php?action=socss_hide_getting_started'), 'hide' ) ?>" class="hide"><?php esc_html_e( 'Dismiss', 'so-css' ); ?></a>
59 </h3>
60 <div class="inside">
61 <a href="https://siteorigin.com/css/getting-started/" target="_blank"><img src="<?php echo plugin_dir_url(__FILE__).'../css/images/video.jpg' ?>" /></a>
62 </div>
63 </div>
64 <?php endif; ?>
65
66 <div class="postbox" id="so-custom-css-revisions">
67 <h3 class="hndle"><span><?php esc_html_e( 'CSS Revisions', 'so-css' ); ?></span></h3>
68 <div class="inside">
69 <ol class="custom-revisions-list" data-confirm="<?php esc_attr_e( 'Are you sure you want to load this revision?', 'so-css' ); ?>">
70 <?php
71 $this->custom_css_revisions_list( $theme, $socss_post_id, $current_revision );
72 ?>
73 </ol>
74 </div>
75 </div>
76
77 <div class="postbox" id="so-custom-css-editor-theme">
78 <h3 class="hndle"><span><?php esc_html_e( 'Editor Theme', 'so-css' ); ?></span></h3>
79 <div class="inside">
80 <select name="so_css_editor_theme" id="so_css_editor_theme">
81 <option value="neat" <?php selected( 'neat', $editor_theme ); ?>><?php esc_attr_e( 'Light', 'so-css' ); ?></option>
82 <option value="ambiance" <?php selected( 'ambiance', $editor_theme ); ?>><?php esc_attr_e( 'Dark', 'so-css' ); ?></option>
83 </select>
84 </div>
85 </div>
86
87 <div class="color-theme">
88 </div>
89
90 </div>
91
92 <div id="so-custom-css-form">
93
94 <div class="custom-css-toolbar">
95 <div class="toolbar-function-buttons">
96 <div class="toolbar-functions-dropdown">
97 <span class="dashicons dashicons-menu"></span>
98 </div>
99
100 <ul class="toolbar-buttons">
101 </ul>
102 </div>
103
104 <div class="toolbar-action-buttons">
105 <a href="#expand" class="editor-expand socss-button">
106 <span class="so-css-icon so-css-icon-expand" title="<?php esc_attr_e( 'Open Expanded Mode', 'so-css' ); ?>"></span>
107 <span class="so-css-icon so-css-icon-compress" title="<?php esc_attr_e( 'Close Expanded Mode', 'so-css' ); ?>"></span>
108 </a>
109
110 <a href="#visual" class="editor-visual socss-button" title="<?php esc_attr_e( 'Open Visual Mode', 'so-css' ); ?>">
111 <span class="so-css-icon so-css-icon-eye"></span>
112 </a>
113
114 <span class="save socss-button button-primary" title="<?php esc_attr_e( 'Save CSS', 'so-css' ); ?>">
115 <span class="so-css-icon so-css-icon-save"></span>
116 </span>
117 </div>
118 </div>
119
120 <div class="custom-css-container">
121 <textarea
122 name="siteorigin_custom_css" id="custom-css-textarea" data-theme="<?php echo esc_attr( $editor_theme ) ?>" class="css-editor" rows="<?php echo max( 10, substr_count( $custom_css, "\n" ) + 1 ) ?>"><?php echo esc_textarea( $custom_css ) ?></textarea>
123 <?php wp_nonce_field( 'custom_css', '_sononce' ) ?>
124 </div>
125 <div class="so-css-footer">
126 <p class="description">
127 <?php esc_html_e( $editor_description ); ?>
128 </p>
129 </div>
130
131 <div class="custom-css-preview"></div>
132
133 <div class="decoration"></div>
134
135 </div>
136
137 <div id="so-custom-css-properties">
138
139 <div class="toolbar">
140 <select></select>
141 <div class="close socss-button" title="<?php esc_attr_e( 'Close', 'so-css' ); ?>">
142 <span class="so-css-icon so-css-icon-check"></span>
143 </div>
144 <div class="save socss-button button-primary" title="<?php esc_attr_e( 'Save CSS', 'so-css' ); ?>">
145 <span class="so-css-icon so-css-icon-save"></span>
146 </div>
147 </div>
148
149 <ul class="section-tabs"></ul>
150
151 <div class="sections"></div>
152
153 </div>
154
155 </form>
156
157 </div>
158
159 <div class="clear"></div>
160
161 </div>
162