Weak hands cannot be planted, meager skills have no foundation. Shallow wisdom is futile, how can one hope for a good name?扰扰从役倦，屑屑身事微。少壮轻年月，迟暮惜光辉。
<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php
$blog_layouts = array(
	'blog_default' => array(
		'name' => 'blog_default',
		'img' => DTB_TOOLBOX_PLUGIN_URI .'/assets/img/blog_default.svg'
	),
	'blog_grid_1' => array(
		'name' => 'blog_grid_1',
		'img' => DTB_TOOLBOX_PLUGIN_URI .'/assets/img/blog_grid_1.svg'
	),
	'blog_grid_2' => array(
		'name' => 'blog_grid_2',
		'img' => DTB_TOOLBOX_PLUGIN_URI .'/assets/img/blog_grid_2.svg'
	),
	'blog_list_1' => array(
		'name' => 'blog_list_1',
		'img' => DTB_TOOLBOX_PLUGIN_URI .'/assets/img/blog_list_1.svg'
	),
	'blog_list_2' => array(
		'name' => 'blog_list_2',
		'img' => DTB_TOOLBOX_PLUGIN_URI .'/assets/img/blog_list_2.svg'
	),
	'blog_list_3' => array(
		'name' => 'blog_list_3',
		'img' => DTB_TOOLBOX_PLUGIN_URI .'/assets/img/blog_list_3.svg'
	)
);
	$layout_query = array(
	'post_type'=>'et_pb_layout',
	'posts_per_page'=>-1,
	'meta_query' => array(
		array(
		'key' => '_et_pb_predefined_layout',
		'compare' => 'NOT EXISTS')
		)
	);
	
	$headings = array("h2","h3","h4","h5","h6");
	
	$dtb_archive_header_layout_val = dtb_get_option('dtb_archive_header_layout');
	$dtb_category_header_layout_val = dtb_get_option('dtb_category_header_layout');
	$dtb_author_header_layout_val = dtb_get_option('dtb_author_header_layout');
	$dtb_search_header_layout_val = dtb_get_option('dtb_search_header_layout');
	$dtb_single_header_layout_val = dtb_get_option('dtb_single_header_layout');
	$dtb_single_before_content_layout_val = dtb_get_option('dtb_single_before_content_layout');
	$dtb_single_after_content_layout_val = dtb_get_option('dtb_single_after_content_layout');
	
	$dtb_readmore_text_val = dtb_get_option('dtb_readmore_text');
	$dtb_post_fullwidth_val = dtb_get_option('dtb_post_fullwidth');
	$dtb_post_sidebar_layout_val = dtb_get_option('dtb_post_sidebar_layout');
	$dtb_sidebar_styles_val = dtb_get_option('dtb_sidebar_styles');
	$dtb_archive_styles_val = dtb_get_option('dtb_archive_styles');
	$dtb_comments_styles_val = dtb_get_option('dtb_comments_styles');
	$dtb_comments_text_val = dtb_get_option('dtb_comments_text');
	$dtb_post_meta_val = dtb_get_option('dtb_post_meta');
	$dtb_hide_post_title_val = dtb_get_option('dtb_hide_post_title');
	$dtb_post_author_val = dtb_get_option('dtb_post_author');
	$dtb_post_prev_next_val = dtb_get_option('dtb_post_prev_next');
	$dtb_post_related_val = dtb_get_option('dtb_post_related');
	$dtb_related_text_val = dtb_get_option('dtb_related_text');
	$dtb_related_heading_val = dtb_get_option('dtb_related_heading') ?: 'h4';
	$dtb_sidebar_archive_val = dtb_get_option('dtb_sidebar_archive');
	$dtb_blog_layout_val = dtb_get_option('dtb_blog_layout', 'blog_default');
	$dtb_blog_index_layout_val = dtb_get_option('dtb_blog_index_layout');
	$dtb_post_prev_text_val = dtb_get_option('dtb_post_prev_text');
	$dtb_post_next_text_val = dtb_get_option('dtb_post_next_text');

	
