SF.net SVN: opencsw:[676] web/wordpresscsw/wp-content/themes/opencsw

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Apr 20 23:50:44 CEST 2014


Revision: 676
          http://sourceforge.net/p/opencsw/code/676
Author:   wahwah
Date:     2014-04-20 21:50:43 +0000 (Sun, 20 Apr 2014)
Log Message:
-----------
wordpress: Commit standing diffs

Modified Paths:
--------------
    web/wordpresscsw/wp-content/themes/opencsw/archive.php
    web/wordpresscsw/wp-content/themes/opencsw/header.php
    web/wordpresscsw/wp-content/themes/opencsw/home.php
    web/wordpresscsw/wp-content/themes/opencsw/style.css

Modified: web/wordpresscsw/wp-content/themes/opencsw/archive.php
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/archive.php	2014-03-26 20:49:21 UTC (rev 675)
+++ web/wordpresscsw/wp-content/themes/opencsw/archive.php	2014-04-20 21:50:43 UTC (rev 676)
@@ -36,8 +36,8 @@
             <div class="entry">
                 <?php the_content((__( '» Read more: ', 'default')) . the_title('', '', false)); ?>
             </div>
+            <div class="postmetadata clearfix">
 
-            <div class="postmetadata clearfix">
         <p class="commentslink alignright">
           <?php comments_popup_link( __( 'No comments', 'default' ), __( '1 comment', 'default' ), __( '% comments', 'default' )); ?> »
         </p>

Modified: web/wordpresscsw/wp-content/themes/opencsw/header.php
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/header.php	2014-03-26 20:49:21 UTC (rev 675)
+++ web/wordpresscsw/wp-content/themes/opencsw/header.php	2014-04-20 21:50:43 UTC (rev 676)
@@ -24,6 +24,8 @@
 </script>';
 ?>
 
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+
 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
 <?php wp_head(); ?>
 </head>

Modified: web/wordpresscsw/wp-content/themes/opencsw/home.php
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/home.php	2014-03-26 20:49:21 UTC (rev 675)
+++ web/wordpresscsw/wp-content/themes/opencsw/home.php	2014-04-20 21:50:43 UTC (rev 676)
@@ -1,157 +1,73 @@
 <?php get_header(); ?>
-<div id="container">
-    <div id="content">
-        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="frontpage">
-            <tr id="row-announce">
-                <td colspan="4" id="announce">
-                    <?php 
-                    wp_reset_query();
-                    query_posts('showposts=3&category_name=announcements'); ?>
-                    <h1>Latest announcements</h1>
-                    <?php while (have_posts()) : the_post(); ?>
-                    <img src="<?php bloginfo('template_directory'); ?>/img/dot.png" />
-                    <span class="announce-headline"><b><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></b></span>
-                    <span class="announce-date">(<?php the_date("d M Y"); ?>)</span>
-                    <span class="announce-excerpt"><?php the_excerpt(); ?>
-                    <br/> <br/>
-                    <?php endwhile; ?>
-                    <p class="announce-more">View more <?php the_category(' '); ?>...</p>   
-                </td>
-            </tr>
-            <tr valign="top" id="row-activity">
-                <td colspan="4">
-                    <h1>Activity overview</h1>
-                </td>
-            </tr>
-            <tr valign="top" id="row-activity">
-                <td width="25%" id="activity" class="small-activity-icon activity-tools">
-                    <a href="/about/maintainers" title="Number of active maintainers">
-                        <div class="alignleft">
-                            <img src="<?php bloginfo('template_directory'); ?>/img/maintainer.png" />
-                        </div>
-                        <div class="small-activity-text">
-                            <span>
-                                <?php 
-                                // Create the DAO object
-                                $maintDAO = new maintainersDAO();
 
-                                // Connect to database
-                                $maintDAO->connect();
+	<div id="container">
+		<div id="content">
 
-                                // Retrieve the statistics from the database
-                                $numMaint = $maintDAO->getTotalNumberOfActiveMaintainers();
+		<br />
 
-                                echo "$numMaint" ;
+		<?php if (have_posts()) : ?>
 
