????

Your IP : 18.216.147.211


Current Path : /home/ncom/public_html/wp-content/plugins/smart-slider-3/Nextend/Framework/Asset/Css/Less/
Upload File :
Current File : /home/ncom/public_html/wp-content/plugins/smart-slider-3/Nextend/Framework/Asset/Css/Less/Less.php

<?php


namespace Nextend\Framework\Asset\Css\Less;


use Nextend\Framework\Asset\AssetManager;
use Nextend\Framework\Asset\Css\Css;

class Less {

    public static function addFile($pathToFile, $group, $context = array(), $importDir = null) {
        AssetManager::$less->addFile(array(
            'file'      => $pathToFile,
            'context'   => $context,
            'importDir' => $importDir
        ), $group);
    }

    public static function build() {
        foreach (AssetManager::$less->getFiles() as $group => $file) {
            if (substr($file, 0, 2) == '//') {
                Css::addUrl($file);
            } else if (!realpath($file)) {
                // For database cache the $file contains the content of the generated CSS file
                Css::addCode($file, $group, true);
            } else {
                Css::addFile($file, $group);
            }
        }
    }
}