[ 新規 | 編集 | 差分 ] [ 検索 | 一覧 | FrontPage ] [ 履歴 (RSS) | 差分履歴 (RSS) ] [ ログイン ]
【PR】Amazon | SL-C3000 | SL-C1000(3/18発売!) | SL-C860 | SL-6000W | SL-6000L | SL-6000N

WalWiki/カスタマイズ/ページ属性追加

編集

[page class]

編集

make_link()内の変更

編集
        # Walrus add [alias link] start
        $escapedchunk = $escapedname;
        if ($database{$chunk}) {
        # Walrus add [alias link] start
            my $subject = &escape(&get_subjectline($chunk, delimiter => ''));
            # yakty add [page class] start
            my $class;
            my $frozen = &is_frozen($chunk);
            if($form{mypage} eq $RecentChanges){
                $class = '';
            } elsif($fixedpage{$chunk}){
                $class = ' class="fixed"';
            } elsif($frozen == $frozen_secret){
                $class = ' class="secret"';
            } elsif($frozen == $frozen_certified){
                $class = ' class="certified"';
            } elsif($frozen == $frozen_frozen){
                $class = ' class="frozen"';
            } else {
                $class = ' class="normal"';
            }
            return qq(<a title="$subject" href="$url_cgi?$cookedchunk$part"$class>$escapedchunk</a>);       # yakty add [link to part]
            # yakty add [page class] end
            #return qq(<a title="$subject" href="$url_cgi?$cookedchunk">$escapedchunk</a>);           # yakty del [link to part] # yakty del [page class]
            #return qq(<a title="$subject" href="$url_cgi?$cookedchunk">$escapedchunk</a>);           # yakty del [link to part]

01506