Project

General

Profile

« Previous | Next » 

Revision d74aa4df

Added by Andreas Kohlbecker over 13 years ago

fixes and modifications for TDWG 2010

View differences:

themes/garland_cichorieae/page.tpl.php
5 5
    <title><?php print $head_title ?></title>
6 6
    <?php print $head ?>
7 7
    <?php print $styles ?>
8
    <?php 
9
    
8
    <?php
9

  
10 10
      /**
11 11
			 * Return the path to the currently selected sub theme.
12 12
			 */
13 13
			function path_to_sub_theme() {
14
        global $theme, $user, $custom_theme; 
15
        
14
        global $theme, $user, $custom_theme;
15

  
16 16
			  $themes = list_themes();
17
			  
17

  
18 18
			  // Only select the user selected theme if it is available in the
19 19
			  // list of enabled themes.
20 20
			  $theme = $user->theme && $themes[$user->theme]->status ? $user->theme : variable_get('theme_default', 'garland');
21
			
21

  
22 22
			  // Allow modules to override the present theme... only select custom theme
23 23
			  // if it is available in the list of installed themes.
24 24
			  $theme = $custom_theme && $themes[$custom_theme] ? $custom_theme : $theme;
25
		
25

  
26 26
			  return dirname($themes[$theme]->filename);
27 27
			}
28
			
28

  
29 29
    ?>
30
    <style type="text/css" media="all">@import "<?php 
31
      print base_path(); 
30
    <style type="text/css" media="all">@import "<?php
31
      print base_path();
32 32
	    $subThemePath = path_to_sub_theme();
33
	    print $subThemePath; 
34
      
33
	    print $subThemePath;
34

  
35 35
      ?>/styleOverride.css";</style>
36
<?php 
37
  print $scripts 
36
<?php
37
  print $scripts
38 38
?>
39 39
<!--    <style type="text/css" media="print">@import "<?php print base_path() . path_to_theme() ?>/print.css";</style>-->
40 40
<!--    -->
......
80 80
          }
81 81
        ?>
82 82
        </div>
83
        
84
        <div id="splash"></div>
83
        <?php
84
            if(!theme_get_setting('default_banner_right') && theme_get_setting('banner_right_path')){
85
            //	$splash_style = 'style="background: url('.theme_get_setting('banner_right_path').')"';
86
            }
87
            ?>
88
        <div id="splash" <?php print($splash_style); ?>></div>
85 89

  
86 90
		<div id="menu">
87 91
          <?php if (isset($primary_links)) : ?>
88
                      
92

  
89 93
            <?php
90 94
              foreach($primary_links as &$link) {
91 95
                $link_title = $link['title'];

Also available in: Unified diff