-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'enhance/ai-onboarding' into add/sitedetails/simple
- Loading branch information
Showing
12 changed files
with
890 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
namespace NewfoldLabs\WP\Module\Onboarding\Data\Mustache; | ||
|
||
/** | ||
* Class Mustache | ||
*/ | ||
class Mustache { | ||
|
||
/** | ||
* Mustache Engine. | ||
* | ||
* @var array | ||
*/ | ||
protected $mustache_engine; | ||
|
||
/** | ||
* Setup mustache engine. | ||
*/ | ||
public function __construct() { | ||
$this->mustache_engine = new \Mustache_Engine( | ||
array( | ||
'loader' => new \Mustache_Loader_FilesystemLoader( dirname( __FILE__ ) . '/Templates' ), | ||
) | ||
); | ||
} | ||
|
||
/** | ||
* Render respective template data. | ||
* | ||
* @param string $template_name Template Name | ||
* @param array $data Data | ||
* @return string | ||
*/ | ||
public function render_template( $template_name, $data ) { | ||
return $this->mustache_engine->loadTemplate( $template_name )->render( $data ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
Theme Name: {{ theme_name }} | ||
Author: {{ site_title }} & {{ brand_name }} | ||
Author URI: {{ site_url }} | ||
Description: A Custom WordPress Theme built for {{ site_title }} by {{ brand_name }} | ||
Version: 1.0.0 | ||
Template: {{ parent_theme_slug }} | ||
Text Domain: {{ child_theme_slug }} | ||
*/ |
Oops, something went wrong.