Skip to content

Commit

Permalink
Update helpers.php
Browse files Browse the repository at this point in the history
Fix helpers.php throwing "Undefined constant" errors.
  • Loading branch information
thinkverse authored Jan 21, 2021
1 parent 9416fa4 commit 0c51bed
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 0c51bed

Please sign in to comment.