Initial commit. State 04.2021.

This commit is contained in:
2021-04-22 17:57:16 +02:00
commit 82781cca41
2974 changed files with 975656 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php if ( ! function_exists( 'et_custom_comments_display' ) ) :
function et_custom_comments_display($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<article id="comment-<?php comment_ID(); ?>" class="comment-body clearfix">
<div class="comment_avatar">
<?php echo get_avatar( $comment, $size = '80' ); ?>
</div>
<div class="comment_postinfo">
<?php printf( '<span class="fn">%s</span>', get_comment_author_link() ); ?>
<span class="comment_date">
<?php
/* translators: 1: date, 2: time */
printf( __( 'on %1$s at %2$s', 'Divi' ), get_comment_date(), get_comment_time() );
?>
</span>
<?php edit_comment_link( esc_html__( '(Edit)', 'Divi' ), ' ' ); ?>
<?php
$et_comment_reply_link = get_comment_reply_link( array_merge( $args, array(
'reply_text' => esc_attr__( 'Reply', 'Divi' ),
'depth' => (int) $depth,
'max_depth' => (int) $args['max_depth'],
) ) );
?>
</div> <!-- .comment_postinfo -->
<div class="comment_area">
<?php if ( '0' == $comment->comment_approved ) : ?>
<em class="moderation"><?php esc_html_e('Your comment is awaiting moderation.','Divi') ?></em>
<br />
<?php endif; ?>
<div class="comment-content clearfix">
<?php
comment_text();
if ( $et_comment_reply_link ) echo '<span class="reply-container">' . $et_comment_reply_link . '</span>';
?>
</div> <!-- end comment-content-->
</div> <!-- end comment_area-->
</article> <!-- .comment-body -->
<?php }
endif;

View File

@@ -0,0 +1 @@
<a href="http://www.elegantthemes.com/gallery/divi/readme.html" target="_blank"><?php esc_html_e( 'Read Divi Documentation', $themename ); ?></a>

View File

@@ -0,0 +1,63 @@
<?php
function et_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'Divi' ),
'id' => 'sidebar-1',
'before_widget' => '<div id="%1$s" class="et_pb_widget %2$s">',
'after_widget' => '</div> <!-- end .et_pb_widget -->',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => __( 'Footer Area', 'Divi' ) . ' #1',
'id' => 'sidebar-2',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div> <!-- end .fwidget -->',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => __( 'Footer Area', 'Divi' ) . ' #2',
'id' => 'sidebar-3',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div> <!-- end .fwidget -->',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => __( 'Footer Area', 'Divi' ) . ' #3',
'id' => 'sidebar-4',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div> <!-- end .fwidget -->',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => __( 'Footer Area', 'Divi' ) . ' #4',
'id' => 'sidebar-5',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div> <!-- end .fwidget -->',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
$et_pb_widgets = get_theme_mod( 'et_pb_widgets' );
if ( $et_pb_widgets['areas'] ) {
foreach ( $et_pb_widgets['areas'] as $id => $name ) {
register_sidebar( array(
'name' => sanitize_text_field( $name ),
'id' => sanitize_text_field( $id ),
'before_widget' => '<div id="%1$s" class="et_pb_widget %2$s">',
'after_widget' => '</div> <!-- end .et_pb_widget -->',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
) );
}
}
}
add_action( 'widgets_init', 'et_widgets_init' );

View File

@@ -0,0 +1 @@
<a href="http://www.elegantthemes.com/members-area/tutorials/" target="_blank"><?php esc_html_e( 'Watch video tutorials', 'Divi' ); ?></a>