The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Revised by Bytes Unlimited : Feb 3rd 2020
#! /bin/bash | |
# Author: Birgit Olzem aka @CoachBirgit | |
# Version: 1.0 | |
# Created on: January 19th 2022 | |
# Requires WP-CLI, cURL, wget | |
# credits for the origin idea to Jeremy Herve: https://jeremy.hu/dev-environment-laravel-valet-wp-cli/ | |
### How to use |
#! /bin/bash | |
# Author: Birgit Olzem aka @CoachBirgit | |
# Version: 1.0 | |
# Created on: January 19th 2022 | |
# Requires WP-CLI, cURL, wget | |
### How to use | |
# Use WP-CLI on Laravel/Valet to generate some dummy content. | |
# We grab from the loremipsum.net API some dummy content. |
/* --- DEPRECATED --- */ | |
/* add .et_pb_lightbox_image clss to content images */ | |
add_filter('the_content', 'divi_add_lightbox'); | |
function divi_add_lightbox($content) { | |
global $post; | |
$pattern ="/<a(.*?)href=('|\")(.*?).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>/i"; | |
$replacement = '<a$1href=$2$3.$4$5 class="et_pb_lightbox_image" title="'.$post->post_title.'"$6>'; | |
$content = preg_replace($pattern, $replacement, $content); | |
return $content; | |
} |
echo "Welcome to Create WordPress Site Wizard!" | |
echo -n "Enter Folder Name:" | |
read foldername | |
echo -n "Enter Site Name:" | |
read sitename | |
echo "Creating Site Folder" | |
mkdir ${foldername} | |
cd ${foldername} |
<?php echo do_shortcode('[ultimatemember_message_button user_id='.$user_id.']'); ?> |
/*DIVI ROUNDED CORNERS - ALL MODULES*/ | |
@media only screen and ( min-width:768px) and (max-width: 980px ) { | |
.et_pb_featured_table:nth-child(3), .et_pb_featured_table:nth-child(4){margin-top: 30px;} | |
.et_pb_pricing_table:nth-child(odd){ | |
-webkit-border-top-left-radius:6px; | |
-webkit-border-bottom-left-radius:6px; | |
-moz-border-radius-topleft:6px; | |
-moz-border-radius-bottomleft:6px; |
// add default class for img-responsive | |
function add_image_responsive_class($content) { | |
global $post; | |
$pattern ="/<img(.*?)class=\"(.*?)\"(.*?)>/i"; | |
$replacement = '<img$1class="$2 img-responsive"$3>'; | |
$content = preg_replace($pattern, $replacement, $content); | |
return $content; | |
} | |
add_filter('the_content', 'add_image_responsive_class'); |