Skip to content

Commit f0b8161

Browse files
committed
Updated to v5.2
1 parent 9ffa8d4 commit f0b8161

10 files changed

Lines changed: 41 additions & 3 deletions

File tree

build/IWP_VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v5.1.2-rc7
1+
v5.2.0

core/config/iwp-osx.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ IWPHostServPassword=iwp
6969

7070
[UI]
7171
buttonSleepAfterClick=1
72-
showWPResourcesTab=no
72+
showWPResourcesTab=yes
7373
HideReadMeFile=osx/noreadme
7474
WebServerWarnMessage=osx/webserverwarn
7575
readMeLimit=6

core/config/iwp-win.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ IWPHostServPassword=iwp
7070

7171
[UI]
7272
buttonSleepAfterClick=1
73-
showWPResourcesTab=no
73+
showWPResourcesTab=yes
7474
HideReadMeFile=win/noreadme
7575
WebServerWarnMessage=win/webserverwarn
7676
readMeLimit=6

core/controlpanel/iwp-actions.rkt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
do-phpinfo-action
3434
;; start edit config
3535
do-start-edit-config
36+
;; open wp resource
37+
do-wp-resources-action
3638
;; should quit?
3739
should-quit-iwp?
3840
;; test
@@ -114,6 +116,9 @@
114116
(define (do-phpinfo-action)
115117
(do-open-url (get-phpinfo-url)))
116118

119+
(define (do-wp-resources-action)
120+
(do-open-url (get-wp-resources-url)))
121+
117122
;; process system event functions
118123

119124
;; build a command string

core/controlpanel/iwp-config.rkt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
get-phpinfo-url
2020
;; web filemanager url
2121
get-filemanager-url
22+
;; wp resources url
23+
get-wp-resources-url
2224
;; ssh path
2325
get-ssh-script-path
2426
;; sftp path
@@ -139,6 +141,9 @@
139141
(define local-portoffset (get-config-setting PORTOFFSET))
140142
(string-append "http://" LOCALHOST ":" (number->string (get-vm-http-port)) "/" (get-config-setting WEB_FILEMANAGER)))
141143

144+
;; filemanager url
145+
(define (get-wp-resources-url)
146+
"https://www.instantwp.com/unleashed")
142147

143148
;; startSSHScript
144149
(define (get-ssh-script-path)

core/controlpanel/iwp-main-dialog.rkt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,5 +293,27 @@
293293
(define phpinfo-label
294294
(create-new-label PHP_INFO_INFO ADV_LBL_WIDTH ADV_LBL_HEIGHT advanced-panel-h5))
295295

296+
;; --------------------------------------
297+
;; wp resources panel control definitions
298+
;; --------------------------------------
299+
296300

301+
;; wp-resources panel vertical panel for holding horizontal panels
302+
(define wp-resources-panel-v0 (new vertical-pane% (parent wp-resources-panel) [alignment '(center center)] [border 10]))
297303

304+
;; wp-resources panel horizontal panel for holding horizontal panels
305+
(define wp-resources-h0 (new horizontal-pane% (parent wp-resources-panel-v0) [alignment '(center top)]))
306+
(define wp-resources-h1 (new horizontal-pane% (parent wp-resources-panel-v0) [alignment '(center top)]))
307+
308+
;; WP Resources image
309+
(define wp-resources-logo (new message% (parent wp-resources-h0) (label (wp-resources))))
310+
311+
;; WP Resources button
312+
(define wp-resources-button
313+
(new button% [parent wp-resources-h1]
314+
[label (list (info-sign) (lpad "Click here to learn more about InstantWP Unleashed") 'left)]
315+
[min-width 350]
316+
[min-height 20]
317+
[stretchable-height 50 ]
318+
[callback (lambda (button event)
319+
(do-wp-resources-action))]))

core/controlpanel/iwp-resources.rkt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161
(define (iwp-logo)
6262
(read-bitmap (build-path (iwp-images-dir-path) "logo-top.png")))
6363

64+
(define (wp-resources)
65+
(read-bitmap (build-path (iwp-images-dir-path) "wp-resources.png")))
66+
67+
(define (info-sign)
68+
(read-bitmap (build-path (iwp-images-dir-path) "info.png")))
69+
6470
;; start up wizard bitmap
6571
(define (readme-bitmap)
6672
(read-bitmap (build-path (iwp-images-dir-path) "readme1.png")))
58.9 KB
Loading

core/images/info.png

2.69 KB
Loading

core/images/wp-resources.png

51 KB
Loading

0 commit comments

Comments
 (0)