Skip to content

Commit

Permalink
Updated to v5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
corvideon committed Oct 15, 2017
1 parent 9ffa8d4 commit f0b8161
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/IWP_VERSION.txt
@@ -1 +1 @@
v5.1.2-rc7
v5.2.0
2 changes: 1 addition & 1 deletion core/config/iwp-osx.ini
Expand Up @@ -69,7 +69,7 @@ IWPHostServPassword=iwp

[UI]
buttonSleepAfterClick=1
showWPResourcesTab=no
showWPResourcesTab=yes
HideReadMeFile=osx/noreadme
WebServerWarnMessage=osx/webserverwarn
readMeLimit=6
Expand Down
2 changes: 1 addition & 1 deletion core/config/iwp-win.ini
Expand Up @@ -70,7 +70,7 @@ IWPHostServPassword=iwp

[UI]
buttonSleepAfterClick=1
showWPResourcesTab=no
showWPResourcesTab=yes
HideReadMeFile=win/noreadme
WebServerWarnMessage=win/webserverwarn
readMeLimit=6
Expand Down
5 changes: 5 additions & 0 deletions core/controlpanel/iwp-actions.rkt
Expand Up @@ -33,6 +33,8 @@
do-phpinfo-action
;; start edit config
do-start-edit-config
;; open wp resource
do-wp-resources-action
;; should quit?
should-quit-iwp?
;; test
Expand Down Expand Up @@ -114,6 +116,9 @@
(define (do-phpinfo-action)
(do-open-url (get-phpinfo-url)))

(define (do-wp-resources-action)
(do-open-url (get-wp-resources-url)))

;; process system event functions

;; build a command string
Expand Down
5 changes: 5 additions & 0 deletions core/controlpanel/iwp-config.rkt
Expand Up @@ -19,6 +19,8 @@
get-phpinfo-url
;; web filemanager url
get-filemanager-url
;; wp resources url
get-wp-resources-url
;; ssh path
get-ssh-script-path
;; sftp path
Expand Down Expand Up @@ -139,6 +141,9 @@
(define local-portoffset (get-config-setting PORTOFFSET))
(string-append "http://" LOCALHOST ":" (number->string (get-vm-http-port)) "/" (get-config-setting WEB_FILEMANAGER)))

;; filemanager url
(define (get-wp-resources-url)
"https://www.instantwp.com/unleashed")

;; startSSHScript
(define (get-ssh-script-path)
Expand Down
22 changes: 22 additions & 0 deletions core/controlpanel/iwp-main-dialog.rkt
Expand Up @@ -293,5 +293,27 @@
(define phpinfo-label
(create-new-label PHP_INFO_INFO ADV_LBL_WIDTH ADV_LBL_HEIGHT advanced-panel-h5))

;; --------------------------------------
;; wp resources panel control definitions
;; --------------------------------------


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

;; wp-resources panel horizontal panel for holding horizontal panels
(define wp-resources-h0 (new horizontal-pane% (parent wp-resources-panel-v0) [alignment '(center top)]))
(define wp-resources-h1 (new horizontal-pane% (parent wp-resources-panel-v0) [alignment '(center top)]))

;; WP Resources image
(define wp-resources-logo (new message% (parent wp-resources-h0) (label (wp-resources))))

;; WP Resources button
(define wp-resources-button
(new button% [parent wp-resources-h1]
[label (list (info-sign) (lpad "Click here to learn more about InstantWP Unleashed") 'left)]
[min-width 350]
[min-height 20]
[stretchable-height 50 ]
[callback (lambda (button event)
(do-wp-resources-action))]))
6 changes: 6 additions & 0 deletions core/controlpanel/iwp-resources.rkt
Expand Up @@ -61,6 +61,12 @@
(define (iwp-logo)
(read-bitmap (build-path (iwp-images-dir-path) "logo-top.png")))

(define (wp-resources)
(read-bitmap (build-path (iwp-images-dir-path) "wp-resources.png")))

(define (info-sign)
(read-bitmap (build-path (iwp-images-dir-path) "info.png")))

;; start up wizard bitmap
(define (readme-bitmap)
(read-bitmap (build-path (iwp-images-dir-path) "readme1.png")))
Expand Down
Binary file added core/docs/images/unleashed-logo-with-shadow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/images/info.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/images/wp-resources.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f0b8161

Please sign in to comment.