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 | |
/** | |
* Default output for a download via the [download] shortcode | |
*/ | |
global $dlm_download, $dlm_page_addon; | |
?> | |
<a class="download-link" href="<?php echo $dlm_download->get_the_download_link(); ?>" rel="nofollow" target="_blank"> | |
<?php $dlm_download->the_title(); ?> (<?php printf( _n( '1', '%d', $dlm_download->get_the_download_count(), 'dlm_page_addon' ), $dlm_download->get_the_download_count() ) ?>) | |
</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
function dlm_pa_category_no_children( $query_args ) { | |
$query_args['tax_query'][0]['include_children'] = false; | |
return $query_args; | |
} | |
add_filter( 'dlm_page_addon_category_query_args', 'dlm_pa_category_no_children' ); |
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
location /wp-content/uploads/dlm_uploads { | |
deny all; | |
return 403; | |
} |
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
.single-wpcm_vehicle .et_post_meta_wrapper img { | |
display: none; | |
} |
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
.single-wpcm_vehicle .single-thumbnail { | |
display: none !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
function dlm_pa_remove_unwanted_meta( $download_meta ) { | |
unset( $download_meta['slide_template'] ); | |
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
<?php | |
add_action( 'wpcm_listings_vehicle_filters', 'wpcm_custom_template_vehicle_listings_filters_color', 14 ); | |
function wpcm_custom_template_vehicle_listings_filters_color() { | |
wp_car_manager()->service( 'template_manager' )->get_template_part( 'listings/filters/color' ); | |
} | |
add_filter( 'wpcm_get_vehicles_filter_color', 'wpcm_custom_filter_color', 10, 3 ); | |
function wpcm_custom_filter_color( $filter, $key, $val ) { |
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 remove_dem_wpml_notices() { | |
echo '<style type="text/css">.wpmu-update-row {display: none !important;}</style>'; | |
} | |
add_action( 'admin_head', 'remove_dem_wpml_notices' ); |
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_el_all_locked( $metadata, $object_id, $meta_key, $single ) { | |
if ( isset( $meta_key ) && '_dlm_el_locked' == $meta_key ) { | |
$metadata = 'yes'; | |
} | |
return $metadata; | |
} | |
add_filter( 'get_post_metadata', 'dlm_el_all_locked', 100, 4 ); |
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 ( '' != $dlm_download->{DLM_GF_Constants::META_FORM} && 0 != $dlm_download->{DLM_GF_Constants::META_FORM} ) { | |
?> | |
<section id="na_pre_dl_form"> | |
<p><span class="gfield_required">*</span> required field</p> | |
<!-- Output the download form --> | |
<?php echo do_shortcode( '[dlm_gf_form download_id=' . $dlm_download->id . ']' ); ?> | |
<!-- Now we return to your regularly scheduled programm --> | |
</section> | |
<?php | |
} |