Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/thedevdojo/themes
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Apr 4, 2021
2 parents 48e12bf + 645c86a commit 2ad6787
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/helpers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


if (!function_exists(theme_field)){
if (!function_exists('theme_field')){

function theme_field($type, $key, $title, $content = '', $details = '', $placeholder = '', $required = 0){

Expand Down Expand Up @@ -31,7 +31,7 @@ function theme_field($type, $key, $title, $content = '', $details = '', $placeho

}

if (!function_exists(theme)){
if (!function_exists('theme')){

function theme($key, $default = ''){
$theme = \DevDojo\Themes\Models\Theme::where('active', '=', 1)->first();
Expand All @@ -54,7 +54,7 @@ function theme($key, $default = ''){

}

if(!function_exists(theme_folder)){
if(!function_exists('theme_folder')){
function theme_folder($folder_file = ''){

if(defined('THEME_FOLDER') && THEME_FOLDER){
Expand All @@ -75,7 +75,7 @@ function theme_folder($folder_file = ''){
}
}

if(!function_exists(theme_folder_url)){
if(!function_exists('theme_folder_url')){
function theme_folder_url($folder_file = ''){

if(defined('THEME_FOLDER') && THEME_FOLDER){
Expand Down

0 comments on commit 2ad6787

Please sign in to comment.