get( 'Version' ) );
}
function beshop_plus_enqueue_child_styles() {
wp_enqueue_style( 'beshop-plus-parent-style', get_template_directory_uri() . '/style.css',array('beshop-main', 'beshop-default'), '', 'all');
wp_enqueue_style( 'beshop-plus-style',get_stylesheet_directory_uri() . '/assets/css/plus-style.css',array(), BESHOP_PLUS_VERSION, 'all');
wp_enqueue_script( 'masonry' );
wp_enqueue_script( 'beshop-plus-main-js', get_stylesheet_directory_uri() . '/assets/js/main.js',array('jquery'), BESHOP_PLUS_VERSION, true );
}
add_action( 'wp_enqueue_scripts', 'beshop_plus_enqueue_child_styles');
/**
* Customizer additions.
*/
require get_stylesheet_directory() . '/inc/actions.php';
require get_stylesheet_directory() . '/inc/customizer.php';
function beshop_plus_post_single_rand_category(){
$beshop_plus_categories = get_the_category();
if($beshop_plus_categories){
$beshop_plus_category = $beshop_plus_categories[mt_rand(0,count( $beshop_plus_categories)-1)];
}else{
$beshop_plus_category = '';
}
if ( 'post' === get_post_type() && !empty( $beshop_plus_category ) ) :
?>
name); ?>
%2$s';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( DATE_W3C ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( DATE_W3C ) ),
esc_html( get_the_modified_date() )
);
$posted_on = sprintf(
/* translators: %s: post date. */
esc_html_x( ' -- %s', 'post date', 'beshop-plus' ),
'' . $time_string . ''
);
echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endif;
// Add customizer sanitization functions
function beshop_sanitize_checkbox($checked) {
return ((isset($checked) && true == $checked) ? true : false);
}