diff --git a/page.tpl.php b/page.tpl.php index bbba186a7212fde8e6e712437edf5b8a405655f9..25c0d25f4b92a7af89972da9c157495a4e4ee0a8 100644 --- a/page.tpl.php +++ b/page.tpl.php @@ -156,12 +156,13 @@ - - - + + + + +
diff --git a/simpleclean.info b/simpleclean.info index 02571d92bd4453feb78a89931f5081d2d21b7a9b..9b3f21273587963c004056fb81b94fe3619bd8ee 100644 --- a/simpleclean.info +++ b/simpleclean.info @@ -29,3 +29,4 @@ features[] = node_user_picture ; SETTINGS settings[simpleclean_mission] = '' +settings[simpleclean_appreciation] = 1 diff --git a/theme-settings.php b/theme-settings.php index d3740a2d219d1a4a798f367007236b384a2a823d..c0ad19cd53b0d1fde9355d63f11de7385d9b746a 100644 --- a/theme-settings.php +++ b/theme-settings.php @@ -1,14 +1,14 @@ 'textfield', @@ -18,4 +18,21 @@ function simpleclean_form_system_theme_settings_alter(&$form, $form_state) { '#description' => t('Specify the text for the mission statement visable on frontpage. Leave it empty if you dont want a mission statement or if you want to use blocks instead.'), '#weight' => -2, ); + + $form['additional_settings'] = array( + '#type' => 'fieldset', + '#title' => t('Additional settings') + ); + + $form['additional_settings']['simpleclean_appreciation'] = array( + '#type' => 'checkbox', + '#title' => t('Say Thanks to !author_profile @ !author_company_site for the !theme_page theme.', + array( + '!theme_page' => l('Simple Clean', 'http://drupal.org/project/simpleclean', array('attributes' => array('target' => '_blank'))), + '!author_profile' => l('acke', 'http://drupal.org/user/765764', array('attributes' => array('target' => '_blank'))), + '!author_company_site' => l('happiness', 'http://www.happiness.se/', array('attributes' => array('target' => '_blank'))) + )), + '#default_value' => theme_get_setting('simpleclean_appreciation'), + '#description' => t('Please demonstrate your appreciation for the developer by including credits into the footer of the site.') + ); }