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_filter( 'rp4wp_thumbnail_use_inline_images', '__return_false' ); |
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 mc4wp_dlm_dynamic_url( $url, $form ) { | |
if ( isset( $_POST['mc4wp_dlm_download_id'] ) && ! empty( $_POST['mc4wp_dlm_download_id'] ) ) { | |
$download = new DLM_Download( absint( $_POST['mc4wp_dlm_download_id'] ) ); | |
$url = $download->get_the_download_link(); | |
} | |
return $url; | |
} |
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
ul.previous-versions { | |
display: block !important; | |
border: 0 !important; | |
} | |
ul.previous-versions li { | |
padding-left: 0 !important; | |
padding-right: 0 !important; | |
border: 0 !important; | |
} |
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 $excerpt = wp_trim_words( strip_tags( strip_shortcodes( ( ( '' != $related_post->post_excerpt ) ? $related_post->post_excerpt : $related_post->post_content ) ) ), $excerpt_length ); ?> | |
<p><a href="<?php echo get_permalink( $related_post->ID ); ?>"><?php echo apply_filters( 'rp4wp_post_excerpt', $excerpt, $related_post->ID ); ?></a></p> |
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 wpcm_my_custom_transmissions( $transmissions ) { | |
$transmissions['4-speed-automatic'] = '4 speed automatic'; | |
} | |
add_filter('wpcm_transmissions', 'wpcm_my_custom_transmissions'); |
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 pc_show_parents_cb( $atts ) { | |
$atts = shortcode_atts( array( | |
'slug' => '', | |
'child' => '', | |
'link' => 'true' | |
), $atts, 'bartag' ); | |
if( empty( $atts['slug'] ) ) { | |
return ''; | |
} |
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 rp4wp_styling_on_all() { | |
global $post; | |
// Check if the post type is installed | |
$pt_manager = new RP4WP_Post_Type_Manager(); | |
if ( $pt_manager->is_post_type_installed( $post->post_type ) ) { | |
// get component related css | |
$component_manager = new RP4WP_Manager_Component(); | |
$css = $component_manager->get_component_css(); | |
// output css |
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 dlm_pa_url( $dlm_download ) { | |
return trailingslashit( get_permalink( 555 ) ) . 'download-info/' . $dlm_download->post->post_name . '/'; | |
} |
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 | |
$link_manager = new RP4WP_Post_Link_Manager(); | |
$related_posts = $link_manager->get_children( get_the_ID(), array( 'posts_per_page' => 3 ) ); | |
if ( ! empty( $related_posts ) ) { | |
foreach ( $related_posts as $related_post ) { | |
// Related Post Manager | |
$related_post_manager = new RP4WP_Related_Post_Manager(); |
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
.rp4wp-related-posts h3 { | |
font-size: 16px; | |
font-weight: normal; | |
} |