Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/theme.php on line 623

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/custom_posts/custom_posts.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 46

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 67

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 75

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 92

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiRender.php on line 70

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 181

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 538

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 695

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 1087

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112
[WordPress] pukiwiki記法でのHeadingのLvを変更 | おれせか
おれせか

なんかそれっぽいのをうにうに。

  • %inst-dir%/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php

class PukiWikiHeading{~}のfunction PukiWikiHeading(){~}の中。

 /* ▼08/10/25 ichi 変更▼
 *************************************************/
//$this->level  = min(6, strspn($text, '*'));
$min_level = is_single() ? 1 : 2;
$this->level  = min(6, strspn($text, '*') + $min_level);
/*************************************************/ 

あとタグにつくclassやらも変更。
同クラス内のtoString(){~}内。

 /* ▼08/10/25 ichi 変更▼
 *************************************************/
//return $this->msg_top . $this->wrap(parent::toString(), 'h' . $this->level, " id=\"{$this->id}\" class=\"".PukiWikiConfig::getParam('style_prefix')."head\"");
return $this->wrap(parent::toString(), 'h' . $this->level, ' class="contentsTitle"');
/*************************************************/ 

ついでにpukiwiki記法でのコメントアウトを「//」だとコード内のコメントアウトとよくかぶるので、「##」に変えた。

 /* ▼08/10/25 ichi 変更▼
 *************************************************/
// Escape comments
//if (substr($line, 0, 2) == '//') continue;
if (substr($line, 0, 2) == '##') continue;
/*************************************************/ 

あと「 」(半角スペース)から開始の行がpre扱いになるのが鬱陶しくてしかたなかったので以下の部分を削除。

// Pre
if ($head == ' ' || $head == "\t") {
    $this->last = & $this->last->add(new PukiWikiPre($this,$line));
    continue;
} 

このままだとpreがpukiwiki記法で書けないので、それっぽいpukiwikiプラグイン適当にでっちあげて使用中。

PAGETOP
PAGETOP
PAGETOP

Comments (9)

Great! Thanks for your documents, its been very helpful. Thanks again for sharing your information.

[2013/12/12 (木) 16:23]

All of these so next designs put into all the “challenged” positions: IWC, Audemars Piguet, Patek Philippe, Jaeger-LeCoultre, Vacheron Constantin, and additionally Harry Winston. It has singular keep an eye on trademark the precious jewelry designs which usually went for go on and additionally considered like “feeble”. This approach “honor” would travel to Franck Muller.

[2014/05/27 (火) 16:47]

まんまだと、『名前とメールアドレスの入力を必須にする』でメアドも必須になっちゃうから。

[2014/12/25 (木) 13:05]

?You are a chicken.Can you

[2015/08/13 (木) 16:12]

とりあえず、しばらくはhtml直書きでネスト作ることも無さそうなので、無理やりにリストのネストの時のみ対応。

%inst-dir%/wp-includes/formatting.php のfunction wpautop(~){~}内。

[2015/09/16 (水) 16:00]

l直書きでネスト作るこ

[2015/10/13 (火) 16:57]

Great! Thanks for your documents, its been very helpful. Thanks again for sharing your information.

[2015/11/23 (月) 17:33]

一方、優れたスーパーコピー素材で作りますから、質感が素晴らしいです

[2016/01/15 (金) 17:50]

このままだとpreがpukiwiki記法で書けないので、それっぽいpukiwikiプラグイン適当にでっちあげて使用中。

[2016/06/20 (月) 11:21]
PAGETOP

Comment Form

PAGETOP

Trackbacks (0)

トラックバックはありません。

PAGETOP

Trackback URL

PAGETOP

Search