File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,13 @@ public function __construct() {
340340 array (
341341 'name ' => 'disable_resource_thumbs ' ,
342342 'type ' => 'checkbox ' ,
343- 'label ' => esc_html__ ( 'Disable thumbs ' , 'chipmunk ' ),
343+ 'label ' => esc_html__ ( 'Disable thumbnails on resource list ' , 'chipmunk ' ),
344+ 'default ' => false ,
345+ ),
346+ array (
347+ 'name ' => 'disable_resource_single_thumbs ' ,
348+ 'type ' => 'checkbox ' ,
349+ 'label ' => esc_html__ ( 'Disable thumbnails on resource page ' , 'chipmunk ' ),
344350 'default ' => false ,
345351 ),
346352 array (
Original file line number Diff line number Diff line change 2323 <meta itemprop="name" content="<?php echo esc_attr ( strip_tags ( get_the_title () ) ); ?> " />
2424
2525 <div class="resource__main row">
26- <div class="resource__content column column--lg-<?php echo esc_attr ( has_post_thumbnail () ? '6 ' : '12 ' ); ?> ">
26+ <div class="resource__content column column--lg-<?php echo esc_attr ( ( has_post_thumbnail () and ! chipmunk_theme_option ( ' disable_resource_single_thumbs ' ) ) ? '6 ' : '12 ' ); ?> ">
2727 <?php do_action ( 'chipmunk_before_resource_info ' ); ?>
2828
2929 <div class="resource__info">
7373 <?php do_action ( 'chipmunk_after_resource_actions ' ); ?>
7474 </div>
7575
76- <?php if ( has_post_thumbnail () ) : ?>
76+ <?php if ( has_post_thumbnail () and ! chipmunk_theme_option ( ' disable_resource_single_thumbs ' ) ) : ?>
7777 <aside class="resource__image column column--lg-6">
7878 <?php if ( is_single () ) : ?>
7979 <?php if ( ! empty ( $ primary_website ) ) : ?>
You can’t perform that action at this time.
0 commit comments