WPide - Version 2.1

Version Description

  • Ramped up the version number because the last one was just getting silly
  • Interface changes to make the editor take up more screen space. Including hiding the WP admin menu and footer.
Download this release

Release Info

Developer WPsites
Plugin Icon 128x128 WPide
Version 2.1
Comparing to
See all releases

Code changes from version 2.0.16 to 2.1

Files changed (3) hide show
  1. WPide.php +21 -3
  2. readme.txt +5 -1
  3. wpide.css +21 -9
WPide.php CHANGED
@@ -3,8 +3,8 @@
3
  Plugin Name: WPide
4
  Plugin URI: https://github.com/WPsites/WPide
5
  Description: WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
6
- Version: 2.0.16
7
- Author: Simon Dunton
8
  Author URI: http://www.wpsites.co.uk
9
  */
10
 
@@ -77,6 +77,12 @@ class wpide
77
  //it has to go after WordPress scripts otherwise WP clears the binding
78
  add_action('admin_print_footer_scripts', array( $this, 'add_admin_nav_warning' ), 99 );
79
 
 
 
 
 
 
 
80
  }
81
 
82
 
@@ -103,6 +109,16 @@ class wpide
103
  }
104
 
105
  }
 
 
 
 
 
 
 
 
 
 
106
 
107
  public static function add_admin_nav_warning()
108
  {
@@ -660,6 +676,8 @@ class wpide
660
 
661
 
662
  jQuery(document).ready(function($) {
 
 
663
 
664
  // Handler for .ready() called.
665
  the_filetree() ;
@@ -751,7 +769,7 @@ class wpide
751
  <div id='fancyeditordiv'></div>
752
 
753
  <form id="wpide_save_container" action="" method="get">
754
- <a href="#" id="wpide_save" class="button-primary">SAVE
755
  FILE</a>
756
  <input type="hidden" id="filename" name="filename" value="" />
757
  <?php
3
  Plugin Name: WPide
4
  Plugin URI: https://github.com/WPsites/WPide
5
  Description: WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
6
+ Version: 2.1
7
+ Author: Simon @ WPsites
8
  Author URI: http://www.wpsites.co.uk
9
  */
10
 
77
  //it has to go after WordPress scripts otherwise WP clears the binding
78
  add_action('admin_print_footer_scripts', array( $this, 'add_admin_nav_warning' ), 99 );
79
 
80
+ // Add body class to collapse the wp sidebar nav
81
+ add_filter('admin_body_class', array( $this, 'hide_wp_sidebar_nav' ), 11);
82
+
83
+ //hide the update nag
84
+ add_action('admin_menu', array( $this, 'hide_wp_update_nag' ));
85
+
86
  }
87
 
88
 
109
  }
110
 
111
  }
112
+
113
+
114
+ public function hide_wp_sidebar_nav($classes) {
115
+
116
+ return str_replace("auto-fold", "", $classes) . ' folded';
117
+ }
118
+
119
+ public function hide_wp_update_nag() {
120
+ remove_action( 'admin_notices', 'update_nag', 3 );
121
+ }
122
 
123
  public static function add_admin_nav_warning()
124
  {
676
 
677
 
678
  jQuery(document).ready(function($) {
679
+
680
+ $("#fancyeditordiv").css("height", ($('body').height()-120) + 'px' );
681
 
682
  // Handler for .ready() called.
683
  the_filetree() ;
769
  <div id='fancyeditordiv'></div>
770
 
771
  <form id="wpide_save_container" action="" method="get">
772
+ <a href="#" id="wpide_save" alt="Keyboard shortcut to save [Ctrl/Cmd + S]" title="Keyboard shortcut to save [Ctrl/Cmd + S]" class="button-primary">SAVE
773
  FILE</a>
774
  <input type="hidden" id="filename" name="filename" value="" />
775
  <?php
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: WPsites, Thomas Wieczorek
3
  Tags: code, theme editor, plugin editor, code editor
4
  Requires at least: 3.0
5
  Tested up to: 3.5
6
- Stable tag: 2.0.16
7
 
8
  WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
9
 
@@ -73,6 +73,10 @@ Either the image contains no image data (its a new empty file) or the image is n
73
  4. Default colour picker image
74
 
75
  == Changelog ==
 
 
 
 
76
  = 2.0.16 =
77
  * Fixed problem saving PHP documents - PHP-Parser library wasn't included in the codebase correctly
78
 
3
  Tags: code, theme editor, plugin editor, code editor
4
  Requires at least: 3.0
5
  Tested up to: 3.5
6
+ Stable tag: 2.1
7
 
8
  WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
9
 
73
  4. Default colour picker image
74
 
75
  == Changelog ==
76
+ = 2.1 =
77
+ * Ramped up the version number because the last one was just getting silly
78
+ * Interface changes to make the editor take up more screen space. Including hiding the WP admin menu and footer.
79
+
80
  = 2.0.16 =
81
  * Fixed problem saving PHP documents - PHP-Parser library wasn't included in the codebase correctly
82
 
wpide.css CHANGED
@@ -10,7 +10,7 @@
10
  width: 75%;
11
  min-height: 30px;
12
  text-align: right;
13
- padding-top: 20px;
14
  position: relative;
15
  float: left;
16
  }
@@ -128,17 +128,24 @@
128
  z-index:999;
129
  }
130
  #wpide_save_container{
131
- float: left;
132
- clear: left;
133
- margin-left: 68%;
134
- margin-top: 20px;
 
 
 
 
 
 
 
135
  }
136
 
137
  #wpide_info {
138
  position: relative;
139
  min-height: 30px;
140
  width: 100%;
141
- margin-top: 50px;
142
  padding-right:2px;
143
  float: right;
144
  clear: right;
@@ -195,7 +202,7 @@
195
 
196
  #fancyeditordiv{
197
  width:75%;
198
- height:650px;
199
  margin-right:0!important;
200
  float:left;
201
  }
@@ -212,7 +219,7 @@
212
  }
213
 
214
  #wpide_save{
215
- margin-right:25px;
216
  }
217
 
218
  #publishing-action img{
@@ -307,7 +314,12 @@ div.ImageColorPickerWrapper{
307
 
308
  }
309
 
310
-
 
 
 
 
 
311
 
312
 
313
 
10
  width: 75%;
11
  min-height: 30px;
12
  text-align: right;
13
+ padding-top: 5px;
14
  position: relative;
15
  float: left;
16
  }
128
  z-index:999;
129
  }
130
  #wpide_save_container{
131
+ float: left;
132
+ clear: left;
133
+ width: 74%;
134
+ padding: 0.5%;
135
+ background-color: #E9E9E9;
136
+
137
+ border-color: #CCC;
138
+ -webkit-box-shadow: inset 0 1px 0 #fff;
139
+ box-shadow: inset 0 1px 0 #fff;
140
+ -webkit-border-radius: 3px;
141
+ border-radius: 3px;
142
  }
143
 
144
  #wpide_info {
145
  position: relative;
146
  min-height: 30px;
147
  width: 100%;
148
+ margin-top: 35px;
149
  padding-right:2px;
150
  float: right;
151
  clear: right;
202
 
203
  #fancyeditordiv{
204
  width:75%;
205
+ height:1000px;
206
  margin-right:0!important;
207
  float:left;
208
  }
219
  }
220
 
221
  #wpide_save{
222
+ float: right;
223
  }
224
 
225
  #publishing-action img{
314
 
315
  }
316
 
317
+ #wpfooter{
318
+ display:none;
319
+ }
320
+ #wpbody-content{
321
+ padding-bottom:0;
322
+ }
323
 
324
 
325