/
home
/
desid573
/
verdenaturopathy.com.au
/
wp-content
/
themes
/
Divi
/
/home/desid573/verdenaturopathy.com.au/wp-content/themes/Divi
mkdir
upload
Name
Size
Mode
Actions
ai-app/
-
0755
rm
cloud/
-
0755
rm
common/
-
0755
rm
core/
-
0755
rm
css/
-
0755
rm
d5-readiness/
-
0755
rm
docs/
-
0755
rm
epanel/
-
0755
rm
et-pagebuilder/
-
0755
rm
images/
-
0755
rm
includes/
-
0755
rm
js/
-
0755
rm
lang/
-
0755
rm
onboarding/
-
0755
rm
tools/
-
0755
rm
404.php
377
0644
edit
dl
rm
changelog.txt
300768
0644
edit
dl
rm
comments.php
3002
0644
edit
dl
rm
CREDITS.md
56563
0644
edit
dl
rm
footer.php
6985
0644
edit
dl
rm
functions.php
348202
0644
edit
dl
rm
functions.php_bak
334006
0644
edit
dl
rm
header.php
12925
0644
edit
dl
rm
index.php
2705
0644
edit
dl
rm
LICENSE.md
16621
0644
edit
dl
rm
options_divi.php
55642
0644
edit
dl
rm
page-template-blank.php
2282
0644
edit
dl
rm
page.php
2046
0644
edit
dl
rm
post_thumbnails_divi.php
1522
0644
edit
dl
rm
README.md
1405
0644
edit
dl
rm
rtl.css
12482
0644
edit
dl
rm
screenshot.jpg
70975
0644
edit
dl
rm
sidebar-footer.php
377
0644
edit
dl
rm
sidebar.php
317
0644
edit
dl
rm
single-et_pb_layout.php
295
0644
edit
dl
rm
single-project.php
3236
0644
edit
dl
rm
single.php
6386
0644
edit
dl
rm
style-cpt-rtl.min.css
37728
0644
edit
dl
rm
style-cpt.min.css
37728
0644
edit
dl
rm
style-rtl.min.css
28005
0644
edit
dl
rm
style-static-cpt-rtl.min.css
1076777
0644
edit
dl
rm
style-static-cpt.min.css
1039562
0644
edit
dl
rm
style-static-rtl.min.css
831298
0644
edit
dl
rm
style-static.min.css
798770
0644
edit
dl
rm
style.css
384
0644
edit
dl
rm
style.min.css
28005
0644
edit
dl
rm
theme-after-footer.php
333
0644
edit
dl
rm
theme-after-header.php
475
0644
edit
dl
rm
theme-after-wrappers.php
208
0644
edit
dl
rm
theme-before-wrappers.php
459
0644
edit
dl
rm
theme-footer.php
1585
0644
edit
dl
rm
theme-header.php
11812
0644
edit
dl
rm
theme.json
242
0644
edit
dl
rm
wpml-config.xml
345
0644
edit
dl
rm
Edit:
/home/desid573/verdenaturopathy.com.au/wp-content/themes/Divi/single.php
(6386B)
<?php /** * Single.php * * @package Divi */ use ET\Builder\Framework\Utility\PostUtility; $post_id = get_queried_object_id(); $show_default_title = get_post_meta( $post_id, '_et_pb_show_title', true ); $is_page_builder_used = et_pb_is_pagebuilder_used( $post_id ); $is_builder_enabled_custom_post_type_single = $is_page_builder_used && et_builder_post_is_of_custom_post_type( $post_id ); if ( $is_builder_enabled_custom_post_type_single ) { add_filter( 'body_class', static function( $classes ) { $classes = array_diff( $classes, [ 'et_right_sidebar', 'et_left_sidebar' ] ); $classes[] = 'et_no_sidebar'; return array_values( array_unique( $classes ) ); } ); } get_header(); ?> <div id="main-content"> <?php if ( et_builder_is_product_tour_enabled() ) : // load fullwidth page in Product Tour mode. while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>> <div class="entry-content"> <?php the_content(); ?> </div> </article> <?php endwhile; else : ?> <?php if ( ! $is_builder_enabled_custom_post_type_single ) : ?> <div class="container"> <div id="content-area" class="clearfix"> <div id="left-area"> <?php endif; ?> <?php while ( have_posts() ) : the_post(); ?> <?php /** * Fires before the title and post meta on single posts. * * @since 3.18.8 */ do_action( 'et_before_post' ); ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>> <?php if ( ! $is_builder_enabled_custom_post_type_single && ( ( 'off' !== $show_default_title && $is_page_builder_used ) || ! $is_page_builder_used ) ) { ?> <div class="et_post_meta_wrapper"> <h1 class="entry-title"><?php the_title(); ?></h1> <?php if ( ! post_password_required() ) : et_divi_post_meta(); $thumb = ''; $width = (int) apply_filters( 'et_pb_index_blog_image_width', 1080 ); $height = (int) apply_filters( 'et_pb_index_blog_image_height', 675 ); $classtext = 'et_featured_image'; $titletext = get_the_title(); $alttext = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true ); $thumbnail = get_thumbnail( $width, $height, $classtext, $alttext, $titletext, false, 'Blogimage' ); $thumb = $thumbnail['thumb']; $post_format = et_pb_post_format(); $first_video = PostUtility::get_first_video(); if ( 'video' === $post_format && false !== $first_video ) { printf( '<div class="et_main_video_container"> %1$s </div>', et_core_esc_previously( $first_video ) ); } elseif ( ! in_array( $post_format, [ 'gallery', 'link', 'quote' ], true ) && 'on' === et_get_option( 'divi_thumbnails', 'on' ) && '' !== $thumb ) { print_thumbnail( $thumb, $thumbnail['use_timthumb'], $alttext, $width, $height ); } elseif ( 'gallery' === $post_format ) { et_pb_gallery_images(); } ?> <?php $text_color_class = et_divi_get_post_text_color(); $inline_style = et_divi_get_post_bg_inline_style(); switch ( $post_format ) { case 'audio': $audio_player = et_pb_get_audio_player(); if ( $audio_player ) { printf( '<div class="et_audio_content%1$s"%2$s> %3$s </div>', esc_attr( $text_color_class ), et_core_esc_previously( $inline_style ), et_core_esc_previously( $audio_player ) ); } break; case 'quote': printf( '<div class="et_quote_content%2$s"%3$s> %1$s </div>', et_core_esc_previously( et_get_blockquote_in_content() ), esc_attr( $text_color_class ), et_core_esc_previously( $inline_style ) ); break; case 'link': printf( '<div class="et_link_content%3$s"%4$s> <a href="%1$s" class="et_link_main_url">%2$s</a> </div>', esc_url( et_get_link_url() ), esc_html( et_get_link_url() ), esc_attr( $text_color_class ), et_core_esc_previously( $inline_style ) ); break; } endif; ?> </div> <?php } ?> <div class="entry-content"> <?php do_action( 'et_before_content' ); the_content(); wp_link_pages( [ 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'Divi' ), 'after' => '</div>', ] ); ?> </div> <?php if ( ! $is_builder_enabled_custom_post_type_single ) : ?> <div class="et_post_meta_wrapper"> <?php endif; ?> <?php if ( ! $is_builder_enabled_custom_post_type_single && et_get_option( 'divi_468_enable' ) === 'on' ) { echo '<div class="et-single-post-ad">'; if ( et_get_option( 'divi_468_adsense' ) !== '' ) { echo et_core_intentionally_unescaped( et_core_fix_unclosed_html_tags( et_get_option( 'divi_468_adsense' ) ), 'html' ); } else { ?> <a href="<?php echo esc_url( strval( et_get_option( 'divi_468_url' ) ) ); ?>"><img src="<?php echo esc_attr( et_get_option( 'divi_468_image' ) ); ?>" alt="468" class="foursixeight" /></a> <?php } echo '</div>'; } /** * Fires after the post content on single posts. * * @since 3.18.8 */ do_action( 'et_after_post' ); if ( ! $is_builder_enabled_custom_post_type_single && ( comments_open() || get_comments_number() ) && 'on' === et_get_option( 'divi_show_postcomments', 'on' ) ) { // TODO fix(D4, Comments): Revert to comments_template after WordPress core resolves Trac #61468. [https://github.com/elegantthemes/Divi/issues/28338]. et_comments_template_safe( '', true ); } ?> <?php if ( ! $is_builder_enabled_custom_post_type_single ) : ?> </div> <?php endif; ?> </article> <?php endwhile; ?> <?php if ( ! $is_builder_enabled_custom_post_type_single ) : ?> </div> <?php get_sidebar(); ?> </div> </div> <?php endif; ?> <?php endif; ?> </div> <?php get_footer();
Save
cmd:
run