Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
顯示
檢視
拆分
統一
即時編輯器
隱藏空白變更
摺疊未變更行
關閉換行
比對精度
智能
語法
無
變更外觀
處理
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled diff
建立於
10 年前
差異永不過期
清除
匯出
分享
解釋
11 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
32 行
全部複製
97 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
117 行
全部複製
<?php
<?php
複製
已複製
複製
已複製
/**
* Genesis Sample.
*
* This file adds functions to the Genesis Sample Theme.
*
* @package Genesis Sample
* @author StudioPress
* @license GPL-2.0+
* @link http://www.studiopress.com/
*/
//* Start the engine
//* Start the engine
include_once( get_template_directory() . '/lib/init.php' );
include_once( get_template_directory() . '/lib/init.php' );
複製
已複製
複製
已複製
//* Setup Theme
include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' );
//* Set Localization (do not remove)
load_child_theme_textdomain( 'genesis-sample', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'genesis-sample' ) );
//* Add Image upload and Color select to WordPress Theme Customizer
require_once( get_stylesheet_directory() . '/lib/customize.php' );
//* Include Customizer CSS
include_once( get_stylesheet_directory() . '/lib/output.php' );
//* Child theme (do not remove)
//* Child theme (do not remove)
複製
已複製
複製
已複製
define( 'CHILD_THEME_NAME', 'Genesis Sample
Theme
' );
define( 'CHILD_THEME_NAME', 'Genesis Sample
' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );
複製
已複製
複製
已複製
define( 'CHILD_THEME_VERSION', '2.2.
2
' );
define( 'CHILD_THEME_VERSION', '2.2.
3
' );
複製
已複製
複製
已複製
//* Enqueue
Google Fonts
//* Enqueue
Scripts and Styles
add_action( 'wp_enqueue_scripts', 'genesis_sample_
google_fonts
' );
add_action( 'wp_enqueue_scripts', 'genesis_sample_
enqueue_scripts_styles
' );
function genesis_sample_
google_fonts
() {
function genesis_sample_
enqueue_scripts_styles
() {
複製
已複製
複製
已複製
wp_enqueue_style( '
google
-fonts', '//fonts.googleapis.com/css?family=
Lato:3
00,
4
00,700', array(), CHILD_THEME_VERSION );
wp_enqueue_style( '
genesis-sample
-fonts', '//fonts.googleapis.com/css?family=
Source+Sans+Pro:4
00,
6
00,700', array(), CHILD_THEME_VERSION );
wp_enqueue_style( 'dashicons' );
wp_enqueue_script( 'genesis-sample-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0', true );
$output = array(
'mainMenu' => __( 'Menu', 'genesis-sample' ),
'subMenu' => __( 'Menu', 'genesis-sample' ),
);
wp_localize_script( 'genesis-sample-responsive-menu', 'genesisSampleL10n', $output );
}
}
//* Add HTML5 markup structure
//* Add HTML5 markup structure
複製
已複製
複製
已複製
add_theme_support( 'html5', array( '
search-form
', 'comment-form', 'comment-list'
) );
add_theme_support( 'html5', array( '
caption
', 'comment-form', 'comment-list'
, 'gallery', 'search-form'
) );
//* Add Accessibility support
//* Add Accessibility support
複製
已複製
複製
已複製
add_theme_support( 'genesis-accessibility', array( '
headings
', 'drop-down-menu',
'search-form', 'skip-links'
, 'rems'
) );
add_theme_support( 'genesis-accessibility', array( '
404-page
', 'drop-down-menu',
'headings', 'rems',
'search-form', 'skip-links'
) );
//* Add viewport meta tag for mobile browsers
//* Add viewport meta tag for mobile browsers
add_theme_support( 'genesis-responsive-viewport' );
add_theme_support( 'genesis-responsive-viewport' );
複製
已複製
複製
已複製
//* Add support for custom header
add_theme_support( 'custom-header', array(
'width' => 600,
'height' => 160,
'header-selector' => '.site-title a',
'header-text' => false,
'flex-height' => true,
) );
//* Add support for custom background
//* Add support for custom background
add_theme_support( 'custom-background' );
add_theme_support( 'custom-background' );
複製
已複製
複製
已複製
//* Add support for after entry widget
add_theme_support( 'genesis-after-entry-widget-area' );
//* Add support for 3-column footer widgets
//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );
add_theme_support( 'genesis-footer-widgets', 3 );
複製
已複製
複製
已複製
//* Add Image Sizes
add_image_size( 'featured-image', 720, 400, TRUE );
//* Rename primary and secondary navigation menus
add_theme_support( 'genesis-menus' , array( 'primary' => __( 'After Header Menu', 'genesis-sample' ), 'secondary' => __( 'Footer Menu', 'genesis-sample' ) ) );
//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_footer', 'genesis_do_subnav', 5 );
//* Reduce the secondary navigation menu to one level depth
add_filter( 'wp_nav_menu_args', 'genesis_sample_secondary_menu_args' );
function genesis_sample_secondary_menu_args( $args ) {
if ( 'secondary' != $args['theme_location'] ) {
return $args;
}
$args['depth'] = 1;
return $args;
}
//* Modify size of the Gravatar in the author box
add_filter( 'genesis_author_box_gravatar_size', 'genesis_sample_author_box_gravatar' );
function genesis_sample_author_box_gravatar( $size ) {
return 90;
}
//* Modify size of the Gravatar in the entry comments
add_filter( 'genesis_comment_list_args', 'genesis_sample_comments_gravatar' );
function genesis_sample_comments_gravatar( $args ) {
$args['avatar_size'] = 60;
return $args;
}
已保存差異
原始文本
開啟檔案
<?php //* Start the engine include_once( get_template_directory() . '/lib/init.php' ); //* Child theme (do not remove) define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' ); define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' ); define( 'CHILD_THEME_VERSION', '2.2.2' ); //* Enqueue Google Fonts add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' ); function genesis_sample_google_fonts() { wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:300,400,700', array(), CHILD_THEME_VERSION ); } //* Add HTML5 markup structure add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); //* Add Accessibility support add_theme_support( 'genesis-accessibility', array( 'headings', 'drop-down-menu', 'search-form', 'skip-links', 'rems' ) ); //* Add viewport meta tag for mobile browsers add_theme_support( 'genesis-responsive-viewport' ); //* Add support for custom background add_theme_support( 'custom-background' ); //* Add support for 3-column footer widgets add_theme_support( 'genesis-footer-widgets', 3 );
更改後文本
開啟檔案
<?php /** * Genesis Sample. * * This file adds functions to the Genesis Sample Theme. * * @package Genesis Sample * @author StudioPress * @license GPL-2.0+ * @link http://www.studiopress.com/ */ //* Start the engine include_once( get_template_directory() . '/lib/init.php' ); //* Setup Theme include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' ); //* Set Localization (do not remove) load_child_theme_textdomain( 'genesis-sample', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'genesis-sample' ) ); //* Add Image upload and Color select to WordPress Theme Customizer require_once( get_stylesheet_directory() . '/lib/customize.php' ); //* Include Customizer CSS include_once( get_stylesheet_directory() . '/lib/output.php' ); //* Child theme (do not remove) define( 'CHILD_THEME_NAME', 'Genesis Sample' ); define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' ); define( 'CHILD_THEME_VERSION', '2.2.3' ); //* Enqueue Scripts and Styles add_action( 'wp_enqueue_scripts', 'genesis_sample_enqueue_scripts_styles' ); function genesis_sample_enqueue_scripts_styles() { wp_enqueue_style( 'genesis-sample-fonts', '//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700', array(), CHILD_THEME_VERSION ); wp_enqueue_style( 'dashicons' ); wp_enqueue_script( 'genesis-sample-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0', true ); $output = array( 'mainMenu' => __( 'Menu', 'genesis-sample' ), 'subMenu' => __( 'Menu', 'genesis-sample' ), ); wp_localize_script( 'genesis-sample-responsive-menu', 'genesisSampleL10n', $output ); } //* Add HTML5 markup structure add_theme_support( 'html5', array( 'caption', 'comment-form', 'comment-list', 'gallery', 'search-form' ) ); //* Add Accessibility support add_theme_support( 'genesis-accessibility', array( '404-page', 'drop-down-menu', 'headings', 'rems', 'search-form', 'skip-links' ) ); //* Add viewport meta tag for mobile browsers add_theme_support( 'genesis-responsive-viewport' ); //* Add support for custom header add_theme_support( 'custom-header', array( 'width' => 600, 'height' => 160, 'header-selector' => '.site-title a', 'header-text' => false, 'flex-height' => true, ) ); //* Add support for custom background add_theme_support( 'custom-background' ); //* Add support for after entry widget add_theme_support( 'genesis-after-entry-widget-area' ); //* Add support for 3-column footer widgets add_theme_support( 'genesis-footer-widgets', 3 ); //* Add Image Sizes add_image_size( 'featured-image', 720, 400, TRUE ); //* Rename primary and secondary navigation menus add_theme_support( 'genesis-menus' , array( 'primary' => __( 'After Header Menu', 'genesis-sample' ), 'secondary' => __( 'Footer Menu', 'genesis-sample' ) ) ); //* Reposition the secondary navigation menu remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_footer', 'genesis_do_subnav', 5 ); //* Reduce the secondary navigation menu to one level depth add_filter( 'wp_nav_menu_args', 'genesis_sample_secondary_menu_args' ); function genesis_sample_secondary_menu_args( $args ) { if ( 'secondary' != $args['theme_location'] ) { return $args; } $args['depth'] = 1; return $args; } //* Modify size of the Gravatar in the author box add_filter( 'genesis_author_box_gravatar_size', 'genesis_sample_author_box_gravatar' ); function genesis_sample_author_box_gravatar( $size ) { return 90; } //* Modify size of the Gravatar in the entry comments add_filter( 'genesis_comment_list_args', 'genesis_sample_comments_gravatar' ); function genesis_sample_comments_gravatar( $args ) { $args['avatar_size'] = 60; return $args; }
尋找差異