Compare commits

..

No commits in common. "master" and "1.0.8" have entirely different histories.

2 changed files with 1 additions and 19 deletions

View File

@ -17,8 +17,7 @@
"larapack/dd": "^1.1"
},
"suggest": {
"larapack/dd": "Required to use the dd method.",
"roots/wordpress": "This package need Wordpress environment to be used."
"larapack/dd": "Required to use the dd method."
},
"autoload": {
"psr-4": {

View File

@ -12,7 +12,6 @@ use WP_Error;
class TemplateLoader {
static array $templates_parts;
private static $template_loaded = false;
/**
* Initializes the template rendering process.
@ -24,7 +23,6 @@ class TemplateLoader {
foreach ($templates_path as $path) {
if (file_exists($path)) {
load_template($path);
self::$template_loaded = true;
}
}
@ -42,7 +40,6 @@ class TemplateLoader {
* @return void
*/
public static function getTemplates($template, $type, $templates) {
if (self::$template_loaded) return;
if ($type === "home" || $type === "frontpage") $type = "page";
$key = (int)$type !== 0 ? "errors" : preg_replace("/y$/m", "ie", $type)."s";
@ -132,20 +129,6 @@ class TemplateLoader {
self::getDefault($template_path, $type, $templates);
}
/**
* Processes and updates the singular templates by delegating to the default handler.
*
* @param string $template_path The base path to the templates used for singular views.
* @param string $type The specific type of singular content being processed.
* @param array $templates An array of template file names for singular content.
*
* @return void
*/
public static function getSingulars($template_path, $type, $templates): void {
self::getDefault($template_path, $type, $templates);
}
/**
* Generates an array of single templates with processed paths and stores them in the template parts.
*