Commit f96361ea authored by George Tsopouridis's avatar George Tsopouridis
Browse files

Remove hardcoded credits or make them admin-configurable - https://drupal.org/node/1919098

parent 49acfabd
Loading
Loading
Loading
Loading
+1 −0
Changes for corporateclean.info: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -37,3 +37,4 @@ settings[slideshow_wrap]= 0
settings[slideshow_pause]= 0
settings[responsive_meta]= 1
settings[responsive_respond]= 0
settings[credits_display]= 1
 No newline at end of file
+2 −0
Changes for page.tpl.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -278,6 +278,7 @@
       
    </div><!-- EOF: #footer-bottom-inside -->
    
    <?php if (theme_get_setting('credits_display','corporateclean')): ?>
    <!-- #credits -->   
    <div id="credits" class="container_12 clearfix">
        <div class="grid_12">
@@ -285,5 +286,6 @@
        </div>
    </div>
    <!-- EOF: #credits -->
    <?php endif; ?>

</div><!-- EOF: #footer -->
 No newline at end of file
+14 −0
Changes for theme-settings.php: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -151,4 +151,18 @@ function corporateclean_form_system_theme_settings_alter(&$form, &$form_state) {
    '#description'   => t('IE 6-8 require a JavaScript polyfill solution to add basic support of CSS3 media queries. Note that you should enable <strong>Aggregate and compress CSS files</strong> through <em>/admin/config/development/performance</em>.'),
  );
    
  $form['mtt_settings']['credits'] = array(
    '#type' => 'fieldset',
    '#title' => t('Credits'),
    '#collapsible' => TRUE,
	'#collapsed' => FALSE,
  );
  
  $form['mtt_settings']['credits']['credits_display'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show credits'),
  	'#description'   => t('Use the checkbox to enable or disable credits.'),
	'#default_value' => theme_get_setting('credits_display','corporateclean'),
  );
  
}
 No newline at end of file