Styles - Version 1.0.6

Version Description

  • New: Add installation notice to Customizer.
Download this release

Release Info

Developer pdclark
Plugin Icon Styles
Version 1.0.6
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.6

classes/styles-admin.php CHANGED
@@ -31,10 +31,12 @@ class Styles_Admin {
31
  add_action( 'admin_init', array( $this, 'install_default_themes_notice' ), 20 );
32
  add_action( 'admin_init', array( $this, 'activate_notice' ), 30 );
33
  add_action( 'admin_notices', array( $this, 'admin_notices' ) );
 
34
 
35
  // Scripts
36
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
37
 
 
38
  // Plugin Meta
39
  add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
40
 
@@ -98,6 +100,13 @@ class Styles_Admin {
98
  }
99
  }
100
 
 
 
 
 
 
 
 
101
  function license_menu() {
102
  $plugins = apply_filters( 'styles_license_form_plugins', array() );
103
 
31
  add_action( 'admin_init', array( $this, 'install_default_themes_notice' ), 20 );
32
  add_action( 'admin_init', array( $this, 'activate_notice' ), 30 );
33
  add_action( 'admin_notices', array( $this, 'admin_notices' ) );
34
+ add_action( 'customize_controls_enqueue_scripts', array( $this, 'customize_notices' ), 11 );
35
 
36
  // Scripts
37
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
38
 
39
+
40
  // Plugin Meta
41
  add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
42
 
100
  }
101
  }
102
 
103
+ /**
104
+ * Pass notices to styles-customize-controls.js
105
+ */
106
+ public function customize_notices() {
107
+ wp_localize_script( 'styles-customize-controls', 'wp_styles_notices', $this->notices );
108
+ }
109
+
110
  function license_menu() {
111
  $plugins = apply_filters( 'styles_license_form_plugins', array() );
112
 
css/styles-customize.css CHANGED
@@ -31,6 +31,11 @@ span.styles-type {
31
  margin-top: 0;
32
  }
33
 
 
 
 
 
 
34
 
35
  /* Subsection */
36
 
31
  margin-top: 0;
32
  }
33
 
34
+ /* Notices */
35
+ #customize-info #styles_installation_notices {
36
+ background: #FFFFDF;
37
+ }
38
+
39
 
40
  /* Subsection */
41
 
