Merged in bugfix/MAW-868-catch-up-missing-code (pull request #26)
MAW-868: catch up missing code * MAW-868: catch up missing code
This commit is contained in:
@@ -4,6 +4,35 @@
|
||||
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
|
||||
//
|
||||
|
||||
add_action( 'pre_get_posts', function() {
|
||||
unset( $_GET['et_pb_searchform_submit'] );
|
||||
}, 1 );
|
||||
|
||||
add_filter( 'relevanssi_post_content', 'rlv_remove_menu', 8 );
|
||||
add_filter( 'relevanssi_pre_excerpt_content', 'rlv_remove_menu', 8 );
|
||||
function rlv_remove_menu( $content ) {
|
||||
$content = preg_replace( '~\[et_pb_text admin_label="Accounts Menu.*?\[/et_pb_text\]~ims', '', $content );
|
||||
$content = preg_replace( '~\[et_pb_text admin_label="Footer Menu.*?\[/et_pb_text\]~ims', '', $content );
|
||||
$content = preg_replace( '~\[et_pb_text admin_label="Footer Address.*?\[/et_pb_text\]~ims', '', $content );
|
||||
$content = preg_replace( '~\[et_pb_text admin_label="Footer Social.*?\[/et_pb_text\]~ims', '', $content );
|
||||
$content = preg_replace( '~\[et_pb_text admin_label="Convenience Menu.*?\[/et_pb_text\]~ims', '', $content );
|
||||
return $content;
|
||||
}
|
||||
|
||||
add_filter( 'relevanssi_pre_excerpt_content', 'rlv_shortcode_attribute', 8 );
|
||||
add_filter( 'relevanssi_post_content', 'rlv_shortcode_attribute', 8 );
|
||||
|
||||
function rlv_shortcode_attribute( $content ) {
|
||||
return preg_replace( '/\[et_pb_blurb.*?title="(.*?)".*?\]/im', '\1 ', $content );
|
||||
}
|
||||
|
||||
add_filter( 'et_use_dynamic_css', function() {
|
||||
if ( is_search() ) {
|
||||
return false;
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
|
||||
function theme_enqueue_styles() {
|
||||
wp_enqueue_script('recaptcha',get_stylesheet_directory_uri().'/js/recaptcha.js',array('jquery'),false,true);
|
||||
@@ -79,6 +108,13 @@ jQuery(function($){
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
jQuery(".pa-blog-module article").each(function(){
|
||||
jQuery(this).children('h2,p,div').not(':first-child').wrapAll('<div class="wrap"></div>');
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
|
||||
Reference in New Issue
Block a user