@@ -16,18 +16,32 @@ $this->opengraph->attach(new Pair("url", "/packet/" . urlencode($object_id)));
1616$ this ->opengraph ->attach (new Pair ("type " , "article " ));
1717
1818$ url = Common::relativeUrlToAbsolute ("/packet/ " . urlencode ($ object_id ));
19- if ($ object )
19+ if ($ object ) {
2020 $ url .= "/ " . Common::sanitizeForUrl ($ object ->getPacketName (), true );
2121
22- #$this->additional_css[] = "/a/packet.css";
22+ $ packet_id = "0x " . strtoupper (substr ("0 " . dechex ($ object ->getPacketId ()), -2 ));
23+ $ title = $ packet_id . " " . $ title ;
24+ }
25+
26+ $ this ->additional_css [] = "/a/packet.css " ;
2327require ("./header.inc.phtml " );
2428?>
2529 <article>
2630<?php if ($ object ) { ?>
2731 <a href="https://plus.google.com/share?url=<?php echo urlencode ($ url ); ?> " rel="external" data-popup="1"><img class="social-btn float-right" src="<?php echo Common::relativeUrlToAbsolute ("/a/social-gplus-24px.png " ); ?> "/></a>
28- <a href="https://twitter.com/share?text=<?php echo urlencode ($ object ->getPacketName ()); ?> &url=<?php echo urlencode ($ url ); ?> " rel="external" data-popup="1"><img class="social-btn float-right" src="<?php echo Common::relativeUrlToAbsolute ("/a/social-twitter-24px.png " ); ?> "/></a>
32+ <a href="https://twitter.com/share?text=<?php echo urlencode ($ packet_id . " " . $ object ->getPacketName ()); ?> &url=<?php echo urlencode ($ url ); ?> " rel="external" data-popup="1"><img class="social-btn float-right" src="<?php echo Common::relativeUrlToAbsolute ("/a/social-twitter-24px.png " ); ?> "/></a>
2933 <a href="https://facebook.com/sharer/sharer.php?u=<?php echo urlencode ($ url ); ?> " rel="external" data-popup="1"><img class="social-btn float-right" src="<?php echo Common::relativeUrlToAbsolute ("/a/social-facebook-24px.png " ); ?> "/></a>
30- <header><a href="<?php echo $ url ; ?> "><?php echo htmlspecialchars ($ object ->getPacketName (), ENT_HTML5 , "UTF-8 " ); ?> </a></header>
34+ <header><a href="<?php echo $ url ; ?> "><?php echo htmlspecialchars ($ packet_id . " " . $ object ->getPacketName (), ENT_HTML5 , "UTF-8 " ); ?> </a></header>
35+ <section>
36+ <table class="info"><tbody>
37+ <tr><th style="width:20%;">Message Id:</th><td><?php echo $ packet_id ; ?> </td></tr>
38+ <tr><th>Message Name:</th><td><?php echo htmlspecialchars ($ object ->getPacketName (), ENT_HTML5 , "UTF-8 " ); ?> </td></tr>
39+ <tr><th>Direction:</th><td><?php require ("./NYI.inc.phtml " ); ?> </td></tr>
40+ <tr><th>Used By:</th><td><?php require ("./NYI.inc.phtml " ); ?> </td></tr>
41+ <tr><th>Format:</th><td><pre><code><?php echo $ object ->getPacketFormat (); ?> </code></pre></td></tr>
42+ </tbody></table>
43+ </section>
44+ <header>Remarks</header>
3145 <section>
3246<?php echo $ object ->getPacketRemarks (true ); ?>
3347 </section>
0 commit comments