~maphew/mindtouch-deki/dekiwiki

« back to all changes in this revision

Viewing changes to web/includes/SkinTemplate.php

  • Committer: yurig
  • Date: 2011-10-05 21:23:02 UTC
  • Revision ID: svn-v4:0eb84ffb-6e0e-0410-b475-cc1b69d517b7:public/dekiwiki/trunk:29598
Committing outstanding changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
474
474
                        $this->onclick->pagemove = 'return false';
475
475
                }
476
476
 
 
477
                if ($wgArticle->userCanCopy()) {
 
478
                        $this->cssclass->pagecopy = '';
 
479
                        $this->onclick->pagecopy = 'return doPopupCopyChildren(Deki.PageId);';
 
480
                }
 
481
                else {
 
482
                        $this->cssclass->pagecopy = 'disabled';
 
483
                        $this->onclick->pagecopy = 'return false';
 
484
                }
 
485
 
 
486
 
477
487
                if ($wgArticle->userCanDelete()) {
478
488
                        $this->cssclass->pagedelete = '';
479
489
                        $this->onclick->pagedelete = 'return doPopupDelete(Deki.PageId);';
560
570
                # Define hrefs for common operations
561
571
                $this->href->pageattach = '#';
562
572
                $this->href->pagemove = '#';
 
573
                $this->href->pagecopy = '#';
563
574
                $this->href->pagedelete = '#';
564
575
                $this->href->pagetoc = '#';
565
576
                $this->href->pagepdf = $wgArticle->getAlternateContent('application/pdf');
579
590
                $tpl->set('pagerestrict', '<a href="'.$this->href->pagerestrict.'" title="'.htmlspecialchars(wfMsg('Skin.Common.restrict-access')).'" onclick="'.$this->onclick->pagerestrict.'" class="'.$this->cssclass->pagerestrict.'"><span></span>'.wfMsg('Skin.Common.restrict-access').'</a>');
580
591
                $tpl->set('pageattach', '<a href="'.$this->href->pageattach.'" title="'.htmlspecialchars(wfMsg('Skin.Common.attach-file')).'" onclick="'.$this->onclick->pageattach.'" class="'.$this->cssclass->pageattach.'"><span></span>'.wfMsg('Skin.Common.attach-file').'</a>');
581
592
                $tpl->set('pagemove', '<a href="'.$this->href->pagemove.'" title="'.htmlspecialchars(wfMsg('Skin.Common.move-page')).'" onclick="'.$this->onclick->pagemove.'" class="'.$this->cssclass->pagemove.'"><span></span>'.wfMsg('Skin.Common.move-page').'</a>');
 
593
                $tpl->set('pagecopy', '<a href="'.$this->href->pagecopy.'" title="'.htmlspecialchars(wfMsg('Skin.Common.copy-page')).'" onclick="'.$this->onclick->pagecopy.'" class="'.$this->cssclass->pagecopy.'"><span></span>'.wfMsg('Skin.Common.copy-page').'</a>');
582
594
                $tpl->set('pageedit', '<a href="'.$this->href->pageedit.'" title="'.htmlspecialchars(wfMsg('Skin.Common.edit-page')).'" onclick="'.$this->onclick->pageedit.'" class="'.$this->cssclass->pageedit.'"><span></span>'.wfMsg('Skin.Common.edit-page').'</a>');
583
595
                $tpl->set('pagesource', '<a href="'.$this->href->pagesource.'" title="'.htmlspecialchars(wfMsg('Skin.Common.view-page-source')).'" onclick="'.$this->onclick->pagesource.'" class="'.$this->cssclass->pagesource.'"><span></span>'.wfMsg('Skin.Common.view-page-source').'</a>');
584
596
                $tpl->set('pageprint', '<a href="'.$this->href->pageprint.'" title="'.htmlspecialchars(wfMsg('Skin.Common.print-page')).'" onclick="'.$this->onclick->pageprint.'" class="'.$this->cssclass->pageprint.'"><span></span>'.wfMsg('Skin.Common.print-page').'</a>');