Submit
Path:
~
/
home
/
getwphos
/
public_html
/
dumpsterbm
/
wp-content
/
plugins
/
tatsu
/
includes
/
File Content:
class-tatsu-theme-support.php
<?php /** * Handles Post templates added by tatsu * @source https://github.com/wpexplorer/page-templater/blob/master/pagetemplater.php */ class Tatsu_Theme_Support { private static $instance; private $current_theme; private $theme_template; public static function getInstance() { if (null == self::$instance) { self::$instance = new self; } return self::$instance; } public function __construct() { } public function init() { add_filter('page_template', array(&$this, 'tatsu_blank_page_template')); add_filter('theme_page_templates', array(&$this, 'tatsu_add_template_to_select'), 10, 4); /** * Add Theme Supports */ add_theme_support('tatsu-global-sections'); if (class_exists('Spyro_Modules')) { add_theme_support('tatsu-forms'); } $theme = wp_get_theme(); $this->current_theme = strtolower($theme->get('Name')); $this->theme_template = strtolower($theme->get('Template')); $hide_support = apply_filters('tatsu_remove_header_footer_theme_support', array('Oshin')); $hide_support = array_map('strtolower', $hide_support); if (!in_array($this->current_theme, $hide_support) && !in_array($this->theme_template, $hide_support)) { add_theme_support('tatsu-header-builder'); add_theme_support('tatsu-footer-builder'); } } public function tatsu_blank_page_template($page_template) { if (get_page_template_slug() == 'tatsu-blank-page.php') { $page_template = TATSU_PLUGIN_DIR . 'includes/templates/tatsu-blank-page.php'; } $hide_support = apply_filters('tatsu_remove_header_footer_theme_support', array('Oshin')); $hide_support = array_map('strtolower', $hide_support); if (!in_array($this->current_theme, $hide_support) && !in_array($this->theme_template, $hide_support)) { if (get_page_template_slug() == 'tatsu-default.php') { $page_template = TATSU_PLUGIN_DIR . 'includes/templates/tatsu-default.php'; } } return $page_template; } public function tatsu_add_template_to_select($post_templates, $wp_theme, $post, $post_type) { if(is_tatsu_standalone()){ $post_templates['tatsu-blank-page.php'] = esc_html__('Tatsu Blank Page', 'tatsu'); $post_templates['tatsu-default.php'] = esc_html__('Tatsu Page with Headers and Footers', 'tatsu'); } return $post_templates; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
colorhub
---
0755
colors
---
0755
concepts
---
0755
demo-import
---
0755
footer-builder
---
0755
header-builder
---
0755
helpers
---
0755
icons
---
0755
integrations
---
0755
modules
---
0755
rest_api
---
0755
templates
---
0755
typehub
---
0755
class-tatsu-activator.php
1216 bytes
0644
class-tatsu-colors.php
2064 bytes
0644
class-tatsu-config.php
17720 bytes
0644
class-tatsu-content-parser.php
13190 bytes
0644
class-tatsu-deactivator.php
687 bytes
0644
class-tatsu-forms-process.php
10934 bytes
0644
class-tatsu-global-module-options.php
1574 bytes
0644
class-tatsu-global-section-meta.php
970 bytes
0644
class-tatsu-i18n.php
899 bytes
0644
class-tatsu-icons.php
2049 bytes
0644
class-tatsu-integrations.php
13786 bytes
0644
class-tatsu-loader.php
4865 bytes
0644
class-tatsu-post-templates.php
3641 bytes
0644
class-tatsu-svgs.php
1030 bytes
0644
class-tatsu-theme-support.php
2276 bytes
0644
class-tatsu.php
32953 bytes
0644
customizer-controls.php
2284 bytes
0644
global-section-metas.php
662 bytes
0644
index.php
26 bytes
0644
N4ST4R_ID | Naxtarrr