Plugin Directory

Changeset 1823892


Ignore:
Timestamp:
02/17/2018 04:23:13 PM (8 years ago)
Author:
johnregan3
Message:

Update to 4.0.1

Location:
simple-custom-css
Files:
40 added
5 edited

Legend:

Unmodified
Added
Removed
  • simple-custom-css/trunk/includes/admin.php

    r1819543 r1823892  
    7676    if ( 'appearance_page_simple-custom-css' === $hook ) {
    7777        // Maintaining for backwards compatibility.
    78         wp_enqueue_style( 'sccss-editor-css', plugins_url( 'simple-custom-css/includes/css/editor.css' ) );
    79         wp_enqueue_style( 'sccss-codemirror-css', plugins_url( 'simple-custom-css/codemirror/codemirror.min.css' ) );
    80         wp_enqueue_script( 'sccss-codemirror-js', plugins_url( 'simple-custom-css/codemirror/codemirror.js' ), array(), '20180208', true );
    8178        wp_enqueue_script( 'sccss-css-lint-js', plugins_url( 'simple-custom-css/codemirror/csslint.js' ), array( 'sccss-codemirror-js' ), '1.0.3', true );
    8279        wp_enqueue_script( 'sccss-codemirror-lint-js', plugins_url( 'simple-custom-css/codemirror/codemirror-lint.js' ), array( 'sccss-css-lint-js' ), '20180208', true );
     80        wp_enqueue_script( 'sccss-codemirror-css-lint-js', plugins_url( 'simple-custom-css/codemirror/codemirror-css-lint.js' ), array( 'sccss-codemirror-css-js' ), '20180208', true );
     81        wp_enqueue_script( 'sccss-codemirror-js', plugins_url( 'simple-custom-css/codemirror/codemirror.js' ), array(), '20180208', true );
    8382        wp_enqueue_script( 'sccss-codemirror-css-js', plugins_url( 'simple-custom-css/codemirror/css.js' ), array( 'sccss-codemirror-lint-js' ), '20180208', true );
    84         wp_enqueue_script( 'sccss-codemirror-css-lint-js', plugins_url( 'simple-custom-css/codemirror/codemirror-css-lint.js' ), array( 'sccss-codemirror-css-js' ), '20180208', true );
     83
     84        wp_enqueue_style( 'sccss-codemirror-css', plugins_url( 'simple-custom-css/codemirror/codemirror.min.css' ) );
     85        wp_enqueue_style( 'sccss-editor-css', plugins_url( 'simple-custom-css/includes/css/editor.css' ) );
    8586    }
    8687}
     
    140141                <?php do_action( 'sccss_sidebar_top' ); ?>
    141142
    142                 <p style="margin-top: 0"><?php esc_html_e( 'Simple Custom CSS allows you to add your own styles or override the default CSS of a plugin or theme.', 'simple-custom-css' ) ?></p>
    143                 <p style="margin-top: 0"><?php _e( 'The styles you save here will remain even if you switch themes.', 'simple-custom-css' ) ?></p>
     143                <p style="margin-top: 0"><?php esc_html_e( 'Simple Custom CSS allows you to add your own styles or override the default CSS of a plugin or theme.', 'simple-custom-css' ); ?></p>
     144                <p style="margin-top: 0"><?php _e( 'The styles you save here will remain even if you switch themes.', 'simple-custom-css' ); ?></p>
    144145
    145                 <p><?php esc_html_e( 'To use, enter your custom CSS, then click "Update Custom CSS".  It\'s that simple!', 'simple-custom-css' ) ?></p>
     146                <p><?php esc_html_e( 'To use, enter your custom CSS, then click "Update Custom CSS".  It\'s that simple!', 'simple-custom-css' ); ?></p>
    146147                <?php submit_button( __( 'Update Custom CSS', 'simple-custom-css' ), 'primary', 'submit', true ); ?>
    147148
    148149                <?php if ( ! version_compare( $wp_version, 4.9 ) >= 0 ) : ?>
    149150                    <p class="description">
    150                         <?php // translators: Placeholder represents the URL to the Customizer Section. ?>
    151                         <?php echo wp_kses_post( sprintf( __( 'Did you know that you can edit Simple Custom CSS in <a href="%s" title="Simple Custom CSS in the Customizer">the Customizer</a>?', 'simple-custom-css' ), esc_url( wp_customize_url() . '?autofocus[control]=sccss_editor' ) ) ); ?>
     151                        <?php
     152                        // translators: Placeholder represents the URL to the Customizer Section.
     153                        echo wp_kses_post( sprintf( __( 'Did you know that you can edit Simple Custom CSS in <a href="%s" title="Simple Custom CSS in the Customizer">the Customizer</a>?', 'simple-custom-css' ), esc_url( wp_customize_url() . '?autofocus[control]=sccss_editor' ) ) );
     154                        ?>
    152155                    </p>
    153156                <?php endif; ?>
     
    177180                    lineNumbers: true,
    178181                    lineWrapping: true,
     182                    mode: 'text/css',
    179183                    indentUnit: 2,
    180184                    tabSize: 2,
    181                     mode: 'text/css',
    182185                    lint: true,
    183186                    gutters: [ 'CodeMirror-lint-markers' ]
  • simple-custom-css/trunk/includes/css/editor.css

    r1819543 r1823892  
    11.CodeMirror {
    22    max-width: 98%;
     3    border: 1px solid #ddd;
     4    margin-right: 0 !important;
    35}
     6
     7.CodeMirror div {
     8    margin-right: 0 !important;
     9}
     10
     11.CodeMirror .CodeMirror-gutters {
     12    padding-left: 8px;
     13}
     14
     15
     16
  • simple-custom-css/trunk/includes/customizer.php

    r1819543 r1823892  
    8686add_action( 'wp_head', 'sccss_customizer_css', 99 );
    8787
    88 function sccss_customizer_styles() { ?>
     88/**
     89 * Add custom styles to the Customizer Editor Control.
     90 *
     91 * @since 4.0
     92 *
     93 * @action customize_controls_print_styles
     94 */
     95function sccss_customizer_styles() {
     96    ?>
    8997    <style>
    9098        .customize-section-description-container + #customize-control-sccss_editor:last-child .CodeMirror {
     
    99107    </style>
    100108    <?php
    101 
    102109}
    103110add_action( 'customize_controls_print_styles', 'sccss_customizer_styles', 999 );
  • simple-custom-css/trunk/readme.txt

    r1819545 r1823892  
    7373When you need:
    7474
    75     .content a {
     75    \#content a {
    7676        color: #f00;
    7777    }
     
    9090
    9191== Changelog ==
     92
     93= 4.0.1 =
     94* Fixed bug with broken editor styles on older versions of WP.
    9295
    9396= 4.0 =
     
    156159== Upgrade Notice ==
    157160
     161= 4.0.1 =
     162Settings page style fixes for older versions of WP.
     163
     164= 4.0 =
     165Tested for compatibility with WP 4.9.4.  Added Customizer support.
     166
    158167= 3.3 =
    159168Tested for compatibility with WP 4.4.1.  Added support for http://.
  • simple-custom-css/trunk/simple-custom-css.php

    r1819543 r1823892  
    66 * Author: John Regan, Danny Van Kooten
    77 * Author URI: http://johnregan3.me
    8  * Version: 4.0
     8 * Version: 4.0.1
    99 * Text Domain: simple-custom-css
    1010 *
     
    2626 * @package SCCSS
    2727 * @author John Regan
    28  * @version 4.0
     28 * @version 4.0.1
    2929 */
    3030
     
    4545}
    4646
     47// Load the customizer control on later versions of WP.
    4748if ( version_compare( $wp_version, 4.9 ) >= 0 ) {
    4849    require_once dirname( SCCSS_FILE ) . '/includes/customizer.php';
Note: See TracChangeset for help on using the changeset viewer.