File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- v5.1.2-rc7
1+ v5.2.0
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ IWPHostServPassword=iwp
6969
7070[UI]
7171buttonSleepAfterClick =1
72- showWPResourcesTab =no
72+ showWPResourcesTab =yes
7373HideReadMeFile =osx/noreadme
7474WebServerWarnMessage =osx/webserverwarn
7575readMeLimit =6
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ IWPHostServPassword=iwp
7070
7171[UI]
7272buttonSleepAfterClick =1
73- showWPResourcesTab =no
73+ showWPResourcesTab =yes
7474HideReadMeFile =win/noreadme
7575WebServerWarnMessage =win/webserverwarn
7676readMeLimit =6
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
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)
Original file line number Diff line number Diff line change 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))]))
Original file line number Diff line number Diff line change 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 " )))
You can’t perform that action at this time.
0 commit comments