js/styles-customize-controls.js CHANGED
@@ -1,5 +1,25 @@
1
  jQuery( document ).ready( function ( $ ) {
2
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  add_control_label_spans();
4
  /**
5
  * Wrap content after long-dash in span
1
  jQuery( document ).ready( function ( $ ) {
2
+
3
+ styles_installation_notices();
4
+ /**
5
+ * Prompt users if a notice is sent by styles-admin.php
6
+ */
7
+ function styles_installation_notices() {
8
+ if ( wp_styles_notices.length == 0 ) {
9
+ return;
10
+ }
11
+
12
+ var $notices = $( '<div id="styles_installation_notices"></div>' )
13
+ .addClass( 'accordion-section-content' )
14
+ .show();
15
+
16
+ jQuery.each( wp_styles_notices, function( index, value ){
17
+ $notices.append( value );
18
+ });
19
+
20
+ $( '#customize-info' ).prepend( $notices );
21
+ }
22
+
23
  add_control_label_spans();
24
  /**
25
  * Wrap content after long-dash in span
readme.txt CHANGED
@@ -5,15 +5,16 @@ Author URI: http://brainstormmedia.com
5
  Tags: css, stylesheet, styles, appearance, customize, customizer, colors, color picker, images, image upload, background, fonts, google fonts, user interface, twentyten, twentyeleven, twentytwelve, twentythirteen
6
  Requires at least: 3.4
7
  Tested up to: 3.5.2
8
- Stable tag: 1.0.4
9
 
10
  Be creative with colors and fonts. Styles changes everything.
11
 
12
-
13
  == Description ==
14
 
15
  WordPress has lots of beautiful themes, but personalizing a design can be difficult and time-intensive. Styles changes that. Styles gives you creative control in one consistent interface – the WordPress theme customizer. Styles lets you make your site your own. :)
16
 
 
 
17
  [Try a demo in TwentyTwelve](http://demo.stylesplugin.com/twentytwelve).
18
 
19
  **Features of the plugin include:**
@@ -32,10 +33,10 @@ Styles and options for all built-in WordPress themes are free. More themes are a
32
 
33
  **Free Themes include:**
34
 
35
- * TwentyTen: [Plugin](http://wordpress.org/extend/plugins/styles-twentyten), [Demo](http://demo.stylesplugin.com/twentyten)
36
- * TwentyEleven: [Plugin](http://wordpress.org/extend/plugins/styles-twentyeleven), [Demo](http://demo.stylesplugin.com/twentyeleven)
37
- * TwentyTwelve: [Plugin](http://wordpress.org/extend/plugins/styles-twentytwelve), [Demo](http://demo.stylesplugin.com/twentytwelve)
38
- * TwentyThirteen: [Plugin](http://wordpress.org/extend/plugins/styles-twentythirteen), [Demo](http://demo.stylesplugin.com/twentythirteen)
39
 
40
  == Installation ==
41
 
@@ -70,6 +71,13 @@ Maybe! We have additional themes available available at [StylesPlugin.com](http:
70
  No! Styles is very careful about only loading what is needed to get its job done. Once you're done editing, stylesheets are cached and loaded for your sites users as quickly as possible.
71
 
72
  == Changelog ==
 
 
 
 
 
 
 
73
  = 1.0.4 =
74
  * Fix: Correctly set outer background color
75
 
@@ -123,13 +131,4 @@ No! Styles is very careful about only loading what is needed to get its job done
123
 
124
  == Upgrade Notice ==
125
 
126
- **1.0.4**
127
- * Fix: Correctly set outer background color.
128
-
129
- **1.0.3**
130
- * Fix: Google fonts loading correctly once saved.
131
-
132
- **1.0**
133
- Completely rewrote Styles to use the WordPress Customizer API. Whew! That was a lot of work, but will allow us to grow closely with WordPress going forward.
134
-
135
- Styles 1.0 does not import 0.5.2 settings. However, you can always [reinstall Styles 0.5.3](http://downloads.wordpress.org/plugin/styles.0.5.3.zip) to get your old settings back.
5
  Tags: css, stylesheet, styles, appearance, customize, customizer, colors, color picker, images, image upload, background, fonts, google fonts, user interface, twentyten, twentyeleven, twentytwelve, twentythirteen
6
  Requires at least: 3.4
7
  Tested up to: 3.5.2
8
+ Stable tag: 1.0.6
9
 
10
  Be creative with colors and fonts. Styles changes everything.
11
 
 
12
  == Description ==
13
 
14
  WordPress has lots of beautiful themes, but personalizing a design can be difficult and time-intensive. Styles changes that. Styles gives you creative control in one consistent interface – the WordPress theme customizer. Styles lets you make your site your own. :)
15
 
16
+ http://www.youtube.com/watch?v=DsQPfX92IgY
17
+
18
  [Try a demo in TwentyTwelve](http://demo.stylesplugin.com/twentytwelve).
19
 
20
  **Features of the plugin include:**
33
 
34
  **Free Themes include:**
35
 
36
+ * TwentyTen: [Demo](http://demo.stylesplugin.com/twentyten)
37
+ * TwentyEleven: [Demo](http://demo.stylesplugin.com/twentyeleven)
38
+ * TwentyTwelve: [Demo](http://demo.stylesplugin.com/twentytwelve)
39
+ * TwentyThirteen: [Demo](http://demo.stylesplugin.com/twentythirteen)
40
 
41
  == Installation ==
42
 
71
  No! Styles is very careful about only loading what is needed to get its job done. Once you're done editing, stylesheets are cached and loaded for your sites users as quickly as possible.
72
 
73
  == Changelog ==
74
+
75
+ = 1.0.6 =
76
+ * New: Add installation notice to Customizer.
77
+
78
+ = 1.0.5 =
79
+ * Fix: Resolve blank screen that could appear when installing on a new theme.
80
+
81
  = 1.0.4 =
82
  * Fix: Correctly set outer background color
83
 
131
 
132
  == Upgrade Notice ==
133
 
134
+ Add installation notice to Customizer.
 
 
 
 
 
 
 
 
 
styles.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Styles
4
  Plugin URI: http://stylesplugin.com
5
  Description: Change the appearance of your theme using the WordPress admin. Creates WordPress theme options for images, colors, gradients, and fonts.
6
- Version: 1.0.5
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  Git URI: https://updates%40brainstormmedia.com:updates@bitbucket.org/brainstormmedia/styles.git
3
  Plugin Name: Styles
4
  Plugin URI: http://stylesplugin.com
5
  Description: Change the appearance of your theme using the WordPress admin. Creates WordPress theme options for images, colors, gradients, and fonts.
6
+ Version: 1.0.6
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  Git URI: https://updates%40brainstormmedia.com:updates@bitbucket.org/brainstormmedia/styles.git