-                                // Disconnect to database
-                                $maintDAO->disconnect();
-                                ?>
-                                Maintainers
-                            </span>
-                        </div>
-                    </a>
-                </td>
-                <td width="25%" id="activity" class="small-activity-icon activity-tools">
-                    <a href="/get-it/packages" title="Number of available packages">
-                        <div class="alignleft">
-                            <img src="<?php bloginfo('template_directory'); ?>/img/package.png" />
-                        </div>
-                        <div class="small-activity-text">
-                            <span>
-                                <?php 
-                                // Create the DAO object
-                                $pkgDAO = new statsDAO();
+			<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
+			<?php /* If this is a category archive */ if (is_category()) { ?>
+				<h1 class="pagetitle"><?php _e('Archive for the', 'default'); ?> ‘<?php single_cat_title(); ?>’ <?php _e('category', 'default'); ?></h1>
+			<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
+				<h1 class="pagetitle"><?php _e('Posts Tagged', 'default'); ?> ‘<?php single_tag_title(); ?>’</h1>
+			<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
+				<h1 class="pagetitle"><?php _e('Archive for', 'default'); ?> <?php the_time(__('F jS, Y','default')); ?></h1>
+			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
+				<h1 class="pagetitle"><?php _e('Archive for', 'default'); ?> <?php the_time(__('F, Y','default')); ?></h1>
+			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
+				<h1 class="pagetitle"><?php _e('Archive for', 'default'); ?> <?php the_time(__('Y','default')); ?></h1>
+			<?php /* If this is an author archive */ } elseif (is_author()) { ?>
+				<h1 class="pagetitle"><?php _e('Author Archive', 'default'); ?></h1>
+			<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
+				<h1 class="pagetitle"><?php _e('Blog Archives', 'default'); ?></h1>
+			<?php } ?>
+<!--
+		<div class="navigation clearfix">
+			<div class="alignleft"><?php next_posts_link(__('« Older Entries', 'default')) ?></div>
+			<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'default')) ?></div>
+		</div>
+-->
+		<?php while (have_posts()) : the_post(); ?>
 
-                                // Connect to database
-                                $pkgDAO->connect();
-                                ?>
-                                <?php 
-                                // Retrieve the statistics from the database
-                                $numPkg = $pkgDAO->getTotalNumberOfPackages();
+		<div <?php post_class(archives-page) ?>>
+			<h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
+			<small class="meta"><?php the_time(__('F jS, Y','default')); ?> <?php edit_post_link(__( 'Edit', 'default' ), ' | ', ''); ?></small>
 
-                                echo "$numPkg" ;
-                                ?>
-                                Packages
-                            </span>
-                        </div>
-                    </a>
-                </td>
-                <td width="25%" id="activity" class="small-activity-icon activity-tools">
-                <a href="/get-it/package-statistics/" title="Number of packages updated during this month / last 12 months">
-                    <div class="alignleft">
-                        <img src="<?php bloginfo('template_directory'); ?>/img/package-update.png" />
-                    </div>
-                    <div class="small-activity-text">
-                        <span>
-                            <?php 
-                            // Retrieve the statistics from the database
-                            $numMonthlyPkg = $pkgDAO->getTotalNumberOfPackageUpdateOverCurrentMonth();
-                            $numYearlyPkg  = $pkgDAO->getTotalNumberOfPackageUpdateOverCurrentRollingYear();
+			<div class="entry">
+				<?php the_content((__( '» Read more: ', 'default')) . the_title('', '', false)); ?>
+			</div>
+<!--
+			<div class="postmetadata clearfix">
+				<p class="commentslink alignright">
+				//<?php comments_popup_link( __( 'No comments', 'default' ), __( '1 comment', 'default' ), __( '% comments', 'default' )); ?> »
+				</p>
+				<p class="categories">
+				//<?php _e('Posted in ', 'default' ); the_category(', '); ?>
+				</p>
+				//<?php the_tags( '<p class="tags">Tags: ', ' ', '</p>'); ?>
+			</div>
+-->
+		</div>
 
