', $args);
return str_replace(')', ' ', $args);
}
/**
* Archive Brackets
*
* @package Allo
* @since 1.0
*/
public function archive_postcount_filter($args) {
$args = str_replace(' (', ' ', $args);
return str_replace(')', ' ', $args);
}
/**
* Remove Paragraph and Br Tag
*
* @package Allo
* @since 1.0
*/
public function remove_p_n_br_tag($content) {
$array = array (
'
[' => '[',
']
' => ']',
']
' => ']'
);
$content = strtr($content, $array);
return $content;
}
/**
* Add property
*
* @package Allo
* @since 1.0
*/
public function add_property_attribute( $tag, $handle ) {
if ( strpos( $tag, 'mediaelement' ) !== FALSE ) {
$tag = str_replace( "/>", "property='stylesheet' />", $tag );
}
return $tag;
}
/**
* De Register Contact form 7
*
* @package Allo
* @since 1.0
*/
public function cf7_dequeue_scripts() {
$load_scripts = false;
$post = get_post();
if( is_singular() ) {
if( has_shortcode($post->post_content, 'contact-form-7') ) {
$load_scripts = true;
}
}
if( ! $load_scripts ) {
wp_dequeue_script( 'contact-form-7' );
wp_dequeue_style( 'contact-form-7' );
}
}
}
new TL_ALLO_WP_Override;