cvs: phpweb / index.php /styles site.css

From: Date: Sun, 18 Feb 2007 16:29:51 +0000
Subject: cvs: phpweb / index.php /styles site.css
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-34352@lists.php.net to get a copy of this message
bjori Sun Feb 18 16:29:51 2007 UTC Modified files: /phpweb index.php /phpweb/styles site.css Log: Add conference teaser ontop of the news entrys http://cvs.php.net/viewvc.cgi/phpweb/index.php?r1=1.864&r2=1.865&diff_format=u Index: phpweb/index.php diff -u phpweb/index.php:1.864 phpweb/index.php:1.865 --- phpweb/index.php:1.864 Wed Feb 14 18:27:02 2007 +++ phpweb/index.php Sun Feb 18 16:29:51 2007 @@ -19,8 +19,9 @@ */ $timestamps[] = @filemtime("include/prepend.inc"); -// Calendar is the only "dynamic" feature on this page +// Calendar & conference teasers are the only "dynamic" features on this page $timestamps[] = @filemtime("include/pregen-events.inc"); +$timestamps[] = @filemtime("include/pregen-confs.inc"); // The latest of these modification dates is our real Last-Modified date $timestamp = max($timestamps); @@ -42,6 +43,7 @@ $_SERVER['BASE_PAGE'] = 'index.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-confs.inc'; // This goes to the left sidebar of the front page $SIDEBAR_DATA = ' @@ -142,6 +144,23 @@ // Write out common header site_header("Hypertext Preprocessor", array('onload' => 'boldEvents();', 'headtags' => '<link rel="alternate" type="application/rss+xml" title="PHP: Hypertext Preprocessor" href="' . $MYSITE . 'news.rss" />')); +if (is_array($CONF_TEASER) && count($CONF_TEASER)) { + echo ' <div id="confTeaser">' . "\n"; + foreach($CONF_TEASER as $k => $a) { + echo ' <ul class="' .$k. '">' . "\n"; + $count = 0; + foreach($a as $url => $title) { + if ($count++ >= 4) { + break; + } + echo ' <li><a href="' . $url. '">' . $title. '</a></li>' . "\n"; + } + echo " </ul>\n"; + } + echo " </div>\n"; +} + + // DO NOT REMOVE THIS COMMENT (the RSS parser is dependant on it) ?> http://cvs.php.net/viewvc.cgi/phpweb/styles/site.css?r1=1.38&r2=1.39&diff_format=u Index: phpweb/styles/site.css diff -u phpweb/styles/site.css:1.38 phpweb/styles/site.css:1.39 --- phpweb/styles/site.css:1.38 Wed Feb 14 15:37:46 2007 +++ phpweb/styles/site.css Sun Feb 18 16:29:51 2007 @@ -199,6 +199,36 @@ font-size: smaller; } +/* {{{ Latest conference announcements on the frontpage */ +#confTeaser { + border: 1px dotted #ddd; + padding: 10px 0; + margin: 0; + background-color: #eee; +} + +#confTeaser ul { + margin: 0; + padding: 0; +} + +#confTeaser ul li { + background-color: #eee; + padding: 0 2px; + margin: 0; + display: inline; + font-size: smaller; +} +#confTeaser ul.cfp:before { + font-size: smaller; + content: "CFP:"; +} +#confTeaser ul.conference:before { + font-size: smaller; + content: "Conferences:"; +} +/* }}} */ + #leftbar p, #leftbar h3, #rightbar p, #rightbar h3 { margin-top: 0; margin-bottom: 1em;

« previous php.mirrors (#34352) next »