includes/template.php
changeset 312 6c7060d36a23
parent 311 a007145a0ff6
child 313 854eecfada20
child 315 f49e3c8b638c
equal deleted inserted replaced
311:a007145a0ff6 312:6c7060d36a23
   218         $ns = 'project page';
   218         $ns = 'project page';
   219         break;
   219         break;
   220       case "Category":
   220       case "Category":
   221         $ns = 'category';
   221         $ns = 'category';
   222         break;
   222         break;
       
   223       case "Anonymous":
       
   224         $ns = 'external page';
       
   225         break;
   223     }
   226     }
   224     $this->namespace_string = $ns;
   227     $this->namespace_string = $ns;
   225     $code = $plugins->setHook('page_type_string_set');
   228     $code = $plugins->setHook('page_type_string_set');
   226     foreach ( $code as $cmd )
   229     foreach ( $code as $cmd )
   227     {
   230     {
   235     // Create "xx page" button
   238     // Create "xx page" button
   236     
   239     
   237     $btn_selected = ( isset($tplvars['toolbar_button_selected'])) ? $tplvars['toolbar_button_selected'] : $tplvars['toolbar_button'];
   240     $btn_selected = ( isset($tplvars['toolbar_button_selected'])) ? $tplvars['toolbar_button_selected'] : $tplvars['toolbar_button'];
   238     $parser = $this->makeParserText($btn_selected);
   241     $parser = $this->makeParserText($btn_selected);
   239     
   242     
   240     if ( !$paths->anonymous_page )
   243     if ( true || !$paths->anonymous_page )
   241     {
   244     {
   242       $parser->assign_vars(array(
   245       $parser->assign_vars(array(
   243           'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxReset()); return false; }" title="View the page contents, all of the page contents, and nothing but the page contents (alt-a)" accesskey="a"',
   246           'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxReset()); return false; }" title="View the page contents, all of the page contents, and nothing but the page contents (alt-a)" accesskey="a"',
   244           'PARENTFLAGS' => 'id="mdgToolbar_article"',
   247           'PARENTFLAGS' => 'id="mdgToolbar_article"',
   245           'HREF' => makeUrl($paths->page, null, true),
   248           'HREF' => makeUrl($paths->page, null, true),