AsgardCms/Workshop

View on GitHub
Scaffold/Theme/Traits/FindsThemePath.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Modules\Workshop\Scaffold\Theme\Traits;

trait FindsThemePath
{
    /**
     * Get the theme location path
     * @param string $name
     * @return string
     */
    public function themePath($name = '')
    {
        return config('stylist.themes.paths')[0] . "/$name";
    }

    /**
     * Get the theme location path
     * @param string $name
     * @param string $file
     * @return string
     */
    public function themePathForFile($name, $file)
    {
        return config('stylist.themes.paths')[0] . "/$name/$file";
    }
}