Add unique widget option to hide widgets when same as content

This commit is contained in:
Brian Miyaji
2015-12-29 15:20:39 +11:00
parent bf5585d805
commit b37991d4f0
6 changed files with 43 additions and 3 deletions

View File

@@ -149,6 +149,15 @@ class SP_Settings_General extends SP_Settings_Page {
'type' => 'checkbox',
'checkboxgroup' => 'end',
),
array(
'title' => __( 'Widgets', 'sportspress' ),
'desc' => __( 'Unique', 'sportspress' ),
'id' => 'sportspress_widget_unique',
'default' => 'no',
'type' => 'checkbox',
'desc_tip' => __( 'Hide widget when same as content.', 'sportspress' ),
),
));
if ( apply_filters( 'sportspress_enable_header', false ) ) {