-                            echo "$numMonthlyPkg / $numYearlyPkg" ;
-                            ?>
-                            Updates
-                        </span>
-                    </div>
-                    </a>
-                </td>
-                <td width="25%" id="activity" class="small-activity-icon activity-tools" valign="bottom">
-                <a href="/get-it/package-statistics/" title="Number of new packages, added during this month / last 12 months">
-                    <div class="alignleft">
-                        <img src="<?php bloginfo('template_directory'); ?>/img/package-creation.png" />
-                    </div>
-                    <div class="small-activity-text">
-                        <span>
-                            <?php 
-                            // Retrieve the statistics from the database
-                            $numMonthlyPkg = $pkgDAO->getTotalNumberOfPackageCreationOverCurrentMonth();
-                            $numYearlyPkg  = $pkgDAO->getTotalNumberOfPackageCreationOverCurrentRollingYear();
+		<?php endwhile; ?>
 
-                            echo "$numMonthlyPkg / $numYearlyPkg" ;
+		<div class="pagination navigation clearfix">
+			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
+			<div class="alignleft"><?php next_posts_link(__('« Older Entries', 'default')) ?></div>
+			<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'default')) ?></div>
+			<?php } ?>
+		</div>
 
-                            // Disconnect from database
-                            $pkgDAO->disconnect();
-                            ?>
-                            Additions
-                        </span>
-                    </div>
-                </a>
-                </td>
-            </tr>
-            <tr valign="top" id="row-news">
-                <td colspan="2" width="50%" id="news">
-                    <?php
-                    wp_reset_query();
-                    query_posts('showposts=7&category_name=news'); ?>
-                    <h1>Latest news</h1>    
-                    <?php if ( have_posts() == false) echo "Pas de posts" ?>
-                    <?php while (have_posts()) : the_post(); ?>
-                    <img src="<?php bloginfo('template_directory'); ?>/img/dot.png" />
-                    <span class="news-date"><?php the_date("d M"); ?></span>
-                    <span class="news-headline"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></span>
-                    <br/>
-                    <?php endwhile; ?>
-                    <br/>
-                    <span class="news-more">View more <?php the_category(' '); ?>...</span>
-                </td>
-                <td colspan="2" width="50%" id="release">
-                    <?php
-                    wp_reset_query();
-                    query_posts('showposts=7&category_name=recent-updates'); ?>
-                    <h1>Releases and updates</h1>
-                    <?php if ( have_posts() == false) echo "Pas de posts" ?>
-                    <?php while (have_posts()) : the_post(); ?>
-                    <img src="<?php bloginfo('template_directory'); ?>/img/dot.png" />
-                    <span class="release-date"><?php the_date("d M"); ?></span>
-                    <span class="release-headline"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></span>
-                    <br/>
-                    <?php endwhile; ?>
-                    <br/>
-                    <span class="release-more">View more <?php the_category(' '); ?>...</span>
-                </td>
-            </tr>
-        </table>
-    </div><!-- #content -->
-</div><!-- #container -->
+		<?php else : ?>
+
+		<?php include (TEMPLATEPATH . "/missing.php"); ?>
+
+		<?php endif; ?>
+
+		</div>
+	</div>
+
 <?php get_sidebar(); ?>
 <?php get_footer(); ?>

Modified: web/wordpresscsw/wp-content/themes/opencsw/style.css
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/style.css	2014-03-26 20:49:21 UTC (rev 675)
+++ web/wordpresscsw/wp-content/themes/opencsw/style.css	2014-04-20 21:50:43 UTC (rev 676)
@@ -883,9 +883,14 @@
 
 #announce { padding-bottom: 25px; }
 #announce h1 { margin-top: 20px; }
-#announce p { padding-bottom: 5px; display: inline; }
-#announce .announce-date { margin-right: 10px; }
+#announce p { padding-bottom: 5px; display: }
+#announce .announce-date { margin-right: 5px; }
 
+#announce img { margin-right: 5px; margin-top: 0px; }
+.announce-headline { margin-right: 5px; }
+.announce-excerpt { margin-bottom: 5px; }
+p.announce-more { font-size: 13px; }
+
 #download { padding-left: 20px; }
 #download img { display: block; margin-left: auto; margin-right: auto; }
 

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