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
add_action( 'wp_enqueue_scripts', 'embrace_custom_scripts', 100 ); | |
function embrace_custom_scripts() | |
{ | |
wp_dequeue_script( 'reactor-js' ); | |
wp_deregister_script( 'reactor-js' ); | |
// Now the parent script is completely removed | |
/* | |
* Now enqueue you child js file, no need to register if you are not | |
* doing conditional loading |
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 ( ! function_exists( 'reactor_toplang_r' ) ) { | |
function reactor_toplang_r( $args = '' ) { | |
if ( function_exists( 'icl_get_languages' ) ) { | |
$defaults = array( | |
'side' => 'right', | |
); | |
$args = wp_parse_args( $args, $defaults ); | |
$args = apply_filters( 'reactor_top_bar_args', $args ); |
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 crum_replace_related_posts(){ | |
add_filter( 'rp4wp_append_content', '__return_false' ); | |
add_action( 'reactor_post_after', 'rp4wp_children', 1 ); | |
} | |
add_action( 'init', 'crum_replace_related_posts' ); |
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
<script> | |
jQuery(document).ready(function(){ | |
jQuery(".widget_crum_block_fetures_box").find("a.link.clickable").removeAttr('href'); | |
jQuery(".widget_block-fetures-box").find(".button").hide(); | |
}); | |
</script> |
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
jQuery(document).ready(function(){ | |
jQuery("#Grid .round article").find(".absolute-link").removeAttr('title'); | |
}); |
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
<?php | |
/** | |
* Meta information for current post: categories, tags, author, and date | |
*/ | |
if ( !function_exists('reactor_post_meta') ) { | |
function reactor_post_meta( $args = '' ) { | |
do_action('reactor_post_meta', $args); |
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
<?php | |
if ( !function_exists('reactor_comments') ) : | |
function reactor_comments( $comment, $args, $depth ) { | |
do_action('reactor_comments', $comment, $args, $depth ); | |
global $userpro; | |
$GLOBALS['comment'] = $comment; | |
switch ( $comment->comment_type ) : | |
case 'pingback' : | |
case 'trackback' : |
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 crum_changed_content($num,$no_more = false) | |
{ | |
global $post; | |
$options = get_option('second-touch'); | |
if ($options['read_more_style'] == '0'){ | |
$read_more_link = '<a href="'. get_permalink($post->ID) . '" class="link-read-more"> </a>'; | |
}else{ | |
$read_more_link = '<a href="'. get_permalink($post->ID) . '"> '.__('Read more','crum').'</a>'; |
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
<script type="text/javascript"> | |
jQuery('#header .soc-head-icons a').click(function() { jQuery(this).attr('target', '_blank'); }); | |
</script> |
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
<?php | |
/** | |
* Shortcode attributes | |
* @var $atts | |
* @var $title | |
* @var $source | |
* @var $image | |
* @var $custom_src | |
* @var $onclick | |
* @var $img_size |