plugins/Newsboy.php
changeset 4 bf5589120afb
parent 3 8ae9acb2e919
child 5 fed61fc8895b
equal deleted inserted replaced
3:8ae9acb2e919 4:bf5589120afb
    89   if ( $paths->cpage['urlname_nons'] == 'Portal' || $paths->cpage['urlname_nons'] == 'Archive' || $chk1 == $paths->nslist['NewsBoy'] . 'Archive/' || $chk2 == $paths->nslist['NewsBoy'] . 'Archive' )
    89   if ( $paths->cpage['urlname_nons'] == 'Portal' || $paths->cpage['urlname_nons'] == 'Archive' || $chk1 == $paths->nslist['NewsBoy'] . 'Archive/' || $chk2 == $paths->nslist['NewsBoy'] . 'Archive' )
    90   {
    90   {
    91     
    91     
    92     // Add admin opener Javascript function
    92     // Add admin opener Javascript function
    93     $template->add_header('<!-- NewsBoy: admin panel nav function -->
    93     $template->add_header('<!-- NewsBoy: admin panel nav function -->
       
    94     <enano:no-opt>
    94     <script type="text/javascript">
    95     <script type="text/javascript">
    95       function newsboy_open_admin()
    96       function newsboy_open_admin()
    96       {
    97       {
    97         if ( auth_level < USER_LEVEL_ADMIN )
    98         if ( auth_level < USER_LEVEL_ADMIN )
    98         {
    99         {
   108           return false;
   109           return false;
   109         }
   110         }
   110         var loc = makeUrlNS(\'Special\', \'Administration\', \'module=\' + namespace_list[\'Admin\'] + \'NewsboyItemManager\');
   111         var loc = makeUrlNS(\'Special\', \'Administration\', \'module=\' + namespace_list[\'Admin\'] + \'NewsboyItemManager\');
   111         window.location = loc;
   112         window.location = loc;
   112       }
   113       }
   113     </script>');
   114     </script>
       
   115     </enano:no-opt>');
   114     
   116     
   115     $x = getConfig('nb_portal_title');
   117     $x = getConfig('nb_portal_title');
   116     
   118     
   117     $template->tpl_strings['PAGE_NAME'] = ( $paths->cpage['urlname_nons'] == 'Portal' ) ?
   119     $template->tpl_strings['PAGE_NAME'] = ( $paths->cpage['urlname_nons'] == 'Portal' ) ?
   118           ( ( empty($x) ) ?
   120           ( ( empty($x) ) ?