Changeset 804

Show
Ignore:
Timestamp:
03/02/10 05:04:15 (5 months ago)
Author:
builddaemon
Message:

Latest design of qcu.be theme for Drupal

Location:
infrastructure/QDrupal Theme/source
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • infrastructure/QDrupal Theme/source/drupal6_methods.php

    r616 r804  
    3939} 
    4040 
     41/** 
     42 * Returns a rendered menu tree for Drupal 6.x. 
     43 * 
     44 * @param $tree 
     45 *   A data structure representing the tree as returned from menu_tree_data. 
     46 * @return 
     47 *   The rendered HTML of that data structure. 
     48 */ 
     49function front_menu_tree_output_d6($tree) { 
     50  $tree = front_menu_tree_d6($tree); 
     51  if (!empty($tree)) { 
     52    return '<ul class="footer-menu">' . $tree . '</ul>'; 
     53  } 
     54} 
     55 
     56function front_menu_tree_d6($tree) { 
     57  $output = ''; 
     58  $items = array(); 
     59 
     60  // Pull out just the menu items we are going to render so that we 
     61  // get an accurate count for the first/last classes. 
     62  foreach ($tree as $data) { 
     63    if (!$data['link']['hidden']) { 
     64      $items[] = $data; 
     65    } 
     66  } 
     67 
     68  $num_items = count($items); 
     69  foreach ($items as $i => $data) { 
     70    $link = front_menu_item_link_d6($data['link']);      
     71        if ($data['below']) { 
     72          $output .= front_menu_item_d6($link, front_menu_tree_d6($data['below'])); 
     73    } 
     74    else { 
     75      $output .= front_menu_item_d6($link, ''); 
     76    } 
     77  } 
     78 
     79  return $output; 
     80} 
     81 
     82/** 
     83 * Generate the HTML output for a menu item and submenu for Drupal 6.x. 
     84 * 
     85 * @ingroup themeable 
     86 */ 
     87function front_menu_item_d6($link, $menu = '') { 
     88  if ('' != $menu) { 
     89        $menu = "<ul>\n" . $menu . "</ul>\n"; 
     90  } 
     91  return '<li class="'. $class .'">'. $link . $menu . "</li>\n"; 
     92} 
     93 
     94/** 
     95 * Generate the HTML output for a single menu link for Drupal 6.x. 
     96 * 
     97 * @ingroup themeable 
     98 */ 
     99function front_menu_item_link_d6($link) { 
     100  if (empty($link['localized_options'])) { 
     101    $link['localized_options'] = array(); 
     102  } 
     103 
     104  $link = l($link['title'], $link['href'], $link['localized_options']); 
     105  return preg_replace('~(<a [^>]*>)(.*)(</a>)~', '$1$2$3', $link); 
     106} 
    41107/** 
    42108 * Returns a rendered menu tree for Drupal 6.x. 
  • infrastructure/QDrupal Theme/source/page-front.tpl.php

    r743 r804  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    2 <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo get_page_language($language); ?>" xml:lang="<?php echo get_page_language($language); ?>"> 
     2<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
     3<head> 
     4<title><?php if (isset($head_title )) { echo $head_title; } ?></title> 
     5<?php echo $head; ?> 
     6<link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/reset.css" type="text/css" />   
     7<?php echo $styles ?> 
     8<link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style-front.css" type="text/css" /> 
     9<!--[if IE 6]><link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style.ie6.css" type="text/css" /><![endif]-->   
     10<?php echo $scripts ?> 
     11<script type="text/javascript" src="<?php echo get_full_path_to_theme(); ?>/js/jquery.lavalamp.js"></script> 
     12<script type="text/javascript" src="<?php echo get_full_path_to_theme(); ?>/js/jquery.jcarousel.js"></script>   
     13<script type="text/javascript" src="<?php echo get_full_path_to_theme(); ?>/js/jquery.easing.js"></script>   
     14<script type="text/javascript"> 
     15<!--//--><![CDATA[//><!--  
     16        var screencastscarousel_itemList = [ 
     17                {href: '/files/screencasts/qcubed_ui_intro/qcubed_ui_intro.html', title: 'Introduction to the QCubed UI Framework', src: '/files/u399/splash.png'}, 
     18                {href: '/files/screencasts/qcubed_login_form/qcubed_login_form.html', title: 'QForms from Scratch: Building a login form.', src: '/files/u399/splashFromScratch.png'}, 
     19                {href: '/files/screencasts/qcubed_debugging/qcubed_debugging.html', title: 'Debugging QCubed Applications: Javascript, MySQL, PHP debugging', src: '/files/u399/debuggingSplash.png'}, 
     20                {href: '/files/screencasts/qcubed_mvc/screencast4.html', title: 'Model-View-Controller (MVC) in QCubed', src: '/files/u399/mvc_thumb.png'}, 
     21                {href: '/files/screencasts/database_modelling/database_modelling.html', title: 'ORM DB Modeling', src: '/files/u399/db_modelling_thumb.png'}, 
     22                {href: 'http://www.screencast.com/t/ZGQ2MWMzNzg', title: 'Installing Plugins', src: '/files/u399/pluginSplash.png'}, 
     23                {href: 'http://www.screencast.com/t/YWY4ZDVm', title: 'Installation and Initial Configuration', src: '/files/u399/splashInstall.png'} 
     24        ]; 
    325 
    4 <head> 
    5   <title><?php if (isset($head_title )) { echo $head_title; } ?></title> 
    6   <?php echo $head; ?>   
    7   <script type="text/javascript" src="<?php echo get_full_path_to_theme(); ?>/script.js"></script>   
    8   <?php echo $styles ?> 
    9   <?php echo $scripts ?> 
    10   <!--[if IE 6]><link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style.ie6.css" type="text/css" /><![endif]-->   
    11   <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script> 
     26        function screencastscarousel_itemVisibleInCallback(carousel, item, i, state, evt) { 
     27                // The index() method calculates the index from a 
     28                // given index who is out of the actual item range. 
     29                var idx = carousel.index(i, screencastscarousel_itemList.length); 
     30                carousel.add(i, screencastscarousel_getItemHTML(screencastscarousel_itemList[idx - 1])); 
     31        }; 
     32 
     33        function screencastscarousel_itemVisibleOutCallback(carousel, item, i, state, evt) { 
     34                carousel.remove(i); 
     35        }; 
     36 
     37        /** 
     38         * Item html creation helper. 
     39         */ 
     40        function screencastscarousel_getItemHTML(item) { 
     41                return '<a href="'+item.href+'" title="'+item.title+'"><img src="' + item.src + '" width="75" height="75" alt="' + item.title + '" /></a>'; 
     42        }; 
     43 
     44        jQuery(document).ready(function() { 
     45                jQuery('#screencasts-carousel').jcarousel({ 
     46                        wrap: 'circular', 
     47                        easing: 'backout', 
     48                        itemVisibleInCallback: {onBeforeAnimation: screencastscarousel_itemVisibleInCallback}, 
     49                        itemVisibleOutCallback: {onAfterAnimation: screencastscarousel_itemVisibleOutCallback} 
     50                }); 
     51                jQuery('input[type=text]').focus(function() { 
     52                        if($(this).val() == $(this).attr('defaultValue')) { 
     53                                $(this).val(''); 
     54                        } 
     55                }).blur(function() { 
     56                        if($(this).val().length == 0) { 
     57                                $(this).val($(this).attr('defaultValue')); 
     58                        } 
     59                }); 
     60                jQuery(".footer-menu").lavaLamp({ fx: "backout", speed: 300 })}); 
     61//--><!]]>  
     62</script> 
     63 
     64<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script> 
    1265</head> 
     66<body> 
     67        <div id="container"> 
     68                <div id="header"> 
     69                        <a href="/" title="QCubed PHP MVC Framework"><img src="<?php echo get_full_path_to_theme(); ?>/images/QCubed.png" alt="QCubed - A PHP 5 rapid development MVC framework." class="qcubed-logo" /></a> 
     70                        <div id="search-form"><?php if ($search_box): ?><?php print $search_box ?><?php endif; ?></div> 
     71                </div> 
     72                <div id="three-columns" class="clearfix"> 
     73                        <div id="left-column"> 
     74                                <div class="download-header"><img src="<?php echo $base_path . $directory; ?>/images/download-header.png" alt="Download - Get Started" /></div> 
     75                                <div class="qcubed-summary"> 
     76                                        <p>QCubed is a rapid-prototyping PHP5 Framework that helps developers save time on mundane, repeatable tasks. Build Web 2.0 apps with AJAX from a solid MVC framework...<a href="http://qcu.be/content/welcome">Read More</a><br/><a href="http://examples.qcu.be">See Some Examples</a></p> 
     77                                </div> 
     78                                <ul class="column-menu-2 download-icon"> 
     79                                        <li><a href="http://qcu.be/content/downloads">Latest Stable: v1.1.1</a></li> 
     80                                        <li><a href="http://qcu.be/content/downloads">Maintenance Release 1.0.2</a></li> 
     81                                </ul> 
     82                        </div> 
     83                        <div id="middle-column"> 
     84                                <div class="develop-header"><img src="<?php echo $base_path . $directory; ?>/images/develop-header.png" alt="Develop Faster - Get Going" /></div> 
     85                                <ul class="column-menu-2 api-icon"> 
     86                                        <li><a href="http://api.qcu.be">API Doc's</a></li> 
     87                                        <li><a href="http://trac.qcu.be/projects/qcubed/wiki/Tutorials">Tutorials</a></li> 
     88                                </ul> 
     89                                <ul class="column-menu-2 plugins-icon"> 
     90                                        <li><a href="http://trac.qcu.be/projects/qcubed/wiki/plugins">Most Recent Plugins</a></li> 
     91                                        <li><a href="http://trac.qcu.be/projects/qcubed/wiki/plugins">Most Popular Plugins</a></li> 
    1392 
    14 <body> 
    15   <div class="PageBackgroundGlare"> 
    16     <div class="PageBackgroundGlareImage"></div> 
    17   </div> 
    18    
    19   <div class="Main"> 
    20     <div id="logoArea"> 
    21       <div id="logoAreaLeft"><a href="/" title="QCubed PHP MVC Framework"><img src="<?php echo get_full_path_to_theme(); ?>/images/QCubed.png" alt="QCubed - A PHP 5 rapid development MVC framework." /></a></div> 
    22       <div id="logoAreaRight"> 
    23         <?php if (isset($secondary_links)) : ?> 
    24                 <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?> 
    25         <?php endif; ?> 
    26  
    27         <?php if ($search_box): ?><?php print $search_box ?><?php endif; ?> 
    28       </div> 
    29       <div class="cleared"></div> 
    30     </div> 
    31     <div class="Sheet"> 
    32       <div class="Sheet-tl"></div> 
    33       <div class="Sheet-tr"><div></div></div> 
    34       <div class="Sheet-bl"><div></div></div> 
    35       <div class="Sheet-br"><div></div></div> 
    36       <div class="Sheet-tc"><div></div></div> 
    37       <div class="Sheet-bc"><div></div></div> 
    38       <div class="Sheet-cl"><div></div></div> 
    39       <div class="Sheet-cr"><div></div></div> 
    40       <div class="Sheet-cc"></div> 
    41       <div class="Sheet-body"> 
    42         <div class="nav"> 
    43           <?php 
     93                                </ul> 
     94                                <ul class="column-menu-1 screencasts-icon"> 
     95                                        <li><a href="http://qcu.be/content/video-screencasts">Screencasts</a></li> 
     96                                </ul> 
     97                                <ul id="screencasts-carousel" class="jcarousel-skin-qcubed"> <!-- Screencasts will be dynamically loaded in here --> </ul> 
     98                        </div> 
     99                        <div id="right-column"> 
     100                                <div class="community-header"><img src="<?php echo $base_path . $directory; ?>/images/community-header.png" alt="Community - Get Involved" /></div> 
     101                                <ul class="column-menu-2 forum-icon"> 
     102                                        <li><a href="http://qcu.be/forum">Forum: Learn and Get Involved</a></li> 
     103                                        <li><a href="http://qcu.be/comments/recent">Recent Comments</a></li> 
     104                                </ul> 
     105                                <ul class="column-menu-2 bug-icon"> 
     106                                        <li>Issue Fixed: </li> 
     107                                        <li><a href="http://trac.qcu.be/projects/qcubed/newticket">Create a Ticket</a></li> 
     108                                </ul> 
     109                                <ul class="column-menu-2 wanted-icon"> 
     110                                        <li><a href="http://trac.qcu.be/projects/qcubed/wiki/WeNeedHelp">Designers Wanted</a></li> 
     111                                        <li><a href="http://trac.qcu.be/projects/qcubed/wiki/WeNeedHelp">Developers Wanted</a></li> 
     112                                </ul> 
     113                        </div> 
     114                </div> 
     115                <div id="footer"> 
     116                        <?php 
    44117          if (get_drupal_version() >= 6) { 
    45118                  $menu_name = variable_get('menu_default_node_menu', 'primary-links'); 
    46119                  $tree = menu_tree_page_data($menu_name); 
    47                   echo art_menu_tree_output_d6($tree); 
     120                  echo front_menu_tree_output_d6($tree); 
    48121          } else { 
    49                   echo art_menu_tree_output_d5(variable_get('menu_primary_menu',0)); 
     122                  echo front_menu_tree_output_d5(variable_get('menu_primary_menu',0)); 
    50123          } 
    51           ?> 
    52           <div class="l"></div> 
    53           <div class="r"><div></div></div> 
     124          ?><?php if (isset($secondary_links) && isset($hell_frozen)) : ?> 
     125                <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?> 
     126        <?php endif; ?> 
     127                        <span class="footer-copyright"> 
     128                                <?php // echo $footer_message; ?> 
     129                                <?php // echo $footer; ?> 
     130                                <a href="http://www.piranhamethod.com/" title="Web Design and Hosting by piranhaMethod"><img src="/sites/all/themes/qcubednew/images/pMIcon.png" alt="pM" class="footerIcon" /></a><a href="http://www.linux.org" 
     131                                        title="Linux Servers and Workstations"><img 
     132                                        src="/sites/all/themes/qcubednew/images/linuxIcon.png" 
     133                                        alt="Linux Operating Sytem" class="footerIcon" /></a> 
     134                                <a href="http://www.gimp.org" 
     135                                        title="The GNU Image Manipulation Program"><img 
     136                                        src="/sites/all/themes/qcubednew/images/gimpIcon.png" 
     137                                        alt="Gimp Image Editor" /></a> 
     138                                <a href="http://www.eclipse.org" 
     139                                        title="Eclipse PDT Development Environment"><img 
     140                                        src="/sites/all/themes/qcubednew/images/eclipseIcon.png" 
     141                                        alt="Eclipse PDT" /></a> 
     142                                <a href="http://www.inkscape.org" 
     143                                        title="Inkscape Vector Drawing Program"><img 
     144                                        src="/sites/all/themes/qcubednew/images/inkscapeIcon.png" 
     145                                        alt="Inkscape Vector Graphics Editor" /></a> 
     146<br /> 
     147                                &copy; <?php echo(t(date('Y'))); ?> QCubed - <?php echo(t('All Rights Reserved.')); ?> 
     148                        </span> 
     149                </div> 
     150 
    54151        </div> 
    55         <div id="headerBox"> 
    56           <div id="headerLeft"><p>QCubed is a rapid prototyping PHP5 Framework that helps developers save time around mundane, repeatable tasks.</p></div> 
    57           <div id="headerRight"> 
    58             <h1>Learn and Get Started</h1> 
    59                                         <a href="http://qcu.be/content/video-screencasts" class="header-text">Screencasts</a> 
    60                                         <a href="http://examples.qcu.be/" class="header-text">Examples</a> 
    61       <h1>Download</h1> 
    62           <a href="http://qcu.be/content/downloads" class="header-text">Latest Stable: v1.1.1</a> 
    63           <a href="http://trac.qcu.be/projects/qcubed/wiki/plugins" class="header-text">Plugins</a> 
    64             <h1>Community</h1> 
    65                                         <a href="http://qcu.be/forum" class="header-text">Forum: Learn and Get Involved</a>      
    66           </div> 
    67         </div> 
    68         <div class="contentLayout"> 
    69           <div class="content"> 
    70             <?php if (!empty($breadcrumb) || !empty($tabs) || !empty($tabs2)): ?> 
    71             <div class="Post"> 
    72                 <div class="Post-body"> 
    73                   <div class="Post-inner"> 
    74                     <div class="PostContent"> 
    75                       <?php if (!empty($tabs)): print $tabs.'<div class="cleared"></div>'; endif; ?> 
    76                       <?php if (!empty($tabs2)): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?> 
    77                     </div> 
    78                     <div class="cleared"></div> 
    79                   </div> 
    80                 </div> 
    81             </div> 
    82             <?php endif; ?> 
    83             <?php if (isset($mission)): print '<div id="mission">' . $mission . '</div>'; endif; ?> 
    84             <?php if (isset($help)): print $help; endif; ?> 
    85             <?php if (isset($messages)): print $messages; endif; ?> 
    86             <?php print art_content_replace($content); ?> 
    87           </div> 
    88           <div class="sidebar1"> 
    89             <?php 
    90             if (isset($sidebar_right)) print $sidebar_right; 
    91             else if (isset($right)) print $right;  
    92              
    93             if (isset($sidebar_left)) print $sidebar_left; 
    94             else if (isset($left)) print $left; 
    95             ?> 
    96             <div class="socialNetworkingLink" style="margin:auto;text-align:center;"><a href="http://www.facebook.com/group.php?gid=49351685999" title="QCubed PHP MVC Framework Group on Facebook"><img src="<?php echo get_full_path_to_theme(); ?>/images/findusonfacebook.gif" alt="Facebook Group for this PHP MVC framework" /></a></div> 
    97           </div> 
    98         </div> 
    99         <div class="cleared"></div> 
    100         <div class="Footer"> 
    101           <div class="Footer-inner"> 
    102               <a href="<?php $feedsUrls = array_keys(drupal_add_feed()); if(isset($feedsUrls[0]) && strlen($feedsUrls[0])>0) {echo $feedsUrls[0];} ?>" class="rss-tag-icon" title="RSS"></a> 
    103               <div class="Footer-text"> 
    104                 <?php echo $footer_message; ?> 
    105                 <?php echo $footer; ?> 
    106                 <?php if ($site_name) : ?><a href="<?php echo check_url($base_path); ?>" title = "<?php echo $site_name; ?>"><?php echo $site_name; ?></a><?php endif; ?> 
    107                 <?php if ($site_slogan) : echo $site_slogan; endif; ?> 
    108               </div> 
    109           </div> 
    110           <div class="Footer-background"></div> 
    111         </div> 
    112       </div> 
    113     </div> 
    114     <p class="page-footer"> 
    115       &copy; <?php echo(t(date('Y'))); ?> QCubed - <?php echo(t('All Rights Reserved.')); ?> <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0 Strict</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS 2.1</a> 
    116     </p> 
    117     <p class="page-footer"> 
    118       Theme developed by <a href="http://www.piranhamethod.com/" title="Web Development Firm">pM</a> using entirely open source solutions. <a href="http://www.linux.org" title="Linux Server and Workstation"><img src="<?php echo get_full_path_to_theme(); ?>/images/linuxIcon.png" alt="Linux" class="footerIcon" /></a> <a href="http://www.gimp.org" title="The GNU Image Manipulation Program"><img src="<?php echo get_full_path_to_theme(); ?>/images/gimpIcon.png" alt="Gimp" /></a> <a href="http://www.eclipse.org" title="Eclipse PDT Development Environment"><img src="<?php echo get_full_path_to_theme(); ?>/images/eclipseIcon.png" alt="Eclipse" /></a> <a href="http://www.inkscape.org" title="Inkscape Vector Drawing Program"><img src="<?php echo get_full_path_to_theme(); ?>/images/inkscapeIcon.png" alt="Inkscape" /></a> 
    119     </p> 
    120   </div> 
    121   <?php if ($closure_region): ?> 
     152 <?php if ($closure_region): ?> 
    122153  <div id="closure-blocks"><?php print $closure_region; ?></div> 
    123154  <?php endif; ?> 
  • infrastructure/QDrupal Theme/source/qcubednew.info

    r616 r804  
    1010regions[content] = Content 
    1111stylesheets[all][] = style.css 
     12scripts[] = script.js