コード例 #1
0
ファイル: style.dark.php プロジェクト: milky-ashes/toolkit
<?php

#compile
ob_start();
?>
${href}${scr}${path}<?php 
#compile
//Fetching user content
$__path__ = ob_get_clean();
if (!empty($__path__)) {
    //Echoing content to be fetched by asset manager
    echo \Spiral\Toolkit\AssetManager::wrapAsset(\Spiral\Toolkit\AssetManager::ASSET_STYLE, ['path' => $__path__, 'media' => '${media}']);
}
コード例 #2
0
ファイル: inline.dark.php プロジェクト: milky-ashes/toolkit
<?php

#compile
ob_start();
?>
${context}<?php 
#compile
$__context__ = ob_get_clean();
if ($__context__) {
    echo \Spiral\Toolkit\AssetManager::wrapAsset(\Spiral\Toolkit\AssetManager::ASSET_INLINE, ['context' => $__context__]);
}
コード例 #3
0
ファイル: script.dark.php プロジェクト: milky-ashes/toolkit
<?php

#compile
ob_start();
?>
${href}${scr}${path}<?php 
#compile
//Fetching user content
$__path__ = ob_get_clean();
if (!empty($__path__)) {
    //Echoing content to be fetched by asset manager
    echo \Spiral\Toolkit\AssetManager::wrapAsset(\Spiral\Toolkit\AssetManager::ASSET_SCRIPT, ['path' => $__path__]);
}