Niels Breet xfade at lists.slony.info
Wed Jan 31 10:06:42 PST 2007
Update of /home/cvsd/slony1/slony1-www
In directory main:/tmp/cvs-serv23970

Modified Files:
	index.php layout.php style.css 
Log Message:
Alter news display some more.

Index: layout.php
===================================================================
RCS file: /home/cvsd/slony1/slony1-www/layout.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** layout.php	30 Jan 2007 19:37:33 -0000	1.3
--- layout.php	31 Jan 2007 18:06:39 -0000	1.4
***************
*** 103,107 ****
  }
  
! function layout_defaultblock($title="",$link="",$text=""){
  $output = '
      <div class="intro-header">
--- 103,107 ----
  }
  
! function layout_defaultblock($title="",$link="",$text="",$stamp="",$poster=""){
  $output = '
      <div class="intro-header">
***************
*** 115,120 ****
          <div class="top-right"></div>
        </div>
!       <div class="text"> 
  	'.$text.'
        </div>
        <div class="bottom">
--- 115,125 ----
          <div class="top-right"></div>
        </div>
!       <div class="text">
  	'.$text.'
+ 	';
+ if ($stamp != ""){
+     $output .= '<div class="news-stamp">'.$poster.' <i>'.$stamp.'</i></div>
+ }
+     $output .='
        </div>
        <div class="bottom">

Index: style.css
===================================================================
RCS file: /home/cvsd/slony1/slony1-www/style.css,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** style.css	30 Jan 2007 19:32:38 -0000	1.3
--- style.css	31 Jan 2007 18:06:39 -0000	1.4
***************
*** 193,195 ****
    overflow: hidden;
    margin-right: 2%;
! }
\ No newline at end of file
--- 193,201 ----
    overflow: hidden;
    margin-right: 2%;
! }
! 
! .news-stamp{
!   width: 100%;
!   text-align: right;
!   float: right;
! }

Index: index.php
===================================================================
RCS file: /home/cvsd/slony1/slony1-www/index.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** index.php	30 Jan 2007 19:58:55 -0000	1.3
--- index.php	31 Jan 2007 18:06:39 -0000	1.4
***************
*** 62,69 ****
  			 $buf=fgets($fp,256);
  			 if (strpos($buf,'---')!==false){
! 				if ($text != "") echo layout_defaultblock($title,$link,$text);
  				$text = "";
  				$title = @fgets($fp,256);
  				$link = @fgets($fp,256);
  			 } else {
  				$text .= $buf;
--- 62,71 ----
  			 $buf=fgets($fp,256);
  			 if (strpos($buf,'---')!==false){
! 				if ($text != "") echo layout_defaultblock($title,$link,$text,$stamp,$poster);
  				$text = "";
  				$title = @fgets($fp,256);
  				$link = @fgets($fp,256);
+ 				$stamp = @fgets($fp,256);
+ 				$poster = @fgets($fp,256);
  			 } else {
  				$text .= $buf;




More information about the Slony1-commit mailing list