plugins/Newsboy.php
changeset 1 540d077b7612
parent 0 9f29b32e5224
child 2 66b299fdb9ca
equal deleted inserted replaced
0:9f29b32e5224 1:540d077b7612
   284     $s = false;
   284     $s = false;
   285   }
   285   }
   286   if ( $s )
   286   if ( $s )
   287   {
   287   {
   288     $stuff = RenderMan::strToPageID($s);
   288     $stuff = RenderMan::strToPageID($s);
   289     $p = RenderMan::getPage($stuff[0], $stuff[1]);
   289     $page = new PageProcessor($stuff[0], $stuff[1]);
       
   290     $page->send();
   290     echo $p;
   291     echo $p;
   291   }
   292   }
   292   
   293   
   293   echo '<h2>Latest news</h2>';
   294   echo '<h2>Latest news</h2>';
   294     
   295     
   361   {
   362   {
   362     echo '<div class="tblholder" style="margin: 10px auto 0 auto; display: table;">
   363     echo '<div class="tblholder" style="margin: 10px auto 0 auto; display: table;">
   363             <table border="0" cellspacing="1" cellpadding="4">
   364             <table border="0" cellspacing="1" cellpadding="4">
   364               <tr>
   365               <tr>
   365                 <th>Administrative tools:</th>
   366                 <th>Administrative tools:</th>
   366                 <td class="row3" style="text-align: center;"><a style="color: inherit;" href="' . makeUrlNS('NewsBoy', 'Announce', '', true) . '#do:edit">Edit announcement &raquo;</a></td>
   367                 <td class="row3" style="text-align: center;"><a style="color: inherit;" href="' . makeUrlNS($stuff[1], $stuff[0], '', true) . '#do:edit">Edit announcement &raquo;</a></td>
   367                 <td class="row3" style="text-align: center;"><a style="color: inherit;" href="' . makeUrlNS('Special', 'Administration', 'module='.$paths->nslist['Admin'].'NewsboyItemManager', true) . '" onclick="newsboy_open_admin(); return false;">Portal Administration</a></td>
   368                 <td class="row3" style="text-align: center;"><a style="color: inherit;" href="' . makeUrlNS('Special', 'Administration', 'module='.$paths->nslist['Admin'].'NewsboyItemManager', true) . '" onclick="newsboy_open_admin(); return false;">Portal Administration</a></td>
   368               </tr>
   369               </tr>
   369             </table>
   370             </table>
   370           </div><br />';
   371           </div><br />';
   371   }
   372   }