PHP code example of tomk79 / px2-dec

1. Go to this page and download the library: Download tomk79/px2-dec library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tomk79 / px2-dec example snippets




$conf->funcs->processor->html = [
    // DEC変換処理の実行
    //   Pickles2の状態を参照し、自動的に処理を振り分けます。
    //   パブリッシュする場合、DECコメントを削除します。
    //   プレビューの場合、DECライブラリを埋め込み、
    //   URIパラメータからDECの表示・非表示を切り替えられるようにします。
    'tomk79\pickles2\dec\main::exec()' ,

    // DECを削除する
    'tomk79\pickles2\dec\main::trim_dec()' ,

    // 自動DEC表示機能を追加する
    'tomk79\pickles2\dec\main::add_auto_dec()' ,
];


// config for Pickles2 Desktop Tool.
@$conf->plugins->px2dt->paths_module_template["DEC"] = "./vendor/pickles2/px2-dec/modules/";