?>
<div id="blog" class="tool <?php echo $active_tab == 'blog' ? 'tool-active' : ''; ?>">
	
	
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Customize Sidebar & Widgets', 'divi-toolbox'); ?></h3>
			<div class="box-descr"><p><?php printf(esc_html__("Enable this if you'd like to use the %s to edit the default sidebar appearance.", "divi-toolbox"), '<a href=' . admin_url( 'customize.php?autofocus[section]=dtb_blog') . ' target=_blank>' . __('Toolbox Customizer', 'divi-toolbox') . '</a>' ); ?></p></div>
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_sidebar_styles" type="checkbox" value="1" <?php checked( '1', $dtb_sidebar_styles_val ); ?> />
			</div>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Custom Post Meta', 'divi-toolbox'); ?> </h3>
			<div class="box-descr"><p> <?php _e('Add icons and customize the post meta info (post author, category, date etc)', 'divi-toolbox'); ?></p></div>
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_post_meta" type="checkbox" value="1" <?php checked( '1', $dtb_post_meta_val ); ?> />
			</div>
		</div>
	</div>
	
	<h2 class="tool-section"><?php _e('Archive / Categories', 'divi-toolbox'); ?></h2>
	
	<div class="toolbox">
		<div class="box-title">
			<h3> <?php _e('Customize Archives & Categories', 'divi-toolbox'); ?></h3>
			<div class="box-descr"><p><?php printf(esc_html__("Enable this if you'd like to use the %s to edit the default categories and archive pages.", "divi-toolbox"), '<a href=' . admin_url( 'customize.php?autofocus[section]=dtb_blog') . ' target=_blank>' . __('Toolbox Customizer', 'divi-toolbox') . '</a>' ); ?></p></div>			
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_archive_styles" type="checkbox" value="1" <?php checked( '1', $dtb_archive_styles_val ); ?> />
			</div>
		</div>
	</div>
	
	<div class="toolbox">
		<div class="box-title">
			<h3> <?php _e('Blog Archives Layout', 'divi-toolbox'); ?></h3>
			<div class="box-descr"><p><?php _e("Choose the layout for Archive, Categories, Author, Tags & Search results pages.", "divi-toolbox"); ?></p></div>
		</div>
		<div class="box-content">
			<div class="preloader-wrap blog-layouts">
			<?php foreach( $blog_layouts as $blog_layout ) : ?>
				<div class="menu-item">
				<input type="radio"  name="dtb_blog_layout" value="<?php esc_attr_e( $blog_layout['name'], 'divi-toolbox' ); ?>" id="<?php esc_attr_e( $blog_layout['name'] ); ?>" <?php checked( $dtb_blog_layout_val, $blog_layout['name'] ); ?>  class="customradio"/>
				<label for="<?php echo $blog_layout['name']; ?>"><img src="<?php echo $blog_layout['img']; ?>" alt=""/></label>
				</div>
			<?php endforeach;?>
			</div>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Hide Archives Sidebar', 'divi-toolbox'); ?></h3>
			<div class="box-descr"><p><?php _e("Enable this to hide sidebar on all archive pages.", "divi-toolbox") ?></p></div>
			
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_sidebar_archive" type="checkbox" value="1" <?php checked( '1', $dtb_sidebar_archive_val ); ?> />
			</div>
		</div>
	</div>

	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Read More Blog Button Text', 'divi-toolbox'); ?></h3>
			<div class="box-descr"><p><?php _e('Replace the default "Read More" button text on Blog Modules globally.', "divi-toolbox"); ?></p></div>			
		</div>
		<div class="box-content">
			<?php $dtb_readmore_text = !empty($dtb_readmore_text_val) ? $dtb_readmore_text_val : __('Read More', 'divi-toolbox'); ?>
			<input type="text" name="dtb_readmore_text" value="<?php echo $dtb_readmore_text;?>"/>
		</div>
	</div>
	
	
	<h2 class="tool-section"><?php _e('Single Post', 'divi-toolbox'); ?></h2>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Change Single Post Layout', 'divi-toolbox'); ?></h3>			
			<div class="box-descr"><p><?php _e('This option globally changes the single post layout.', "divi-toolbox") ?></p></div>			
		</div>
		<div class="box-content">
			<select name="dtb_post_sidebar_layout">
				<?php $dtb_post_sidebar_layout = !empty(dtb_get_option('dtb_post_sidebar_layout')) ? dtb_get_option('dtb_post_sidebar_layout') : 'right'; ?>
				<option <?php selected($dtb_post_sidebar_layout_val, "right");?> value="right">Right Sidebar</option>
				<option <?php selected($dtb_post_sidebar_layout_val, "left");?> value="left">Left Sidebar</option>
				<option <?php selected($dtb_post_sidebar_layout_val, "fullwidth");?> value="fullwidth">Fullwidth</option>
			</select>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Hide Post Title', 'divi-toolbox'); ?></h3>			
			<div class="box-descr"><p><?php _e('Hide the post title globally on every blog post.', "divi-toolbox"); ?></p></div>			
			
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_hide_post_title" type="checkbox" value="1" <?php checked( '1', $dtb_hide_post_title_val ); ?> />
			</div>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Add Author Box', 'divi-toolbox'); ?></h3>						
			<div class="box-descr"><p><?php _e('Enable this to add an author box below the post content.', "divi-toolbox"); ?></p></div>			
			
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_post_author" type="checkbox" value="1" <?php checked( '1', $dtb_post_author_val ); ?> />
			</div>
		</div>
	</div>
	<!-- ///////////////////////////////// -->
	<div class="toolbox trigger">
		<div class="box-title">
			<h3><?php _e('Add Prev/Next Posts Links', 'divi-toolbox'); ?></h3>			
			<div class="box-descr"><p><?php _e('Enable this to add previous and next post links globally to each post.', "divi-toolbox"); ?></p></div>			
			
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_post_prev_next" type="checkbox" value="1" <?php checked( '1', $dtb_post_prev_next_val ); ?> />
			</div>
		</div>
	</div>
	
	<div class="hide">
		<div class="toolbox">
			<div class="box-title">
				<h3><?php _e('Previous button text', 'divi-toolbox'); ?></h3>			
				<div class="box-descr"><p><?php _e('Define your "Previous" button text.', "divi-toolbox"); ?></p></div>			
			</div>
			<div class="box-content">
				<?php $dtb_post_prev_text = !empty($dtb_post_prev_text_val) ? $dtb_post_prev_text_val : __('Previous', 'divi-toolbox'); ?>
				<input type="text" name="dtb_post_prev_text" value="<?php echo $dtb_post_prev_text;?>"/>
			</div>
		</div>
		<div class="toolbox">
			<div class="box-title">
				<h3><?php _e('Next button text', 'divi-toolbox'); ?></h3>			
				<div class="box-descr"><p><?php _e('Define your "Next" button text.', "divi-toolbox"); ?></p></div>			
			</div>
			<div class="box-content">
				<?php $dtb_post_next_text = !empty($dtb_post_next_text_val) ? $dtb_post_next_text_val : __('Next', 'divi-toolbox'); ?>
				<input type="text" name="dtb_post_next_text" value="<?php echo $dtb_post_next_text;?>"/>
			</div>
		</div>
	</div>

	<div class="toolbox trigger">
		<div class="box-title">
			<h3><?php _e('Add Related Posts', 'divi-toolbox'); ?></h3>						
			<div class="box-descr"><p><?php _e('This option adds related posts section below the post content, which displays random posts from the same category.', "divi-toolbox"); ?></p></div>			
			
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_post_related" type="checkbox" value="1" <?php checked( '1', $dtb_post_related_val ); ?> />
			</div>
		</div>
	</div>
	<div class="hide">
		<div class="toolbox">
			<div class="box-title">
				<h3><?php _e('Related Posts Section Title', 'divi-toolbox'); ?></h3>			
				<div class="box-descr"><p><?php _e('Define your header for "Related Posts" section', "divi-toolbox"); ?></p></div>			
			</div>
			<div class="box-content">
				<?php $dtb_related_text = !empty($dtb_related_text_val) ? $dtb_related_text_val : __('Related Posts', 'divi-toolbox'); ?>
				<input type="text" name="dtb_related_text" value="<?php echo $dtb_related_text;?>"/>
			</div>
		</div>
		
		<div class="toolbox">
			<div class="box-title">
				<h3><?php _e('Related Posts Heading Level', 'divi-toolbox'); ?></h3>
				<div class="box-descr"><p><?php _e("Choose the heading level for the Related Posts section title", 'divi-toolbox'); ?></p></div>
			</div>
			<div class="box-content">
				<select name="dtb_related_heading">
					<?php foreach ($headings as $heading) {
					echo '<option ' . selected($heading, $dtb_related_heading_val, false) . ' value="' . $heading . '">' . $heading . '</option>';
					} ?>
				</select>
			</div>
		</div>
		
		
	</div>
	
	<div class="toolbox trigger">
		<div class="box-title">
			<h3><?php _e('Customize Comments Form', 'divi-toolbox'); ?></h3>	
			<div class="box-descr"><p><?php printf(esc_html__("Enable this if you'd like to use the %s to change the default comment form appearance.", "divi-toolbox"), '<a href=' . admin_url( 'customize.php?autofocus[section]=dtb_blog') . ' target=_blank>' . __('Toolbox Customizer', 'divi-toolbox') . '</a>' ); ?></p></div>			
		</div>
		<div class="box-content minibox">
			<div class="checkbox">
				<input name="dtb_comments_styles" type="checkbox" value="1" <?php checked( '1', $dtb_comments_styles_val ); ?> />
			</div>
		</div>
	</div>
	
	<div class="hide">
		<div class="toolbox">
			<div class="box-title">
			<h3><?php _e('Comments Title', 'divi-toolbox'); ?></h3>			
				<div class="box-descr"><p><?php _e('Change the default text before the comment form.', "divi-toolbox"); ?></p></div>				
			</div>
			<div class="box-content">
				<?php $dtb_comments_text = !empty($dtb_comments_text_val) ? $dtb_comments_text_val : __('Submit a Comment', 'divi-toolbox'); ?>
				<input type="text" name="dtb_comments_text" value="<?php echo $dtb_comments_text; ?>"/>
			</div>
		</div>
	</div>
	
	<h2 class="tool-section"><?php _e('Custom Layouts', 'divi-toolbox'); ?></h2>
	<div class="toolbox">
		<div class="box-title">
		<h3><?php _e('Single Post Header Layout - After Navigation', 'divi-toolbox'); ?></h3>
			<div class="box-descr"><p><?php _e('This layout will be displayed globally after the main header and navigation on every blog post.', "divi-toolbox"); ?></p></div>			
		</div>
		<div class="box-content">
			<?php	
				if ($layouts = get_posts($layout_query)) {
					?>
					<select name="dtb_single_header_layout">
					<option value="">----- None -----</option>
					<?php
					foreach ($layouts as $layout) {
						echo '<option ' . selected($layout->ID, $dtb_single_header_layout_val, false) . ' value="' . $layout->ID . '">' . $layout->post_title . '</option>';
					}
					echo '</select>';
					
				}
				else {
					printf('<p class="info">%s</p>', __('Sorry, your Divi Library is empty. Create and save some layouts first...', 'divi-toolbox'));	
				}
			?>
			</select>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
		<h3><?php _e('Single Post - Before Content Layout', 'divi-toolbox'); ?></h3>
			<div class="box-descr"><p><?php _e('This layout will be displayed globally before the content of every blog post. (since Divi 3.18.8)', "divi-toolbox"); ?></p></div>			
		</div>
		<div class="box-content">
			<?php	
				if ($layouts = get_posts($layout_query)) {
					?>
					<select name="dtb_single_before_content_layout">
					<option value="">----- None -----</option>
					<?php
					foreach ($layouts as $layout) {
						echo '<option ' . selected($layout->ID, $dtb_single_before_content_layout_val, false) . ' value="' . $layout->ID . '">' . $layout->post_title . '</option>';
					}
					echo '</select>';
					
				}
				else {
					printf('<p class="info">%s</p>', __('Sorry, your Divi Library is empty. Create and save some layouts first...', 'divi-toolbox'));	
				}
			?>
			</select>
		</div>
	</div>

	<div class="toolbox">
		<div class="box-title">
		<h3><?php _e('Single Post - After Content Layout', 'divi-toolbox'); ?></h3>
			<div class="box-descr"><p><?php _e('This layout will be displayed globally after the content of every blog post. (since Divi 3.18.8)', "divi-toolbox"); ?></p></div>			
		</div>
		<div class="box-content">
			<?php	
				if ($layouts = get_posts($layout_query)) {
					?>
					<select name="dtb_single_after_content_layout">
					<option value="">----- None -----</option>
					<?php
					foreach ($layouts as $layout) {
						echo '<option ' . selected($layout->ID, $dtb_single_after_content_layout_val, false) . ' value="' . $layout->ID . '">' . $layout->post_title . '</option>';
					}
					echo '</select>';
					
				}
				else {
					printf('<p class="info">%s</p>', __('Sorry, your Divi Library is empty. Create and save some layouts first...', 'divi-toolbox'));	
				}
			?>
			</select>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Archives Header Layout - After Navigation', 'divi-toolbox'); ?></h3>			
			<div class="box-descr"><p><?php _e('This layout will be displayed globally after the main header and navigation on archive pages.', "divi-toolbox"); ?></p></div>			
		</div>
		<div class="box-content">
			<?php	
				if ($layouts = get_posts($layout_query)) {
					?>
					<select name="dtb_archive_header_layout">
					<option value="">----- None -----</option>
					<?php
					foreach ($layouts as $layout) {
						echo '<option ' . selected($layout->ID, $dtb_archive_header_layout_val, false) . ' value="' . $layout->ID . '">' . $layout->post_title . '</option>';
					}
					echo '</select>';
					
				}
				else {
					printf('<p class="info">%s</p>', __('Sorry, your Divi Library is empty. Create and save some layouts first...', 'divi-toolbox'));
				}
			?>
			</select>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Categories Header Layout - After Navigation', 'divi-toolbox'); ?></h3>			
			<div class="box-descr"><p><?php _e('This layout will be displayed globally after the main header and navigation on category archive pages.', "divi-toolbox"); ?></p></div>			
		</div>
		<div class="box-content">
			<?php	
				if ($layouts = get_posts($layout_query)) {
					?>
					<select name="dtb_category_header_layout">
					<option value="">----- None -----</option>
					<?php
					foreach ($layouts as $layout) {
						echo '<option ' . selected($layout->ID, $dtb_category_header_layout_val, false) . ' value="' . $layout->ID . '">' . $layout->post_title . '</option>';
					}
					echo '</select>';
					
				}
				else {
					printf('<p class="info">%s</p>', __('Sorry, your Divi Library is empty. Create and save some layouts first...', 'divi-toolbox'));
				}
			?>
			</select>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Author Pages Header Layout - After Navigation', 'divi-toolbox'); ?></h3>			
			<div class="box-descr"><p><?php _e('This layout will be displayed after the main header and navigation on author archive pages.', "divi-toolbox"); ?></p></div>						
		</div>
		<div class="box-content">
			<?php	
				if ($layouts = get_posts($layout_query)) {
					?>
					<select name="dtb_author_header_layout">
					<option value="">----- None -----</option>
					<?php
					foreach ($layouts as $layout) {
						echo '<option ' . selected($layout->ID, $dtb_author_header_layout_val, false) . ' value="' . $layout->ID . '">' . $layout->post_title . '</option>';
					}
					echo '</select>';
					
				}
				else {
					printf('<p class="info">%s</p>', __('Sorry, your Divi Library is empty. Create and save some layouts first...', 'divi-toolbox'));
				}
			?>
			</select>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Search Results Header Layout - After Navigation', 'divi-toolbox'); ?></h3>		
			<div class="box-descr"><p><?php _e('This layout will be displayed after the main header and navigation on search results pages.', "divi-toolbox"); ?></p></div>			
		</div>
		<div class="box-content">
			<?php	
				if ($layouts = get_posts($layout_query)) {
					?>
					<select name="dtb_search_header_layout">
					<option value="">----- None -----</option>
					<?php
					foreach ($layouts as $layout) {
						echo '<option ' . selected($layout->ID, $dtb_search_header_layout_val, false) . ' value="' . $layout->ID . '">' . $layout->post_title . '</option>';
					}
					echo '</select>';
					
				}
				else {
					printf('<p class="info">%s</p>', __('Sorry, your Divi Library is empty. Create and save some layouts first...', 'divi-toolbox'));	
				}
			?>
			</select>
		</div>
	</div>
	<div class="toolbox">
		<div class="box-title">
			<h3><?php _e('Blog Index Page Header Layout - After Navigation', 'divi-toolbox'); ?></h3>		
			<div class="box-descr"><p><?php _e('This layout will be displayed after the main header and navigation on blog index page.', "divi-toolbox"); ?></p></div>			
		</div>
		<div class="box-content">
			<?p