Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
W
Wordpress Bin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ebiwd
Wordpress Bin
Commits
1638e2ee
Commit
1638e2ee
authored
Jul 15, 2019
by
Sandeep Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added default VF theme color code in bootstrap process for microsites
parent
be811d8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
vf_bootstrap
vf_bootstrap
+15
-6
No files found.
vf_bootstrap
View file @
1638e2ee
...
...
@@ -54,20 +54,20 @@ esac;
# check which environment to deploy to
case
"
${
ENVIRONMENT
:-
invalid
}
"
in
dev
)
VF_CDN_STYLESHEET
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
6
/css/styles.css"
;
VF_CDN_JAVASCRIPT
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
6
/scripts/scripts.js"
;
VF_CDN_STYLESHEET
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
7
/css/styles.css"
;
VF_CDN_JAVASCRIPT
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
7
/scripts/scripts.js"
;
VF_API_URL
=
"https://dev.beta.embl.org/api/v1/"
;
WP_SITE_URL
=
${
DEV_SITE_URL
}
;;
stage
)
VF_CDN_STYLESHEET
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
6
/css/styles.css"
;
VF_CDN_JAVASCRIPT
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
6
/scripts/scripts.js"
;
VF_CDN_STYLESHEET
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
7
/css/styles.css"
;
VF_CDN_JAVASCRIPT
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
7
/scripts/scripts.js"
;
VF_API_URL
=
"https://dev.beta.embl.org/api/v1/"
;
WP_SITE_URL
=
${
STAGE_SITE_URL
}
;;
prod
)
VF_CDN_STYLESHEET
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
6
/css/styles.css"
;
VF_CDN_JAVASCRIPT
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
6
/scripts/scripts.js"
;
VF_CDN_STYLESHEET
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
7
/css/styles.css"
;
VF_CDN_JAVASCRIPT
=
"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.
7
/scripts/scripts.js"
;
VF_API_URL
=
"https://dev.beta.embl.org/api/v1/"
;
WP_SITE_URL
=
${
PROD_SITE_URL
}
;;
...
...
@@ -110,6 +110,7 @@ if [ "$MICROSITE_FLAG" -eq "1" ] ; then
MICROSITE_SYM_PATH
=
${
EMBL_DOMAIN_ROOT
}
/
$site_folder_name
;
MICROSITE_FOLDER_NAME
=
${
EMBL_FOLDER_NAME
}
.
$site_folder_name
;
SITE_TAGLINE
=
'EMBL'
;
VF_THEME_COLOR
=
'009f4d'
;
# EMBL Green
# Theme settings variables
THEME_HEADER
=
vf_global_header
;
THEME_FOOTER
=
vf_global_footer
;
...
...
@@ -126,6 +127,7 @@ if [ "$MICROSITE_FLAG" -eq "1" ] ; then
MICROSITE_SYM_PATH
=
${
EBI_SERVICE_DOMAIN_ROOT
}
/
$site_folder_name
;
MICROSITE_FOLDER_NAME
=
${
EBI_SERVICE_FOLDER_NAME
}
.
$site_folder_name
;
SITE_TAGLINE
=
'EMBL-EBI'
;
VF_THEME_COLOR
=
'007c80'
;
# EMBL-EBI Petrol
# Theme settings variables
THEME_HEADER
=
vf_ebi_global_header
;
THEME_FOOTER
=
vf_ebi_global_footer
;
...
...
@@ -144,6 +146,7 @@ if [ "$MICROSITE_FLAG" -eq "1" ] ; then
MICROSITE_SYM_PATH
=
${
EBI_RESEARCH_DOMAIN_ROOT
}
/
$site_folder_name
;
MICROSITE_FOLDER_NAME
=
${
EBI_RESEARCH_FOLDER_NAME
}
.
$site_folder_name
;
SITE_TAGLINE
=
'EMBL-EBI'
;
VF_THEME_COLOR
=
'007c80'
;
# EMBL-EBI Petrol
# Theme settings variables
THEME_HEADER
=
vf_ebi_global_header
;
THEME_FOOTER
=
vf_ebi_global_footer
;
...
...
@@ -544,6 +547,12 @@ EOF
wp post update 1
--post_title
=
"Welcome to your new group or team blog!"
--post_content
=
"
$default_blog_post_content
"
;
# Set the VF Theme Color if not set
if
!
$(
wp option pluck theme_mods_vf-themes vf_theme_color
)
;
then
wp option patch insert theme_mods_vf-themes vf_theme_color
$VF_THEME_COLOR
;
else
wp option patch update theme_mods_vf-themes vf_theme_color
$VF_THEME_COLOR
;
fi
;;
*
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment