PluginProbe
Easy Appointments / 4.0
Easy Appointments v4.0
4.0.2.1 4.0.2 4.0.1 3.12.27 3.12.28 3.12.29 4.0 3.12.26 3.12.25 trunk 2.0.0 2.1.0 2.1.1 2.1.3 2.1.4 2.10.0 2.2.0 2.2.3 2.2.4 2.3.0 2.3.1 2.3.11 2.3.2 2.3.3 2.3.4 All 79 releases
easy-appointments / src / utils.php

utils.php in Easy Appointments 4.0, at src/utils.php

25 lines 564 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // If this file is called directly, abort.
4 if (!defined('WPINC')) {
5 die;
6 }
7
8 /**
9 * Utils class
10 */
11 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound
12 class EAUtils
13 {
14 public function get_template_path($template_file_name)
15 {
16 $default_path = EA_SRC_DIR . 'templates/' . $template_file_name;
17 $theme_path = get_stylesheet_directory() . '/easy-appointments/' . $template_file_name;
18
19 if (file_exists($theme_path)) {
20 return $theme_path;
21 }
22
23 return $default_path;
24 }
25 }