* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: newsletter.inc.php,v 1.20 2004-10-20 15:26:26 x2000habouzit Exp $
+ $Id: newsletter.inc.php,v 1.21 2004-10-20 20:04:28 x2000habouzit Exp $
***************************************************************************/
}
foreach($this->_arts as $cid=>$arts) {
- $res .= "<h1><a id='cat$cid'>".$this->_cats[$cid].'</a></h1>';
+ $res .= "<h1><a id='cat$cid'></a><span>".$this->_cats[$cid].'</span></h1>';
foreach($arts as $art) {
$res .= $art->toHtml();
}
<head>
<style type="text/css">
div.nl { margin: auto; font-family: "Georgia","times new roman",serif; width: 60ex; text-align: justify; font-size: 10pt; }
- div.title { margin: 2ex 0ex 2ex 0ex; padding: 1ex; width: 100%; border: 1px black solid;
- font-size: 140%; text-align: center; color: black; background: #ffffb0; border: 1px #ff4040 solid; }
+ div.title { margin: 2ex 0ex 2ex 0ex; padding: 1ex; width: 100%; font-size: 140%; text-align: center;
+ color: #ff4040; background: #ffffb0; border: 2px #ff4040 solid; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { margin: 6ex 0ex 4ex 0ex; padding: 2px 4ex 2px 0ex; width: 60ex; font-size: 100%; border-bottom: 1px #ff4040 solid; }
h2 { width: 100%; margin: 0ex 1ex 0ex 1ex; padding: 2px 0px 2px 0px; font-weight: bold; font-style: italic; font-size: 95%; }
- h1 a, h1 a:hover { color: black; background: #ffffb0; text-decoration: none; font-size: 140%; padding: 2px 1ex 2px 1ex; border: 1px #ff4040 solid; }
- h2 a, h2 a:hover { color: blue; background: #eeeeee; text-decoration: none; padding: 2px 4px 2px 4px; border: 1px #cccccc solid; }
+ h1 span { color: #ff4040; background: #ffffb0; text-decoration: none; font-size: 140%; padding: 2px 1ex 2px 1ex; border: 1px #ff4040 solid; }
+ h2 span { color: blue; background: #eeeeee; text-decoration: none; padding: 2px 4px 2px 4px; border: 1px #cccccc solid; }
div.art { padding: 2ex; margin: 0ex 1ex 2ex 1ex; width: 58ex; border-top: 1px #cccccc solid; }
div.app { padding: 2ex 3ex 0ex 3ex; width: 100%; margin: 0ex; text-align: left; font-size: 95%; }
}
function toHtml() {
- $title = "<h2><a id='art{$this->_aid}'>".htmlentities($this->title()).'</a></h2>';
+ $title = "<h2><a id='art{$this->_aid}'></a><span>".htmlentities($this->title()).'</span></h2>';
$body = enriched_to_text($this->_body,true);
$app = enriched_to_text($this->_append,true);