/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to wiki.php

  • Committer: Suren A. Chilingaryan
  • Date: 2014-08-15 11:40:16 UTC
  • Revision ID: csa@suren.me-20140815114016-bkt3daufb3nh7hiu
Adapt new WiKi syntax and provide demos on help page

Show diffs side-by-side

added added

removed removed

Lines of Context:
375
375
                                        '<a class="'.$class.'" href="javascript:wiki.SetID('.$this->wiki->getPage($article)->getId().')">'.$display_text.'</a>',$string);
376
376
                        } else {
377
377
                            $string = preg_replace("/\[\[$title\]\]/", 
378
 
                                        '<a class="'.$class.'" href="?setup='.$ADEI_SETUP.'&pageid='.$this->wiki->getPage($title)->getId().'">'.$title.'</a>',$string);
 
378
                                        '<a class="'.$class.'" href="?setup='.$ADEI_SETUP.'&pageid='.$this->wiki->getPage($article)->getId().'">'.$display_text.'</a>',$string);
379
379
                        }
380
380
                }
381
381
                return($string);
444
444
        }
445
445
 
446
446
        private function compileF2Text($string) {
447
 
                $string = preg_replace("|\[f\]([^\[]+)\[/f\]|i",'<font size="2">\\1</font>',$string);
 
447
                $string = preg_replace("|\[f2\]([^\[]+)\[/f2\]|i",'<font size="2">\\1</font>',$string);
448
448
                return($string);
449
449
        }
450
450
}
784
784
<table width="100%" class="outertable" cellspacing="20px" cellpadding="0px">
785
785
        <tr>
786
786
                <td class="title" colspan="2">
787
 
                        <?print $wiki->getPage((int)$GET_ID)->getTitle();?>
 
787
                        <?php print $wiki->getPage((int)$GET_ID)->getTitle();?>
788
788
                </td>
789
789
        </tr>
790
790
        <tr>
792
792
                        <table width="100%" class="innertable" cellspacing="0px" cellpadding="10px">
793
793
                        <tr>
794
794
                        <td>
795
 
                        <?
 
795
                        <?php
796
796
                                if($_POST['modifymenu'] == 'true') {
797
797
                                        print '<form method="post">';
798
798
                                        print '<input type="hidden" name="editmenu" value="true" />';
825
825
                        <table width="100%" class="innertable" cellspacing="0px" cellpadding="10px">
826
826
                        <tr>
827
827
                        <td>
828
 
                        <?
 
828
                        <?php
829
829
                                if($_POST['modify'] == 'true') {
830
830
                                        print '<form method="post">';
831
831
                                        print '<input type="hidden" name="edit" value="true"/>';
857
857
        </tr>
858
858
</table>
859
859
<div class="footer">
860
 
<!--<a href="<? print basename($WIKI_FILENAME).'s'?>">Yada Yada Yada Wiki</a> -->
 
860
<!--<a href="<?php print basename($WIKI_FILENAME).'s'?>">Yada Yada Yada Wiki</a> -->
861
861
<a href="http://www.pburkhalter.net/yadawiki.php">Yada Yada Yada Wiki 0.0.6</a>
862
862
</div>
863
863
</body>