Skip to content

Commit

Permalink
InstantWP v5.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
corvideon committed Feb 15, 2018
1 parent 76fc551 commit 6cfd3f7
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 25 deletions.
2 changes: 1 addition & 1 deletion build/IWP_VERSION.txt
@@ -1 +1 @@
v5.3.5
v5.3.6
2 changes: 1 addition & 1 deletion core/config/iwp-osx.ini
Expand Up @@ -73,5 +73,5 @@ showDeployInfo=yes
HideReadMeFile=osx/noreadme
WebServerWarnMessage=osx/webserverwarn
readMeLimit=5
showWPResourcesTab=no
showWPResourcesTab=yes

2 changes: 1 addition & 1 deletion core/config/iwp-win.ini
Expand Up @@ -75,5 +75,5 @@ showDeployInfo=yes
HideReadMeFile=win/noreadme
WebServerWarnMessage=win/webserverwarn
readMeLimit=5
showWPResourcesTab=no
showWPResourcesTab=yes

18 changes: 14 additions & 4 deletions core/controlpanel/iwp-actions.rkt
Expand Up @@ -33,8 +33,10 @@
do-phpinfo-action
;; start edit config
do-start-edit-config
;; open wp resource
do-wp-resources-action
;; open wp resources
do-wp-resources-action-plugins
do-wp-resources-action-hosting
do-wp-resources-action-themes
;; should quit?
should-quit-iwp?
;; test
Expand Down Expand Up @@ -126,8 +128,16 @@
(define (do-phpinfo-action)
(do-open-url (get-phpinfo-url)))

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

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

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

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

;; process system event functions

Expand Down
18 changes: 13 additions & 5 deletions core/controlpanel/iwp-config.rkt
Expand Up @@ -19,8 +19,10 @@
get-phpinfo-url
;; web filemanager url
get-filemanager-url
;; wp resources url
get-wp-resources-url
;; wp resources
get-wp-resources-url-plugins
get-wp-resources-url-themes
get-wp-resources-url-hosting
;; ssh path
get-ssh-script-path
;; sftp path
Expand Down Expand Up @@ -143,9 +145,15 @@
(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")
;; wp resources url
(define (get-wp-resources-url-plugins)
"https://instantwp.com/go/wordpress-plugins/")

(define (get-wp-resources-url-themes)
"https://instantwp.com/go/wordpress-themes/")

(define (get-wp-resources-url-hosting)
"https://instantwp.com/go/wordpress-hosting/")

;; startSSHScript
(define (get-ssh-script-path)
Expand Down
10 changes: 3 additions & 7 deletions core/controlpanel/iwp-constants.rkt
Expand Up @@ -82,24 +82,20 @@
[(is-macos-constant?) 5]))
(define WP_RESOURCES_BTN_WIDTH
(cond
[(is-windows-constant?) 350]
[(is-macos-constant?) 350]))
[(is-windows-constant?) 45]
[(is-macos-constant?) 40]))
(define WP_RESOURCES_BTN_HEIGHT
(cond
[(is-windows-constant?) 20]
[(is-macos-constant?) 20]))
(define WP_RESOURCES_BTN_STRETCH_HEIGHT
(cond
[(is-windows-constant?) #f]
[(is-macos-constant?) 50]))
;; ---------------------------------------
;; Button/dialog captions
;; ---------------------------------------

(define IWP_DIALOG_TITLE "InstantWP Control Panel")
(define CONTROL_PANEL_TAB "Control Panel")
(define ADVANCED_TAB "Advanced")
(define WP_RESOURCES_TAB "Products")
(define WP_RESOURCES_TAB "WordPress Resources")
(define LOADING_LABEL "Loading...")
(define QUITTING_LABEL "Quitting...")
(define STARTING_IWP_TITLE "Starting InstantWP - this should take less than 60 seconds...")
Expand Down
30 changes: 25 additions & 5 deletions core/controlpanel/iwp-main-dialog.rkt
Expand Up @@ -327,17 +327,37 @@
;; 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)]))
(define wp-resources-h2 (new horizontal-pane% (parent wp-resources-panel-v0) [alignment '(center top)]))
(define wp-resources-h3 (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
;; WP Resources buttons
(define wp-resources-plugins-button
(new button% [parent wp-resources-h1]
[label (list (info-sign) (lpad "Click here to learn more about InstantWP Unleashed") 'left)]
[label (list (wp-frontpage-bitmap) (lpad "WordPress Plugins") 'left)]
[min-width WP_RESOURCES_BTN_WIDTH]
[min-height WP_RESOURCES_BTN_HEIGHT]
[stretchable-height WP_RESOURCES_BTN_STRETCH_HEIGHT ]
[stretchable-height #f ]
[callback (lambda (button event)
(do-wp-resources-action))]))
(do-wp-resources-action-plugins))]))

(define wp-resources-themes-button
(new button% [parent wp-resources-h2]
[label (list (wp-frontpage-bitmap) (lpad "WordPress Themes") 'left)]
[min-width WP_RESOURCES_BTN_WIDTH]
[min-height WP_RESOURCES_BTN_HEIGHT]
[stretchable-height #f ]
[callback (lambda (button event)
(do-wp-resources-action-themes))]))

(define wp-resources-hosting-button
(new button% [parent wp-resources-h3]
[label (list (wp-frontpage-bitmap) (lpad "WordPress Hosting") 'left)]
[min-width WP_RESOURCES_BTN_WIDTH]
[min-height WP_RESOURCES_BTN_HEIGHT]
[stretchable-height #f ]
[callback (lambda (button event)
(do-wp-resources-action-hosting))]))

2 changes: 1 addition & 1 deletion core/controlpanel/iwp-resources.rkt
Expand Up @@ -70,7 +70,7 @@
(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")))
(read-bitmap (build-path (iwp-images-dir-path) "IWP-small.png")))

(define (info-sign)
(read-bitmap (build-path (iwp-images-dir-path) "info.png")))
Expand Down
Binary file added core/images/IWP-small.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 6cfd3f7

Please sign in to comment.