Corrected version number en wp_enqueue
authorkjodle <kenneth.odle@gmail.com>
Sun, 9 Jul 2017 18:13:34 +0000 (14:13 -0400)
committerkjodle <kenneth.odle@gmail.com>
Sun, 9 Jul 2017 18:13:34 +0000 (14:13 -0400)
d12-message-blocks.php

index cb74805..5ae356d 100755 (executable)
@@ -3,7 +3,7 @@
  * Plugin Name: d12 Message Blocks\r
  * Plugin URI: http://kjodle.net/wordpress/d12-message-blocks/\r
  * Description: Adds shortcodes for message blocks.\r
- * Version: 2.5-alpha+002\r
+ * Version: 2.5-alpha+003\r
  * Author: Kenneth John Odle\r
  * Author URI: http://kjodle.net/\r
  * Text Domain: d12-message-blocks\r
@@ -35,37 +35,37 @@ function d12bs_retrieve() {
        $mbbsoptions = get_option('d12mb_options');\r
        switch($mbbsoptions['bs']) {\r
                case "1" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-round-single-thin.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-round-single-thin.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "2" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-round-single-thick.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-round-single-thick.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "3" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-round-double.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-round-double.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "4" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-square-single-thin.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-square-single-thin.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "5" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-square-single-thick.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-square-single-thick.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "6" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-square-double.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-square-double.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "7" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-mw-thick-thin.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-mw-thick-thin.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "8" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-mw-thick-thick.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-mw-thick-thick.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "9" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-mw-thin-thick.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-mw-thin-thick.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "10" :\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-mw-thin-thin.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-mw-thin-thin.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                default:\r
-                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-round-single-thick.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12mb', plugins_url('css/bs-round-single-thick.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        return;\r
        }\r
 }\r
@@ -77,43 +77,43 @@ function d12cs_retrieve() {
        $mbcsoptions = get_option('d12mb_options');\r
        switch($mbcsoptions['cs']) {\r
                case "1" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-default.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-default.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "2" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-business.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-business.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "3" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-beach.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-beach.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "4" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-sol.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-sol.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "5" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-aqua.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-aqua.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "6" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-forest.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-forest.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "7" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-winter.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-winter.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "8" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-magique.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-magique.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "9" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-solstice.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-solstice.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "10" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-bark.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-bark.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "11" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-leaves.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-leaves.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                case "12" :\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-bw.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-bw.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        break;\r
                default:\r
-                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-default.css', __FILE__), array( 'd12mb-style' ), '2.4' );\r
+                       wp_enqueue_style( 'd12cs', plugins_url('css/cs-default.css', __FILE__), array( 'd12mb-style' ), '2.5' );\r
                        return;\r
        }\r
 }\r
@@ -122,15 +122,15 @@ add_action( 'wp_enqueue_scripts', 'd12cs_retrieve' );
 \r
 /* Enqueue our base stylesheet, along with a mobile style sheet if necessary */\r
 function d12_shortcodes_styles() {\r
-       wp_enqueue_style( 'd12mb-style', plugins_url( '/css/style.css', __FILE__), array(), '2.4' );\r
-       wp_enqueue_style( 'd12mb-mobilestyle', plugins_url( '/css/d12mb-mobile.css', __FILE__), array(), '2.4', 'screen and (max-width: 640px)' );\r
+       wp_enqueue_style( 'd12mb-style', plugins_url( '/css/style.css', __FILE__), array(), '2.5' );\r
+       wp_enqueue_style( 'd12mb-mobilestyle', plugins_url( '/css/d12mb-mobile.css', __FILE__), array(), '2.5', 'screen and (max-width: 640px)' );\r
 }\r
 add_action( 'wp_enqueue_scripts', 'd12_shortcodes_styles' );\r
 \r
 \r
 /* Enqueue our back end style sheet */\r
 function d12_shortcodes_admin_styles() {\r
-       wp_enqueue_style( 'd12mb-screenstyle', plugins_url( '/css/d12mb-admin.css', __FILE__) , array(), '2.4', 'screen' );\r
+       wp_enqueue_style( 'd12mb-screenstyle', plugins_url( '/css/d12mb-admin.css', __FILE__) , array(), '2.5', 'screen' );\r
 }\r
 add_action( 'admin_enqueue_scripts', 'd12_shortcodes_admin_styles' );\r
 \r