Skip to content

Commit

Permalink
Added a setting for the Privacy Policy page link
Browse files Browse the repository at this point in the history
Ref #344.
  • Loading branch information
Misplon committed Oct 26, 2018
1 parent 6508ec9 commit 38355dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<?php
siteorigin_north_footer_text();

if ( function_exists( 'the_privacy_policy_link' ) ) {
if ( function_exists( 'the_privacy_policy_link' ) && siteorigin_setting( 'footer_privacy_policy_link' ) ) {
$privacy_url = get_privacy_policy_url();
if ( ! empty( $privacy_url ) && siteorigin_setting( 'footer_text' ) ) {
?><span class="sep"> | </span><?php
Expand Down
6 changes: 6 additions & 0 deletions inc/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ function siteorigin_north_settings_init() {
'description' => __( "{sitename} and {year} are your site's name and current year", 'siteorigin-north' ),
'sanitize_callback' => 'wp_kses_post',
),
'privacy_policy_link' => array(
'type' => 'checkbox',
'label' => __('Privacy Policy Link', 'siteorigin-north'),
'description' => __('Display the Privacy Policy page link.', 'siteorigin-north'),
),
'widget_title_color' => array(
'type' => 'color',
'label' => __( 'Widget Title Color', 'siteorigin-north' ),
Expand Down Expand Up @@ -1222,6 +1227,7 @@ function siteorigin_north_settings_defaults( $defaults ) {

// Footer defaults.
$defaults['footer_text'] = __( 'Copyright &copy; {year} {sitename}', 'siteorigin-north' );
$defaults['footer_privacy_policy_link'] = true;
$defaults['footer_widget_title_color'] = '#292929';
$defaults['footer_text_color'] = '#595959';
$defaults['footer_link_color'] = '#c75d5d';
Expand Down

0 comments on commit 38355dc

Please sign in to comment.