This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (min-width: 995px){ | |
/* PowerPack Info List */ | |
.grid-3 .pp-list-items{ | |
display: grid !important; | |
grid-template-columns: auto auto auto; | |
} | |
/* PowerPack Accordion */ | |
.grid-2 .pp-accordion{ | |
column-count: 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM `wp_postmeta` | |
INNER JOIN wp_posts ON wp_posts.ID=wp_postmeta.post_id | |
WHERE `meta_key` LIKE '_et_pb_use_builder' | |
AND `meta_value` LIKE 'on' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ws_show_first_embedded_video($settings, $module){ | |
$post = $GLOBALS['post']; | |
if (has_category('videos', $post)){ | |
//Get the content, apply filters and execute shortcodes | |
$content = apply_filters( 'the_content', $post->post_content ); | |
$embeds = get_media_embedded_in_content( $content ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#For debugging | |
LOGFILE=/tmp/plesk_event_handler.log | |
if [ "${OLD_SUBDOMAIN_NAME}" != "${NEW_SUBDOMAIN_NAME}" ]; then | |
# This is a subdomain change | |
OLD_DOMAIN_NAME="${OLD_SUBDOMAIN_NAME}.${OLD_DOMAIN_NAME}" | |
NEW_DOMAIN_NAME="${NEW_SUBDOMAIN_NAME}.${NEW_DOMAIN_NAME}" | |
#echo "$PRIMARY_DOMAIN | $OLD_DOMAIN_NAME | $NEW_DOMAIN_NAME" >> $LOGFILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Option 1: Replace the featured image spot with the video embed | |
*/ | |
function ws_replace_image_with_first_embed($html, $post_id, $post_thumbnail_id, $size, $attr){ | |
$post = get_post($post_id); | |
if (has_category('videos', $post)){ | |
//Get the content, apply filters and execute shortcodes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom Social Icons Shortcode: [fl_social_icons circle=true] | |
*/ | |
function ws_social_icons( $atts ) { | |
extract( shortcode_atts( array( | |
'circle' => true, | |
), $atts, 'multilink' ) ); | |
ob_start( ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isset($WOOF->settings['by_text']['search_by_full_word'])) { | |
$search_by_full_word = (int) $WOOF->settings['by_text']['search_by_full_word']; | |
} | |
/* | |
if ($search_by_full_word) { | |
$woof_text = '[[:<:]]' . $woof_text . '[[:>:]]'; | |
} | |
*/ | |
/** ADDED APR 1, 2019 by websavers (+above comment out) **/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ws-wp-xmlrpc] | |
enabled = true | |
filter = ws-wp-xmlrpc | |
action = iptables-multiport[name=wp-xmlrpc, port="http,https"] | |
logpath = /var/www/vhosts/system/*/logs/*access*log tail | |
/var/log/httpd/*access_log tail | |
# If there are 50 hits in 30 seconds (1.66/s), ban the IP for 30 minutes | |
bantime = 1800 | |
maxretry = 50 | |
findtime = 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enable zlib in Dovecot alongside automatic writing of new emails in gzipped format | |
echo '# Enable zlib plugin for reading/writing: | |
protocol imap { | |
mail_plugins = $mail_plugins zlib | |
} | |
protocol pop3 { | |
mail_plugins = $mail_plugins zlib |