@@ -26,7 +26,7 @@ function dt_print_details_bar(
2626 $ shared_with_text .= sprintf ( ', %s ' , $ shared ['display_name ' ] );
2727 }
2828
29-
29+ $ picture_style = ! class_exists ( ' Disciple_Tools_Storage ' ) ? ' cursor: default !important; ' : '' ;
3030 $ record_picture = isset ( $ dt_post ['record_picture ' ]['thumb ' ] ) ? $ dt_post ['record_picture ' ]['thumb ' ] : null ;
3131 $ picture = apply_filters ( 'dt_record_picture ' , $ record_picture , $ dt_post_type , $ post_id );
3232 $ icon = apply_filters ( 'dt_record_icon ' , null , $ dt_post_type , $ dt_post );
@@ -110,13 +110,15 @@ class="second-bar" id="second-bar-large">
110110 <?php
111111 if ( !empty ( $ picture ) ) : ?>
112112 <img class="dt-storage-upload details-bar-picture" src="<?php echo esc_html ( $ picture )?> "
113+ style="<?php echo esc_attr ( $ picture_style ) ?> "
113114 data-storage_upload_post_type="<?php echo esc_attr ( $ dt_post_type )?> "
114115 data-storage_upload_post_id="<?php echo esc_attr ( $ post_id )?> "
115116 data-storage_upload_meta_key="record_picture"
116117 data-storage_upload_key_prefix="<?php echo esc_attr ( $ dt_post_type )?> "
117118 data-storage_upload_delete_enabled="1">
118119 <?php else : ?>
119120 <i class="dt-storage-upload details-bar-picture <?php echo esc_html ( $ icon ) ?> medium"
121+ style="<?php echo esc_attr ( $ picture_style ) ?> "
120122 data-storage_upload_post_type="<?php echo esc_attr ( $ dt_post_type )?> "
121123 data-storage_upload_post_id="<?php echo esc_attr ( $ post_id )?> "
122124 data-storage_upload_meta_key="record_picture"
@@ -282,13 +284,15 @@ class="second-bar" id="second-bar-small">
282284 <?php $ picture = apply_filters ( 'dt_record_picture ' , $ record_picture , $ dt_post_type , $ post_id );
283285 if ( !empty ( $ picture ) ) : ?>
284286 <img class="dt-storage-upload details-bar-picture" src="<?php echo esc_html ( $ picture )?> "
287+ style="<?php echo esc_attr ( $ picture_style ) ?> "
285288 data-storage_upload_post_type="<?php echo esc_attr ( $ dt_post_type )?> "
286289 data-storage_upload_post_id="<?php echo esc_attr ( $ post_id )?> "
287290 data-storage_upload_meta_key="record_picture"
288291 data-storage_upload_key_prefix="<?php echo esc_attr ( $ dt_post_type )?> "
289292 data-storage_upload_delete_enabled="1">
290293 <?php else : ?>
291294 <i class="dt-storage-upload details-bar-picture <?php echo esc_html ( $ icon ) ?> medium"
295+ style="<?php echo esc_attr ( $ picture_style ) ?> "
292296 data-storage_upload_post_type="<?php echo esc_attr ( $ dt_post_type )?> "
293297 data-storage_upload_post_id="<?php echo esc_attr ( $ post_id )?> "
294298 data-storage_upload_meta_key="record_picture"
0 commit comments