Skip to content

Commit

Permalink
update centmin.sh menu option 22 in 123.09beta01
Browse files Browse the repository at this point in the history
add question prompt for user to install Google Naive LazyLoad Wordpress plugin https://wordpress.org/plugins/native-lazyload/ which can lazyload all your images and iframes in post content
  • Loading branch information
centminmod committed Sep 8, 2019
1 parent c769617 commit 9454df1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion centmin.sh
Expand Up @@ -27,7 +27,7 @@ DT=$(date +"%d%m%y-%H%M%S")
branchname='123.09beta01'
SCRIPT_MAJORVER='1.2.3'
SCRIPT_MINORVER='09'
SCRIPT_INCREMENTVER='259'
SCRIPT_INCREMENTVER='260'
SCRIPT_VERSIONSHORT="${branchname}"
SCRIPT_VERSION="${SCRIPT_VERSIONSHORT}.b${SCRIPT_INCREMENTVER}"
SCRIPT_DATE='31/10/2019'
Expand Down
11 changes: 11 additions & 0 deletions inc/wpsetup-fastcgi-cache.inc
Expand Up @@ -563,6 +563,10 @@ if [[ "$wpautoptimize_gzip" = [yY] ]]; then
WP_AUTOPTIMIZE_GZIP='y'
fi
echo
echo "Google Native LazyLoad Plugin https://wordpress.org/plugins/native-lazyload/"
read -ep "Install Google Native LazyLoad Plugin ? [y/n]: " -i y wp_google_lazyload
echo
read -ep "Set custom WP Admin Display Name ? [y/n]: " setdisplayname
if [[ "$setdisplayname" = [yY] ]]; then
Expand Down Expand Up @@ -2894,6 +2898,13 @@ fi

# installed + activated by default

# install google native lazy load plugin
if [[ "$wp_google_lazyload" = [yY] ]]; then
cecho "------------------------------------------------------------" $boldgreen
\wp plugin install native-lazyload --activate --allow-root
cecho "------------------------------------------------------------" $boldgreen
fi

# install classic editor plugin instead of gutenberg
if [[ "$wpclassic_editor" = [yY] ]]; then
cecho "------------------------------------------------------------" $boldgreen
Expand Down
11 changes: 11 additions & 0 deletions inc/wpsetup.inc
Expand Up @@ -470,6 +470,10 @@ if [[ "$wpautoptimize_gzip" = [yY] ]]; then
WP_AUTOPTIMIZE_GZIP='y'
fi

echo
echo "Google Native LazyLoad Plugin https://wordpress.org/plugins/native-lazyload/"
read -ep "Install Google Native LazyLoad Plugin ? [y/n]: " -i y wp_google_lazyload

echo
read -ep "Set custom WP Admin Display Name ? [y/n]: " setdisplayname
if [[ "$setdisplayname" = [yY] ]]; then
Expand Down Expand Up @@ -2350,6 +2354,13 @@ rm -rf readme.html

# installed + activated by default

# install google native lazy load plugin
if [[ "$wp_google_lazyload" = [yY] ]]; then
cecho "------------------------------------------------------------" $boldgreen
\wp plugin install native-lazyload --activate --allow-root
cecho "------------------------------------------------------------" $boldgreen
fi

# install classic editor plugin instead of gutenberg
if [[ "$wpclassic_editor" = [yY] ]]; then
cecho "------------------------------------------------------------" $boldgreen
Expand Down

0 comments on commit 9454df1

Please sign in to comment.