-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amazonのリンク設置のためのプラグイン「AmazonJS」「Rinker」のための設定を追加
- Loading branch information
1 parent
637ad3d
commit b2efbc3
Showing
7 changed files
with
71 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
function sentry_customize_register_plugins( $wp_customize ){ | ||
|
||
// プラグインの設定 | ||
$wp_customize->add_section( 'sentry_plugins_section', array( | ||
'title' => '[Sentry]プラグイン設定', | ||
'priority' => 50, | ||
)); | ||
|
||
// wppのview数の非表示 | ||
$wp_customize->add_setting( 'sentry_wpp_is_hidden', array( | ||
'default' => false, | ||
'type' => 'theme_mod', | ||
'sanitize_callback' => 'sanitize_checkbox', | ||
)); | ||
$wp_customize->add_control( 'sentry_wpp_is_hidden_c', array( | ||
'section' => 'sentry_plugins_section', | ||
'settings' => 'sentry_wpp_is_hidden', | ||
'label' => 'Wordpress Popular Postsのview数を表示しない。', | ||
'type' => 'checkbox', | ||
'priority' => 10, | ||
)); | ||
|
||
// AmazonJS用カスタムCSS | ||
$wp_customize->add_setting( 'sentry_amazonjs_custom_css', array( | ||
'default' => false, | ||
'type' => 'theme_mod', | ||
'sanitize_callback' => 'sanitize_checkbox', | ||
)); | ||
$wp_customize->add_control( 'sentry_amazonjs_custom_css_c', array( | ||
'section' => 'sentry_plugins_section', | ||
'settings' => 'sentry_amazonjs_custom_css', | ||
'label' => 'AmazonJSのカスタムCSSを適用する。', | ||
'type' => 'checkbox', | ||
'priority' => 21, | ||
)); | ||
|
||
// Rinker用カスタムCSS | ||
$wp_customize->add_setting( 'sentry_rinker_custom_css', array( | ||
'default' => false, | ||
'type' => 'theme_mod', | ||
'sanitize_callback' => 'sanitize_checkbox', | ||
)); | ||
$wp_customize->add_control( 'sentry_rinker_custom_css_c', array( | ||
'section' => 'sentry_plugins_section', | ||
'settings' => 'sentry_rinker_custom_css', | ||
'label' => 'RinkerのカスタムCSSを適用する。', | ||
'type' => 'checkbox', | ||
'priority' => 22, | ||
)); | ||
|
||
} | ||
add_action( 'customize_register', 'sentry_customize_register_plugins' ); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters