From 6f95aeac8f8bd80708e52c63871e6e69f1e114d9 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 7 Jun 2013 23:33:48 +0100 Subject: [PATCH] Condensing and tweaking code 0px becomes 0 Classes added for demoArrow, h2 and heading to save repeating styles No need to set $class for 1 use, define inline and also shift left more to line up better Condense closing and opening PHP tags by not doing this Add ternary condition instead of if else Only trigger cssColorPreview if CSS is our caretLocType Condense working out fileExt down to 1 line --- editor.php | 61 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/editor.php b/editor.php index ce2b258..02d7059 100644 --- a/editor.php +++ b/editor.php @@ -28,7 +28,7 @@ $activeLineBG = array_search($ICEcoder["theme"],array("eclipse","elegant","neat" @@ -52,29 +55,29 @@ $activeLineBG = array_search($ICEcoder["theme"],array("eclipse","elegant","neat" -
Click logo
for help &
usage info
+
Click icons
for help &
usage info
-

server

- Server name, OS & IP:
+

server

+ Server name, OS & IP:


- Root:
+ Root:


- ICEcoder root:
+ ICEcoder root:


- PHP version:
+ PHP version:


- Date & time:
+ Date & time:



-

files

- Last 10 files opened:
+

files

+ Last 10 files opened:
-

your device

- Browser:
+

your device

+ Browser:


- Your IP:
+ Your IP: