PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.4.3
SiteOrigin CSS v1.4.3
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
149 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 <div id="so-custom-css-info">
39 <p class="so-custom-css-submit">
40 <input type="submit" name="siteorigin_custom_css_save" class="button-primary" value="<?php esc_attr_e( $save_button_label ); ?>" />
41 </p>
42
43 <?php if( $this->display_teaser() ) : ?>
44 <div class="postbox">
45 <h3 class="hndle"><span><?php esc_html_e( 'Get The Full Experience', 'so-css' ); ?></span></h3>
46 <div class="inside">
47 <?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>' ); ?>
48 </div>
49 </div>
50 <?php endif; ?>
51
52 <?php if( !get_user_meta( $user->ID, 'socss_hide_gs' ) ) : ?>
53 <div class="postbox" id="so-custom-css-getting-started">
54 <h3 class="hndle">
55 <span><?php esc_html_e( 'Getting Started Video', 'so-css' ); ?></span>
56 <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>
57 </h3>
58 <div class="inside">
59 <a href="https://siteorigin.com/css/getting-started/" target="_blank"><img src="<?php echo plugin_dir_url(__FILE__).'../css/images/video.jpg' ?>" /></a>
60 </div>
61 </div>
62 <?php endif; ?>
63
64 <div class="postbox" id="so-custom-css-revisions">
65 <h3 class="hndle"><span><?php esc_html_e( 'CSS Revisions', 'so-css' ); ?></span></h3>
66 <div class="inside">
67 <ol class="custom-revisions-list" data-confirm="<?php esc_attr_e('Are you sure you want to load this revision?', 'so-css') ?>">
68 <?php
69 $this->custom_css_revisions_list( $theme, $socss_post_id, $current_revision );
70 ?>
71 </ol>
72 </div>
73 </div>
74
75 </div>
76
77 <form action="<?php echo esc_url( $form_save_url ) ?>" method="POST" id="so-custom-css-form">
78
79 <div class="custom-css-toolbar">
80 <div class="toolbar-function-buttons">
81 <div class="toolbar-functions-dropdown">
82 <span class="dashicons dashicons-menu"></span>
83 </div>
84
85 <ul class="toolbar-buttons">
86 </ul>
87 </div>
88
89 <div class="toolbar-action-buttons">
90 <a href="#expand" class="editor-expand socss-button">
91 <span class="so-css-icon so-css-icon-expand" title="<?php esc_attr_e( 'Open Expanded Mode', 'so-css' ); ?>"></span>
92 <span class="so-css-icon so-css-icon-compress" title="<?php esc_attr_e( 'Close Expanded Mode', 'so-css' ); ?>"></span>
93 </a>
94
95 <a href="#visual" class="editor-visual socss-button" title="<?php esc_attr_e( 'Open Visual Mode', 'so-css' ); ?>">
96 <span class="so-css-icon so-css-icon-eye"></span>
97 </a>
98
99 <span class="save socss-button button-primary" title="<?php esc_attr_e( 'Save CSS', 'so-css' ); ?>">
100 <span class="so-css-icon so-css-icon-save"></span>
101 </span>
102 </div>
103 </div>
104
105 <div class="custom-css-container">
106 <textarea name="siteorigin_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>
107 <?php wp_nonce_field( 'custom_css', '_sononce' ) ?>
108 </div>
109 <div class="so-css-footer">
110 <p class="description">
111 <?php esc_html_e( $editor_description ); ?>
112 </p>
113 </div>
114
115 <div class="custom-css-preview">
116
117 </div>
118
119 <div class="decoration"></div>
120
121 </form>
122
123 <div id="so-custom-css-properties">
124
125 <div class="toolbar">
126 <select>
127 </select>
128 <div class="close socss-button" title="<?php esc_attr_e( 'Close', 'so-css' ); ?>">
129 <span class="so-css-icon so-css-icon-check"></span>
130 </div>
131 <div class="save socss-button button-primary" title="<?php esc_attr_e( 'Save CSS', 'so-css' ); ?>">
132 <span class="so-css-icon so-css-icon-save"></span>
133 </div>
134 </div>
135
136 <ul class="section-tabs">
137 </ul>
138
139 <div class="sections">
140 </div>
141
142 </div>
143
144 </div>
145
146 <div class="clear"></div>
147
148 </div>
149