[csw-devel] SF.net SVN: opencsw:[368] web/wordpresscsw/wp-content/themes/opencsw

wbonnet at users.sourceforge.net wbonnet at users.sourceforge.net
Mon Apr 11 11:52:40 CEST 2011


Revision: 368
          http://opencsw.svn.sourceforge.net/opencsw/?rev=368&view=rev
Author:   wbonnet
Date:     2011-04-11 09:52:40 +0000 (Mon, 11 Apr 2011)

Log Message:
-----------
Add package name in the page title

Modified Paths:
--------------
    web/wordpresscsw/wp-content/themes/opencsw/package.php

Added Paths:
-----------
    web/wordpresscsw/wp-content/themes/opencsw/header-package.php

Added: web/wordpresscsw/wp-content/themes/opencsw/header-package.php
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/header-package.php	                        (rev 0)
+++ web/wordpresscsw/wp-content/themes/opencsw/header-package.php	2011-04-11 09:52:40 UTC (rev 368)
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
+<head profile="http://gmpg.org/xfn/11">
+<meta http-equiv="X-UA-Compatible" content="IE=8" />
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<title><?php wp_title('»', true, 'right'); ?> <?php echo $wp_query->get('packageName') ; ?> - Solaris package </title>
+
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
+<!--[if IE 6]>
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie6.css" type="text/css" />
+<![endif]-->
+
+<meta name="robots" content="index,follow" />
+<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
+<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
+<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" type="image/x-icon" />
+
+
+<?php 
+if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'images.google.com'))
+echo '<script language="JavaScript" type="text/javascript">
+if (top.location != self.location) top.location = self.location;
+</script>';
+?>
+
+<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
+<?php wp_head(); ?>
+</head>
+<body id="home">
+
+
+<div id="header" class="clearfix">
+
+    <div id="branding">
+        <h1 id="logo"><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
+        <div class="description">
+          <?php bloginfo('description'); ?>
+                </div>
+    </div>
+    
+    <div id="nav" class="clearfix">
+        <div id="nav-search">
+            <?php get_search_form(); ?>
+        </div>
+        <ul id="menu">
+          <li class="page-item-home <?php if ( is_home() ) { ?> current_page_item <?php } ?>"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home', 'default'); ?></a></li>
+          <?php greenpark_globalnav() ?>
+        </ul>
+    <div id="submenu-bg">    
+      <?php
+          if (
+               ( $wp_query->get('displayMaintainerInfo') ) ||
+               ( $wp_query->get('maintainers') )
+             )     
+              $children = wp_list_pages("title_li=&child_of=212&echo=0");
+          else
+          if (
+                ( $wp_query->get('packageName') ) || 
+                ( $wp_query->get('packages') ) || 
+                ( $wp_query->get('filesInPackage') ) ||
+                ( $wp_query->get('searchFilesAndPackages') ) ||
+                ( $wp_query->get('packagesContainingFile') )
+             )     
+              $children = wp_list_pages("title_li=&child_of=139&echo=0");
+          else
+          if (
+                ( $wp_query->get('requestPackage') ) ||
+                ( $wp_query->get('sendPackageRequest') )
+             ) 
+              $children = wp_list_pages("title_li=&child_of=143&echo=0");
+          else
+          if (
+                ( $wp_query->get('composeEmail') ) ||
+                ( $wp_query->get('sendEmail') )
+             )     
+              $children = wp_list_pages("title_li=&child_of=142&echo=0");
+          else
+          if($post->post_parent)
+              $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
+          else
+              $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
+
+          if ($children) {
+              echo "<ul id=\"submenu\">";
+              echo $children;
+              echo "</ul>";
+          } 
+      ?>
+    </div>
+  </div>
+</div>
+
+
+<div id="main" class="clearfix">

Modified: web/wordpresscsw/wp-content/themes/opencsw/package.php
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/package.php	2011-04-07 21:33:33 UTC (rev 367)
+++ web/wordpresscsw/wp-content/themes/opencsw/package.php	2011-04-11 09:52:40 UTC (rev 368)
@@ -1,6 +1,10 @@
-<?php get_header(); ?>
+<?php 
+    // Include the database parameters
+    require_once("statsDAO.php");
+    require_once("maintainersDAO.php");
+    require_once("qaDAO.php");
+    require_once("packagesDAO.php");
 
-<?php 
     // Create the DAO object
     $pkgDAO = new packagesDAO();
 
@@ -27,6 +31,8 @@
     $arrayReverse         = $pkgDAO->getReverseDependencyList($pkgName);
     $arrayDepends         = $pkgDAO->getListOfPackagesDependingOnLibsOfPackageFile($packageName);
 
+    get_header("package");
+
     // Test if the package exist
     if ($pkgInfo == -1) {
         print "<div id=\"container\">";


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list