Commit 1638e2ee authored by Sandeep Kadam's avatar Sandeep Kadam

Added default VF theme color code in bootstrap process for microsites

parent be811d8a
......@@ -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
;;
*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment