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.subposts_show-childs { | |
margin: 0; | |
padding: 0; | |
} | |
li.subposts_child { | |
width: 25%; | |
display: inline-block; | |
padding: 0 12px 12px 12px; | |
-moz-box-sizing: border-box; |
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#wpcm-sort { | |
padding: 0; | |
} |
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_remove_unwanted_meta( $download_meta ) { | |
unset( $download_meta['bluet_exclude_post_from_matching'] ); | |
unset( $download_meta['bluet_matching_keywords_field'] ); | |
return $download_meta; | |
} | |
add_filter( 'dlm_page_addon_download_meta', 'dlm_pa_remove_unwanted_meta' ); |
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 ( ! empty( $download->{DLM_GF_Constants::META_FORM} ) ) { | |
// code | |
} |
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; | |
} |
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
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
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 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 wpcm_my_custom_transmissions( $transmissions ) { | |
$transmissions['4-speed-automatic'] = '4 speed automatic'; | |
} | |
add_filter('wpcm_transmissions', 'wpcm_my_custom_transmissions'); |