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 | |
/** | |
* Setup some data | |
*/ | |
// get the post type | |
$post_type = get_post_type( get_the_id() ); | |
// The settings object | |
$pt_settings = RP4WP()->settings[ 'general_' . $post_type ]; | |
/** |
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_theme_setup() { | |
add_image_size( 'pc_image_custom', 300, 300, true ); // width: 300, height: 300 - feel free to change these values | |
} | |
add_action( 'after_setup_theme', 'pc_theme_setup' ); | |
function pc_thumbnail_size( $size ) { | |
return 'pc_image_custom'; | |
} |
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
.wpcm-vehicle-listings .wpcm-vehicle-results-wrapper .wpcm-vehicle-results li.wpcm-listings-item a .wpcm-listings-item-description { | |
padding-left: 133px !important; | |
} | |
.wpcm-vehicle-listings .wpcm-vehicle-results-wrapper .wpcm-vehicle-results li.wpcm-listings-item a .wpcm-listings-item-image-wrapper { | |
width: 133px !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
.wpcm-vehicle-listings .wpcm-vehicle-results-wrapper .wpcm-vehicle-results li.wpcm-listings-item a .wpcm-listings-item-image-wrapper { | |
width: 350px !important; | |
height: 350px !important; | |
} | |
.wpcm-vehicle-listings .wpcm-vehicle-results-wrapper .wpcm-vehicle-results li.wpcm-listings-item a .wpcm-listings-item-description { | |
padding-left: 350px !important; | |
} | |
.wpcm-vehicle-listings .wpcm-vehicle-results-wrapper .wpcm-vehicle-results li.wpcm-listings-item 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
.wpcm-share-this ul, .wpcm-share-this ul li { | |
list-style: none !important; | |
padding: 0 15px 0 0 !important; | |
} | |
.wpcm-share-this ul li:before { | |
width: 0 !important; | |
height: 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 | |
if ( ! defined( 'WP_USE_EXT_MYSQL' ) ) { | |
define( 'WP_USE_EXT_MYSQL', 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
.wpcm-vehicle-listings .wpcm-vehicle-results-wrapper .wpcm-vehicle-results li.wpcm-listings-item a:hover { | |
background-color: transparent !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_custom_cpt_args( $args ) { | |
$args['exclude_from_search'] = false; | |
return true; | |
} | |
add_filter( 'dlm_cpt_dlm_download_args', 'dlm_custom_cpt_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
$aam = new Dlm_Aam_Access_Manager(); | |
if ( $aam->has_access_to_download( $dlm_download ) ) { | |
// has access | |
} else { | |
// no access | |
} |