PHP Classes

File: src/Helper.php

Recommend this page to a friend!
  Classes of Shun Ram   Laravel Admin   src/Helper.php   Download  
File: src/Helper.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Admin
Manage users and the site content they publish
Author: By
Last change:
Date: 1 year ago
Size: 441 bytes
 

Contents

Class file image Download
<?php
/*
 * get skin folder
 */
function skin($url=false)
{
   
$skin = asset('/'.'skin'.'/'.Cms::getCurrentTheme().'/');


   
//if(!File::exists(asset('skin'.'/'.Cms::getCurrentTheme()))) {
       // $skin = asset('/'.'skin'.'/theme1/');
    //}

   
if($url)
       
$skin.=$url;
    return
$skin;
}
/*
* get theme path
*/
function theme_path()
{
    return
base_path().'/cms/local/'.Cms::getCurrentTheme().'/';
}