Commit ede9967e authored by Sandeep Kadam's avatar Sandeep Kadam

Updated group theme color settings in bootstrap

parent 8bd0e2f2
......@@ -325,11 +325,11 @@ default_blog_post_content="<!-- wp:paragraph -->
# Set the VF Theme Color if not set
#db_theme_color_value="$(wp option pluck theme_mods_vf-themes vf_theme_color)"
if ! [[ `wp option pluck theme_mods_vf-themes vf_theme_color` ]] ; then
if ! [[ `wp option pluck theme_mods_vf-wp-groups vf_theme_color` ]] ; then
# if [ -n "$db_theme_color_value" ]; then
wp option patch insert theme_mods_vf-themes vf_theme_color "$VF_THEME_COLOR";
wp option patch insert theme_mods_vf-wp-groups vf_theme_color "$VF_THEME_COLOR";
else
wp option patch update theme_mods_vf-themes vf_theme_color "$VF_THEME_COLOR";
wp option patch update theme_mods_vf-wp-groups vf_theme_color "$VF_THEME_COLOR";
fi
......
......@@ -475,11 +475,11 @@ EOF
# Set the VF Theme Color if not set
#db_theme_color_value="$(wp option pluck theme_mods_vf-themes vf_theme_color)"
if ! [[ `wp option pluck theme_mods_vf-themes vf_theme_color` ]] ; then
if ! [[ `wp option pluck theme_mods_vf-wp-groups vf_theme_color` ]] ; then
# if [ -n "$db_theme_color_value" ]; then
wp option patch insert theme_mods_vf-themes vf_theme_color "$VF_THEME_COLOR";
wp option patch insert theme_mods_vf-wp-groups vf_theme_color "$VF_THEME_COLOR";
else
wp option patch update theme_mods_vf-themes vf_theme_color "$VF_THEME_COLOR";
wp option patch update theme_mods_vf-wp-groups vf_theme_color "$VF_THEME_COLOR";
fi
# Set the Google analytics settings
......@@ -509,6 +509,8 @@ if [ "$MICROSITE_FLAG" -eq "1" ] ; then
# Set default group_admin role (Generated by custom plugin) for any new register user
wp option set default_role "group_admin"
# Update capabilities for group_admin role.
wp cap add 'group_admin' 'edit_vf_blocks' 'publish_vf_blocks' 'edit_vf_containers' 'publish_vf_containers'
# Apply SAML config & other additional configs
PHP=`which php`;
......
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