Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
11 years ago
Diff never expires
Clear
Export
Share
Explain
0 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
71 lines
Copy
2 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
71 lines
Copy
<?php
<?php
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
Copy
Copied
Copy
Copied
remove_action( 'genesis_loop', 'genesis_do_loop' );
//
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_meta', 'minimum_home_genesis_meta' );
add_action( 'genesis_meta', 'minimum_home_genesis_meta' );
/**
/**
* Add widget support for homepage. If no widgets active, display the default loop.
* Add widget support for homepage. If no widgets active, display the default loop.
*
*
*/
*/
function minimum_home_genesis_meta() {
function minimum_home_genesis_meta() {
if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-' ) || is_active_sidebar( 'home-featured-4' ) ) {
if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-' ) || is_active_sidebar( 'home-featured-4' ) ) {
add_action( 'genesis_after_header', 'minimum_home_featured', 15 );
add_action( 'genesis_after_header', 'minimum_home_featured', 15 );
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
add_filter( 'body_class', 'minimum_add_body_class' );
add_filter( 'body_class', 'minimum_add_body_class' );
function minimum_add_body_class( $classes ) {
function minimum_add_body_class( $classes ) {
$classes[] = 'minimum';
$classes[] = 'minimum';
return $classes;
return $classes;
}
}
}
}
}
}
function minimum_home_featured() {
function minimum_home_featured() {
echo '<div id="home-featured"><div class="wrap">';
echo '<div id="home-featured"><div class="wrap">';
genesis_widget_area( 'home-featured-1', array(
genesis_widget_area( 'home-featured-1', array(
'before' => '<div class="home-featured-1 widget-area">',
'before' => '<div class="home-featured-1 widget-area">',
) );
) );
genesis_widget_area( 'home-featured-2', array(
genesis_widget_area( 'home-featured-2', array(
'before' => '<div class="home-featured-2 widget-area">',
'before' => '<div class="home-featured-2 widget-area">',
) );
) );
genesis_widget_area( 'home-featured-3', array(
genesis_widget_area( 'home-featured-3', array(
'before' => '<div class="home-featured-3 widget-area">',
'before' => '<div class="home-featured-3 widget-area">',
) );
) );
genesis_widget_area( 'home-featured-4', array(
genesis_widget_area( 'home-featured-4', array(
'before' => '<div class="home-featured-4 widget-area">',
'before' => '<div class="home-featured-4 widget-area">',
) );
) );
echo '</div><!-- end .wrap --></div><!-- end #home-featured -->';
echo '</div><!-- end .wrap --></div><!-- end #home-featured -->';
}
}
Copy
Copied
Copy
Copied
add_action( 'genesis_loop', 'minimum_grid_loop_helper' );
//
add_action( 'genesis_loop', 'minimum_grid_loop_helper' );
function minimum_grid_loop_helper() {
function minimum_grid_loop_helper() {
if ( function_exists( 'genesis_grid_loop' ) ) {
if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
genesis_grid_loop( array(
'features' => 0,
'features' => 0,
'feature_image_size' => 'featured',
'feature_image_size' => 'featured',
'feature_image_class' => 'post-image',
'feature_image_class' => 'post-image',
'feature_content_limit' => 0,
'feature_content_limit' => 0,
'grid_image_size' => 0,
'grid_image_size' => 0,
'grid_image_class' => 'alignnone',
'grid_image_class' => 'alignnone',
'grid_content_limit' => 250,
'grid_content_limit' => 250,
'more' => __( '[Read more]', 'minimum' ),
'more' => __( '[Read more]', 'minimum' ),
) );
) );
} else {
} else {
genesis_standard_loop();
genesis_standard_loop();
}
}
}
}
genesis();
genesis();
Saved diffs
Original text
Open file
<?php remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_meta', 'minimum_home_genesis_meta' ); /** * Add widget support for homepage. If no widgets active, display the default loop. * */ function minimum_home_genesis_meta() { if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-' ) || is_active_sidebar( 'home-featured-4' ) ) { add_action( 'genesis_after_header', 'minimum_home_featured', 15 ); add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); add_filter( 'body_class', 'minimum_add_body_class' ); function minimum_add_body_class( $classes ) { $classes[] = 'minimum'; return $classes; } } } function minimum_home_featured() { echo '<div id="home-featured"><div class="wrap">'; genesis_widget_area( 'home-featured-1', array( 'before' => '<div class="home-featured-1 widget-area">', ) ); genesis_widget_area( 'home-featured-2', array( 'before' => '<div class="home-featured-2 widget-area">', ) ); genesis_widget_area( 'home-featured-3', array( 'before' => '<div class="home-featured-3 widget-area">', ) ); genesis_widget_area( 'home-featured-4', array( 'before' => '<div class="home-featured-4 widget-area">', ) ); echo '</div><!-- end .wrap --></div><!-- end #home-featured -->'; } add_action( 'genesis_loop', 'minimum_grid_loop_helper' ); function minimum_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 0, 'feature_image_size' => 'featured', 'feature_image_class' => 'post-image', 'feature_content_limit' => 0, 'grid_image_size' => 0, 'grid_image_class' => 'alignnone', 'grid_content_limit' => 250, 'more' => __( '[Read more]', 'minimum' ), ) ); } else { genesis_standard_loop(); } } genesis();
Changed text
Open file
<?php remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); //remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_meta', 'minimum_home_genesis_meta' ); /** * Add widget support for homepage. If no widgets active, display the default loop. * */ function minimum_home_genesis_meta() { if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-' ) || is_active_sidebar( 'home-featured-4' ) ) { add_action( 'genesis_after_header', 'minimum_home_featured', 15 ); add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); add_filter( 'body_class', 'minimum_add_body_class' ); function minimum_add_body_class( $classes ) { $classes[] = 'minimum'; return $classes; } } } function minimum_home_featured() { echo '<div id="home-featured"><div class="wrap">'; genesis_widget_area( 'home-featured-1', array( 'before' => '<div class="home-featured-1 widget-area">', ) ); genesis_widget_area( 'home-featured-2', array( 'before' => '<div class="home-featured-2 widget-area">', ) ); genesis_widget_area( 'home-featured-3', array( 'before' => '<div class="home-featured-3 widget-area">', ) ); genesis_widget_area( 'home-featured-4', array( 'before' => '<div class="home-featured-4 widget-area">', ) ); echo '</div><!-- end .wrap --></div><!-- end #home-featured -->'; } //add_action( 'genesis_loop', 'minimum_grid_loop_helper' ); function minimum_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 0, 'feature_image_size' => 'featured', 'feature_image_class' => 'post-image', 'feature_content_limit' => 0, 'grid_image_size' => 0, 'grid_image_class' => 'alignnone', 'grid_content_limit' => 250, 'more' => __( '[Read more]', 'minimum' ), ) ); } else { genesis_standard_loop(); } } genesis();
Find difference