File: /var/www/html/wpbiancoarte/wp-content/plugins/hiroshi-core/inc/blog/single/variations/wide/wide.php
<?php
if ( ! function_exists( 'hiroshi_core_add_blog_single_variation_wide' ) ) {
function hiroshi_core_add_blog_single_variation_wide( $variations ) {
$variations['wide'] = esc_html__( 'Wide Blog', 'hiroshi-core' );
return $variations;
}
add_filter( 'hiroshi_core_filter_blog_single_layout_options', 'hiroshi_core_add_blog_single_variation_wide' );
}
if ( ! function_exists( 'hiroshi_core_blog_single_info_on_image_media' ) ) {
/**
* Function that load media part template
*
*/
function hiroshi_core_blog_single_info_on_image_media() {
$params = array();
$template = hiroshi_core_get_post_value_through_levels( 'qodef_blog_single_post_template' );
if ( is_singular( 'post' ) && 'wide' === $template ) {
$params['holder_classes'] = array(
'qodef-e',
);
hiroshi_core_template_part( 'blog', 'single/variations/wide/layout/media', '', $params );
}
}
add_action( 'hiroshi_action_before_page_inner', 'hiroshi_core_blog_single_info_on_image_media' );
}