Skip to content

Commit

Permalink
refactor: expand tenary operator in edd template files
Browse files Browse the repository at this point in the history
  • Loading branch information
UVLabs committed Dec 8, 2021
1 parent 896db69 commit c0829bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions template-parts/content-download-archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
* @package Neve
*/

( defined( 'NEVE_PRO_PATH' ) && get_option( 'nv_pro_easy_digital_downloads_status' ) ) ? do_action( 'neve_do_download_archive', 'archive-download' ) : do_action( 'neve_blog_post_template_part_content', 'single' );

if ( defined( 'NEVE_PRO_PATH' ) && get_option( 'nv_pro_easy_digital_downloads_status' ) ) {
do_action( 'neve_do_download_archive', 'archive-download' );
} else {
do_action( 'neve_blog_post_template_part_content', 'single' );
}
6 changes: 5 additions & 1 deletion template-parts/content-download-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
* @package Neve
*/

( defined( 'NEVE_PRO_PATH' ) && get_option( 'nv_pro_easy_digital_downloads_status' ) ) ? do_action( 'neve_do_single_download', 'single-download' ) : do_action( 'neve_do_single_post', 'single-post' );
if ( defined( 'NEVE_PRO_PATH' ) && get_option( 'nv_pro_easy_digital_downloads_status' ) ) {
do_action( 'neve_do_single_download', 'single-download' );
} else {
do_action( 'neve_do_single_post', 'single-post' );
}

0 comments on commit c0829bd

Please sign in to comment.